Interest Rate Model
In the borrow rate technical implementation, the calculateCompoundedInterest method relies on an approximation that mostly affects high interest rates. The resulting actual borrow rate is as follows:
Both the variable and stable interest models, are derived from the formula above from the Whitepaper with different parameters for each asset.
Variable debt sees their rate constantly evolving with utilisation.
Alternatively, stable debts maintain their interest rate at issuance until the specific rebalancing conditions are met. Interest models are optimised by new rate strategy parameter Optimal Stable/Total Debt Ratio to algorithmically manage stable rate.
Model Parameters
First, it’s crucial to distinguish assets used predominantly as collateral (i.e., volatile assets), which need liquidity at all times to enable liquidations. Second, the asset’s liquidity on Mahalend is an important factor, as the more liquidity, the more stable the utilisation. The interest rates of assets with lower liquidity levels should be more conservative.
It is also key to consider market conditions (i.e., how can the asset be used in the current market?). Mahalend's borrowing costs must be aligned with market yield opportunities, or there would be a rate arbitrage with users incentivized to borrow all the liquidity on Mahalend to take advantage of higher yield opportunities.
With the rise of liquidity mining, Maha adapted its cost of borrowing by lowering the Uoptimal of the assets affected. This increased the borrowing costs that are now partially offset by the liquidity reward.
Variable Interest Rate Model Parameters
Variable rate parameters:
Base Variable Borrow Rate
Variable Rate Slope 1
Variable Rate Slope 2
Stable Interest Rate Model Parameters
Stable rate parameters:
Base Variable Borrow Rate
Variable Rate Slope 1
Variable Rate Slope 2
Stable to Total Debt Ratio
The stable rate provides predictability for the borrower; however, it comes at a cost, as the interest rates are higher than the variable rate. The rate of a stable loan is fixed until the rebalancing conditions are met:
The assets that are most exposed to liquidity risk do not offer stable-rate borrowing.
The base rate of the stable rate model corresponds to the average market rate of the asset.
Rate Strategy Stable
High liquidity stablecoins are calibrated to lower rates to encourage borrowing.
When market conditions change, the interest rate parameters must be changed to adapt to utilisation on MahaLend's market as well as to incentives across DeFi.
Supply rate
The average Supply APY over a period also includes Flash Loan fees.
Last updated