Skip to main content

Emergency Response

If a supported pool shows signs of elevated risk, the Agent is designed to move capital away from that pool and into safer alternatives.

Zyfai uses two complementary defense layers to protect user positions during DeFi incidents.

1. Autonomous Agent Detection

Most DeFi incidents create one of two risk patterns:

  • Collateral depeg: a collateral asset loses its expected value or backing. This can happen because of excessive token minting, flawed protocol design, compromised keys, or oracle issues.
  • Liquidity trap: a lending market becomes impossible to exit because borrowers cannot repay debt, liquidity dries up, or the pool enters economic insolvency.

The Agent continuously monitors onchain signals for both patterns. When a depeg or liquidity squeeze is detected, it exits the affected position within minutes, before losses spread further through the market.

2. Human-in-the-Loop Override

Zyfai also maintains a human risk override system.

When a major incident occurs, the Zyfai quants team is alerted and can manually flag a pool as not-live on the Risk Dashboard. Once a pool is flagged, the Agent stops allocating capital to it and begins moving existing user positions away from the affected pool.

Response workflow:

  1. The Zyfai team is alerted about a DeFi hack, depeg, key compromise, liquidity issue, or collateral backing concern.
  2. Impacted pools are identified across all supported protocols.
  3. Affected pools are switched from live to not-live.
  4. The Agent exits all positions from flagged pools.
  5. Capital is reallocated to safer opportunities or left unallocated when no suitable alternative is available.

Proven Track Record

This dual-layer system has already protected Zyfai users' capital during real DeFi incidents:

IncidentThreatOutcomePost-mortem
Stream Finance exploitProtocol mismanagement leading to bad debt and collateral depegFunds exited before losses affected Zyfai usersLink
Resolv exploitOperational security failure resulting in compromised protocol keyPositions were rebalanced to safer poolsLink
Aave / Kelp DAO eventOperational security failure, unbacked token minting created liquidity trap after USDC was borrowed against a hardcoded oracleThe Agent exited impacted pools before the liquidity trap formedLink

In each case, automated monitoring combined with human risk override helped move user capital away from unsafe conditions before losses reached Zyfai users.