Price Oracle
Oracle Interface
interface IZkOracle {
// Returns the address of the asset
function assetAddress() external view returns (address);
// Returns the redemption rate (contract rate) in underlying terms
function getRedemptionRate() external view returns (uint256);
// Returns the market rate in underlying terms
function getMarketRate() external view returns (uint256);
}Action
Description
Function
Example: Get Asset Prices
Redemption Rate vs. Market Rate
Depeg Detection
Oracle Implementation
Last updated