πŸ“–
Yupana Document Portal
CtrlK
  • Introduction
    • What is Yupana.Finance?
    • Participants
    • FAQ
  • Lending
    • Supplying assets
      • General
    • Borrowing assets
      • General
  • Liquidation
  • Liquidity Risk
    • Yupana Interest Rate
  • βš™οΈDeveloper space
    • yToken contract methods
      • πŸ“„Storage overview
      • accrueInterest
      • priceCallback
      • updateInterest
      • πŸ”΅Lending methods
        • borrow
        • enterMarket
        • exitMarket
        • liquidate
        • mint
        • redeem
        • repay
      • πŸ”΅FA2 Token entrypoints
        • balance_of
        • get_total_supply
        • transfer
        • update_operators
      • πŸ›‘Admin methods
        • πŸ“₯Setup entrypionts
          • setTokenAction
          • setUseAction
        • 🀹Manage entrypoints
          • addMarket
          • setAdmin
          • setBorrowPause
          • setGlobalFactors
          • setTokenFactors
          • updateMetadata
          • withdrawReserve
    • InterestRate contract
      • πŸ”΅On-chain views
        • getBorrowRate
        • getSupplyRate
        • getUtilizationRate
      • πŸ›‘Admin methods
        • setCoefficients
        • updateAdmin
    • PriceFeed contract
      • getPrice
      • receivePrice
      • πŸ›‘Admin methods
        • setProxyAdmin
        • updateOracle
        • updatePair
        • updateYToken
  • Agreements
    • Terms of Service
    • Privacy Policy
    • Cookie Policy
Powered by GitBook
On this page
  1. βš™οΈDeveloper space
  2. PriceFeed contract

receivePrice

(string * (timestamp * nat)) -> op(YToken.priceCallback(price))

This entrypoint is a part of the getPrice call.

Receives data (string * (timestamp * nat)) from oracle as (pairName, timestamp, oraclePrice) parses from oraclePrice normalized price and send it as a callback to yToken.priceCallback entrypoint.

This entrypoint is configured to process calls only from oracle contract address from its storage, so no one else could call this method.

PreviousgetPriceNextAdmin methods

Last updated 3 years ago