WithdrawalAccount stores locked LP and ordered token payouts. Discriminator: [99, 174, 238, 154, 176, 204, 20, 246]. Serialized size is 164 + 72 × fills capacity bytes, including discriminator.
Field names below use onchain snake_case; SDK representations generally use camelCase. Amounts are atomic integers unless stated otherwise. Reserved bytes remain part of the serialized layout.
Fields
Payout and opt-out fields
Timing and lifecycle
Ordinary requests are created with a new keypair that signs queueing. OptOut requests use["opt_out_withdrawal", proposal, voter] and set creation time to voting end.
Queue locks LP; each fill burns some LP and records its payout. Percentages apply sequentially to remaining LP. Claim transfers all stored fills, returns unfilled LP if any, and closes the request. It can follow a partial fill once the configured claim time is reached.
Claim transfer accounts follow stored fills order, even when a mint is no longer a current deposit entry. Each source is saved by the fill and owned by the vault; the destination belongs to the original owner.
Cancellation is only for ordinary requests before any fill, after cancellation cooldown. The withdrawal schedule controls claim timing, not cancellation cooldown. Unlock time is calculated from the vault’s withdrawal settings rather than stored in the request.
The SDK’s transformed request type omits opt_out. The public Anchor coder exposes the full layout, using camelCase fields and BN integers:
accountData is the withdrawal account’s RPC data buffer. See Deposits and withdrawals for public builders.