How Does a Lending Vault Move Funds Between Markets With Queues?
How lending vaults reallocate funds between markets: queues route deposits and withdrawals, while an allocator shifts assets within curator-set caps.
BitCurrent Newsroom3 min read
A lending vault moves funds between markets through deposits and withdrawals routed by queues, or through an Allocator’s reallocation, with curator-set caps limiting exposure to each market. Those limits let an Allocator pursue better rates while keeping any one market’s allocation within the Curator’s risk boundary.
- Vault size: 1 million USDC
- Amount shifted: 200,000 USDC
- Starting utilization: 60% in one market, 95% in the other
In Morpho vaults V1, the Curator sets a supply cap for each enabled market. The Allocator can call reallocate to withdraw assets from some markets and supply them to others, as long as the new allocations stay within those caps. For Morpho vaults, how Morpho vaults assign roles and route deposits adds the wider roles and deposit-to-withdrawal flow behind this allocation step.
Queues also move allocation during ordinary user activity, without a separate reallocation call. When someone deposits, the vault supplies funds to the first market in its supply queue with room under its cap, then continues down the queue if needed. When someone withdraws, the vault draws funds in withdraw-queue order. That means queue order can shift which markets hold the vault’s assets as deposits and withdrawals come in.
Say the 1 million USDC vault has funds in Market A at 60% utilization and Market B at 95%. Higher utilization tends to push a market’s lending rate up. If the Allocator judges Market B’s rate worth the added exposure, it can move 200,000 USDC from A into B, subject to B’s remaining cap. The transaction withdraws from A and supplies to B; the resulting allocations change the vault’s blended APY.
In practice, an Allocator may use this call when rates or liquidity needs change. The cap still sets the ceiling: if Market B has less than 200,000 USDC of room, the full shift cannot be made without a higher cap. This separates the decision to move funds from the Curator’s decision about how much risk the market may take.
Common questions about reallocation
Can anyone trigger a reallocation through the Public Allocator?
For Vault V2, anyone can request a reallocation through the Public Allocator, but the vault’s authorized allocator configures its boundaries, and existing caps still apply. This is distinct from the Vault V1 Allocator role described above.
How often do allocators rebalance a vault?
There is no fixed schedule in the mechanism. Allocators can rebalance as rates, liquidity needs, and risk limits warrant; queue-driven deposits and withdrawals can also change allocations between rebalances.