Borrow APY

How the borrower's expenses are calculated

Users who borrow pay interests to a market (for the users who supply). The interest is compounded with every new block that appears on the blockchain, so the debt increases every minute.

Both Borrow Rate (APR) and Borrow APY of an asset on a specific market are not fixed, but depend on the current utilization of the asset:

U=UtilizationRate=AmountBorrowedAmountSuppliedU = UtilizationRate = \frac{AmountBorrowed}{AmountSupplied}
  • When the asset is available, interests are low to encourage borrowing.

  • When the asset is scarce: interests are high to encourage repayments of debt and additional supplying.

The difference is that Borrow APY takes into account compound interest, and Borrow Rate does not.

The graph of APR and APY dependence on Utilization Rate looks like this:

Borrow Rate

Borrow Rate (annual percentage rate, APR) refers to the yearly interest paid by borrowers does not take compounding into account.

The Borrow Rate function is split in two parts around an optimal utilization rate UoptU_{opt}​:

BorrowRate={R0+UUoptRslope1,if U<UoptR0+Rslope1+UUopt1UoptRslope2,if UUoptBorrowRate = \begin{cases} R_0+\frac U{U_{opt}}R_{slope1} ,&if\ U<Uopt\newline R_0+R_{slope1}+\frac{U-U_{opt}}{1 -U_{opt}}R_{slope2},&if\ U\ge Uopt \end{cases}

Where R0R_0, Rslope1R_{slope1}, Rslope2R_{slope2} are asset parameters.

Borrow APY

Your borrowed amount grows with every new block due to compounding. Borrow APY (annual percentage yield) refers to the yearly interest paid by borrowers, taking into account the effect of compounding.

Borrow APY is calculated as follows:

BorrowAPY=(1+BorrowRateBlocksPerYear)BlocksPerYear1BorrowAPY = \bigg(1 + \frac{BorrowRate}{BlocksPerYear}\bigg)^{BlocksPerYear} - 1

A new block is added to the Waves blockchain about once a minute, so

BlocksPerYear=3652460=525,600BlocksPerYear = 365\cdot 24\cdot 60 = 525,600

Last updated