Search…
Polkaswap

Theory

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. 1.
    Swapping tokens
  2. 2.
    Providing liquidity
  3. 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.

Practice

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 (Polkaswap)

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.
The assets from you wallet will be listed by default.
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.
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.
To start the swap, enter the asset amount (source or destination).
There are a few parameters that should be clarified:
  1. 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. 2.
    Liquidity provider fee - This is a fee that will be distributed among accounts who have a share in the liquidity pool.
  3. 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.
Finally, you can find the transaction in the Activity tab on the Account screen.
Last modified 2mo ago
Export as PDF
Copy link