Migrators

Cetus

The Cetus migrator calls the function below to deploy a pool.

public fun create_pool_v2<CoinTypeA, CoinTypeB>(
        _config: &GlobalConfig,
        _pools: &mut Pools,
        _tick_spacing: u32,
        _initialize_price: u128,
        _url: String,
        _tick_lower_idx: u32,
        _tick_upper_idx: u32,
        _coin_a: Coin<CoinTypeA>,
        _coin_b: Coin<CoinTypeB>,
        _metadata_a: &CoinMetadata<CoinTypeA>,
        _metadata_b: &CoinMetadata<CoinTypeB>,
        _fix_amount_a: bool,
        _clock: &Clock,
        _ctx: &mut TxContext
):  (Position, Coin<CoinTypeA>, Coin<CoinTypeB>) {
        abort 0
}

The Cetus protocol is initiated with the following parameters:

  • Tick Spacing: 200.

    • Largest possible fee on Cetus.

  • Initialized Price: 9223372036854776 or 0.0005 in decimals.

    • This sets the market cap of the pool at 25_000 Sui. E.g. 50e6 * 0.0005 = 25000

  • Tick Lower Index: 4294523696

  • Tick Upper Index: 443600

    • This is to ensure full range liquidity

  • Fix Amount A: true

    • The meme coin amount is fixed

We supply 5% of the total meme coin supply. E.g. If a coin has a supply of 1 billion, we add 50 million of value in coin_a. The Sui amount is configurable by the integrator.

Last updated