Skip to main content
The instant_withdraw_vault instruction allows a user to withdraw assets from the vault instantly, bypassing the two-step request/withdraw flow. This burns LP tokens directly and transfers the underlying assets in a single transaction.
This instruction will fail with InstantWithdrawNotAllowed if the vault’s withdrawal_waiting_period is not zero. Only vaults configured with instant withdrawals support this instruction.

Discriminator

Parameters

Accounts

CPI Struct

Implementation

The instant_withdraw_vault instruction shares the same parameters as request_withdraw_vault but does not create a receipt account. The LP burn and asset transfer happen atomically in a single transaction.
Full reference implementation: instant_withdraw_vault.rs