Get user E-Mode

Get user E-Mode on Spark

Ethereum
Ethereum

Reads onchain state

Ready to run on Base

Reads which E-Mode category an address is currently opted into in a Spark market. The pool returns the category id, with zero meaning E-Mode is off. Because E-Mode changes the LTV and liquidation threshold applied to every asset in the position, this id determines which parameters the rest of a strategy should compute with. Reach for it to branch: set E-Mode only when the position is not already in the desired category, or pass the id into the E-Mode config read to pull the exact risk parameters that currently govern your account.

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