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

# 🌐┃AMM V2

Camelot's V2 AMM is based on UniV2 constant formula, with a custom implementation of a Solidly-type logic for stables.

The Camelot AMM is the core of our ecosystem-oriented approach, designed with the following principles in mind:

* A high level of flexibility and customization
* An optimized trading efficiency for users
* Providing support to protocols' growth by adapting to their needs

This reflection led us to develop our AMM V2, which includes a dual-liquidity model for our pairs and introduces dynamic directional fees as well as a swap referral mechanism for partnering apps.

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

{% content-ref url="/pages/Et2HWM6JEQlz2t8GcyfT" %}
[Dual-liquidity type](/protocol/amm-v2/dual-liquidity-type.md)
{% endcontent-ref %}

{% content-ref url="/pages/JKaNHh2pn0q0JUxWrtjF" %}
[Dynamic directional fees](/protocol/amm-v2/dynamic-directional-fees.md)
{% endcontent-ref %}

{% content-ref url="/pages/0P70X8TnpWAaMKIUFsCI" %}
[Referral](/protocol/amm-v2/referral.md)
{% endcontent-ref %}
