Get supply cap
Get supply cap

Aave V4 · Reads onchain state

Reads the most of an asset an Aave V4 hub lets one spoke add 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 supply cap is the add cap; a supply that would push the spoke's added assets past it reverts. Reach for it with the spoke's total supplied to compute how much more the hub will accept from this spoke before you size a deposit, or to require headroom exists ahead of a large supply.

On other protocols · 2