TheDocumentation 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.
ixWrapperProvideLiquidity method on the MarketThree class provides liquidity to the CLMM pool using base assets. It wraps the base into SY, strips SY into PT and YT, adds liquidity with the PT, and returns YT and LP tokens to the depositor in a single atomic operation.
Usage
Required Parameters
| Parameter | Type | Description |
|---|---|---|
depositor | PublicKey | The depositor’s wallet public key |
amountBase | bigint | Amount of base asset to provide |
minLpOut | bigint | Minimum amount of LP tokens to receive |
lowerTickApy | number | Lower bound APY for the liquidity range |
upperTickApy | number | Upper bound APY for the liquidity range |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
tokenSyDepositor | PublicKey | Intermediate SY token account. Defaults to depositor’s ATA |
tokenYtDepositor | PublicKey | Destination YT token account. Defaults to depositor’s ATA |
tokenPtDepositor | PublicKey | Intermediate PT token account. Defaults to depositor’s ATA |
tokenBaseDepositor | PublicKey | Source base token account. Defaults to depositor’s ATA |
lpPosition | Keypair | PublicKey | LP position account. Defaults to a generated Keypair |
Returns
Returns aPromise<PreparedInstruction> with the following structure:
setupIxs array contains instructions to create the necessary associated token accounts (ATAs) for SY, YT, and PT tokens. The ixs array contains the flavor pre-instructions, the provide liquidity instruction, and the flavor post-instructions. If lpPosition was not provided, signers will contain the generated LP position keypair.