# Concentrated Liquidity

## <mark style="color:orange;">Please visit</mark> [<mark style="color:orange;">docs.shadow.so</mark>](https://docs.shadow.so/) <mark style="color:orange;">these are depreciated.</mark>&#x20;

## <mark style="color:orange;">Web app is available at</mark> [<mark style="color:orange;">shadow.so</mark>](https://www.shadow.so/)

<figure><img src="/files/NDVY4dPBa7JAtoabbuJw" alt=""><figcaption></figcaption></figure>

Concentrated Liquidity is currently the most efficient and profitable method of market making that on-chain decentralized exchanges have access to. This type of liquidity was initially popularized by Uniswap with their UniV3 model.\
\
To get an idea of what Concentrated Liquidity offers we can compare it to a more centralized, and well-known, liquidity scheme: A CEX Order Book.

<div data-full-width="true"><figure><img src="/files/ohDIVqdpPt8mmVlSnkTQ" alt=""><figcaption></figcaption></figure></div>

As you can easily see in the CEX Order Book diagram above, the bid (buys) and asks(sells) are clearly shown, and the depth at which a market order would impact the median price is visually discernible.\
\
Interesting enough, the concentrated liquidity model, is represented visually as an inverse histogram of the order book (imagine flipping the photo below upside down and inverting the colors and you will see the traditional CEX order book appears).

<figure><img src="/files/sM7nMEiz75hUjyj0NFv2" alt=""><figcaption></figcaption></figure>

The red shaded area represents the liquidity ranges summed between all users within the liquidity pool (within the same fee-tier, more on this later).

The efficiency differential between a traditional UniV2 (x\*y=k) and UniV3 concentrated liquidity orderbook-style AMM can be explained by reference to the fact that in a UniV2 liquidity pair, liquidity positions operate on a range of 0 to infinity (0,∞).&#x20;

This means that each individual liquidity provider in the pool is subject to providing liquidity in every possible positive real-number. Since every trade has to consider this when the swapping algorithms are executed, $100,000 of liquidity spread from 0 to ∞ is exponentially less efficient than, say, one with a defined range of ($1,000-$1,100). \
\
With the latter example of the $1,000-$1,100 liquidity range, it is calculatable that the same $100,000 of liquidity is now concentrated in a $100 price range, providing a massive improvement in efficiency and liquidity depth within the specified range.  Concentrated liquidity pairs have the ability to provide the lowest slippage currently available in decentralized exchanges.


---

# 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.shadowdex.fi/concentrated-liquidity-core/concentrated-liquidity.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.
