Earnium Docs Stardust
Documentation menu

Volatile Pool

On this page

A volatile pool is a liquidity pool designed for trading assets with high price volatility (e.g., APT/USDC).

Volatile Pool Formula

Volatile pools use the constant product market maker formula:

Where:

Explanation:

How To Create Volatile Pool

Use the create_pool function from the router module.

public entry fun create_pool(
        token_1: Object<Metadata>,
        token_2: Object<Metadata>,
        is_stable: bool,
    ) {
        ...
    }

Function Parameters