
Aave V4 · Reads onchain state
Reads how much of an asset an Aave V4 hub holds undrawn right now. The hub custodies the token for every spoke that draws on it, so the number is the hub's own liquidity for the asset: what is actually there to fund a borrow or a withdrawal on any of its spokes at this block, net of anything swept out for reinvestment. When it nears zero, suppliers on every spoke wait on repayments and new supplies alike. Reach for it to cap a borrow or withdraw at what the hub can pay out, taking a min with your target, or to require enough liquidity exists before a large withdrawal so the transaction fails early instead of reverting inside the hub.
On other protocols · 3