# DFX AMM

We designed the DFX AMM specifically to be optimized for the forex use case and it is not meant to be a generalized AMM.&#x20;

This AMM is uniquely built for low volatility trading of currency pairs. 💱

### :tada: Unique Features of the Protocol! :tada:

* We leverage an oracle powered by [ChainLink](https://chain.link/) to provide external *FX* price feeds into the pricing engine.
* We back test our currency pairs to use historical *FX* data to set and optimize the price range to maximize capital efficiency and lower slippage.
* Each currency is paired with USDC. [USDC](https://www.circle.com/en/usdc) is treated as a bridge currency in the DFX AMM between all the other stablecoins. This allows it to maintain the most liquid pools to facilitate swaps without fragmenting liquidity.
* The entire user interface (*UI*) has been remodeled to give a seamless transition whenever you are participating in any part of the DFX protocol.

The oracle design is very powerful. The oracle does not dictate the price, but rather provides a reference point for the bonding curve. This will help shift the optimal range of capital along the bonding curve WITHOUT user intervention.

<figure><img src="/files/ES8ZGAJBySo1hucKQJcn" alt=""><figcaption><p>Example of Bonding curve using CADC/USDC LP.</p></figcaption></figure>

By using back tested historical data, we are able to set the most ideal range for the capital in the pool to be utilized. Every currency pair is different and each one has their own unique characteristics. They all have a long history of data that we can leverage to help inform the bonding curve how to behave. We will be working with special models to help set and tune the bonding curve for each currency, but the community will be able to tune and adjust it thereafter to ensure the bonding curve stays relevant as the market moves. This is slated to launch with v1.

### Audits: :white\_check\_mark:

* March 5th, 2021 - [Conducted by Trail of Bits](https://github.com/dfx-finance/protocol-v2/blob/main/audits/2021-05-03-Trail_of_Bits.pdf)
* September, 2022 - [Conducted by Sebone](https://github.com/dfx-finance/protocol-v2/blob/main/audits/2022-09-DFXv2-Sebone-Audit.pdf)
* Febuary 7th, 2023 - [Conducted by Kalos](https://github.com/dfx-finance/protocol-v2/blob/main/audits/2023-02-07-DFXv2-Kalos-Audit.pdf)

Full details of all the report available [here](https://github.com/dfx-finance/protocol-v2/tree/main/audits).


---

# 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.dfx.finance/dfx-finance/protocol/v2-dfx-amm.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.
