
Spark · Reads onchain state
Reads which E-Mode category the socket is currently opted into in an Aave 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.
On other protocols · 1