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.

Polkaswap's technical design allows using different liquidity sources for trading. At the moment Polkaswap supports 2 liquidity sources:

  1. XYK Pool
  2. Token Bonding Curve (TBC)

XYK Pools are managed by the community. Anyone is able to provide liquidity to any pool. Every pool has XOR as a base asset. For example, there are 2 pools: XOR-VAL, XOR-PSWAP. If I make a VAL-PSWAP exchange, then the swap routing will be the following: from VAL to XOR, from XOR to PSWAP.

The TBC is described in detail in this article. You can buy and sell XOR using the TBC, and initial collateral assets are USDT, VAL, PSWAP.

When you make a swap with the default settings, the Liquidity Proxy algorithm will select the liquidity pool with the best price. However, buying XOR from the TBC is rewarded with PSWAP. The liquidity source might change in the swap settings, which makes trading more flexible.

Swap settings and other topics will be covered in the Practice section.

Practice

We recommend using the SORA testnet for practice exercises. Here are the Testnet links:

  1. Polkaswap test application
  2. Polkadot js SORA testnet application
  3. Android testnet application
  4. iOS testnet application

In this practice section, we'll Swap tokens with advanced settings. Also, fees will be explained.

Select the market maker algorithm

It's really easy to switch between liquidity sources in Polkaswap. Just open the swap page and select the assets that you'd like to swap.

Untitled

On the top right corner you can find the Market configuration. Click on the icon.

Untitled

By default, the SMART option ****is selected. It means that the Liquidity Router will find the best-priced liquidity source. You can also switch to TBC.

Untitled

Let's try to compare prices for purchasing XOR.