
Spark · Reads onchain state
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.
On other protocols · 2