interfaceCreatePoolOptions{ // From sdk.contract.getFees()fee:Contract.Fee; // Coin type such as 0x2::sui::SUIcoinTypeA:string; // Coin type such as 0x2::sui::SUIcoinTypeB:string; // Amount of coin AamountA:string|number; // Amount of coin BamountB:string|number; // Represents the index of the lower tick boundarytickLower:number; // Represents the index of the upper tick boundarytickUpper:number; // Initial pricesqrtPrice:string; // Creator wallet addressaddress:string; // Acceptable wasted amount percentage. Range: [0, 100)slippage:string|number; // Expires timeout(ms), defaults 60_000deadline?:number; // Custom transaction handlertxb?: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.