Skip to main content
The request_withdraw_vault instruction initiates a withdrawal by transferring the user’s LP tokens into an escrow receipt account. This is the first step of the two-step withdrawal process.
After calling request_withdraw_vault, the user must wait for the vault’s withdrawal_waiting_period to pass before calling withdraw_vault to claim the underlying assets.

Discriminator

Parameters

Accounts

CPI Struct

Implementation

The request_withdraw_vault_receipt PDA is derived from seeds ["request_withdraw_vault_receipt", vault_key, user_key]. This means each user can have one active withdrawal request per vault at a time.
Full reference implementation: request_withdraw_vault.rs