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.
ixWithdrawLiquidityClassic method on the MarketThree class withdraws liquidity from the CLMM pool. Unlike ixWithdrawLiquidityToBase which converts everything to base assets, this method returns the PT and SY components separately — the SY portion is redeemed for base, while PT tokens are returned directly to the withdrawer.
Usage
Required Parameters
| Parameter | Type | Description |
|---|---|---|
owner | PublicKey | The owner’s wallet public key |
amountLp | bigint | Amount of LP tokens to withdraw |
lpPosition | PublicKey | Public key of the LP position account |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
tokenSyWithdrawer | PublicKey | Intermediate SY token account. Defaults to owner’s ATA |
tokenYtWithdrawer | PublicKey | Intermediate YT token account. Defaults to owner’s ATA |
tokenPtWithdrawer | PublicKey | Destination PT token account. Defaults to owner’s ATA |
tokenBaseWithdrawer | PublicKey | Destination base token account. Defaults to owner’s ATA |
Returns
Returns aPromise<PreparedInstruction> with the following structure: