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

# AMM DEX

#### AMM(Automated Market Maker)?&#x20;

An automated market maker (AMM) is the underlying protocol that powers all decentralized exchanges (DEXs). They are autonomous trading mechanisms that eliminate the need for centralized exchanges and related market-making techniques.&#x20;

#### Liquidity Provider

Liquidity Provider can combine X and Y tokens to create liquidity for X-Y token pair. This is described as providing liquidity. A pool created by a liquidity provider allows traders to easily swap(=exchange) X tokens to Y tokens and vice versa on-chain.

#### CPMM(Constant Product Market Maker)

![Uniswap's CPMM 그래프 ](/files/EqHJOEEMKwOoWiKJj219)

Most pairs use the traditional Uniswap CPMM method, except for stable swaps. CPMM-based transactions are defined as X\*Y = K and based on that formula, the price range of two tokens is formed according to the quantity(liquidity) of each token. As the supply of X token increases, the supply of Y tokens decreases, and vice versa. As long as there's liquidity in the pool, the trader can trade at any time.&#x20;

#### How to determine the exchange rate and price at stable swap (Curve)

![](/files/xZ1djXHGKgW8jzDyi94Z)

StableSwap on Curve is AMM for stale coins and features low fees and minimum slippage. StableSwap on Curve has advantages not only for stable coins such as USDC, DAI, and USDT but also for coins of equal value. For example, all WBTCs (wrapped BTC) in Ethereum are 1:1 corresponding to the actual BTC, and have the same value.&#x20;

![(Swap 예시)](/files/7ErOm7ENUoLVp1zlIYWS)

* Swap fee : 0.3% (DAO Fund)


---

# 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://meversedex.gitbook.io/docs/dex/amm-dex.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.
