Get E-Mode category

Get E-Mode category on Spark

Ethereum
Ethereum

Reads onchain state

Ready to run on Base

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.

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 ยท 1