kopi.money
  • Welcome
  • Introduction
    • The Kopi Money Market
    • What is a crypto wallet
    • What is a DEX?
    • Strategies to maximize earnings
    • Tokenomics
  • Using Kopi
    • Connect your wallet
  • How to trade
  • How to place orders
  • Using arbitrage
  • Working with automations
  • Essentials
    • Trade execution
    • kCoins
    • Lending
    • Borrowing
    • Fees & Protocol Income
    • Interest rates
    • Liquidations
    • Adding new tokens to the DEX
  • Tokenfactory
    • Factory tokens
    • Liquidity pool
    • Vesting
    • Offers
  • Technical details
    • Constant product
    • Prices
  • Liquidity
  • Epochs
  • Running a node
  • Transaction fees
Powered by GitBook
On this page
  1. Essentials

Interest rates

PreviousFees & Protocol IncomeNextLiquidations

Last updated 2 months ago

The interest rate that borrowers must pay depends on the token’s utility rate. The utility rate is calculated as follows:

utility_rate=sum_of_all_loan/(sum_of_all_loans+borrowable_assets)utility\_rate = sum\_of\_all\_loan / (sum\_of\_all\_loans + borrowable\_assets)utility_rate=sum_of_all_loan/(sum_of_all_loans+borrowable_assets)

For example, User A deposits 100 kUSD. User B comes along to borrow 80 kUSD, the sum of all loans is 80 kUSD while 20 kUSD can be borrowed. This will result in a utility rate of 80%. As interested is applied to loans, the sum of all loans increases, meaning over time the utility rate increases too.

The actual interest is an exponential function:

minimum=0.05A=12B=131072interest_rate=minimum+(eutility_rate∗A/B)\begin{aligned} minimum &= 0.05 \\ A &= 12 \\ B &= 131072 \\ interest\_rate &= minimum + (e ^{utility\_rate * A} / B) \end{aligned}minimumABinterest_rate​=0.05=12=131072=minimum+(eutility_rate∗A/B)​

The variables minimum, A and B are parameters that can be changed via governance. If the Utility Rate (UR) is at 0%, the Interest Rate (IR) of 5% applies as the minimum. The other parameters affect the change of the curve. These variables were chosen with the aim to have a smooth increase from the 5% with 0% UR, to 10% with 70-75% UR. Thereafter, the IR increases steeply. Exemplary values are:

Utility Rate, %
Interest Rate, %

0

5

10

5.002

20

5.008

30

5.02

40

5.09

50

5.3

60

6.02

70

8.39

75

11.18

80

25.52

85

36.26

90

42.39

95

73.14

100

129.17