> For the complete documentation index, see [llms.txt](https://docs.cellana.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cellana.finance/how-it-works/swap.md).

# Swap

**Swap Engine**

<figure><img src="/files/ujvcbVeeGnTjNwaWI5zx" alt=""><figcaption></figcaption></figure>

Cellana uses a different swap algorithm depending on how assets are correlated to one another. The hybrid swap engine is as following:

vAMM – Cellana follows Curve swap algorithm to provide services for assets with low price correlation. sAMM – Cellana uses the Solidly stable-swap algorithm for highly correlated assets.

## Swap Fees

Cellana introduces a fully adaptive fee structure, where trading fees are dynamically adjusted in response to market volatility with min/max values of 0% and 10%, respectively.&#x20;

By default all V2 volatile pools are set to **0.1%** and stable pools to **0.04%**.

## Volatile Pools

Volatile pools are defined as assets that have no direct correlation in price. For example, CELL/APT is referred as volatile pool since the price of CELL has no relationship to the volatility of APT.

Volatile pairs use the following formula to determine the price:

x × y ≥ k

<figure><img src="/files/IiQh3R7AwGeUjXfkCWNz" alt="" width="188"><figcaption><p>Volatile Pool</p></figcaption></figure>

## Stable Pools

Stable pools are defined as assets that have a direct correlation to each other. Examples are USDC/USDT. 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

<figure><img src="/files/KhwK2oKQodbfGv6OuCwl" alt="" width="188"><figcaption><p>Stable Pool</p></figcaption></figure>
