Skip to main content

IBaseToken

Functions

close

  function close(
) external

cacheTwap

  function cacheTwap(
uint256 interval
) external

Update the cached index price of the token.

Parameters:

NameTypeDescription
intervaluint256The twap interval in seconds.

getPriceFeed

  function getPriceFeed(
) external returns (address priceFeed)

Get the price feed address

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

Return Values:

NameTypeDescription
priceFeedaddressthe current price feed

getPausedTimestamp

  function getPausedTimestamp(
) external returns (uint256)

getPausedIndexPrice

  function getPausedIndexPrice(
) external returns (uint256)

getClosedPrice

  function getClosedPrice(
) external returns (uint256)

isOpen

  function isOpen(
) external returns (bool)

isPaused

  function isPaused(
) external returns (bool)

isClosed

  function isClosed(
) external returns (bool)

Events

PriceFeedChanged

  event PriceFeedChanged(
)

StatusUpdated

  event StatusUpdated(
)