# Swap

**Swap**\
The user can execute their desired trade by swapping. Fill in the desired amount of token to sell \[1], to see the amount of resulting tokens bought \[2]. To switch the token bought, press the switch button \[3].\
\
When swapping, the price impact for the asset you are receiving is shown as a percentage \[4]. If the percentage is green, you're arbitraging. If it's red, you're either trading away from the peg, or overshooting the arbitrage.

<figure><img src="https://1246904744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fc4HBJZk1BwHmeZcCfjDz%2Fuploads%2Fcs4tHvo2owmFSib5FODI%2Fswap.png?alt=media&#x26;token=f2d95236-3e8f-40a2-9c8a-087c4681b209" alt=""><figcaption><p>Swapping between XRD and STAB</p></figcaption></figure>

**Manage liquidity**\
Swapping using the XRD/STAB pool relies on users to provide liquidity. This can be profitable, and a Real 7d APY to show whether it is or not \[1]. The total amount of liquidity provided is also shown \[2].\
\
**Adding liquidity** is simple. Go to the correct section of the interface \[3], and choose how much STAB or XRD you want to provide as liquidity \[4]. The interface will calculate the necessary amount for the other token, try it out!

<figure><img src="https://1246904744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fc4HBJZk1BwHmeZcCfjDz%2Fuploads%2F04dfCplNEupIkXup3v4e%2Fadd-liq.png?alt=media&#x26;token=f02acf41-9111-4b84-94e5-8550c64d24a3" alt=""><figcaption><p>Providing XRD/STAB liquidity</p></figcaption></figure>

Providing liquidity will result in <mark style="color:red;">LPSTAB</mark> tokens for the user, which can be used to keep track of the liquidity you've provided and be exchanged in return for the provided liquidity. When you want to **remove liquidity**, go the correct section \[1], and input the amount of LPSTAB tokens \[2] you want to exchange in return for their underlying liquidity.

<figure><img src="https://1246904744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fc4HBJZk1BwHmeZcCfjDz%2Fuploads%2FcTJWftnfmlTlvxbVSVTs%2Fliq-remove.png?alt=media&#x26;token=5359b607-4306-439a-9b59-f793018e31b5" alt=""><figcaption><p>Removing XRD/STAB liquidity</p></figcaption></figure>

\
**Statistics**\
On the bottom of the page, some useful statistics are shown. Use them as you see fit!

<figure><img src="https://1246904744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fc4HBJZk1BwHmeZcCfjDz%2Fuploads%2FsJOlvm98g49dFpAIxblw%2Fuseful.PNG?alt=media&#x26;token=f58172ab-7a27-4a95-af0e-4a0186e3e097" alt=""><figcaption></figcaption></figure>
