# How to Add Liquidity

1. Find the right pool. In Magma, for the same pair, there're different bin steps and fee rates you can choose from. So the pool selection is very important.

<figure><img src="/files/3vzVsQqSOsO5pTaVkl19" alt=""><figcaption></figcaption></figure>

2. You can either choose from the Liquidity page's pool list, or you can click the Deposit Liquidity on the right. When choosing from the pool list, please make sure the bin step, fee rate, and liquidity are all right.

<figure><img src="/files/tqu4tWsmd0CHIh54Edy1" alt=""><figcaption></figcaption></figure>

3. If you can find the pool you need on the list, and click Deposit Liquidity, you'll be able to choose the two tokens you're going to add. Then on the right, you can choose a different fee rate, which represents different pools.

<figure><img src="/files/oZqmvPaaXve15A4QxPSr" alt=""><figcaption></figcaption></figure>

4. On the right, there are all the available pools with the fee rate you can choose. On the left is the pool list fits the fee rate. For ALMM, a different bin step means a different pool. For detailed definition, please check <https://magma-finance-1.gitbook.io/magma-finance/~/revisions/S22puzcwNQJoLiEXgKif/almm/definitions>.
5. You can add liquidity on pools directly, or you can create the pool you want. If you want to create a pool, you'll have to set an initial price for the pool.

<figure><img src="/files/hFolFevhDnVteRJh9qlo" alt=""><figcaption></figcaption></figure>

6. After that, you'll be able to add liquidity to that pool.

<figure><img src="/files/H2QWLBVf6PuC6QpPAsFY" alt=""><figcaption></figcaption></figure>

7. On the left, you can choose the shape of your liquidity. This gives you a simple way to deploy a liquidity strategy. On the left bottom, the red bar represents the range of your liquidity you are going to add. you can either drag the dots or enter exact price or price percentage to change the price range. On the right, you can enter the amount of tokens you want to add.

<figure><img src="/files/eJYDb9QDcZ8ebvKaPknA" alt=""><figcaption></figcaption></figure>

8. Once you enter all the parameters, the amount of another token you'll add would be calculated automatically. And you'll be able to submit the transaction.

<figure><img src="/files/rQ4YJPTh7LstlRJisdBx" alt=""><figcaption></figcaption></figure>

9. After the transactions are confirmed by Sui, you'll be able to see your position on the My Position page.

<figure><img src="/files/x2v5Q9ogIEE1WkOBCKI1" alt=""><figcaption></figcaption></figure>

10. The create pool and add liquidity action would cost more gas than other operations. Especially when you're adding liquidity to a wide price range involving multiple bins.


---

# 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://magma-finance-1.gitbook.io/magma-finance/guides/add-liquidity-in-almm.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.
