๐Ÿ“–
Yupana Document Portal
  • 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

getPrice

set(nat) -> list(op(Oracle(pairName, PriceFeed.receivePrice))

PreviousPriceFeed contractNextreceivePrice

Last updated 3 years ago

Entrypoint calls oracle about prices each of tokenId from input set(nat) and routes them to . It the end prices sends to entrypoint.

Usage

const tokenSet = [0, 1, 5]; // token ids to update
const proxy = await tezos.contract.at(proxyAddress);
const operation = await proxy.methods.getPrice(tokenSet).send();
await operation.confirmation();
token_ids = [0, 1, 5]
proxy = ContractInterface.from_michelson(code) # or client.contract(contract_address)...
call = proxy.getPrice(token_ids)
opg = call.inject()
โš™๏ธ
receivePrice
yToken.priceCallback