Price Oracles

RWA issuers are responsible for regularly pushing accurate pricing information to an onchain oracle contract. This information is used to determine account standings, and in turn liquidations, so it must be current and accurate at all times.

Oracle Contracts

Price oracle contracts must be deployed to the Canto blockchain and conform to the ISDYCPriceOracle interface:

interface ISDYCPriceOracle {
    function latestRoundData()
        external
        view
        returns (
            uint80 roundId,
            int256 answer,
            uint256 startedAt,
            uint256 updatedAt,
            uint80 answeredInRound
        );
    function decimals() external view returns (uint8);
}

Oracle contracts should also include the necessary functionality to update pricing information manually or automatically, based on the RWA issuer's best judgement.

Last updated