# Pools

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

## What is a Liquidity pool

<details>

<summary>Very simplified, liquidity pool is a 'trading pair' of two cryptocurrencies on a decentrilized exchange (DEX), serving to allow users to swap one crypto for another, e.g. TON to USDT.</summary>

If more complicated, liquidity pool is:

* a kind of vault, a storage, containing a combination (usually a pair) of cryptocurrency tokens (usually in 50/50 proportion), allowing users to buy from (or sell to) that pool one token for another,&#x20;

and on the other hand,

* a smart contract deployed in the blockchain — a program code with a set of strict rules, defining how a specific liquidity pool operates and executes the swaps, initiated by users.

{% hint style="info" %}
Once a pair of assets (tokens) is placed to the liquidity pool, users can start trading those assets. Then, putting certain amount of one token to a pool ('selling' it to the pool) user gets in return some amount of another token from that pool ('buying' it from the pool), according to its exchange rate.
{% endhint %}

{% hint style="info" %}
Only the proportions (amounts) of two assets in a pool define one's "price" expressed in another, and define their exchange rate **in that specific pool**. The more liquidity[^1] (or assets, in total) the pool contains, the less will be the [price impact](https://help.dedust.io/en/trade/advanced/price_impact) (exchange rate deviation) with every swap in it.
{% endhint %}

</details>

