Withdrawals: Instant vs Queued
The choice the vault makes for you
User calls redeemWithQueue(shares, receiver)
│
▼
┌────────────────────────┐
│ Does the buffer hold │
yes ◄───┤ enough XDC to cover ├───► no
│ shares × NAV? │
└────────────────────────┘
│ │
▼ ▼
Instant redeem in this tx Escrow shares, enqueue FIFO
│ │
▼ ▼
Receive XDC immediately Wait → call claimQueuedAssets laterPath A — Instant redeem
Path B — Queued redeem
How the queue is drained
What replenishes liquidity
Cancelling
Self-claim with claimQueuedAssets
claimQueuedAssetsHow the app uses these paths
Why this design
V2 behaviour
V3 behaviour
Last updated