Concentrated Pool
Steps to Integration
import { v3RemoveLiquidity, v3PositionManagerApproval } from '@piperx/sdk/src/core'
import { WIP_ADDRESS } from '@piperx/sdk/src/constant'Prepare Input
token1_address: address, // if it is $IP native token, use WIP_ADDRESS
token2_address: address, // if it is $IP native token, use WIP_ADDRESS
tokenId: number // id of the liquidity that you want to remove
liquidity: bigint, // amount of lp token you want to remove to the pool
amount1Min: bigint, // minimal amount of token 1 you want to receive
amount2Min: bigint, // minmial amount of token 2 you want to receive
expire_time: bigint// expiration timestamp for a swap
signer: ethers.Signer.Remove the liquidity
await v3RemoveLiquidity(
token1_address: string,
token2_address: string,
tokenId: number
liquidity: bigint,
amount1Min: bigint,
amount2Min: bigint,
expire_time: bigint,
signer
)Last updated