Compound: The Money Market Protocol Version 0



Download 184.19 Kb.
View original pdf
Page12/16
Date09.11.2021
Size184.19 Kb.
#57663
1   ...   8   9   10   11   12   13   14   15   16
Compound.Whitepaper
3.2
Interest Rate Mechanics
Compound money markets are defined by an interest rate, applied to all borrowers uniformly,
which adjust overtime as the relationship between supply and demand changes. The history of each interest rate, for each money market, is captured by an Interest Rate Index , which


is calculated each time an interest rate changes, resulting from a user minting, redeeming,
borrowing, repaying or liquidating the asset.
3.2.1 Market Dynamics
Each time a transaction occurs, the Interest Rate Index for the asset is updated to compound the interest since the prior index, using the interest for the period, denominated by rt, calculated using a per-block interest rate
ndex
ndex
1
)
I
a,n
= I
a,(n
−1)
* ( + r * t The market’s total borrowing outstanding is updated to include interest accrued since the last index
otalBorrowBalance
otalBorrowBalance
1
)
t
a,n
= t
a,(n
−1)
* ( + r * t And a portion of the accrued interest is retained (set aside) as reserves, determined by a
reserveFactor
, ranging from 0 to 1:
eserves
eserves
otalBorrowBalance
r
eserveF actor)
r
a
= r
a,(n
−1)
+ t
a,(n
−1)
* ( * t * r

Download 184.19 Kb.

Share with your friends:
1   ...   8   9   10   11   12   13   14   15   16




The database is protected by copyright ©ininet.org 2024
send message

    Main page