# Borrowing Interest Rate Model

Vanna Protocol leverages the highly efficient dYdX Interest Rate Model, which is designed to optimize liquidity utilization and incentivize both borrowers and lenders.

## Key Components

### 1. Dynamic Borrowing Rates:

* Vanna implements an interest rate model where borrowers pay interest to Vanna's liquidity providers (LPs). Borrowing interest rates are not fixed but dynamically adjusted based on the utilization rate of the lending pool. When more liquidity is borrowed from the pool, the borrowing rate increases to discourage excessive borrowing and ensure enough liquidity remains available for other traders. Conversely, when less liquidity is utilized, the borrowing rate decreases, encouraging traders to borrow more
* The interest rate calculation is determined based on several factors, including the supply and demand dynamics within the platform, the utilization rate of assets in the liquidity pool, and prevailing market conditions

<figure><img src="https://4050346351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6HzZKqVmvODiqod7IG9p%2Fuploads%2FUQUstH1XTNCnihisrGZe%2Fimage.png?alt=media&#x26;token=36667dd8-4b12-4a32-a0bd-eb16eb2d52d0" alt=""><figcaption></figcaption></figure>

**In this formula:**

* c1, c2 and c3 are constants that are predefined within the Vanna platform to shape the interest rate curve.
* **Util** is the utilization ratio calculated as described below.

### 2. Utilization-Based Model:

* The interest rate is directly tied to the utilization rate of the lending pool. Utilization rate refers to the percentage of assets in the pool that have been borrowed by traders. As this utilization increases, the interest rate rises, ensuring that the pool’s liquidity is efficiently used while preventing liquidity shortages.

<figure><img src="https://4050346351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6HzZKqVmvODiqod7IG9p%2Fuploads%2Fo40v7zUvdKmjQNprMgwF%2Fimage.png?alt=media&#x26;token=367b67aa-2174-422e-9d50-bd94a962a163" alt=""><figcaption></figcaption></figure>

Where:

* **Total Borrowed** is the total amount of funds **BORROWED** by all users from the liquidity pool.
* **Total Liquidity** is the total amount of **UNBORROWED** funds available in the liquidity pool.

### 3. Efficiency and Market-Driven Adjustments:

* This model ensures that interest rates are market-driven and automatically adjust in response to changing liquidity needs. When liquidity in the pool is high and utilization is low, borrowing becomes cheaper, which attracts more borrowers. As the utilization rate increases, the interest rate also climbs, leading to more revenue for liquidity providers and better incentives for lenders to supply assets.

### 4. Interest Accrual:

* Borrowed amounts accrue interest continuously over time. Traders who have borrowed margin balances must pay this interest when repaying their loans. This interest contributes to the earnings of liquidity providers (LPs), creating a symbiotic relationship between borrowers and lenders.

### 5. Competitive Rates for LPs and Borrowers:

* By using the dYdX model, Vanna ensures both borrowers and liquidity providers (LPs) benefit from competitive rates. Borrowers are incentivized to manage their positions responsibly to avoid steep interest increases as the pool’s liquidity diminishes. LPs, on the other hand, earn better returns as the interest rates rise with increased utilization.

### Example:

* Low Utilization Scenario (20% Utilization): Borrowing rates will be low (e.g., 3-5%) to encourage more borrowing activity, ensuring liquidity providers’ assets are put to use.
* High Utilization Scenario (80%+ Utilization): Borrowing rates will spike (e.g., 15-25%) to ensure that there’s enough liquidity left for other borrowers and to reward LPs for the higher risk of having more of their assets in use.

## Benefits

* **Balanced Ecosystem:** Vanna’s interest rate model automatically balances the lending pool by adjusting rates based on utilization. This ensures that the protocol maintains a healthy flow of liquidity for both lenders and borrowers.
* **Optimal Liquidity Utilization**: The dynamic rate model incentivizes better liquidity management, preventing situations where the pool runs dry or is underutilized.
* **Higher Yield for LPs**: As utilization rises, so do the interest rates, rewarding liquidity providers with higher yields during periods of high borrowing demand.


---

# 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.vanna.finance/docs/protocol-overview/liquidity-pools/borrowing-interest-rate-model.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.
