Swaps
To Polkaswap means to exchange (swap) tokens on Polkaswap. Polkaswap is a non-custodial, cross-chain AMM DEX protocol for swapping tokens, Polkaswap removes trusted intermediaries and provides the opportunity for faster trading, and Polkaswap also combines multiple liquidity sources under a common liquidity aggregation algorithm, operating completely on-chain, in a trustless and decentralized way.
There are 3 main use cases for Polkaswap:
- 1.Swapping tokens
- 2.Providing liquidity
- 3.Removing liquidity
Along with the network fee in XOR, all 3 cases require an additional fee - liquidity provider fee (LP fee). The LP fee is used to incentivise liquidity providers to supply liquidity in liquidity pools. Liquidity pools are described in this article.
We recommend using the SORA testnet for practice exercises. Here are the Testnet links:
In the practice section we'll Swap tokens. Providing and Removing the liquidity will be explained in subsequent articles.
Swapping tokens means exchanging from token A to token B. Polkaswap provides a user friendly interface for swapping tokens.
Open the Swap page.

Then select the source asset (the asset you'd like to sell) and the destination asset (asset that you'd like to buy). Just click on the asset drop-down to select them.
.png?alt=media&token=04ca4210-453e-40d1-9bed-402d496936c5)
The assets from you wallet will be listed by default.
.png?alt=media&token=059af3b9-9e0e-4c37-986a-9b5258cf9ea1)
You can find and add any asset by entering its ID or name in the search field. Whitelisted assets will be listed.
If you'd like to add a token that isn't whitelisted, then open the Custom tab and enter the asset ID.
.png?alt=media&token=39dd9066-0cd5-4476-adbc-ff68603a9ede)
Confirm that you understand the risk and proceed.
Ok, Now that you have selected the source and destination assets, you can easily change the direction of the swap by clicking the arrow between the assets.
.png?alt=media&token=c4e4aae7-1108-4fe7-bb20-cbf19a79243a)
To start the swap, enter the asset amount (source or destination).
.png?alt=media&token=8ce9eb74-72be-4ad9-a286-f9d7f59c3f3f)
There are a few parameters that should be clarified:
- 1.Slippage tolerance - The amounts that you see on the screen are calculated for the moment when you're making the swap. The exchange rate might change before you sign and send the transaction. Your transaction will be reverted if the price changes unfavourably by more than this percentage.
- 2.Liquidity provider fee - This is a fee that will be distributed among accounts who have a share in the liquidity pool.
- 3.Network fee - This is a fee for transaction in the network (gas).
If you're ready to make a swap, click Swap then check the details carefully and if everything is ok, confirm and sign the transaction.
.png?alt=media&token=dba4029c-ebd7-4889-8804-208d944d8d6d)
Finally, you can find the transaction in the Activity tab on the Account screen.
.png?alt=media&token=6a79bd21-21ce-4192-adb6-8c2dda0fbfb6)
Last modified 5mo ago