Skip to content
ChainBrief

News from across Web3

Why Does My Lending Vault Withdraw in a Set Market Order?

A withdraw queue in a lending vault sets which markets supply your exit first; each market’s free liquidity determines how much you receive and whether it clears.

The ChainBrief Editors

Why Does My Lending Vault Withdraw in a Set Market Order?

A withdraw queue is the ordered list of markets a lending vault checks to fund your withdrawal, because each market holds its own supply and has its own available liquidity.

The order determines which market is drained first and whether the vault can meet your full request right now.

The broader Morpho vaults context adds that these are single-asset pools that allocate funds across separate markets and other supported yield sources. In V1, the withdrawQueue tells the vault where to look when you redeem.

How does the withdrawQueue source a withdrawal?

In a V1 vault, the Allocator sets the withdrawQueue order, and the vault checks it market by market when processing an exit. It takes available liquidity from the first market, then moves to the next until it has enough assets to complete the request.

Say the first market holds the vault’s supply but borrowers have used nearly all of it. The vault can withdraw only the liquidity still available there, then continue down the queue. A market at full utilization contributes nothing immediately, so the vault skips past it and checks the next market.

Allocators often place the most liquid market, or idle assets, near the front. That lets small withdrawals use readily available funds before touching supply lent out elsewhere. The queue can contain up to 30 markets in V1.

If the available liquidity across the queue is less than the requested amount, the V1 withdrawal reverts. The queue sets the order of the attempt; it cannot make borrowers’ funds available sooner. A failed full withdrawal therefore points to a liquidity shortfall at that moment, not necessarily to a problem with the queue itself.

How does this differ from Aave and V2?

Aave withdrawals draw on the available liquidity of one reserve, with no market ordering. A Morpho V1 vault instead draws across isolated markets, so its Allocator’s order affects which markets supply an exit first. With Aave, the relevant question is whether that reserve has enough free liquidity; with a V1 vault, liquidity is checked market by market.

V2 changes the normal route: the vault uses idle assets first, then one configured liquidity Adapter. The Allocator chooses that adapter, while the Curator sets a penalty for forced deallocation. If ordinary withdrawal liquidity runs short, anyone can call forceDeallocate to move available assets from other allocations back to the vault, subject to that penalty. The call can only move liquidity that is actually available in the underlying market.

This means V2 has no V1-style withdrawal queue to walk through. A dry liquidity adapter can limit a normal withdrawal even when another allocation has free liquidity; forceDeallocate provides a route to pull that liquidity back, at the configured cost.

Related

Supply queue vs withdraw queue

The supply queue orders where deposits go; the withdraw queue orders where withdrawals come from. Deposit routing determines where the vault puts new assets, while withdrawal routing determines which allocations it draws down to pay an exit.

What happens when every market in the queue is fully borrowed?

The vault cannot withdraw the borrowed portion on demand. If the remaining available liquidity across the queue is insufficient, the V1 withdrawal reverts; you can try a smaller amount or wait for liquidity to return as borrowers repay.

For a repeatable check, inspect available liquidity market by market and start with the vault’s displayed immediately withdrawable amount. This helps avoid submitting a full exit that the queue cannot currently fill.