For every exchange in a pool it withholds a fee, called [*Trade fee*](https://help.dedust.io/en/protocol/fees#fee-for-swaps-or-trading-fee) — from a user performing the swap.

## How it works on DeDust

* The trading fees might vary in different pools.
* 70-80% of trading fees, depending on [pool type](https://help.dedust.io/en/liquidity/pools/types), are distributed between all pool's liqiudity providers, according to their share.
* 20% of fees is used to buyback [$DUST tokens](https://help.dedust.io/en/protocol/dust) from market and reward holders for staking.
* The fee may be deducted either from trader's amount of tokens that he spends, or from amount of tokens he gets after swap. Depending on pool's properties and swap direction.
* All fees are withheld from traders and distributed to liquidity providers instantly, at the moment of swap.
* 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](https://help.dedust.io/en/liquidity/types#classic-pool-cpmm-v1) and [Stable-swap](https://help.dedust.io/en/liquidity/types#stable-swap-pool) pools, or
  * accumulated on a separate balance and available for claim anytime, in case of [CPMM v2](https://help.dedust.io/en/liquidity/types#claimable-fees-pool-cpmm-v2) pools.

## Exploring pools

Open DeDust [Pools](https://dedust.io/pools) section, from a Homepage or using a taskbar.

In the top you'll find [basic stats](#user-content-fn-2)[^2] on major DeDust liquidity pools.

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

{% hint style="info" %}

* Pools with the same pair of tokens are by default grouped in one record.
* Most traded token pairs by volume will always be in the top of the list.
* Scroll to the left and right, to see pools key performance values including APR, and your rewards.
  {% endhint %}

<div><figure><img src="https://85253202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiLJ0WdKUBHXsAEMMSEfd%2Fuploads%2FdBuv2zU02OjX5HBrgg6c%2FIMG_4568.png?alt=media&#x26;token=c178cf23-3a96-492a-a3d9-264aee2fd3fd" alt=""><figcaption><p>Homepage</p></figcaption></figure> <figure><img src="https://85253202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiLJ0WdKUBHXsAEMMSEfd%2Fuploads%2F1G7vc5kqX3L7tubVV9NY%2FIMG_4569.PNG?alt=media&#x26;token=f525c6ec-9578-4331-95bf-aab92597f60e" alt=""><figcaption><p>Pools</p></figcaption></figure> <figure><img src="https://85253202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiLJ0WdKUBHXsAEMMSEfd%2Fuploads%2FMWuqtO6SzDgpJ32I6UoC%2FIMG_4567_.png?alt=media&#x26;token=c1b56114-4ae7-439a-936b-9e0d4d06e104" alt=""><figcaption><p>All pools</p></figcaption></figure> <figure><img src="https://85253202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiLJ0WdKUBHXsAEMMSEfd%2Fuploads%2FHneLl1dP46x4L10vLIWG%2FIMG_4715.PNG?alt=media&#x26;token=31692a3b-b12b-408b-8199-9a07a0fb0ef7" alt=""><figcaption><p>My pools</p></figcaption></figure></div>

Use filters to find relevant pools for specific cases:

* **Pool type** — choose between different volatile pool types and stable-swap pools
* **Coins filter** — use search or pick some from the list, to view only pools with selected tokens
* **Boosted** — pools with additional [boost rewards](https://help.dedust.io/en/liquidity/boosts)

{% hint style="warning" %}
Pools containing at least one [non-whitelisted token](https://help.dedust.io/en/trade/swap/imported) will be shown on Pools page only after you [import the non-whitelisted token(s)](https://help.dedust.io/en/launch/whitelist/non-whitelisted).
{% endhint %}

<div><figure><img src="https://85253202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiLJ0WdKUBHXsAEMMSEfd%2Fuploads%2FPjx75Fht2vdzTeFlGFYO%2FIMG_4762.png?alt=media&#x26;token=fad6b70f-2d3a-48a3-b0b1-d2661a929b07" alt=""><figcaption><p>Pool types filter</p></figcaption></figure> <figure><img src="https://85253202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiLJ0WdKUBHXsAEMMSEfd%2Fuploads%2FY90b8fHHIRoWvmfTqVyd%2FIMG_4765.png?alt=media&#x26;token=a164f0b2-e935-49cc-a98c-a89291185fb6" alt=""><figcaption><p>Coins filter</p></figcaption></figure> <figure><img src="https://85253202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiLJ0WdKUBHXsAEMMSEfd%2Fuploads%2FN5HQpDFaqSRP7sE6QvRh%2FIMG_4767.png?alt=media&#x26;token=b7ed7e34-f465-4143-8cb4-edb2c72a7b50" alt=""><figcaption><p>Coin-filtered pools</p></figcaption></figure> <figure><img src="https://85253202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiLJ0WdKUBHXsAEMMSEfd%2Fuploads%2Fwsoip072vM1zraMa1xOr%2FIMG_4915.png?alt=media&#x26;token=4e096ed0-311b-47a7-9fe0-cd7e35659e82" alt=""><figcaption><p><a href="boosts/boosted_pool">Boosted</a> pools</p></figcaption></figure></div>

<details>

<summary>Learn more</summary>

{% hint style="success" %}
Once you filter pools with more than one token, pairs containing both tokens will be shown first.

Expand / collapse pools within a grouped pair. Press "**Show all**" to display more than five pools.
{% endhint %}

<div><figure><img src="https://85253202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiLJ0WdKUBHXsAEMMSEfd%2Fuploads%2Fa7IOycmjklR9dGTia5PG%2FIMG_4770.png?alt=media&#x26;token=1d8902a5-3300-4204-b33a-ac688910c1e2" alt=""><figcaption><p>Multiple-coins filter</p></figcaption></figure> <figure><img src="https://85253202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiLJ0WdKUBHXsAEMMSEfd%2Fuploads%2FoT2EwlZPUS7MHTV21u43%2FIMG_4772.PNG?alt=media&#x26;token=82155f05-e499-4ead-90e7-3d00c287b9c3" alt=""><figcaption><p>Expanded pools group</p></figcaption></figure> <figure><img src="https://85253202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiLJ0WdKUBHXsAEMMSEfd%2Fuploads%2FFBzH5FMq3r58MEv5fBCn%2FIMG_4773.png?alt=media&#x26;token=72d9a318-07d6-445c-8d65-a0943bd649f0" alt=""><figcaption><p>All pools within group</p></figcaption></figure> <figure><img src="https://85253202-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiLJ0WdKUBHXsAEMMSEfd%2Fuploads%2FPs91g9boSKTpNnvy3vH6%2FIMG_4774.png?alt=media&#x26;token=e847d0e1-a98c-4e5c-bb57-d38447cae216" alt=""><figcaption><p>APRs within group</p></figcaption></figure></div>

{% hint style="info" %}
Group TVL, Volume, Fees and APR values — are shown as total / average of pools within a pair.
{% endhint %}

</details>

[^1]: The total liquidity in a pool, or the total value of both assets placed to that pool (usually expressed in USD), is one of key metrics called Total Value Locked (TVL).

[^2]: On pools with [whitelisted tokens](https://help.dedust.io/en/launch/whitelist) and tokens you imported yourself.
