For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

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

finally, supplyRate is

S=B∗U∗(1−reserveFactor)S=B*U*(1-reserveFactor)
getSupplyRate

Last updated