# Add & Remove Liquidity

### Liquidity Provision

To supply liquidity, you need to have both tokens in the appropriate amounts of the current ratio. ([How to Swap Tokens](https://docs.mangata.finance/welcome/guides/trading/how-to-swap-tokens))

{% embed url="<https://youtu.be/R3LBk45Sisk>" %}

If you provide liquidity for the first time, start by selecting the **`Liquidity Pools`** option from the trading interface.

<figure><img src="https://3624648318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLbqvmGewRWFC8kc3j3Y5%2Fuploads%2FGrS1W9mDT4HkKU5T2dp5%2FLiquidity%20pools.jpg?alt=media&#x26;token=5b9f758b-46f4-4955-adf5-817745b45e98" alt=""><figcaption></figcaption></figure>

You need to select a pool you wish to provide liquidity

<figure><img src="https://3624648318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLbqvmGewRWFC8kc3j3Y5%2Fuploads%2FmpEwrTIDp0tdUbRGgup9%2FLiquidity%20Mining%20Rewards.jpg?alt=media&#x26;token=b492ed73-532f-41e7-8b29-8631f8f69321" alt=""><figcaption></figcaption></figure>

The example shows a liquidity provision for the KSM-MGX pool. When you put an amount to any one of the pairs, the protocol will automatically fill the value for the other token respective to the pool's current balance.

It is currently not possible to provide one-sided liquidity. This means you need both KSM and corresponding MGX to provide liquidity into the pool.

{% hint style="info" %}
Be mindful of the transaction fees. It’s a good idea to reserve some MGX to pay fees later on.
{% endhint %}

<figure><img src="https://3624648318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLbqvmGewRWFC8kc3j3Y5%2Fuploads%2FM9UBJv4bmUw2rFoiMixj%2FMGX-KSM%20pool.jpg?alt=media&#x26;token=4abf1d59-592b-4514-b818-462c1e51a364" alt="" width="453"><figcaption></figcaption></figure>

Click supply, sign & submit the message from your wallet. Your liquidity position will be automatically activated.

<figure><img src="https://3624648318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLbqvmGewRWFC8kc3j3Y5%2Fuploads%2FKwCqADX5vjooYy6RGoG8%2FAdd%20Liquiditiy.jpg?alt=media&#x26;token=bc00afa4-ce96-4b16-bec8-7c3946aaa7d2" alt="" width="368"><figcaption></figcaption></figure>

### Add Liquidity

You can increase your LP position and activate your LP tokens to receive rewards from liquidity mining.

If you are already a liquidity provider and want to increase & decrease your position, start by selecting ‘My Positions’ on the left panel.

<figure><img src="https://3624648318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLbqvmGewRWFC8kc3j3Y5%2Fuploads%2FznKdOeaO8zqc8BkJbh1i%2FMy%20positions.jpg?alt=media&#x26;token=392bf204-65da-42b4-9fef-98b87398c78a" alt=""><figcaption></figcaption></figure>

Press **add button** in the ‘Provided Liquidity’ section. You will be prompted with KSM-MGX pool to supply liquidity on the screen.

<figure><img src="https://3624648318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLbqvmGewRWFC8kc3j3Y5%2Fuploads%2FfGZVCCG8uwX6tKttfVpO%2FAdd%20additional%20liquidity.jpg?alt=media&#x26;token=91a66103-5fc1-4172-b5b3-cbf296948ea7" alt="" width="383"><figcaption></figcaption></figure>

Put in the number of tokens you want to supply liquidity. Do not use the entirety of your MGX balance to reserve for paying further fees.

<figure><img src="https://3624648318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLbqvmGewRWFC8kc3j3Y5%2Fuploads%2FJnFWHENCm8nRuLVWrcQe%2FAdd%20additional%20liquidity%202.jpg?alt=media&#x26;token=36bbd7c1-8941-4776-ac6c-39b1865e608d" alt="" width="317"><figcaption></figcaption></figure>

{% hint style="warning" %}
Remember, it is currently not possible to provide one-sided liquidity. This means you need **both** KSM and corresponding MGX to provide liquidity into the pool.
{% endhint %}

After you sign and submit the transaction, you will receive MGX-KSM LP tokens corresponding to your position in the pool.&#x20;

{% hint style="success" %}
Your MGX-KSM LP tokens are automatically activated for Liquidity Mining after you perform a supply tx. Still its a good idea to check if all of your LP tokens are activated for liquidity mining or not.
{% endhint %}

### Remove Liquidity

You can remove your liquidity and receive your KSM and MGX back.

From the ‘Provided Liquidity’ section, select **`remove`** to burn your MGX-KSM LP tokens and receive the underlying MGX and KSM coins.

{% hint style="success" %}
It’s a good idea to deactivate your LP tokens from liquidity mining before removing liquidity.
{% endhint %}

<figure><img src="https://3624648318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLbqvmGewRWFC8kc3j3Y5%2Fuploads%2FxXsKpwTSuIVMAfRTHSjj%2FRemove%20liquidity.jpg?alt=media&#x26;token=42aab3c2-0433-4ad1-a2a4-096c06d4a1c3" alt="" width="380"><figcaption></figcaption></figure>

Select the amount of your liquidity to remove. It is not currently possible to determine the amount manually.

<figure><img src="https://3624648318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLbqvmGewRWFC8kc3j3Y5%2Fuploads%2FTpwXSDjBgspc4bUYbMAM%2FRemove%20liquidity%202.jpg?alt=media&#x26;token=546314d5-b52a-44f6-8940-e3fa5fb560af" alt="" width="370"><figcaption></figcaption></figure>

Sign & submit the transaction, your MGX-KSM LP tokens will be burned and you will receive the corresponding MGX and KSM tokens in your account.

<figure><img src="https://3624648318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLbqvmGewRWFC8kc3j3Y5%2Fuploads%2F21ixwJjDkVViRmo3X5Jn%2FRemove%20liquidity%203.jpg?alt=media&#x26;token=8944f072-aa58-4b7c-ace9-604bca9d8dc2" alt="" width="272"><figcaption></figcaption></figure>
