LST 预言机机制
最后更新于
/**
* @notice Get amount of underlying asset for a given amount of shares.
*/
function getValueByShares(uint256 shares) external view returns (uint256 value);/**
* @notice Get the decimals of the values.
*/
function getOracleDecimals() external view returns (uint8);/**
* @notice Get the address of LST Oracle.
*/
function getOracle() public view returns (address);function getNav(address erc20) external view returns (uint256);function navDecimals(address erc20) external view returns (uint8);function getSubscribeNav(bytes32 poolId_, uint256 time_)
external view returns (uint256 nav_, uint256 navTime_);function setSubscribeNavOnlyMarket(bytes32 poolId_, uint256 time_, uint256 nav_) external;