
Spark · Reads onchain state
Reads the E-Mode category a reserve is assigned in a Spark market. Spark's pool carries the category on each reserve's configuration word rather than on the category side, 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