🔵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+borrowsreservesU = \dfrac{borrows}{cash+borrows-reserves}
pagegetUtilizationRate

and

kink=Ukink = U^*

then borrowRate is

B={baseRate+Umultiplierif UUbaseRate+Umultiplier+(UU)jumpMultiplierif U>UB = \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=BU(1reserveFactor)S=B*U*(1-reserveFactor)
pagegetSupplyRate

Last updated