# Dual-Liquidity Pairs

Each Codex LP can have its own type, depending on the expected price correlation level between the two tokens of the pair.

### Volatile pairs <a href="#volatile-pairs" id="volatile-pairs"></a>

Volatile pairs are traditional Uniswap V2 pairs that are using the standard constant product formula:

$$
x \* y = k
$$

### Stable pairs <a href="#stable-pairs" id="stable-pairs"></a>

We’ve adopted the Solidly stableswap algorithm whose innovative price curve formula supports swaps of pegged assets with minimum slippage:

$$
x^3 \* y + y^3 \* x = k
$$


---

# 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://codex-finance.gitbook.io/codex-finance/protocol/amm/dual-liquidity-pairs.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.
