Interest Rate
Borrow Interest Rate
The current borrowing rate, Bt, is determined by the current utilization rate, Ut, using a discrete function f(Ui)→Bif(Ui)→Bi that maps specific knot points. The relationship is defined as:
Where:
B_t: Current borrow interest rate
B_C: Borrow interest rate at the ceiling utilization knot point
B_F: Borrow interest rate at the floor utilization knot point
U_t: Current utilization rate
U_C: Utilization rate at the ceiling knot point
U_F: Utilization rate at the floor knot point
Supply Interest Rate
The supply interest rate St is given by:
Where:
(S_t): Current supply interest rate
(B_t): Current borrow interest rate
(R_t): Current Reserve Factor (the portion of interest retained by the protocol)
Below is a simplified pseudocode example of the interest rate calculation:
Last updated