interfaceCreatePoolOptions {// From sdk.contract.getFees() fee:Contract.Fee;// Coin type such as 0x2::sui::SUI coinTypeA:string;// Coin type such as 0x2::sui::SUI coinTypeB:string;// Amount of coin A amountA:string|number;// Amount of coin B amountB:string|number;// Represents the index of the lower tick boundary tickLower:number;// Represents the index of the upper tick boundary tickUpper:number;// Initial price sqrtPrice:string;// Creator wallet address address:string;// Acceptable wasted amount percentage. Range: [0, 100) slippage:string|number;// Expires timeout(ms), defaults 60_000 deadline?:number;// Custom transaction handler txb?:Transaction;}
fee
fee will affect price precision. Now mainnet exist some different type fee type, they correspond to different fee rates and tick_spacing.
coinTypeA
Is a base token, such as turbos, wal
coinTypeB
is a quote token, It is recommended to use highly liquid token, such as sui, usdc, and usdt as quote tokens, which is conducive to the display and calculation of prices.
amountA
the amount about coin A, which used to add liquidity.
amountB
the amount about coin B, which used to add liquidity.
tickLower
Represents the index of the lower tick boundary.
tickUpper
Represents the index of the upper tick boundary.
The tick index must satisfy the condition: -443636 < tickLowerIndex < currentTickIndex < tickUpperIndex < 443636, where 443636 is a constant derived from the maximum range of the Q32.62 fixed-point number format. Additionally, the tick index should be an integer multiple of tickSpacing. If not, the contract will trigger an error.