Get supply cap
Get supply cap

Aave · Reads onchain state

Reads the governance-set supply cap of an asset in an Aave market. The cap is decoded from the reserve configuration in whole tokens; zero means uncapped. Once total supplied reaches it, the pool rejects further supplies of that asset. Reach for it with total supplied to compute the remaining room and cap a supply amount so it lands rather than reverts, or to require headroom exists before a strategy commits earlier steps toward a deposit.

On other protocols · 1