Each strategy monitors their losses during investment cycles. If a strategy starts losing money, they automatically go to Emergency Shutdown Mode to save money from bigger losses.

Emergency Shutdown Mode

The Emergency Shutdown Mode - is a state in which the strategy tried to withdraw all funds as quickly and cost-effectively as possible. To activate the strategy, the back Eonian core team will manually check and review the strategy and protocol state, understand what causes losses, and if they cannot occur and market conditions are restored again, reactive strategy.

For Developers

How it works

Eonian strategies work in polling lending protocol mode every 6 hours (more details in a Strategy lifecycle documentation). Strategies get profit, debt, loss, and gas cost parameters to decide if it should harvest profit.

In some sporadic cases, significant losses are possible, for instance, in case of emergency in market conditions.

There are three possible cases:

Emergency shutdown strategy sequence diagram.drawio.png

In the picture above, the scheme for the whole flow. The details are below:

  1. Check the cost of this transaction — ${transaction_cost}
  2. Get the profit or loss number — ${profit} and ${loss}