Oracle (Testnet)
By default, we provides chainlink-compatible interfaces for price feeds of hub assets and miAssets in public testnet.
// See full code: https://github.com/mitosis-org/protocol-public/blob/main/src/interfaces/hub/oracle/AggregatorV2V3Interface.sol
interface AggregatorV2V3Interface {
function decimals() external view returns (uint8);
function description() external view returns (string memory);
function version() external view returns (uint256);
function latestAnswer() external view returns (int256);
function latestTimestamp() external view returns (uint256);
function latestRound() external view returns (uint256);
function getAnswer(uint256 roundId) external view returns (int256);
function getTimestamp(uint256 roundId) external view returns (uint256);
function getRoundData(uint80 _roundId)
external
view
returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
function latestRoundData()
external
view
returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
}
In public testnet, we plan to support price feeds for:
Hub Assets
- LBTC/USD
- ETH/USD
- weETH/USD
- ezETH/USD
- mETH/USD
- USDT/USD
- USDe/USD
- ARB/USD
- OP/USD
- MNT/USD
- AAVE/USD
- COMP/USD
- STG/USD
- PENDLE/USD
- YFI/USD
miAssets
- miLBTC/USD
- miETH/USD
- miweETH/USD
- miezETH/USD
- mimETH/USD
- miUSDT/USD
- miUSDe/USD