Get asset status

Get asset status on Spark

Ethereum
Ethereum

Reads onchain state

Ready to run on Base

Reads whether a Spark reserve is active, frozen, paused, borrowable, and usable as collateral. The reserve configuration bitmap is decoded into five booleans: isActive, isFrozen, isPaused, isBorrowingEnabled, and isCollateralEnabled, the last derived from a non-zero LTV. These are the switches Sky governance flips when it lists, freezes, or winds down an asset, and each changes what the pool will accept. Reach for it to guard a supply or borrow with a require, so a strategy cannot walk into a frozen or paused reserve and revert deep in the transaction, or to branch into a fallback market when the preferred asset is disabled.

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