import { createQueueWithdrawalInstruction } from "@exponent-labs/exponent-sdk/client/vaults";
import { Keypair, PublicKey } from "@solana/web3.js";
const withdrawalAccountKeypair = Keypair.generate();
const ix = createQueueWithdrawalInstruction(
{
depositor: wallet.publicKey,
vault: vaultAddress,
exponentPrices: exponentPricesPda,
withdrawalAccount: withdrawalAccountKeypair.publicKey,
tokenLpSrc: depositorLpTokenAccount,
tokenLpEscrow: vaultLpEscrowAccount,
tokenProgram: TOKEN_PROGRAM_ID,
systemProgram: SYSTEM_PROGRAM_ID,
},
{
lpAmount: BigInt(500_000),
withdrawalType: { token: {} },
}
);