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.
ixDepositLiquidity method on the MarketThree class creates a new LP position by depositing PT and SY tokens within a specified APY range.
This is a low-level method that requires you to already hold PT and SY tokens. To provide liquidity from base assets (e.g., USDC), use
ixWrapperProvideLiquidity or ixProvideLiquidityClassic instead.Usage
Required Parameters
| Parameter | Type | Description |
|---|---|---|
depositor | PublicKey | The depositor’s wallet public key |
ptInIntent | bigint | Maximum amount of PT to deposit |
syInIntent | bigint | Maximum amount of SY to deposit |
lowerTickKey | number | Lower bound APY for the liquidity range |
upperTickKey | number | Upper bound APY for the liquidity range |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
ptSrc | PublicKey | Source PT token account. Defaults to depositor’s ATA |
sySrc | PublicKey | Source SY token account. Defaults to depositor’s ATA |
lpPosition | Keypair | LP position keypair. Defaults to a generated Keypair |
Returns
Returns an object with:ix— TheTransactionInstructionthat deposits liquiditysigners— The LP positionKeypair(must be included when signing)