๐Ÿ”ตOn-chain views

This section describes on-chain (old-style) views to provide math of utilization, borrow and supply rate.

Let utilisationRate is

U=borrowscash+borrowsโˆ’reservesU = \dfrac{borrows}{cash+borrows-reserves}
pagegetUtilizationRate

and

kink=Uโˆ—kink = U^*

then borrowRate is

B={baseRate+Uโˆ—multiplierifย UโฉฝUโˆ—baseRate+Uโˆ—โˆ—multiplier+(Uโˆ’Uโˆ—)โˆ—jumpMultiplierifย U>Uโˆ—B = \begin{cases} baseRate + U * multiplier & \text{if } U \leqslant U^*\\ baseRate + U^* * multiplier + (U - U^*) * jumpMultiplier & \text{if } U > U^*\\ \end{cases}
pagegetBorrowRate

finally, supplyRate is

S=Bโˆ—Uโˆ—(1โˆ’reserveFactor)S=B*U*(1-reserveFactor)
pagegetSupplyRate

Last updated