
Aave V4 · Reads onchain state
Reads whether an Aave V4 reserve is paused, frozen, borrowable, and usable as collateral. The spoke's reserve config comes back as booleans rather than a bitmap: isPaused blocks every action on the reserve, isFrozen blocks new supplies, borrows and collateral enablement while withdrawals and repayments still clear, isBorrowingEnabled says whether the hub will draw for it, and receiveSharesEnabled says whether a liquidator may take the collateral as shares. The collateral risk that prices a borrower's premium rides alongside, and isCollateralEnabled is derived from the current dynamic config having a non-zero collateral factor. Reach for it to guard a supply or borrow with a require, so a strategy never walks into a frozen or paused reserve and reverts deep in the transaction, or to branch into another spoke when the preferred reserve is closed.
On other protocols · 2