

Reads onchain state
Reads the Sky-governance-set supply cap of an asset in a Spark 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.
Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.
More on Spark · 25


























On other protocols · 2