> For the complete documentation index, see [llms.txt](https://help.dedust.io/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.dedust.io/en/liquidity/pools.md).

# Pools

Here you will learn about the liquidity pools, [their types](/en/liquidity/pools/types.md) on DeDust, how they work, how to [deposit](/en/liquidity/deposit.md) and [withdraw](/en/liquidity/withdraw.md) the liquidity to/from pools. And how to earn on providing liquidity.

## What is a Liquidity pool

<details>

<summary>Simply put, a liquidity pool is a pair of cryptocurrencies on a decentralized exchange (DEX) that lets users swap one token for another, such as <strong>GRAM ↔ USDT</strong>.</summary>

More specifically, a liquidity pool consists of two parts:

* **A pool of assets** — a vault containing two cryptocurrency tokens, typically in equal value proportions. Users trade against this pool by swapping one token for another.
* **A smart contract** — a program deployed on the blockchain that defines how the pool operates, calculates exchange rates, and processes swaps.

Once liquidity is added to a pool, anyone can trade its assets. When you swap, you deposit one token into the pool and receive the other token in return based on the pool's current exchange rate.

The exchange rate is determined solely by the balance of assets in the pool. As users trade, these balances change, causing the price to adjust automatically.

In general, the more liquidity a pool has, the smaller the price impact of each swap. Larger pools can handle bigger trades with less slippage and more stable exchange rates.

</details>

For every exchange in a pool it withholds a fee, called [*Trade fee*](/en/protocol/fees.md#trading-fees) — from a user performing the swap.

## How it works on DeDust

* The trading fees might vary in different pools.
* 20% of trading fees goes to DeDust protocol.
* 80% of trading fees are distributed between all pool's liqiudity providers, according to their share.
* The trading fee is only withheld if a swap was successful.
* With every swap each liquidity provider's portion of trading fee earnings is:
  * auto-compounded to the total amount of provider's tokens in the pool (added to his position), in case of [Classic](/en/liquidity/pools/types.md#classic-pool-cpmm-v1-legacy) and [Stable-swap](/en/liquidity/pools/types.md#stable-swap-pool) pools, or
  * accumulated on a separate balance and [available for claim anytime](/en/liquidity/earnings.md), in case of [CPMM v2](/en/liquidity/pools/types.md#cpmm-v2-pool) pools.

## Exploring pools

All whitelisted pools are listed on the [Pools](https://dedust.io/pools) page.

Pools with the same pair of tokens are by default grouped in one record.

Most traded token pairs will always be in the top of the list.

Switch from ***All pools*** to ***My pools*** tab, to see details only on pools you're providing liquidity to.

Use filters to find relevant pools for specific cases:

* **Pool type** — choose between different pool types
* **Coins filter** — use search or pick some from the list, to view only pools with selected tokens
* **Boosted** — pools with additional [boost rewards](/en/liquidity/boosts.md)

By default, pools with non-whitelisted tokens are not displayed on this page. You can [import a non-verified token](/en/trade/tokens.md#how-to-import-a-token) to see it (at your own risk!).
