πŸ“–
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. yToken contract methods

accrueInterest

params of yAssetParams -> storage upd

Updates totalBorrows, totalReserves, borrowIndex and interestUpdateTime of token from received borrowRate and tokenId.

This entrypoint receives calls only from InterestRate, which address stored inside token.interestRateModel record of contract storage.

PreviousStorage overviewNextpriceCallback

Last updated 3 years ago