Interest Rate Model
Last updated
Last updated
The interest rate model in Folks Finance is designed to dynamically balance supply and demand, ensuring competitive rates for both borrowers and depositors. This model is crucial for maintaining the stability and efficiency of the lending protocol.
Key Concepts
Utilization Ratio (U):
The utilization ratio measures how much of the available pool of assets has been borrowed compared to the total deposited.
Formula:
Variable and Stable Interest Rates:
Variable Interest Rate: This rate fluctuates according to the utilization ratio.
Stable Interest Rate: This rate is fixed at the time of borrowing but can be rebalanced to ensure the protocol’s stability.
Interest Rate Calculations
Variable Borrow Interest Rate :
The variable interest rate depends on the utilization ratio and is calculated using the following formulas:
If :
If :
Stable Borrow Interest Rate :
The stable interest rate is calculated similarly but includes additional parameters to handle the ratio of stable borrows:
If :
If :
Rebalancing Stable Rates:
To maintain protocol stability, stable rates may need rebalancing under specific conditions:
Rebalancing Down: When the current stable rate exceeds the pool’s current stable rate by a defined margin.
Rebalancing Up: When the utilization ratio and deposit interest rate meet certain thresholds.
Deposit Interest Rate
Calculation:
The deposit interest rate, earned by depositors, is derived from the interest paid by borrowers.
( RR ) is the retention rate, representing the protocol's fee.
The stable borrow interest amount is the sum of the stable borrowed amounts multiplied by their respective interest rates.
Collateral and Borrow Limits
Collateral Factor (CF):
The collateral factor determines how much a user can borrow against their collateral, expressed as a percentage.
Example: USDC might have a CF of 80%, meaning $10 of USDC allows borrowing up to $8 in value.
Borrow Amount Calculation:
The borrowable amount (BA) is calculated based on the user's collateral balance, the price of the collateral, and the collateral factor.
Borrow Factor (BF):
The borrow factor adjusts the effective borrowed amount to account for asset volatility.
Example: ALGO might have a BF of 110%, meaning $10 borrowed is effectively $11 due to its volatility.
Formula:
is the overall borrow interest rate, which is a weighted average of variable and stable borrow rates.
Borrow Interest Amount :
Formula:
Formula: