Compounding Model
In order to provide maximum flexibility to both Depositors and Borrowers, interest payments are automatically integrated in Deposit and Borrow Balances and are compounded at every block.
To compute each Borrow Balance, we use a specific Denominated Currency called lToken. When a new Lending Pool is created for Token A, we create a lTokenA, whose price in Token A unit evolves as follows:
where dtβ is the time period expressed in years. By updating this price, each Borrow Balance can be easily incremented by the interest accrued during the period.
For Depositors, we follow a similar approach by introducing a Deposit Token, or dToken, that represents their ownership in a specific Lending Pool. As opposed to lToken , these dTokens are minted and transferred to Depositors in exchange for their deposits.
In order to materialize the accruing interest over deposits, dTokenA will be convertible into an increasing amount of Token A. With Rtβbeing the Deposit rate, the price of dToken in Token A Unit, or DtAβ, evolves as follows:
Upon withdrawal, Depositors can redeem their dTokenA for Token A at the current price, reflecting their deposits plus the interest earned.
Last updated