# Pools

### 7.1 Add a liquidity pool <a href="#heading-h.dfe1najyp9zi" id="heading-h.dfe1najyp9zi"></a>

**Step 1**: When users click on the button “Pools” on the left side of the header, they will be navigated to the “Pools” screen.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FAO4j3ZEBpgmdqpBnWbR8%2Fimage.png?alt=media&#x26;token=dce5442c-5147-4d14-9e0c-b8ffc7974f4f" alt=""><figcaption></figcaption></figure>

\- Users click on the button “Learn about providing liquidity” and they will be navigated to the documents of XSwap.&#x20;

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FQoYEeeRx4evkz90SJoDl%2Fimage.png?alt=media&#x26;token=91f5418f-8c50-422e-91bf-20099e49065f" alt=""><figcaption></figcaption></figure>

\-  Users click on the button “Top Pools” and they will be navigated to the following page.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FjEZsm9n5SW7uOBSd3bQC%2Fimage.png?alt=media&#x26;token=9ec6eda6-999a-4930-a939-40f7bc871600" alt=""><figcaption></figcaption></figure>

**Step 2**: Users can add any liquidity pools by clicking on the button “New Position”.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FknLjlybDaIf0cdoNJbEw%2Fimage.png?alt=media&#x26;token=1e4abf71-179f-4805-aefd-1815b8b3cc80" alt=""><figcaption></figcaption></figure>

**Step 3**: Users select the pair of tokens by searching or choosing from a dropdown list.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FhFcY0xyK5SDXqeHMjffF%2Fimage.png?alt=media&#x26;token=aedeb050-20e0-4280-aa3e-78ab54700a44" alt=""><figcaption></figcaption></figure>

**Step 4**: After selecting the pair, users can adjust the settings by clicking on the setting icon on the right corner of the Add Liquidity box. Settings include the following sectors:

\-      Transaction Settings:

\+     Slippage Tolerance:

Auto Slippage button: fixed 0.5%.

Customized Slippage: Users can adjust this value to define their swap order’s tolerance.

\+     Transaction Deadline: After a certain amount of time, the order will be canceled. The Default Amount is 30 minutes and users can adjust this amount.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FXRDcFTFslNkyDCqRwurT%2Fimage.png?alt=media&#x26;token=fcb508db-edbd-4a12-8996-36b62e184128" alt=""><figcaption></figcaption></figure>

**Step 5**: Users can switch between two tokens in the pair to view the exchange rate of two tokens.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2Fo1ecpAPcptHnK0T3NR8i%2Fimage.png?alt=media&#x26;token=5569b356-e194-4900-b0df-fb4ef95d771f" alt=""><figcaption></figcaption></figure>

**Step 6**: Users select the fee tier:

Note: One of the differences between V2 and V3 is that each pair of assets will be divided into 4 pools with different Liquidity and Price information.

\-       0.01% fee tier: Best for very stable pairs

\-       0.05% fee tier: Best for stable pairs

\-       0.3% fee tier: Best for most pairs

\-       1.0%: Best for exotic pairs

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FgVWYnBql1hhX5i4thLIF%2Fimage.png?alt=media&#x26;token=d675cce5-3b47-4912-9a96-b50c980e19a9" alt=""><figcaption></figcaption></figure>

**Step 7:** Users set a starting price for the pool if the pool has never been created before.&#x20;

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FuXycQSd8Kf78oyMi2Ur2%2Fimage.png?alt=media&#x26;token=c9c65c3d-5e34-48d7-9dad-e676c2baa077" alt=""><figcaption></figcaption></figure>

**Step 8:** Another difference between V2 and V3 is that LP can select a range to provide Liquidity to each Pool which will create concentrated Liquidity & users can decide to invest based on their strategy. Users set the bounds for the price range to provide liquidity.

***Note 1***: If User clicks “Full range”, the page will automatically display values 0 for min and ∞ for max.

***Note 2***: The Max and Min Price is calculated based on the Tick Range that is defined for each Fee Tier.

Fee Tier 0.01%: Tick Range is 1

