LogoLogo
  • What Is Vivacity Finance?
  • User Guides
    • Supplying NOTE
    • Canto Rewards
    • cNOTE Interest
    • Viva Points
  • For Borrowers
    • Overview
    • Supplying Assets
    • Borrowing NOTE
  • Reference
    • Architecture
    • Liquidation
    • RWA Issuers
      • Asset Whitelists
      • Price Oracles
    • Contract Addresses
Powered by GitBook
On this page
  1. Reference
  2. RWA Issuers

Price Oracles

Last updated 1 year ago

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 , 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.

liquidations