Add Liquidity
Last updated
Last updated
Once you have set a suitable tick range, you can proceed to add liquidity to this position. The quantity composition of tokens you need to add is affected by the current price of the pool and the tick interval you have chosen.
use sdk.Position.addLiquidityTransactionPayload
method
positionId
: The position id.
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.
slippage
: slippage value. 0.1 means 0.1%.
1
0.01%
5
0.05%
60
0.3%
200
1%