# Liquidity pools

**A liquidity pool is a group of tokens that are locked in a smart contract and used for trading between assets on a decentralized exchange (DEX) like Uniswap.** Each liquidity pool is a trading venue for a pair of ERC20 tokens.

In traditional finance, liquidity is organized using a central limit order book where buyers and sellers create orders (trade) organized by price and demand. The Uniswap Protocol takes a different approach, using an **Automatic Market Maker (AMM)** to replace the traditional order book method with a liquidity pool of two assets, where an AMM determines the price.

> **Automated market maker (AMM)** algorithms in the contract determine the price of each token and adjust prices in real time depending on supply and demand. This ensures that the supply of each token in a pool is always in proportion to the other tokens in the pool.

### Initial liquidity

When a pool contract is created, the balances of each token are 0. In order for the pool to begin facilitating trades, someone must seed it with an initial deposit of each token. This **first liquidity provider** is the one who sets the initial price of the pool.

{% hint style="info" %}
They are incentivized to deposit an equal value of both tokens into the pool. If the first liquidity provider deposits tokens at a ratio different from the current market rate, this immediately creates a profitable arbitrage opportunity, which is likely to be taken by an external party.
{% endhint %}

### LP tokens (Liquidity pool tokens)

When a user deposits tokens into a pool, they receive an ERC20 token representing their share of the pool, called a **liquidity token**. This token is **minted** when the user deposits and **burned** when the user withdraws. The **balance of the liquidity token** represents the user’s **share of the pool**.

> As liquidity tokens are themselves tradable assets, liquidity providers may sell, transfer, or otherwise use their liquidity tokens in any way they see fit.

### Important for traders

It is important to evaluate the **liquidity available in a pool before swapping**. A pool with low liquidity will not give you an optimal price and could potentially result in a loss.

Some advice for traders:

* Seek out pools that have a high trading volume and a significant amount of liquidity;
* Checking to see whether the liquid asset pool is supported by a strong developer community and has an active user base;

Once assets have been added to a liquidity pool, they are controlled by a smart contract. If a malicious actor gains access to a smart contract that controls a liquidity pool, they may be able to steal all the funds in the pool.

### Blokiments metrics and filters

Blokiments app can help you to find the best liquidity pools for your trading strategy. You can use filters to find the best pools and metrics to evaluate them.

#### Filters

* `Liquidity in USD` filter - you can filter pools by the amount of liquidity in USD. This filter is good to be more than $80,000.
* `Liquidity Change in USD` filter - the change of the liquidity in the pool in the last 1, 7, 30 days. Try to find pools with a positive change in liquidity (1d interval works well for new tokens). This means that the pool is growing, and more people are using it.

{% hint style="success" %}
**Pro tip**: Sort the results by `Blokiments Score` to find the best pairs.
{% endhint %}

<figure><img src="/files/dWfrVJqzpYXXVy244szs" alt=""><figcaption><p>The filter configuration in the Blokiments app.</p></figcaption></figure>

Metrics

* `Initial Liquidity` metric - In the detail view for the pair, under the liquidity section, you can find the amount of liquidity added by the creators of the analyzed pairs.

### Sources

* [Uniswap Pools](https://docs.uniswap.org/contracts/v2/concepts/core-concepts/pools)
* [What is a liquidity pool?](https://support.uniswap.org/hc/en-us/articles/8829880740109-What-is-a-liquidity-pool-)
* [Liquidity Pool (DeFi Liquidity Pool)](https://www.techopedia.com/definition/liquidity-pool-defi-liquidity-pool)
* [What Are Liquidity Pools?](https://www.coindesk.com/learn/what-are-liquidity-pools/)
* [What are liquidity pools in DeFi?](https://www.moonpay.com/learn/defi/what-are-liquidity-pools)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.blokiments.com/guides/blog/liquidity/liquidity-pools.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
