
Aave V4 · Reads onchain state
Reads the most of an asset an Aave V4 hub lets one spoke draw on its behalf. Caps in V4 live on the hub per asset and per spoke, not on the reserve: the hub's config for the pair carries the add cap and the draw cap in whole tokens, with the largest representable value meaning the spoke is uncapped. The borrow cap is the draw cap, enforced against everything the spoke has drawn plus its accrued premium and any deficit it carries; a borrow that would push past it reverts. Reach for it with the spoke's total borrowed to compute how much more can be drawn through this spoke before you size a borrow, or to route a borrow to a spoke that still has headroom.
On other protocols · 2