# Interests

## **Interest Rate Model**

Interest rates in LayerBank are dynamic and determined by a utilization-based interest rate curve.\
This ensures that lending markets remain balanced — incentivizing borrowing when liquidity is abundant and attracting deposits when liquidity is scarce.

***

### **Utilization Rate (U)**

Utilization measures how much of the pool's liquidity is currently borrowed:

<h3 align="center"><span class="math">U = \frac{\text{Borrowed}}{\text{Supplied}}</span></h3>

* **Low Utilization (U ↓)** → lower borrow rates, encouraging more borrowing.
* **High Utilization (U ↑)** → higher borrow rates, attracting more suppliers.

This feedback loop helps maintain an efficient capital market.

***

### **Borrower Interest Rate**

The Borrow APR is calculated using a double-slope interest rate model:

* **Below Optimal Utilization:** Borrow APR increases linearly at a slower slope (Slope 1).
* **Above Optimal Utilization:** Borrow APR rises more steeply (Slope 2) to quickly restore liquidity balance.

$$
R =
\begin{cases}
Slope\_1 \times U & \text{if } U \leq U\_{optimal} \\
Slope\_1 \times U\_{optimal} + Slope\_2 \times (U - U\_{optimal}) & \text{if } U > U\_{optimal}
\end{cases}
$$

* **Optimal Utilization (U\_optimal):** Target utilization level set by the protocol.
* **Slope 1 / Slope 2:** Parameters defining the interest rate curve’s sensitivity.

> **Example:**
>
> * Slope 1 = 4%, Optimal U = 80%
> * If U = 60% → Borrow APR ≈ 3.0%
> * If U = 90% → Borrow APR increases faster, protecting pool liquidity.

Borrow rates are recalculated continuously and may change at any time based on pool activity and DAO governance parameters.

***

### **Supplier Interest Rate**

Supplier (Lender) APR is derived from Borrow APR and Utilization:

$$
Supply\ APR = Borrow\ APR \times U \times (1 - Reserve\ Factor)
$$

* **Reserve Factor:** Portion of borrower interest allocated to the protocol treasury.
* **Effect:** As utilization rises, supplier APR increases, incentivizing more liquidity deposits.

***

### **Key Takeaways**

* **Dynamic Market:** Interest rates adapt in real time to market demand.
* **Capital Efficiency:** Keeps pools near optimal utilization, balancing supply & demand.
* **Incentive Alignment:** Higher rates at high U attract more suppliers, lower rates at low U attract more borrowers.
* **DAO Governance:** Parameters (Optimal U, Slopes, Reserve Factor) can be adjusted by governance to respond to market conditions.


---

# 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://docs.layerbank.finance/protocol/lending/interests.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.
