Remove from Specific Bins
Prerequisites
Basic Usage
const pair = await sdk.Pair.getPair(pairAddress);
// Remove from specific bins only
const tx = await sdk.Pair.removeLiquidity(pair, {
positionId: "0x123...abc",
binIds: [8388606, 8388607, 8388609] // Selected bins
});
await sdk.fullClient.signAndExecuteTransaction({
transaction: tx,
signer: keypair
});Method Parameters
Common Strategies
Remove Out-of-Range Bins
Harvest High-Fee Bins
Rebalance Toward Active Price
What Happens
Calculate Before Removing
Gas Optimization
Important Notes
Related Topics
Last updated