# 🌐┃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="https://3420642431-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHBFQDThxW7Uo7iHfOHG5%2Fuploads%2FTv9Xu75KQ5fOCIpfeGLX%2Fimage.png?alt=media&#x26;token=07151c94-3e5b-4c62-b8c2-4f5e57e45726" alt=""><figcaption></figcaption></figure>

{% content-ref url="amm-v2/dual-liquidity-type" %}
[dual-liquidity-type](https://docs.camelot.exchange/protocol/amm-v2/dual-liquidity-type)
{% endcontent-ref %}

{% content-ref url="amm-v2/dynamic-directional-fees" %}
[dynamic-directional-fees](https://docs.camelot.exchange/protocol/amm-v2/dynamic-directional-fees)
{% endcontent-ref %}

{% content-ref url="amm-v2/referral" %}
[referral](https://docs.camelot.exchange/protocol/amm-v2/referral)
{% endcontent-ref %}
