BaseToken

  function initialize(
  ) external

  function pause(
  ) external

  function close(
  ) external

  function close(
  ) external

setPriceFeedarrow-up-right

  function setPriceFeed(
  ) external

priceFeed is now priceFeedDispatcher, which dispatches either Chainlink or UniswapV3 price

getPriceFeedarrow-up-right

Get the price feed address

priceFeed is now priceFeedDispatcher, which dispatches either Chainlink or UniswapV3 price

Return Values:arrow-up-right

Name
Type
Description

priceFeed

address

the current price feed

getPausedTimestamparrow-up-right

getPausedIndexPricearrow-up-right

getClosedPricearrow-up-right

getIndexPricearrow-up-right

Returns the index price of the token.

we overwrite the index price in BaseToken depending on the status

Parameters:arrow-up-right

Name
Type
Description

interval

uint256

The interval represents twap interval.

Return Values:arrow-up-right

Name
Type
Description

indexPrice

uint256

Twap price with interval

Last updated