Create pool
Last updated
Last updated
use sdk.pool.createPoolTransactionPayload
method.
currencyA
: coin/fa type of currency token
currencyB
: coin/fa type of currency token
currencyAAmount
: the amount about currency A, which used to add liquidity
currencyBAmount
: the amount about currency B, which used to add liquidity
feeRateTier
: Fee Rate Tier will affect price precision. Now mainnet exist some different type FeeRateTier, the correspond to different fee rates.
currentPriceTick
: The tick corresponds to the current price.
tickLower
: The tick corresponds to the lower price.
tickUpper
: The tick corresponds to the upper price.
SDK provided a util function `priceToTick` for the calculation from price to tick.
-443636 <
tickLowerIndex
< currentPriceTickIndex<tickUpperIndex
< 443636, 443636 is a constant, derived from the maximum range representable by the Q32.62 fixed-point number format.Currently, creating a pool requires adding bidirectional liquidity.
slippage
: slippage value. 0.1 means 0.1%
1
0.01%
5
0.05%
60
0.3%
200
1%