# Funding

### Deposits and Withdrawals

Users can deposit tokens into the funding pool. In return they receive LP tokens which indicate how much of the pool they are entitled to withdraw. As interest and liquidation rewards accumulate the amount that they are entitled to increases.

Consider Alice; She deposits 100 ETH into a funding pool that is the size of 100 ETH already. In return she receives 50% of the LP token supply. If she withdraws she is entitled to `0.5 * (100 ETH + 100 ETH)`.

### Utilization Rate

The **total reserves** is the sum of the un-utilized capital in the funding pool. Capital becomes **utilized** when users borrow from the pool. The utilization rate is calculated like so:

```
 total borrowed / (total reserves + total borrowed) = utilisation rate
```

The max amount Alice can withdraw is based on the size of the total reserves. She can only withdraw, at most, the amount in the total reserves - Though she will still be entitled to more funds if this is insufficient.

### Interest Rate

The interest rate is the amount of interest that the borrowed capital accumulates each year. It is based on the utilisation rate - A higher utilisation rate results in a higher interest rate and vice versa. The interest rate calculation is as follows:

```
(utilisation rate * interest multiplier) ^ 2 = interest rate
```

The interest multiplier is a parameter that can be voted on and determines the maximum possible interest rate. If a user withdraws 100% of the total reserves, then other lenders are incentivised to deposit capital into the pool and increase the total reserves **or** users with open positions are incentivised to close their positions and free up capital - This is because a higher util rate results in a higher interest rate.


---

# 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://interfinex.gitbook.io/interfinex/how-it-works/margin-trading/funding.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.
