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:
- The Zyfai team is alerted about a DeFi hack, depeg, key compromise, liquidity issue, or collateral backing concern.
- Impacted pools are identified across all supported protocols.
- Affected pools are switched from live to not-live.
- The Agent exits all positions from flagged pools.
- 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:
| Incident | Threat | Outcome | Post-mortem |
|---|---|---|---|
| Stream Finance exploit | Protocol mismanagement leading to bad debt and collateral depeg | Funds exited before losses affected Zyfai users | Link |
| Resolv exploit | Operational security failure resulting in compromised protocol key | Positions were rebalanced to safer pools | Link |
| Aave / Kelp DAO event | Operational security failure, unbacked token minting created liquidity trap after USDC was borrowed against a hardcoded oracle | The Agent exited impacted pools before the liquidity trap formed | Link |
In each case, automated monitoring combined with human risk override helped move user capital away from unsafe conditions before losses reached Zyfai users.