Understanding the Withdrawal Queue
How strict FIFO ordering and partial fills protect LPs.
Strict FIFO Withdrawal Queue (BrokexVault.processWithdrawals)MAX_FIFO_BATCH = 50 · Ring-Fenced Reserves
- Strict Priority:
queueHeadis always settled before any later request. - Ring-Fenced Liquidity: Queued withdrawal reserves (
queuedWithdrawalAssets()) cannot be borrowed by new LONG positions. - Partial Fills: If
idle < assetsOwedatqueueHead, the head receives a partial payout and the loop stops until more USDC is repaid. - Blacklist Fallback: If a direct USDC
transferfails, funds are credited toclaimableUsdc[owner]for manualclaimWithdrawal().