# Swap

**Swap Engine**

<figure><img src="https://2447229787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FobmGxPgX1I383QzplC44%2Fuploads%2FYnIf7OXGtoVXO56UTpBg%2Fimage.png?alt=media&#x26;token=4b256988-82ec-4a2b-b425-5e9aad3c9c0e" 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="https://2447229787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FobmGxPgX1I383QzplC44%2Fuploads%2FDtc3g0Se6LFHHWnORbGU%2Fimage.png?alt=media&#x26;token=98451b19-1b1c-4555-9b84-960d81f934e7" 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="https://2447229787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FobmGxPgX1I383QzplC44%2Fuploads%2F4lXAHUkvmjndvUSyQrGP%2Fimage.png?alt=media&#x26;token=803e3eb3-d3cd-49f7-9297-902262c4f4e1" alt="" width="188"><figcaption><p>Stable Pool</p></figcaption></figure>