Fee Tier 0.05%: Tick Range is 10

Fee Tier 0.3%: Tick Range is 60

Fee Tier 1%: Tick Range is 200

\- If users set the price range within the starting price, users can deposit amounts in both Traded Token and Received Token.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FelCLCjeFxBxyObmnp75f%2Fimage.png?alt=media&#x26;token=dac8a33d-6539-47b4-bb0b-f4589ca27be7" alt=""><figcaption></figcaption></figure>

\-  If users set the price outside the specific price range, users’ positions will not earn fees or be used in trade.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FPw1K68CEcZslzfgNv7It%2Fimage.png?alt=media&#x26;token=7f5ecfc2-16d8-4b91-a2f3-4bedba690835" alt=""><figcaption></figcaption></figure>

**Step 9**: Users input the amounts they want to deposit for one of the assets, the corresponding amount of the other asset will automatically be calculated.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FIfC5G9haEDqJiNuV4vgb%2Fimage.png?alt=media&#x26;token=02a8c35d-4515-4b4a-ab27-40f02c04f714" alt=""><figcaption></figcaption></figure>

**Step 10:** Users can click on the button “Clear all” to reset to the default setting.&#x20;

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FGTBD2SUx8XGxFHw3wCur%2Fimage.png?alt=media&#x26;token=a2e68f62-c97f-4510-878d-be682df90e29" alt=""><figcaption></figcaption></figure>

**Step 11**: Users click the button “Approve \[Token]”.

Note: Users only need to approve the usage of assets at the first time of adding liquidity to the pools.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FN5hehMKDGpaEOQB7oxtZ%2Fimage.png?alt=media&#x26;token=c76bcda0-3390-48fc-a150-dae08c1841bb" alt=""><figcaption></figcaption></figure>

**Step 12**: Users set a spending cap for the token on the wallet popup, or they can click on the button “max” to auto-generate the maximum amounts of tokens to trade. &#x20;

NOTE: This applies to Metamask wallet only.  Default for other wallets is unlimited but it can be changed anytime thru explorer if the token has a verified contract.&#x20;

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FhZnh8DGmqoEJEiVP3kn2%2Fimage.png?alt=media&#x26;token=6fd4e1c5-8cae-4d94-a681-ddeda5447245" alt=""><figcaption></figcaption></figure>

**Step 13**: Users click on the button “Approve”.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FuUD2a1JqdpT2tvhnZnTN%2Fimage.png?alt=media&#x26;token=95ef2a61-8fe1-4aad-94dc-28e456ae34f2" alt=""><figcaption></figcaption></figure>

**Step 14**: Users click on the button “Preview” to view detailed information of the addition of liquidity pools.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FOt6D955wS0FLGmOonSgG%2Fimage.png?alt=media&#x26;token=e0073d49-0530-4071-8b4b-68379e32a63f" alt=""><figcaption></figcaption></figure>

**Step 15**: Users click on the button “Add” on the popup of “Add Liquidity”.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FpCDVdZiHL7gl6GGCz4VK%2Fimage.png?alt=media&#x26;token=aa287de4-a5af-443c-b9c7-185632ce6f2d" alt=""><figcaption></figcaption></figure>

**Step 16:** Users click on the button “Confirm” in the popup to confirm the payment of the trading fee.Step 16: Users click on the button “Confirm” in the popup to confirm the payment of the trading fee.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FB9c3bBURpXtOlBh54AVo%2Fimage.png?alt=media&#x26;token=7a9bcd09-4115-46e2-b937-345e9d34f7dc" alt=""><figcaption></figcaption></figure>

**Step 17:** One toast message appears to inform users of the submitted transaction, and another message on the right side of the page appears to inform users about the successful addition of the liquidity pool.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2Fj5rqkqk0RLiXF8LRiz3M%2Fimage.png?alt=media&#x26;token=30ce911d-08fa-4510-9774-d6a9a2a3bde8" alt=""><figcaption></figcaption></figure>

**Step 18:** Users are navigated to the “Pools Overview” screen, enabling them to view the list of Liquidity Pools that have been created.

