Repayment/Interest Rates
How repayments and interest rates for borrowers are calculated on MYSO v1
If a user wants to reclaim their previously pledged collateral, they must, prior to the expiry of the loan, pay a pre-determined repayment amount, which takes into account the borrow amount plus some interest rate.
This interest rate is determined through a function that takes into account the pool's liquidity after a user has borrowed some amount y(x), along with the an underlying rate La, denoted by the piecewise function below:


Though quite complex visually, this function is a curve that takes into account a given pool's target liquidity (L1, L2) and interest rate bounds (r1, r2), which are set at the deployment of a given pool and are immutable.
The interest rate for a given pool changes depending on available pool liquidity and also takes into account these interest rate bounds.

Generally speaking, the more liquidity there is (i.e., by LPs adding liquidity) the lower the interest rate, and conversely, the less liquidity there is (either by users borrowing or by LPs removing liquidity), the higher the interest rate. Rates can never fall below some lower rate r2, providing LPs a guaranteed lower bound at which their capital is lent to borrowers. However, rate(La) isn’t bound upwards to allow the market to find an interest rate equilibrium, even for highly volatile collateral assets.
Last updated