Skip to main content
Claim recorded payouts, return any unfilled LP, and close the request. execute_withdrawal returns ExecuteWithdrawalEvent as Borsh return data. Instruction data is one discriminator byte (0x06), followed by Borsh arguments in the order shown.

Authority and conditions

Withdrawal owner signs; request unlock time reached and some LP has been filled. Closes account to owner, returns remaining unfilled LP, transfers allocated payouts.

Accounts

Fixed accounts use zero-based indices. S means signer; W means writable. Unmarked accounts are read-only non-signers.

Arguments

Remaining accounts

Prefix contains one [source W, mint R, owner destination W] triple per STORED fills entry, in fills order; then full AUM accounts. Program derives prefix length as fills.len()*3 and ignores the serialized token_transfer_accounts_until argument. Source must equal stored source_token_account and be vault-owned; destination must be owned by owner. Entire remaining slice participates in AUM lookup. Price inputs must be current for the slot of AUM calculation. These operations recalculate AUM using the supplied accounts. See Refresh AUM for preparation and packing. The original owner can claim after some LP is filled and the claim schedule permits. Claim transfers all payouts, returns any unfilled LP, and closes the request. LP is not burned again. See common accounts for shared PDA conventions.
Each ExecuteWithdrawalFill contains:Token, LP, and AUM amounts use their respective atomic units; timestamps are Unix seconds. Fee rates use 10_000 = 100%.