### 7.2 View my liquidity position <a href="#heading-h.a266whgh9srl" id="heading-h.a266whgh9srl"></a>

**Step 1:** After adding a liquidity pool, users can view the information related to their liquidity positions.

\- NFT representative of liquidity position.  More updates will be provided about the LP NFT position in the future.&#x20;

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FBRKCHHVTYE1OioFGTmlr%2Fimage.png?alt=media&#x26;token=eec709cc-520d-4967-9bd4-849669a445c7" alt=""><figcaption></figcaption></figure>

\- Liquidity: Total amounts of liquidity users have added to the pool and the corresponding proportion of those amounts.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FNYv1TsuwVnaFuKHutOrw%2Fimage.png?alt=media&#x26;token=a124909f-2a14-4198-b0e9-37e782daee2a" alt=""><figcaption></figcaption></figure>

\-  Unclaimed fees: When users click on the button “Collect Fees”, the trading fee will be collected 100%.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FxqgJg74LJCeJC07rRmDF%2Fimage.png?alt=media&#x26;token=0d2ba455-2337-49ec-b65e-daa05e63e152" alt=""><figcaption></figcaption></figure>

\- Price range: Users can view the status, Min Price, Max Price and Current Price of the liquidity pool.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FXmIJNrAWrwMqSjmcbqVb%2Fimage.png?alt=media&#x26;token=50cf6c46-208a-4a9c-b736-8c9ad96472b8" alt=""><figcaption></figcaption></figure>

#### Watch the tutorial video on [Adding Liquidity](https://youtu.be/ZbCh94x3avc?si=twSJxVBqjrSbTgGW). <a href="#heading-h.29nq0953e034" id="heading-h.29nq0953e034"></a>

### 7.3 Remove a liquidity pool <a href="#heading-h.29nq0953e034" id="heading-h.29nq0953e034"></a>

**Step 1:** Users access the “Pools” screen, then select one of the liquidity positions that they have added before and click on the button “Remove Liquidity”.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FRE0bXLw907hGgkVJDGhl%2Fimage.png?alt=media&#x26;token=5e076ec3-d1ca-439b-91ff-b42b635ba622" alt=""><figcaption></figcaption></figure>

**Step 2:** After selecting the pair, users can adjust the settings by clicking on the setting icon on the right corner of the Add Liquidity box. Settings include the following sectors:

\-       Transaction Settings:

\+       Slippage Tolerance:

&#x20;        Auto Slippage button: fixed 5.0%

&#x20;        Customized Slippage: Users can adjust this value to define their swap order’s tolerance

\+       Transaction Deadline: After a certain amount of time, the order will be canceled. The Default Amount is 30 minutes and users can adjust this amount.

\-        Interface Settings:

\+       Auto Router API: When users switch this on, the price will be fetched faster.

\+       Expert Mode: When users switch this on, they allow high price impact trades and can automatically skip the confirm screen.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FShU5rE8u6iYKbWDqJZcB%2Fimage.png?alt=media&#x26;token=2cb1c766-2efe-4403-8749-2f34cdc48319" alt=""><figcaption></figcaption></figure>

**Step 3**: Users can remove the amount of tokens (in percent) by selecting one radio button or scrolling the horizontal bar.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FjRW9gmBxRH19PTvr0j5W%2Fimage.png?alt=media&#x26;token=5c284380-47ae-445f-b2d0-8fd2e5857a3c" alt=""><figcaption></figcaption></figure>

**Step 4**: Users click on the button “Remove”.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FJ5BPULrzqnz9z3TBl7qk%2Fimage.png?alt=media&#x26;token=034680aa-3987-4b64-bbeb-b3e0c296e682" alt=""><figcaption></figcaption></figure>

**Step 5**: Users read detailed information before removing a certain amount of the asset.

\-       Pooled \[Traded Token].

\-       Pooled \[Received Token].

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FC5wIGhkPz2bgeVpAJgtb%2Fimage.png?alt=media&#x26;token=aabca5f6-8916-496e-8c54-db8a76a8b35e" alt=""><figcaption></figcaption></figure>

