0VIX Docs
  • 0VIX
  • Research & Risk Assessment
  • DAO
    • Legal set up
    • Governance - DAO charter
  • Core Protocol
    • Supply
      • Supply Assets
      • Earning
    • Borrow
      • Borrowing Assets
      • Repayments
      • Health Factor
    • Loan Liquidation
    • oToken
  • Developers
    • Protocol Parameters
    • Contract Addresses
      • Mumbai
      • PoS
      • zkEVM
    • $VIX Pre-mining
      • $VIX Pre-mining APRs
    • Key Events
    • Exchange Rate
  • Support
    • FAQ
    • Supported Assets
    • Video Tutorials
  • References
    • Audits
    • Social Media Links
    • Brand Assets
Powered by GitBook
On this page

Was this helpful?

  1. Developers

Exchange Rate

Each oToken's value increases over time as interest accumulates in the market. The exchange rate between a oToken and its underlying asset determines the conversion rate, which grows as interest is earned.

exchangeRate = (getCash() + totalBorrows() - totalReserves()) / totalSupply()

The underlying function returns an unsigned integer, scaled by 1 * 10^(18 - 8 + Underlying Token Decimals).

function exchangeRateCurrent() returns (uint)

PreviousKey EventsNextFAQ

Last updated 2 years ago

Was this helpful?