# How to Add/Remove Liquidity

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

Liquidity is at the core of GroFi Dex's functionality. You can contribute liquidity for any token pair by staking both tokens through the Liquidity page.

In return for adding liquidity, you'll earn trading fees for that pair and receive either an NFT or LP Tokens, which you can then stake in [Farms](https://testnet.grofidex.io/farms) to earn U2U rewards!

## **Add Liquidity**

To provide liquidity, you'll need to commit an amount of any token pair you prefer. The lower value (in USD) of the two tokens will determine the limit of liquidity you can provide.

If you require any tokens, you can easily trade for them. Feel free to refer to our [How to Trade on GroFi Dex](/features/exchange/how-to-trade.md) guide if needed.

In this example, we will demonstrate adding liquidity using U2U and USDT.

**Step 1:**  Visit the [Liquidity ](https://testnet.grofidex.io/pair)page.

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

**Step 2:** Click the “Add Liquidity” button.

**Step 3**: Select 2 tokens to determine the trading pair for adding liquidity. For instance, in this demonstration, we'll choose U2U and USDT.

<div align="center"><figure><img src="/files/ot4auQQBU4UExy7t17E3" alt=""><figcaption></figcaption></figure></div>

**Step 4:** The interface will automatically select the most popular trading fee tier and set the price range for you.&#x20;

**Step 5**: You can confirm the version and fee tier of the liquidity pool you are providing by checking the "LP - x% fee tier" displays.

<div align="center"><figure><img src="/files/wynJG1pbuW3ilEJLtsBa" alt=""><figcaption></figcaption></figure></div>

* If you wish to customize the fee tier, simply click on "More" and select your desired option.
* Please note that it's typically recommended to provide liquidity to the most popular fee tier.

**Step 6**: You can review and confirm the displayed price range on the right-hand side.

<div align="center"><figure><img src="/files/sFPrqqUln6gWFOaPwBPa" alt=""><figcaption></figcaption></figure></div>

* The chart displays liquidity levels across various price ranges. You can use the magnifier buttons to zoom in and out, and navigate the chart by dragging the bottom x-axis.
* If you wish to customize the price range, you can simply drag the handles, use the + and - buttons on the two prices, or manually enter the desired price numbers.
* Although not recommended, you can provide liquidity across the entire price range by clicking the “Full Range” button.

**Step 7:** Enter an amount for one of the tokens in the “Deposit Amount” field. The corresponding amount for the other token will be calculated and filled automatically. If one of the tokens doesn't have a sufficient balance, an error will be displayed, and the button will be **greyed out**.&#x20;

Please enter a lower amount to proceed or use the “MAX” button to fill in the maximum available value.

<div align="center"><figure><img src="/files/m8eqmcMHuc6683hKT3Ub" alt=""><figcaption></figcaption></figure></div>

**Step 8:** Click the “Enable USDT” button. If you are adding liquidity against tokens other than U2U, you might need to click enable twice for each token in your pair. Your wallet will prompt you to confirm the action.

<div align="center"><figure><img src="/files/W6Z9wKe1AzXimyHxvbbz" alt=""><figcaption></figcaption></figure></div>

**Step 9:** Afterward, the “Add” button will become active. Click it to proceed.

<div align="center"><figure><img src="/files/H3GArJVmmY6NmcPBFNkP" alt=""><figcaption></figcaption></figure></div>

**Step 10:** A new pop-up window will appear, allowing you to preview your liquidity position. If everything appears correct, click “Add” again to proceed.

<div align="center"><figure><img src="/files/1pgLbOqkCRCg5gohZv3A" alt=""><figcaption></figcaption></figure></div>

**Step 11:** Your wallet will prompt you to confirm the transaction. Proceed by confirming the transaction from your wallet.

**Step 12:** After that, you'll find your new liquidity position on the “My Liquidity” page. You can view its details by clicking on the position.

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

## **Remove liquidity**

**Step 1:**  Visit the [Liquidity](https://testnet.grofidex.io/pair) page.

<figure><img src="/files/7HZHzVXiaaDfA7X6cMMk" alt=""><figcaption></figcaption></figure>

**Step 2**: Select the liquidity position you wish to remove from “Your Liquidity". You can utilize the filter to conveniently locate all liquidity positions.

<div align="center"><figure><img src="/files/FUDCWjFyrwmbRKnGY4UV" alt=""><figcaption></figcaption></figure></div>

**Step 3:** Click “Remove”. A new window will appear.

<div align="center"><figure><img src="/files/Itqv4OVF3nVzji3CE1x9" alt=""><figcaption></figcaption></figure></div>

**Step 4:** Use the buttons or slider to select the amount of liquidity you wish to remove. Choose “MAX” to remove all liquidity from this pair.

**Step 5:** Click “Remove” to proceed.

**Step 6:** A window will appear displaying the number of tokens you will receive. Click “Remove” once more. Your wallet will then prompt you to confirm the action.

**Step 7:** After the transaction is confirmed, you will receive two tokens from your pair. If you haven't removed all of your liquidity, your remaining liquidity value will be updated on the liquidity page.

{% hint style="info" %}
Multiple Fee Tiers: Giving liquidity providers the option to choose the fee tier that best suits their risk tolerance and liquidity preferences.
{% endhint %}


---

# 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.grofidex.io/features/exchange/how-to-add-remove-liquidity.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.
