# What is Supply APY?

Users who supply collect an income from the users who borrow. This income is given in the same token as the supply and compounds with every new block that is added to the blockchain.&#x20;

Both the Supply Rate (APR) and Supply APY of an asset on a specific market are calculated dynamically depending on the asset's utilization rate.

$$
U = 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 Supply APY takes into account compound interest while the Supply Rate does not.

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

<figure><img src="https://3281381258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFOjqTqLs3fkxS7moILC2%2Fuploads%2FRjtWHmuUBVvCzjBG6lKq%2Fapy.png?alt=media&#x26;token=0d95e911-d26f-4b5c-8a0c-6e650c9b4533" alt=""><figcaption></figcaption></figure>

## Supply Rate

The Supply Rate (annual percentage rate, APR) refers to the yearly interest paid to investors without taking compounding into account.

The Supply Rate function is split in two parts around an optimal utilization rate $$U\_{opt}$$:

$$
SupplyRate = \begin{cases}
U\cdot\bigg(R\_0+\frac U{U\_{opt}}R\_{slope1}\bigg)\cdot\bigg(1 - ProtocolFee\bigg) ,\&if\ U\<Uopt\newline U\cdot\bigg(R\_0+R\_{slope1}+\frac{U-U\_{opt}}{1 -U\_{opt}}R\_{slope2}\bigg)\cdot\bigg(1 - ProtocolFee\bigg),\&if\ U\ge Uopt
\end{cases}
$$

Where:

* $$R\_0$$, $$R\_{slope1}$$, $$R\_{slope2}$$ are asset parameters,
* ​$$ProtocolFee$$ ​is a share of the borrow interest rate sent to the protocol.

## Supply APY​

The supplied amount grows with every new block thanks to compounding. Supply APY (annual percentage yield) is the yearly interest paid to investors including compounding interest.

Supply APY is calculated as follows:

$$
SupplyAPY = \bigg(1 + \frac{SupplyRate}{BlocksPerYear}\bigg)^{BlocksPerYear} - 1
$$

Since roughly one new block is added to the Waves blockchain every minute, the following calculation is used:

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