Initialize
Creates a new trading pair and optionally adds initial liquidity in a single transaction.Accounts
The account that will pay for pair creation and provide initial liquidity.
The mint address for token0. Must be less than token1_mint (canonical ordering).
The mint address for token1. Must be greater than token0_mint (canonical ordering).
The pair account to initialize. PDA derived from
[PAIR_SEED_PREFIX, token0, token1, params_hash].The futarchy authority account. PDA derived from
[FUTARCHY_AUTHORITY_SEED_PREFIX].The interest rate model account for this pair.
The LP token mint account. Must be uninitialized and will be initialized by the program.
Arguments
Swap fee in basis points (0-10000). Applied to all swaps on this pair.
EMA half-life in seconds. Must be between 60 (1 minute) and 43200 (12 hours).
Optional fixed collateral factor in basis points. If
Some, overrides dynamic CF calculation.SHA256 hash of
[version, swap_fee_bps, half_life, fixed_cf_bps.unwrap_or(0)]. Used for pair PDA derivation.Initial amount of token0 to deposit. Must be greater than 0.
Initial amount of token1 to deposit. Must be greater than 0.
Minimum LP tokens to receive. Used for slippage protection.