# Leveraged Liquidity Providing

{% hint style="info" %}
Liquidity Providers who are familiar with the risks and complexity of LP positions may be interested in extracting larger returns through leverage. By accessing borrowable funds, they are able to boost their return with the same amount of initial capital.
{% endhint %}

Let's consider that a Liquidity Provider owns 100 LP Token A/B, representing his initial deposit of 50 Tokens A and 50 Tokens B in a DEX Liquidity Pool. By locking his LP Tokens in the **Collateral Pool**, he is now able to borrow 40 Tokens A and 40 Tokens B. His **Collateral Factor** is:

$$
CF = \frac{100}{80} = 125%
$$

If he deposits the borrowed tokens in the DEX Liquidity Pool, he will receive additional LP Token A/B. He can then increase his collateral position and borrow additional Tokens A and Tokens B while maintaining is CF at 125%. By iterating this operation, he will be able to multiply his initial position by a leverage of 5. In general, Leverage can be computed as follows :

$$
Leverage =  \frac{CF}{CF-1}
$$

<table data-header-hidden><thead><tr><th width="155"></th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th></th></tr></thead><tbody><tr><td><em>CF</em></td><td>110%</td><td>115%</td><td>120%</td><td>125%</td><td>130%</td><td>135%</td><td>140%</td><td>145%</td><td>150%</td></tr><tr><td><em>Leverage</em></td><td>11.0x</td><td>7.7x</td><td>6.0x</td><td>5.0x</td><td>4.3x</td><td>3.9x</td><td>3.5x</td><td>3.2x</td><td>3.0x</td></tr></tbody></table>

​However, these iterations require a lot of manual transactions and are not efficient in terms of gas fees. **Securd** circumvents this by implementing an Automatic Leverage function.

By selecting a leverage of 5, our Liquidity Provider will, in a single transaction, increase his LP token position to 500 while contracting 2 loans of 200 Tokens A and 200 Tokens B. If the Liquidity Providing APY is 20% and the borrow rate is 5%, the Leveraged Liquidity Providing position is:

|          | Initial Position | Leveraged Position |
| -------- | ---------------- | ------------------ |
| LP Token | 100              | 500                |
| Token A  | 0                | -200               |
| Token B  | 0                | -200               |
| CF       | ∞                | 125%               |
| Leverage | 1.0x             | 5.0x               |
| APY      | 20%              | 80%                |


---

# 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.securd.org/documentation/how-does-it-work/leveraged-liquidity-providing.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.
