Get E-Mode category
Get E-Mode category

Spark · Reads onchain state

Reads the E-Mode category a reserve is assigned in an Aave-generation market. Pools of this generation carry the category on each reserve's configuration word, so the id comes straight off the reserve: one read, one mask, with zero meaning the asset belongs to no category. Reach for it when the collateral arrives from an earlier step and coil the id into set E-Mode and the E-Mode config read, so the category stops being a number anyone types.

On other protocols · 1