# How to Add/Remove Liquidity

***Liquidity*** is essential how Decentralized Exchanges like [9inch](https://app.9inch.io/) or PulseX work. You can add liquidity by binding two tokens and "staking" them in the [Liquidity](https://app.9inch.io/liquidity) page.

In return for providing liquidity, you will earn trading fees on that pair and receive Nine Inch LP tokens (NINE LP), that you can stake in the [Farms](https://app.9inch.io/farms) to earn $[BBC](https://9inch.gitbook.io/9inch-gitbook/tokenomics/bbc-token) token as reward.

In this section you will learn how to [add](#add-liquidity) and [remove](#remove-liquidity) liquidity on 9inch.

### Add liquidity

Go to the [**Liquidity**](https://app.9inch.io/liquidity) page.

<details>

<summary>Note</summary>

Your liquidity pairs will show up here under **Your Liquidity.**

Unique user friendly feature of 9inch, if you stake your LP to a [Farm](https://9inch.gitbook.io/9inch-gitbook/tips-tricks-and-guides/beginners-guide-to-defi/how-to-use-farms), you will still be able to see and access the LP from Liquidity page. It will have a "staked" notion on the LP when it is deployed into a Farm.

</details>

<div align="left"><figure><img src="https://747412000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi561wEeRIxQAdQvqesSN%2Fuploads%2FA6oEJTvirN2zUM40r6kN%2Fimage.png?alt=media&#x26;token=43058c7c-b54d-46ac-8a86-510ef58618c5" alt="" width="522"><figcaption></figcaption></figure></div>

Click **\[Add Liquidity]**

<div align="left"><figure><img src="https://747412000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi561wEeRIxQAdQvqesSN%2Fuploads%2FiFmQY5Kj7wzGinZp0hbi%2Fimage.png?alt=media&#x26;token=a512ff45-5e7b-44d3-8de2-7fe6161c1991" alt="" width="341"><figcaption></figcaption></figure></div>

Next, from the drop down menus, select the desired token pair you want to provide liquidity for.

Here in this example ETH and [BBC](https://9inch.gitbook.io/9inch-gitbook/tokenomics/bbc-token).

Input the desired amounts to provide.

Here it was chosen to provide 1000 $BBC and $ETH ratio was automatically calculated.

<details>

<summary>If you are new to LP read this!</summary>

You can input an amount on either one of the text fields. If there is already liquidity for that pair, the other field will be automatically estimated.

If you are the first liquidity provider, you get to choose the ratio, or value between the tokens and you need to input a value in both fields.

Please take into consideration token prices when you provide new pairs. If your price ratio is not in line with other LP pairs, your LP might get bought by MEV bots until the token ratios match the price in other LP pairs. This could lead to impermanent loss.

</details>

<div align="left"><figure><img src="https://747412000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi561wEeRIxQAdQvqesSN%2Fuploads%2FM5yQFskcVxOGm7DESAWR%2Fimage.png?alt=media&#x26;token=b8509386-d31a-4e73-b257-27fc047efd44" alt="" width="470"><figcaption></figcaption></figure></div>

If needed, first **\[Enable]** both tokens

<details>

<summary>Depending on your wallet app, it might ask to set a token spending limit how much you can use, before it needs to ask for a new spending limit.</summary>

<img src="https://747412000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi561wEeRIxQAdQvqesSN%2Fuploads%2FvzOEoEXLOhWPaKOUmwAi%2Fimage.png?alt=media&#x26;token=1b0e4ad3-2a3c-475c-8221-abce2823e248" alt="" data-size="original">

</details>

Once you have enabled both tokens, click **\[Supply]**

<div align="left"><figure><img src="https://747412000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi561wEeRIxQAdQvqesSN%2Fuploads%2F9eu6zEGJVOFbCXe5p3au%2Fimage.png?alt=media&#x26;token=77d90219-42c0-4fcf-8ae1-5182c2b766bf" alt="" width="462"><figcaption></figcaption></figure></div>

You will get a more detailed view of the token ratios and of your share of the total LP pair.

Review and **\[Confirm Supply]**

<div align="left"><figure><img src="https://747412000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi561wEeRIxQAdQvqesSN%2Fuploads%2FbbPs55UDSNVJpWrsADtl%2Fimage.png?alt=media&#x26;token=0fae0da1-8ece-41fa-b153-d943f26ce1af" alt="" width="454"><figcaption></figcaption></figure></div>

Your wallet will ask for confirmation. Review and confirm the transaction in your wallet.

Wait for the blockchain to accept the transaction.

Your liquidity will now show up in the [Liquidity](https://app.9inch.io/liquidity) page.

<div align="left"><figure><img src="https://747412000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi561wEeRIxQAdQvqesSN%2Fuploads%2FN7tEPl3NVuNy2UDetJU6%2Fimage.png?alt=media&#x26;token=39ec4363-0c46-438b-a83f-1dc460616a64" alt="" width="336"><figcaption><p>From the dropdown menu you can expand for more detailed view.</p></figcaption></figure></div>

### Remove liquidity

Go to the [**Liquidity**](https://app.9inch.io/liquidity) page.

<div align="left"><figure><img src="https://747412000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi561wEeRIxQAdQvqesSN%2Fuploads%2FA6oEJTvirN2zUM40r6kN%2Fimage.png?alt=media&#x26;token=43058c7c-b54d-46ac-8a86-510ef58618c5" alt="" width="522"><figcaption></figcaption></figure></div>

<details>

<summary>Note</summary>

Your liquidity pairs will show up here under **Your Liquidity**, but if you then stake LP to [Farms](https://app.9inch.io/farms), they will not show up here anymore, as they are deposited in the corresponding Farms contract to earn [$BBC](https://9inch.gitbook.io/9inch-gitbook/tokenomics/bbc-token) rewards

</details>

<div align="left"><figure><img src="https://747412000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi561wEeRIxQAdQvqesSN%2Fuploads%2FN7tEPl3NVuNy2UDetJU6%2Fimage.png?alt=media&#x26;token=39ec4363-0c46-438b-a83f-1dc460616a64" alt="" width="336"><figcaption></figcaption></figure></div>

Click on the drop down menu to expand for a more detailed view of your LP pair.

Once you have expanded the tab, you can choose to either **\[Remove]** or **Add liquidity instead.**

Click **\[Remove]**

<div align="left"><figure><img src="https://747412000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi561wEeRIxQAdQvqesSN%2Fuploads%2FR6jwXdy38gq2tRePZ3eC%2Fimage.png?alt=media&#x26;token=1512908f-23c8-484a-994f-ebf4afec4b7d" alt="" width="401"><figcaption></figcaption></figure></div>

Choose how much LP you want to remove. Here 75% was chosen.

<div align="left"><figure><img src="https://747412000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi561wEeRIxQAdQvqesSN%2Fuploads%2FMx9mofdoBWSyOvFt7Sck%2Fimage.png?alt=media&#x26;token=f366ea39-68a5-46e6-ace1-0e6b0e70e9ff" alt="" width="383"><figcaption></figcaption></figure></div>

Once you are happy with how much to remove, first click **\[Enable].** Your wallet will ask to review and sign the message in your wallet.

Then you can proceed to **\[Remove]**. Review and confirm the transaction in your wallet.

<div align="left"><figure><img src="https://747412000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi561wEeRIxQAdQvqesSN%2Fuploads%2F4TyZF9P7ibWnFgl6iRxp%2Fimage.png?alt=media&#x26;token=e4066fc8-0f17-40d0-a3c2-4c7ba7955133" alt="" width="377"><figcaption></figcaption></figure></div>

Once the transaction is accepted by the blockchain, the LP is burned and corresponding amount of token pairs are returned to your wallet address.
