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.
createWrapperProvideLiquidityInstruction
Provides liquidity to a CLMM market starting from base assets in a single atomic operation. This instruction mints SY from the base asset, strips the SY into PT and YT via the Exponent core program, deposits the PT as liquidity into the specified tick range, and returns the YT tokens to the depositor.Usage
Accounts
| Name | Type | Signer | Writable | Description |
|---|---|---|---|---|
depositor | PublicKey | Yes | Yes | Wallet providing liquidity |
market | PublicKey | No | Yes | The CLMM market account |
ticks | PublicKey | No | Yes | The market tick array account |
tokenPtEscrow | PublicKey | No | Yes | Market PT escrow account |
tokenYtEscrow | PublicKey | No | Yes | Market YT escrow account |
tokenSyEscrow | PublicKey | No | Yes | Market SY escrow account |
tokenSyDepositor | PublicKey | No | Yes | Depositor’s SY token account |
tokenYtDepositor | PublicKey | No | Yes | Depositor’s YT token account |
tokenPtDepositor | PublicKey | No | Yes | Depositor’s PT token account |
mintYt | PublicKey | No | No | YT mint address |
mintPt | PublicKey | No | No | PT mint address |
tokenProgram | PublicKey | No | No | SPL Token program |
marketAddressLookupTable | PublicKey | No | No | Market address lookup table |
syProgram | PublicKey | No | No | SY program |
exponentCoreProgram | PublicKey | No | No | Exponent core program |
lpPosition | PublicKey | No | Yes | LP position account |
systemProgram | PublicKey | No | No | System program |
rent | PublicKey | No | No | Rent sysvar |
eventAuthority | PublicKey | No | No | Event authority PDA |
program | PublicKey | No | No | CLMM program ID |
Args
| Name | Type | Description |
|---|---|---|
| lowerTick | u32 | The lower tick boundary key for the liquidity position |
| upperTick | u32 | The upper tick boundary key for the liquidity position |
| amountBase | u64 | The amount of base asset to provide |
| minLpOut | u64 | The minimum amount of LP tokens to receive |
| mintSyRemAccountsUntil | u8 | The number of CPI remaining accounts used for SY minting |
| depositYtAccountsUntil | u8 | The number of CPI remaining accounts used for YT deposit |
Returns
TransactionInstruction — a transaction instruction ready to be added to a transaction.