Documentation Index
Fetch the complete documentation index at: https://v2-docs.exponent.finance/llms.txt
Use this file to discover all available pages before exploring further.
createAddLiquidityInstruction
Builds a raw instruction to add liquidity to an existing LP position within its current tick range. This increases the position’s liquidity by depositing additional PT and SY tokens into the pool at the position’s previously defined tick boundaries.Usage
Accounts
| Name | Type | Signer | Writable | Description |
|---|---|---|---|---|
owner | PublicKey | Yes | Yes | Wallet providing liquidity |
market | PublicKey | No | Yes | The CLMM market account |
ticks | PublicKey | No | Yes | The market tick array account |
lpPosition | PublicKey | No | Yes | Existing LP position account |
tokenPtSrc | PublicKey | No | Yes | Owner’s PT token account |
tokenSySrc | PublicKey | No | Yes | Owner’s SY token account |
tokenPtEscrow | PublicKey | No | Yes | Market PT escrow account |
tokenSyEscrow | PublicKey | No | Yes | Market SY escrow account |
addressLookupTable | PublicKey | No | No | Market address lookup table |
tokenProgram | PublicKey | No | No | SPL Token program |
syProgram | PublicKey | No | No | SY program |
systemProgram | PublicKey | No | No | System program |
eventAuthority | PublicKey | No | No | Event authority PDA |
program | PublicKey | No | No | CLMM program ID |
Args
| Name | Type | Description |
|---|---|---|
maxSyInToAdd | u64 | Maximum amount of SY tokens to add |
maxPtInToAdd | u64 | Maximum amount of PT tokens to add |
lowerTickKeyOptional | u32 (optional) | Lower tick key override |
upperTickKeyOptional | u32 (optional) | Upper tick key override |
Returns
TransactionInstruction — a transaction instruction ready to be added to a transaction.