Intro To MetaFire Protocol
  • Welcome to MetaFire
  • Roadmap
  • How to use
    • Supplying & Earning
    • Withdraw
    • Borrow
    • Buy Now Pay Later
    • Repay
  • Interest Rate Model
Powered by GitBook
On this page
  • Borrow Interest Rate
  • Interest Rate Model
  • Deposit Interest Rate

Interest Rate Model

Utilization Rate
Borrow Rate
Deposit Rate

1.00%

15.25%

0.11%

5.00%

16.23%

0.57%

10.00%

17.46%

1.22%

15.00%

18.69%

1.96%

20.00%

19.92%

2.79%

25.00%

21.15%

3.70%

30.00%

22.38%

4.70%

35.00%

23.62%

5.79%

40.00%

24.85%

6.96%

45.00%

26.08%

8.22%

50.00%

27.31%

9.56%

55.00%

28.54%

10.99%

60.00%

29.77%

12.50%

65.00%

31.00%

14.11%

70.00%

59.57%

29.19%

75.00%

88.14%

46.27%

80.00%

116.71%

65.36%

85.00%

145.29%

86.45%

90.00%

173.86%

109.53%

95.00%

202.43%

134.62%

100.00%

231.00%

161.70%

Borrow Interest Rate

MetaFire’s interest rate algorithm is calibrated to manage liquidity risk and optimize utilization. The borrow interest rates are derived from the Utilization Rate .

Uis 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.

Interest Rate Model

The resulting actual borrow rate is as follows:

Deposit Interest Rate

The borrow interest rates paid are distributed as yield for mToken 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.

PreviousRepay

Last updated 1 year ago

Liquidity risk materializes when utilization is high, and this becomes more problematic as UUU gets closer to 100%. To tailor the model to this constraint, the interest rate curve is split in two parts around an optimal utilization rate UoptimalU_{optimal}Uoptimal​. Before UoptimalU_{optimal}Uoptimal​the slope is small, after it begins rising sharply.

The interest rateRtR_tRt​follows the model:

ifU≤Uoptimal:Rt=R0+UtUoptimalRslope1if \hspace{1mm} U \leq U_{optimal}: \hspace{1cm} R_t = R_0 + \frac{U_t}{U_{optimal}} R_{slope1}ifU≤Uoptimal​:Rt​=R0​+Uoptimal​Ut​​Rslope1​

ifU>Uoptimal:Rt=R0+Rslope1+Ut−Uoptimal1−UoptimalRslope2if \hspace{1mm} U > U_{optimal}: \hspace{1cm} R_t = R_0 + R_{slope1} + \frac{U_t-U_{optimal}}{1-U_{optimal}}R_{slope2}ifU>Uoptimal​:Rt​=R0​+Rslope1​+1−Uoptimal​Ut​−Uoptimal​​Rslope2​

ActualAPY=(1+TheoreticalAPY/secsperyear)secsperyear−1Actual APY = (1+Theoretical APY/secsperyear)^{secsperyear}-1ActualAPY=(1+TheoreticalAPY/secsperyear)secsperyear−1

When U≤UoptimalU \leq U_{optimal}U≤Uoptimal​ the borrow interest rates increase slowly with utilization

When U>UoptimalU > U_{optimal}U>Uoptimal​ the borrow interest rates increase sharply with utilization to above 50% APY if the liquidity is fully utilized.

Db=TotalDeposit∗Br∗U/∑i=14Ci∗AiD_b = TotalDeposit * B_r * U / \displaystyle\sum_{i=1}^4C_i*A_iDb​=TotalDeposit∗Br​∗U/i=1∑4​Ci​∗Ai​

DbD_bDb​ the base deposit rate

BrB_rBr​ the borrow rate

UUU the utilization ratio

CCC the distributing ratio coefficient

AAA the amount of deposit of a specific period