-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- | ||
title: Add liquidity to a pool | ||
description: Add your tokens to a liquidity pool to earn fees from transactions. | ||
--- | ||
|
||
## Overview | ||
|
||
You can add more liquidity to an existing pool on Katana to earn fees from transactions. When you contribute liquidity to a pool, you receive liquidity pool (LP) tokens in return. These tokens represent your share in the pool and entitle you to a portion of the trading fees generated by the pool's transactions, directly proportional to your contribution. | ||
Check warning on line 8 in docs/apps/katana/guides/add-liquidity.mdx GitHub Actions / runner / vale
|
||
You can also remove your liquidity from a pool at any time. Removing pool tokens converts your position back into underlying tokens at the current rate, proportional to your share of the pool. Accrued fees are included in the amounts you receive. | ||
Check warning on line 9 in docs/apps/katana/guides/add-liquidity.mdx GitHub Actions / runner / vale
|
||
|
||
## Add liquidity to a pool | ||
|
||
1. Open [Katana](https://app.roninchain.com/swap) and connect your Ronin Wallet. | ||
2. Select the **Liquidity pool** page, then open the pool you want to contribute to. | ||
![Liquidity pool](../assets/katana-pool.png) | ||
3. Enter the amount of tokens you want to contribute, then click **Add**. Katana automatically calculates the equivalent amount of the other token based on the current exchange rate. You may need to approve both tokens in your Ronin Wallet if you interact with them for the first time. | ||
|
||
![Enter amount](../assets/katana-pool-enter-amount.png) | ||
|
||
4. Review the details of your liquidity contribution: | ||
* The amount of LP tokens you will get in return. | ||
Check warning on line 21 in docs/apps/katana/guides/add-liquidity.mdx GitHub Actions / runner / vale
|
||
* The amount of tokens you are contributing. | ||
* The share of the pool you will receive. | ||
Check warning on line 23 in docs/apps/katana/guides/add-liquidity.mdx GitHub Actions / runner / vale
|
||
|
||
Click **Confirm add liquidity**, then confirm the transaction in your Ronin Wallet. | ||
|
||
![Review details](../assets/katana-pool-confirm-add.png) | ||
|
||
Your transaction is now submitted to the blockchain. When it completes, Katana displays a confirmation pop-up. Close it or click **View on explorer** to see the detailed information about the transaction. | ||
|
||
![Successful liquidity addition](../assets/katana-pool-add-success.png) | ||
|
||
The **My position** panel is now updated with your latest contribution: | ||
|
||
* The amount of ERC20 tokens you contributed. | ||
* The amount of LP tokens received in return. | ||
|
||
![My position](../assets/katana-pool-add-position.png) | ||
|
||
## View your positions | ||
|
||
To see all the pools you contributed to and the fees earned, open the **Liquidity pool** page, then select **My positions**. | ||
|
||
![My positions](../assets/katana-pool-my-positions.png) | ||
|
||
Here you can see the following information: | ||
|
||
* The pools to which you contributed. | ||
* The annual percentage rate (APR) for each pool. | ||
Check warning on line 49 in docs/apps/katana/guides/add-liquidity.mdx GitHub Actions / runner / vale
Check warning on line 49 in docs/apps/katana/guides/add-liquidity.mdx GitHub Actions / runner / vale
|
||
* Your position in each pool. | ||
* The fees you earned from each pool. | ||
* Your claimable rewards from farming, if the pool supports it. | ||
|
||
To view more details, such as the amount of LP tokens and the pool's performance over time, select each pool. | ||
|
||
## Remove liquidity from a pool | ||
|
||
1. Open the **Liquidity pool** page, then select the pool from which you want to withdraw liquidity. | ||
|
||
![Liquidity pool](../assets/katana-pool.png) | ||
|
||
2. Select the **Remove liquidity** panel. | ||
|
||
![Remove liquidity panel](../assets/katana-pool-remove-liquidity-panel.png) | ||
|
||
3. Select the portion of your liquidity you want to remove, or enter the amount manually. Then, click **Remove**. | ||
|
||
![Enter amount to remove](../assets/katana-pool-remove-amount.png) | ||
|
||
4. Review how much you're getting when removing liquidity, then click **Confirm remove liquidity** and confirm the transaction in your Ronin Wallet. | ||
|
||
![Review details](../assets/katana-pool-confirm-remove.png) | ||
|
||
Your transaction is now submitted to the blockchain. When it completes, Katana displays a confirmation pop-up. Close it or click **View on explorer** to see the detailed information about the transaction. | ||
|
||
![Successful liquidity removal](../assets/katana-pool-remove-success.png) | ||
|
||
The **My position** panel is now updated with your latest position after removing liquidity: | ||
|
||
![My position](../assets/katana-pool-remove-position.png) | ||
|
||
You have now removed your liquidity by removing your LP tokens, and have gotten your tokens with the accrued fees, proportionate to your shares. Thank you for your service. |