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:

Bt=BF+BCBFUCUF(UtUF)B_t = B_F + \frac{B_C - B_F}{U_C - U_F} \, (U_t - U_F)

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:

St=Ut×Bt×(1Rt)S_t = U_t \times B_t \times (1 - R_t)

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