Comment on page
InterestRateCalculator
Taker’s interest rate algorithm is calibrated to manage liquidity risk and optimise utilisation. The borrow interest rates are derived from the Utilisation Rate
.
is an indicator of the availability of capital within the pool. The interest rate model manages liquidity risk in the protocol through user incentives to support liquidity:
- When capital is available: low interest rates to encourage borrowing.
- When capital is scarce: high interest rates to encourage repayments of debt and additional supplying.
Liquidity risk materialises when utilisation is high, and this becomes more problematic as
gets closer to 100%. To tailor the model to this constraint, the interest rate curve is split in two parts around an optimal utilisation rate
. Before
the slope is small, after it begins rising sharply.
The interest rate
follows the model:
- , the utilisation ratio
- , the optimal utilisation ratio
- , the borrow interest Rate
- , the base borrow interest rate
- , the rate slope 1
- , the rate slope 2
The borrow interest rates paid are distributed as yield for Token holders who have supplied to the protocol, excluding a share of yields sent to the ecosystem reserve defined by the reserve factor. This interest rate is generated on the asset that is borrowed out then shared among all the liquidity providers. The supply APY is:
- , the utilisation ratio
- , the borrow interest rate
- , the reserve factor
bluechip
growth
Parameters | Value |
---|---|
Optimal Utilisation ratio | 75% |
Base Borrow Rate | 10% |
Rate Slope 1 | 8% |
Rate Slope 2 | 100% |
Reserve Factor | 10% |
Parameters | Value |
---|---|
Optimal Utilisation ratio | 60% |
Base Borrow Rate | 15% |
Rate Slope 1 | 15% |
Rate Slope 2 | 150% |
Reserve Factor | 10% |
Calculate deposit and borrowing rates using the total deposit amount, total borrowing amount, and reserve factor.
function calculateInterestRates(
uint256 totalLiquidity,
uint256 totalDebt,
uint256 reserveFactor
) external view override returns (uint256 depositRate, uint256 borrowRate)
Name | Type | Description |
---|---|---|
totalLiquidity | uint256 | the total liquidity in ETH. |
taotalDebt | uint256 | the total debt in ETH. |
reserveFactor | uint256 | reserve factor. It represents the proportion of interest earned on loans that is retained by the protocol as a reserve. |
Name | Type | Description |
---|---|---|
depositRate | uint256 | deposit rate |
borrowRate | uint256 | borrowing rate |
Last modified 18d ago