# 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="/files/hvKNxRzqaVrQLPOqU7fa" 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
$$


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://puzzle-lend.gitbook.io/guidebook/suppliers-guide/what-is-supply-apy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
