Emergency Controls
Pause states, address freeze, circuit breakers, alerts, standby routes and the playbooks that use them.
Overview
Avana has four stops, all held by each chain's MarketRegistry: a pause state per Hub with a reason, a chain-wide address freeze, circuit breakers per market and per debt reserve, and a market's offboarding status. There is no contract-wide pause, no per-function or per-keeper pause, and no incident clock. Each stop blocks new activity only.
The Emergency Guardian (3-of-5 per chain) and the Aave Protocol Guardian act immediately. The governance Safe reaches the same stops through the AvanaTimelock at the short delay, so new activity can still be stopped within 12 hours if both guardians are unavailable. Lifting a stop through the timelock waits the normal delay.
Roles and delays are described on this page: Governance and Timelock.
What Always Stays Open
No pause, freeze, breaker, configuration drift or offboarding can stop these actions:
- Repayment by anyone, for any account, including repaying everything and withdrawing in one call
- Debt-free withdrawal and partial liquidity removal, and release of a position with no credit
- LP fee collection by the depositor of record
- Liquidation of eligible accounts through the single entry point, open to any caller
- Pending settlement and claims from the payout escrow
- Rescue top-ups: an indebted account adding collateral within its restore amount, except under Paused(MintPathSuspect)
A short or paused Aave V3 Pool does not stop liquidation or borrowing: a liquidation takes no flash loan, and committed operators fund it from their own debt asset. If both swap routes of a pool token into a debt asset fail, every liquidation of that market against that debt reverts with NoRouteAvailable, whoever calls, because no in-kind settlement exists. A guardian trips the market breaker once a fork confirms the approved routes cannot settle valid liquidations at the required size. Once neither route record is usable, the RiskModule refuses new borrowing of that debt in the market, and withdrawals with debt by accounts that owe it, with DebtLiquidationHalted. With no active committed operator left on a chain, new borrowing stops on every Hub of the chain with LiquidationHalted, while liquidation stays open to every address.
Pause States
Each Hub has one state: None, Frozen or Paused, and a Paused Hub carries a reason, General or MintPathSuspect. The state applies to every market and CDP Spoke whose home Hub it is and to every debt reserve the Hub funds. A borrow reads both the home Hub and the debt reserve's funding Hub and applies the stricter state.
| Action | None | Frozen | Paused (General) | Paused (MintPathSuspect) |
|---|---|---|---|---|
| New pledge by an account with no debt | Yes | No | No | No |
| Top-up or re-credit of an indebted account | Yes | Yes | Rescue top-up only | No |
| Borrow | Yes | No | No | No |
| Withdraw or remove liquidity with debt; repay with collateral | Yes | Yes, with every risk check | No | No |
| Repay, repay all and withdraw | Yes | Yes | Yes | Yes |
| Fee collection | Yes | Yes | Yes | Yes |
| Debt-free withdrawal and removal, zero-credit release | Yes | Yes | Yes | Yes |
| Liquidation (any caller) | Yes | Yes | Yes | Yes |
| Pending settlement | Yes | Yes | Yes | Yes |
Blocked calls revert with ApplicationFrozen or ApplicationPaused; under Paused(General) a top-up that is not a rescue reverts with NotRescueTopUp.
- Frozen stops new exposure from new accounts and new debt while everything that reduces risk keeps working.
- Paused(General) also stops withdrawals with debt and every pledge that grows exposure. A rescue top-up stays open, because adding collateral is the cheapest way out of liquidation. A rescue top-up brings an indebted account below the rescue health factor of 1.10 back toward it, within the market's top-up slice.
- Paused(MintPathSuspect) is used when the minting code, the AaveAdapter or Collateralization is suspect. It also refuses every top-up and re-credit, rescue included, so no vault token is minted.
Transitions and Unpausing
| Call | Transition | Who |
|---|---|---|
freeze(hub) | None to Frozen | Freeze guardian at once; timelock at 12 hours |
pause(hub, reason) | None or Frozen to Paused(reason), or a change of reason while Paused | Pause guardian at once; timelock at 12 hours |
unfreeze(hub) | Frozen to None | Pause guardian at once; timelock at 5 days |
unpause(hub) | Paused to None | Pause guardian at once; timelock at 5 days |
freezeAll() | Freezes every Hub of the chain that is in None | Freeze guardian at once; timelock at 12 hours |
pauseAll(reason) | Pauses every Hub of the chain not already Paused with that reason | Pause guardian at once; timelock at 12 hours |
- A call on one Hub never changes another Hub, and nothing on one chain changes the other. Use freezeAll or pauseAll when the cause lies in code every Hub of the chain shares.
- Unfreezing while Paused reverts with CannotUnfreezeWhilePaused, so a weaker lift cannot silently skip the stronger state. A chain-wide call that changes no Hub reverts with NothingToChange.
- A key holding only the freeze role can never undo a freeze, an address freeze or a breaker trip.
- The pause state has no on-chain expiry. A guardian that keeps a Hub paused against governance stops only new activity, and its role can be revoked by a role-change operation that only the Aave governance executor can cancel. The other guardian can unpause at once in the meantime.
- Each change emits
PauseStateChanged, and each new reason emitsPauseReasonChanged.
Address Freeze
A guardian can freeze one wallet at once with freezeAddress, so an exploiting address loses new activity within minutes without pausing every user. The timelock can do the same at the short delay.
| A frozen wallet cannot | A freeze never blocks |
|---|---|
| Pledge or re-credit, except as a rescue top-up | Repayment, by the wallet or by anyone for it |
| Borrow, or receive a borrow | Debt-free withdrawal and removal, repay all and withdraw |
| Withdraw or remove liquidity with debt, or repay with collateral | LP fee collection and zero-credit release |
| Create a new Position Proxy | Pending settlement and payout-escrow claims |
| Call liquidate directly as the caller; a liquidation it sends through the public flash liquidation helper still runs | Liquidation of the frozen wallet's own positions |
- Each caller can freeze at most
MAX_ADDRESS_FREEZES_PER_DAY= 20 addresses in any rolling 24 hours, counted in one-hour buckets, so a compromised guardian cannot freeze users in bulk and the other guardian keeps its full allowance. - Protected addresses cannot be frozen: the timelock, the Aave governance executor, every Avana contract, vault token, LPOracle and DebtOracle, every Hub, approved Spoke and Avana Umbrella, every debt asset, the flash source of repay with collateral and the Aave V3 Pool, every recorded swap route and every registered proxy.
- A guardian can freeze any committed operator, including the last active one, with no floor check. While no active committed operator remains, new borrowing stops on every Hub of the chain and liquidation stays open to every address that is not frozen.
- A freeze binds only the direct caller. A frozen address that liquidates through the public flash liquidation helper reaches LPVaultSwap as the helper and is not stopped, and every check that protects Avana and the borrower still runs. Freezing the public helper itself would stop every caller that uses it. A freeze therefore stops an address's direct calls and removes a frozen committed operator from the keeper floor, but cannot stop an address from liquidating.
- Unfreezing an address takes a timelock operation at the normal delay that only the Aave governance executor can cancel, so the guardian that froze it cannot keep it frozen by cancelling every unfreeze. A freeze has no on-chain expiry.
Circuit Breakers
Breakers apply per market and per (CDP Spoke, debt reserve). The RiskModule evaluates them live on new pledges, borrows and withdrawals with debt, so a condition blocks even if nobody recorded it. Avana's keeper calls the permissionless pokeBreakers every block to record breaches in the MarketRegistry. LPVaultSwap never reads or writes breaker state, so no breaker can slow or revert a liquidation.
Temporary gates
A temporary gate blocks while its condition holds and reopens by itself once the condition is false and gateRecoverySeconds (1,800 seconds, a provisional launch setting within 600 to 7,200) have passed since the last recorded breach.
| Gate | Condition | Blocks |
|---|---|---|
| ORACLE | The collateral price is not Live, a stablecoin leaves the $0.90–$1.02 band, or a debt price is stale, off source or disagreeing | New borrowing and withdrawals that leave debt |
| POOL_SHARE | Avana's combined share of a pool, across all borrowers, ranges and Spokes on the chain, is above the pool's cap. Off by default; it applies only where a pool's listing sets a cap | New borrowing and pledges that increase pool exposure |
| POOL_DEPTH | The pool's in-range liquidity over the TWAP window falls below the listing depth minimum | New pledges and borrowing in the market |
Latched security freezes
A security freeze stays tripped until an authorized reset, because a person must confirm recovery. A market breaker blocks new-account pledges, top-ups that are not rescues, borrowing and withdrawals with debt in that market. A debt breaker blocks borrowing that reserve and withdrawals with debt by accounts that owe it.
| Reason | Trips when |
|---|---|
| DEFICIT | The outstanding deficit of a CDP Spoke's debt reserve exceeds breakerDeficitMax: 10,000 GHO for a GHO reserve, a materiality set at listing for other assets |
| ISSUER | A pool token or debt asset reports itself paused or switches on a transfer fee, read through the issuer probe recorded at listing; a reverting probe counts as tripped |
| CONFIG_DRIFT | The Aave configuration of the market's CDP Spoke differs from what was listed, including the three required reserve settings |
| MANUAL | A guardian or the timelock trips the breaker with tripMarketBreaker or tripDebtBreaker |
- Manual trips: a freeze guardian at once, or the timelock at the short delay.
- Resets with
resetMarketBreakerorresetDebtBreaker: a pause guardian at once, or the timelock at the normal delay. - A reset clears only latched reasons and reverts with
ConditionStillHoldswhile a latched condition other than MANUAL is still true.
Alerts Only
These conditions page on-call but trip nothing on-chain. A reverted liquidation cannot persist a failure count, and an on-chain counter could be fed by a caller to trip it, so monitoring computes them from events and simulations.
| Alert | Threshold | Response |
|---|---|---|
| Price drop | 3% in 2 hours | Guardians decide whether to trip the market breaker |
| Collateral seized | More than 20% of a market's credited units in 1 hour | Treated as a sign of a price exploit or pool failure |
| Swap-route failures | 3 in 1 hour for one market or debt asset | A guardian trips a breaker only once a fork confirms the approved routes cannot settle valid liquidations at the required size |
| Avana's share of a pool | Above 25% across all borrowers and Spokes on the chain | Listing review of the pool's caps |
| Deficits and Umbrella balance | Every new deficit; an Avana Umbrella below its minimum | Coverage within 72 hours; Avana Labs tops the reserve up |
Standby Routes
Each listed token records a standby price route beside its primary and alternate Chainlink routes, checked at listing like the slot it can replace. A pause guardian calls useStandbyRoute(token, slot) to put it in service at once. The Aave governance executor can undo that switch at once with cancelStandbySwitch, and the listed routes come back through a normal-delay operation.
A switch never forces the price Live and never bypasses freshness, validity or the agreement check, so a guardian can only choose among routes the listing reviewed. Each token with a second source also has a standby second source, which a guardian can switch to at once; switching back takes the timelock at the normal delay.
A swap route that fails is disabled at the short delay and restored to its previously approved address at the short delay, an operation only the Aave governance executor can cancel. There is no immediate route block.
Playbooks
Every incident follows the same triage: an alert fires, the on-call engineer confirms it on-chain within 15 minutes, classifies it as one of the playbooks below, pages both Safes and opens an incident log. If it does not yet fit a playbook and new activity is at risk, a guardian first pauses the affected Hub with reason General (P-01), or MintPathSuspect if minting may be involved. A public status note goes out within 1 hour of confirmation and a post-mortem within 7 days.
Each playbook runs on the chain of the incident. On Base, Aave-side steps go through the Base executor and can lag Ethereum, so Base playbooks send the Aave request at detection.
| Playbook | Automatic response | Immediate action |
|---|---|---|
| P-02 Oracle failure, staleness, disagreement or manipulation | The ORACLE gate stops borrowing, withdrawals with debt and new pledges in the market; a failing debt feed stops borrowing that debt. | A guardian switches the failing slot to its standby route; if the standby also fails, the market breaker is tripped while keepers keep liquidating reserves with fresh prices. |
| P-03 Market crash or stablecoin depeg | The stablecoin band and oracle checks stop new borrowing and withdrawals with debt; price drops and seizure surges only alert. | Pause each affected Hub with reason General if more than one market moves, and ask the Aave guardians to freeze the affected reserves; keepers keep liquidating. |
| P-04 Pool or route liquidity drain | POOL_DEPTH, and POOL_SHARE where a pool cap is set, stop new pledges and borrowing; route failures only alert. | Confirm on a fork whether the approved routes can settle at size; only if they cannot, trip the market breaker. Keepers use the backup route and the dead route is disabled at the short delay. |
| P-05 Exploit in progress | Every condition breaker that holds. | Within minutes, pause with MintPathSuspect if minting, the Adapter or Collateralization is suspect, otherwise General; freeze the attacker's addresses; cancel operations the attacker benefits from. The fix is an upgrade at the normal delay. |
| P-06 Malicious or mistaken governance operation | None; the timelock delay is the protection. | Review the calldata within 1 hour and cancel; pause with General if it touches roles or upgrades. |
| P-07 Compromised signer or key | Owner and threshold changes of the governance Safe wait 48 hours. | Cancel every unexpected operation; the Aave governance executor schedules revocation of the compromised roles; a compromised committed operator's key is removed from its Safe or operator helper, its address frozen at once with no floor check, or the operator removed at the short delay while the keeper floor permits; the key holds no power over liquidation that any caller lacks. |
| P-08 Keeper outage or misbehaving keeper | With no active committed operator, new borrowing and withdrawals with debt stop on every Hub of the chain; liquidate stays open to every caller. | The standby keeper takes over, and any address that is not frozen can still liquidate with its own debt asset or through the public flash liquidation helper; freeze a misbehaving operator, which stops its direct calls and removes it from the keeper floor; trip the market breaker on any market left unliquidated past 3,600 seconds. |
| P-09 Bad debt | The DEFICIT breaker freezes borrowing of the reserve above 10,000 GHO outstanding. | The coverage caller covers the deficit from the asset's Avana Umbrella; if the reserve is short, trip the debt breaker and Avana Labs funds it. |
| P-10 Hub liquidity crunch or withdrawal cascade | None on the Avana side; Aave refuses borrows past available liquidity. | Pause with General if new borrowing must stop; keep liquidations running; unpause once utilization is below 90%. |
| P-11 Token issuer action | The ISSUER breaker on every market holding the token and every debt reserve of the asset. | Pause with General if the token is in many markets; ask the Aave guardians to freeze affected reserves; a refused Avana fee or borrower surplus goes to the payout escrow, and the caller's payout is paid directly or the liquidation reverts. |
| P-12 Aave-side incident | The CONFIG_DRIFT check stops new activity. | Follow Aave's incident process; do not unpause until the Spoke matches the deployment manifest. |
| P-13 Frontend or infrastructure compromise | None; the contracts are unaffected. | Take the app offline, warn users, rotate keys and verify the bundle; users exit through a known-good build or a block explorer. |
| P-14 Spoke-setting drift | The market's CONFIG_DRIFT breaker stops new-account pledges, borrowing and withdrawals with debt; seizure stays exclusive to LPVaultSwap. | Ask the Aave Protocol Guardian to freeze the vault-token reserve and set the Spoke's draw caps to 0; trip the breaker manually if no read has yet; the Aave DAO restores the setting. |
| P-15 Flash liquidity short or paused | None; a liquidation takes no flash loan. A flash liquidation helper that cannot borrow reverts before LPVaultSwap is called, and a repay with collateral the flash source cannot serve reverts before any state change. | Committed operators call liquidate directly from their own debt-asset inventory, which covers at least the largest single liquidation the chain's caps allow; a lasting failure of repay with collateral is answered by a reviewed replacement flash source at the normal delay, and liquidation does not depend on it. |
| P-16 Aave halt of a CDP Spoke | Every new activity on the Spoke is refused; repayment, withdrawal and liquidation stop on the Aave side. | Ask the Aave guardians to replace the halt with a reserve freeze and zero draw caps; pause the Hub with General; keepers prepare liquidations for the first block after the lift. |
| P-17 Sequencer outage (Base) | While the sequencer is down, borrowing and liquidation stop; repay and debt-free withdrawal run through L1-forced transactions. For 1 hour after restart, only accounts below health factor 0.95 can be liquidated. | None on-chain; keepers poke every oracle in the first block after restart and clear the backlog in health-factor order. |
| P-18 Uncovered deficit | The DEFICIT breaker stops borrowing the asset on the affected Spoke. | Ask the Aave DAO to set every drawing Spoke's draw cap to 0; publish the uncovered amount and the adjusted share price; the DAO realizes the loss against that asset's suppliers. |
| P-19 LPVault or ledger bug and relisting | None beyond P-05. | Pause every Hub of the chain (MintPathSuspect when minting or custody is suspect); the Aave guardians freeze affected reserves; offboard the affected markets and relist on fixed contracts. |
| P-20 Debt-asset transfer fee switched on | The ISSUER breaker on every reserve of that asset and every market holding it; liquidation continues. | Confirm the breakers show ISSUER and trip any reserve whose probe did not report; the transfer fee on the caller's funding and payout is borne by the caller, never by Avana's fee or the borrower surplus. |
| P-21 Fee recipient blocklisted | No liquidation reverts; Avana's fee goes to the payout escrow. | Schedule a new fee recipient at the normal delay; the treasury claims the escrowed fee to an address it names. |
Guardian powers are rehearsed on a fork with the real Safes of each chain before launch and every quarter.
Example: Circuit Breaker
Example values; each market's parameters are set at listing. Market 1's pool has an illustrative per-pool cap of 1,000 bps.
| Step | What happens |
|---|---|
| 1 | Avana's keeper pokes the breakers every block. At t = 1,000 Avana's share of market 1's pool across all Spokes is 1,040 bps, above the 1,000 bps cap; the MarketRegistry records the breach and emits GateBreached. |
| 2 | A borrow in market 1 reverts with BreakerTripped(1, POOL_SHARE). A pledge that raises pool exposure passes only as a rescue top-up. The borrower can still repay, and LPVaultSwap never reads breakers. |
| 3 | The share falls back below the cap. With gateRecoverySeconds = 1,800 the gate reopens at t = 2,800. |
| 4 | Aave records a 10,000 GHO deficit on the CDP Spoke's GHO reserve, equal to breakerDeficitMax. The next poke latches DEFICIT (BreakerLatched) and GHO borrows revert with DebtBreakerTripped. |
| 5 | After the deficit is covered, the Emergency Guardian calls resetDebtBreaker for the Spoke's GHO reserve (BreakerReset). While the deficit remained, the same call reverted with ConditionStillHolds. |
| 6 | Alerts only, with no on-chain trip: a 3% price drop in 2 hours, more than 20% of a market seized in 1 hour, 3 swap-route failures in 1 hour. Once routes are confirmed unable to settle at size, the guardian calls tripMarketBreaker. |
Example: Guardian Pause
| Step | What happens |
|---|---|
| 1 | A mint-path exploit is suspected. The Emergency Guardian calls pause on the MarketRegistry for the Hub with reason MintPathSuspect, which takes effect immediately and emits PauseStateChanged and PauseReasonChanged. |
| 2 | The app reads the application state and pause reason on-chain: Paused, MintPathSuspect. |
| 3 | Pledge, re-credit, borrow and repay with collateral on the AaveAdapter revert with ApplicationPaused. |
| 4 | Still open: repay by anyone, fee collection, repay all and withdraw, and liquidation through LPVaultSwap. |
| 5 | Once the mint path is cleared, the guardian changes the reason to General: rescue top-ups reopen, while borrowing and repay with collateral stay blocked until the Hub is unpaused. |
| 6 | Recovery: the pause guardian unpauses the Hub, or the AvanaTimelock does at the normal delay. A milder incident uses a Hub freeze, which stops new-account pledges and borrowing, and an address freeze for a single wallet. |
