Docs
  • ⛵Lodestar Finance
  • Getting Started
    • 👨‍🌾User Guide
    • ❓FAQ
    • 🏗️Deployed Contracts
  • Documentation
    • 👩‍🔬Technical Overview
      • Supply
      • Collateral
        • Collateral Factors
      • Borrow
      • Interest
        • Interest Rate Model 1
        • Interest Rate Model 2
        • Interest Rate Model 3
        • Interest Rate Model 4
        • Interest Rate Model 5
      • Reserves
        • Reserve Factors
        • Rake
      • Liquidation
      • Staking
        • Emission Gauge Voting
      • Looping
    • 🤖Contracts
      • Lens
      • Comptroller
        • LODE Emissions
        • Events
        • Error Reporting
      • Oracles
      • Interest Rate Models
        • Constructor Arguments
      • lTokens
        • Market and Account State
        • Events
        • Error Reporting
    • ⚙️API
    • 🔐Security
    • 🗺️Roadmap
    • 🥚Inception
  • Tokenomics
    • 🧭LODE
  • Links
    • Twitter
    • Discord
    • Medium
    • Github
    • Lodestar Website
    • Lodestar dApp
    • Lodestar Liquidity Mining
    • LODE Token Claim for Aelin Supporters
Powered by GitBook
On this page
  • Market State Parameters
  • Exchange Rate
  • Cash
  • Total Borrows
  • Borrow Rate
  • Total Supply
  • Supply Rate
  • Total Reserves
  • Account State Parameters
  • Borrow Balance
  • Underlying Balance
  1. Documentation
  2. Contracts
  3. lTokens

Market and Account State

Market State Parameters

Exchange Rate

The exchange rate between a lToken and its underlying asset is perpetually increasing as interest is accrued in the market through borrowing activity. The exchange rate between the lToken and its underlying asset is equal to:

CurrentExchangeRate=(Cash+Borrows−Reserves)/TotalSupplyCurrentExchangeRate = (Cash + Borrows-Reserves)/TotalSupplyCurrentExchangeRate=(Cash+Borrows−Reserves)/TotalSupply

Cash

Cash is defined as the total amount of underlying assets owned by the lToken contract. The amount of cash in any supported market can be queried by the user.

Total Borrows

Total borrows is equal to the total amount of underlying assets currently loaned out in the market. Total borrows is the primary driver of the accrued interest paid to asset suppliers.

Borrow Rate

The current borrow rate per block is the amount multiple by your current borrow balance to return your interest accrued on a given block and can be queried by the user at any time.

Total Supply

The total supply is equal to the total amount of lTokens circulating in any given market and can be queried by the user at any time.

Supply Rate

Total Reserves

The total reserves are a portion of historical accrued interest that is set aside in each market as cash that can be withdrawn or transferred by the. The Reserve Factor is unique to each market determines the amount of accrued borrow interest that is set aside.

Account State Parameters

Borrow Balance

Underlying Balance

UnderlyingBalance=lTokens∗CurrentExchangeRateUnderlyingBalance = lTokens*CurrentExchangeRateUnderlyingBalance=lTokens∗CurrentExchangeRate
PreviouslTokensNextEvents

Last updated 2 years ago

The current supply rate per block is the amount multiple by your supply balance to return your interest gained on a given block and can be queried by the user at any time. The supply rate calculation is derived from the , , and . See the section for further details.

Any user that borrows assets from the protocol is exposed to accumulating interest based on the current . Interest is accrued every block and any user can use this function to read the current value of an account's borrow balance including interest.

A user's supplied assets in any given market are represented by their Underlying Balance. Underlying Balance is equal to a user's lToken balance multiplied by the . Written formulaically,

🤖
Interest Rate Model
borrow rate
reserve factor
total borrows
borrow rate
current exchange rate