> For the complete documentation index, see [llms.txt](https://rooster-protocol.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rooster-protocol.gitbook.io/docs/overview/amm.md).

# AMM

Rooster Protocol uses an advanced Distribution AMM to adapt liquidity for various market conditions, empowering liquidity providers (LPs) to generate fees from traders by maintaining active liquidity near market prices.

The Distribution AMM represents a significant evolution in concentrated DEX liquidity. The default solution for concentrated liquidity is the Range AMM, which allows Liquidity Providers (LPs) to select a price range over which their liquidity is uniformly distributed. This results in flat distributions with the same percentage of token liquidity deposited at each price tick within the range.

With Rooster, LP can customize the shape of their liquidity distribution tick by tick, unlocking the potential for more complex liquidity strategies that are better optimized for each token pair.

<figure><img src="/files/4iAM3EzqNmXuYV636HSR" alt=""><figcaption><p>Rooster lets LPs customize shapes for their liquidity which aren't possible in standard Range AMMs.</p></figcaption></figure>

The Rooster UI offers LPs two types of distribution by default:

* **Flat** - distributes liquidity evenly across a range of bins, centered around the current pool price (similar to other concentrated liquidity AMMs).
* **Exponential** - starts with a concentration of liquidity around the current pool price and spreads the rest of the liquidity in exponentially decreasing amounts across the bins to the left and right.

The Exponential distribution is offered as an out-of-the-box option based on the findings of [this paper](https://arxiv-export1.library.cornell.edu/abs/2204.00464) fromHarvard, which concludes that this is the most risk-optimized distribution for LPing in Range AMMs. Flat is available for users who want an LPing experience similar to standard Range aMMs. Both of these distributions can also be customized bin by bin after they have been selected.

Rooster's specialized AMM makes it ideal for projects looking to bootstrap liquidity, maintain a stable peg, or incentivize trading activity in the RWA ecosystem.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://rooster-protocol.gitbook.io/docs/overview/amm.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
