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.
ixQueueWithdrawal method builds a transaction instruction that moves LP tokens into escrow and creates a withdrawal account — the first step in the two-phase withdrawal process.
Usage
Required Parameters
| Parameter | Type | Description |
|---|---|---|
depositor | PublicKey | The depositor’s wallet public key |
lpAmount | bigint | number | Amount of LP tokens to lock for withdrawal |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
tokenLpSrc | PublicKey | Source LP token account. Defaults to the depositor’s ATA for the LP mint |
tokenLpEscrow | PublicKey | LP token escrow PDA. Defaults to the vault’s LP escrow |
tokenProgram | PublicKey | Token program. Defaults to TOKEN_PROGRAM_ID |
systemProgram | PublicKey | System program. Defaults to SystemProgram.programId |
Returns
Returns{ ix: TransactionInstruction, withdrawalKeypair: Keypair }.
ix— the instruction that creates the withdrawal account and moves LP tokens to escrowwithdrawalKeypair— a freshly generated keypair whose public key is the withdrawal account address. Must be passed as a signer in the transaction.
Next Step
After queuing, the vault manager callsfillWithdrawal to associate the underlying token accounts with your request. Once filled, call executeWithdrawal.