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.
ixWithdrawLiquidity method on the MarketThree class redeems LP tokens for PT and SY. You specify the LP position to withdraw from, the amount of LP to burn, and minimum outputs for slippage protection.
This is a low-level method that returns PT and SY tokens. To withdraw directly to a base asset (e.g., USDC), use
ixWithdrawLiquidityToBase or ixWithdrawLiquidityClassic instead.Usage
Required Parameters
| Parameter | Type | Description |
|---|---|---|
withdrawer | PublicKey | The withdrawer’s wallet public key |
lpIn | bigint | Amount of LP tokens to burn |
lpPosition | PublicKey | The LP position account to withdraw from |
minPtOut | bigint | Minimum amount of PT to receive |
minSyOut | bigint | Minimum amount of SY to receive |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
ptDst | PublicKey | Destination PT token account. Defaults to withdrawer’s ATA |
syDst | PublicKey | Destination SY token account. Defaults to withdrawer’s ATA |