Add to Existing Position
Prerequisites
Basic Usage
const pair = await sdk.Pair.getPair(pairAddress);
const positionId = "0x123...abc";
// Add more liquidity to existing position
const tx = await sdk.Pair.addLiquidity(pair, {
positionId,
amountX: 500000000n, // 0.5 token X
amountY: 1000000000n, // 1 token Y
deltaIds: [-2, -1, 0, 1, 2],
distributionX: [0, 0, 100, 0, 0],
distributionY: [0, 0, 100, 0, 0]
});
await sdk.fullClient.signAndExecuteTransaction({
transaction: tx,
signer: keypair
});Method Parameters
Adding to Same Bins
Expanding Range
Compound Fees Strategy
Add to Specific Bins Only
What Happens
Important Notes
Common Use Cases
Related Topics
Last updated