Earnium Docs Stardust
Documentation menu

Schedule Pool

When a pool is created, a schedule can be set so that the swap fee (in bps) gradually decreases over the specified duration.

Example

If you create a volatile pool with a 30-day schedule:

This mechanism incentivizes early liquidity and gradually aligns the pool with a competitive fee rate.

How to create schedule pool

Use the create_pool_with_fee_schedule function from the router module.

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

Function Parameters