> For the complete documentation index, see [llms.txt](https://ensurer.gitbook.io/ensurer-whitepaper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ensurer.gitbook.io/ensurer-whitepaper/ensured-dex/swap.md).

# SWAP

Ensured DEX enables trading between different ERC-20 tokens on the Ethereum and other EVM-compatible blockchains. Ensured DEX specializes in providing tailored trading solutions between correlated and uncorrelated assets.

In its initial iteration Ensured DEX supports the following 2 liquidity pool types:

* Volatile Pools

Volatile pools are defined as assets that have no direct correlation in price, examples are Chainlink (LINK) and Ethereum (ETH). The price of ETH has no relation to the price of LINK.

Volatiles pairs use the following formula to determine the price:

`x × y ≥ k`

* Stable Pools

Stable pools are defined as assets that have a direct correlation to each other. Examples are USDC/USDT, wBTC/multiBTC, frxETH/wETH etc. The price of the 2 assets will trade very close to each other and thus a different approach can be taken to allow for much higher volume at low slippage.

Stable pairs use the following formula to determine the price:

`x³y + y³x ≥ k`

## Graphics Representation

<figure><img src="/files/27tI5ueKzufvg8fknDTb" alt=""><figcaption></figcaption></figure>

![Design byJoanne Macon Dribbble](https://dribbble.com/shots/9515799-Personal-Brand-Logo?utm_source=Clipboard_Shot\&utm_campaign=jmvc\&utm_content=Personal%20Brand%20Logo\&utm_medium=Social_Share\&utm_source=Clipboard_Shot\&utm_campaign=jmvc\&utm_content=Personal%20Brand%20Logo\&utm_medium=Social_Share)


---

# 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://ensurer.gitbook.io/ensurer-whitepaper/ensured-dex/swap.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.
