# 🌐┃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 %}


---

# 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.camelot.exchange/protocol/amm-v2.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.
