IBaseToken
Functions
close
function close(
) external
cacheTwap
function cacheTwap(
uint256 interval
) external
Update the cached index price of the token.
Parameters:
Name
Type
Description
interval
uint256
The 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:
Name
Type
Description
priceFeed
address
the 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(
)
Last updated
Was this helpful?