🔵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}
getUtilizationRate

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}
getBorrowRate

finally, supplyRate is

S=BU(1reserveFactor)S=B*U*(1-reserveFactor)
getSupplyRate

Last updated