**Step 6:** The system will navigate users to the wallet so that users confirm the payment of the trading fee. The corresponding results will take place:

\- If users remove 100% of the amount, all fees will be claimed.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FLPsyQGQc07ADaUXXGN3N%2Fimage.png?alt=media&#x26;token=b8bb9fae-f557-4af4-b5e6-b84135222c45" alt=""><figcaption></figcaption></figure>

\- Else, remove only the pooled amount without claiming any fees yet.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FbjkhhOk8plxqUL9m9Jw5%2Fimage.png?alt=media&#x26;token=757fcae6-f8c1-4526-a72c-959e300aef4e" alt=""><figcaption></figcaption></figure>

**Step 7**: After clicking, a toast message appears to inform users of the submitted transaction.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2Fb9gdURvcW9QC6d1Aueht%2Fimage.png?alt=media&#x26;token=b887ab33-228d-424e-9f1b-ef323e949dfe" alt=""><figcaption></figcaption></figure>

**Step 8:** A popup of successful removal of liquidity positions appears:

\- If the amount of liquidity is removed 100%, the NFT position will be burned.

\- Else, users’ NFT position will not be affected.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2F3MArojC8neY65Ym3mnbd%2Fimage.png?alt=media&#x26;token=7428ed22-d843-4897-ae6c-ff648c570b63" alt=""><figcaption></figcaption></figure>

### 7.4 Increase Liquidity to the available pool

**Step 1:** Users access the “Pools” screen, then access one of the available pools and click on the “Increase Liquidity” button in that specific pool.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FgfH6WC1RfpdzZzNmb36r%2Fimage.png?alt=media&#x26;token=0b4742b1-1fa8-42cc-9dc4-4d227e404c8b" alt=""><figcaption></figcaption></figure>

**Step 2:** Users view detailed information about the pools before clicking on the button “Add more”.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FQqqXrsRXdmvgI1MpxRcN%2Fimage.png?alt=media&#x26;token=a9cbd80b-614d-4131-84a4-ab0ad0d73b7a" alt=""><figcaption></figcaption></figure>

**Step 3:** Users input the amount of liquidity they want to add further to the pools.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FTzA74Ex1hF1c7eeDbL30%2Fimage.png?alt=media&#x26;token=89eff6be-6421-429c-8784-03eb5d7747f3" alt=""><figcaption></figcaption></figure>

**Step 4**: Users click on the button “Preview” button to view detailed information of the addition of liquidity pools.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FLCiC3PmD24sAgQXDsfV1%2Fimage.png?alt=media&#x26;token=0c3523d8-59e7-4478-b4d1-1822613fb546" alt=""><figcaption></figcaption></figure>

**Step 5:** Users click on the button “Add” on the popup of “Add Liquidity”.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FpyK7cLtnVdF9e8wTG0yl%2Fimage.png?alt=media&#x26;token=349aaf24-566e-471a-9569-86e58e5f9e6e" alt=""><figcaption></figcaption></figure>

**Step 6:** Users click on the button “Confirm” in the popup to confirm the payment of the trading fee.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FsrtkfR2vj77pEXVjC6L8%2Fimage.png?alt=media&#x26;token=14b02a72-dad4-402f-908a-8bf94420c1b8" alt=""><figcaption></figcaption></figure>

**Step 7:** One toast message appears to inform users about the submitted transaction.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2FC3Enk8MOhafTjkvHDCRy%2Fimage.png?alt=media&#x26;token=a75cb4e0-1631-438f-b0a7-56936fd31412" alt=""><figcaption></figcaption></figure>

**Step 8:** Users are navigated to the “Pools Overview” screen, enabling them to view the list of Liquidity Pools and updated amounts.

<figure><img src="https://4038804071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0izPious0zkIRgcQU95k%2Fuploads%2F6PlqY9vOFFNR99BGx2hM%2Fimage.png?alt=media&#x26;token=5a7f2013-09b1-46a1-ba3d-2fc8e4e2a2d3" alt=""><figcaption></figcaption></figure>
