Emergency admin
UI for executing Emergency Admin function is located at https://permissionless-safe.gearbox.foundation/emergency/
Why is it needed?
The Emergency Admin role has a very limited set of actions that can be executed immediately, without a timelock. These actions are designed to let curators respond quickly to incidents and protect the solvency of the market.
How to add an emergency admin?
Only one address can have Emergency Admin role. It is set at the moment of creating a Market Configurator.
It can be configured in Curators' UI for the existing Market Configurator:
What are the available functions, its scope and impact?
Token Limit = 0 Impact: Asset (Pool)
❌
⚠️
✅
✅
✅
Forbid Adapter Impact: Adapter (CM)
⚠️
✅
✅
❌
⚠️
CM debt limit = 0 Impact: CM
❌
⚠️
✅
✅
✅
Forbid borrowing Impact: CM
❌
❌
✅
✅
✅
Set Main Feed Impact: Asset (Pool)
✅
✅
⚠️
⚠️
⚠️
Forbid Token Impact: Collateral (CM)
❌
❌
❌
❌
✅
Pause CM Impact: CM
❌
❌
❌
❌
❌
Pause Pool Impact: Pool
❌
❌
❌
❌
❌
Emergency scenarios
Emergency Methods Definitions
Token‑Specific
setTokenLimit(token, 0)
Impact Scope: Pool
Sets the quota limit for a token to zero.
Users cannot increase quota in that token, meaning new exposure to collateral can't be created.
Withdrawals, debt increases, and adapter calls for existing positions remain enabled.
forbidToken(token)
Impact Scope: Credit Manager
Highly Restricts allowed operations for accounts.
Operations which decrease HF are blocked (increase debt, withdraw collateral, swap into different collateral with lower LT)
Operations which increase balance of forbidden token are blocked
Liquidations are not impacted.
Feed‑Specific
setMainPriceFeed(token, feed)
Switches the main price feed of a token to another feed pre‑approved in the Price Feed Store.
Target feed must have been added at least 1 day earlier.
Side effects:
If the new main feed equals the current reserve feed, the reserve feed is removed (token ends up with only one feed).
New main price may be low enough to trigger immediate liquidations of Credit Accounts.
Adapter‑Specific
forbidAdapter(adapter)
Disables calls through a specific adapter.
Prevents swaps on DEXes, vault deposits/withdrawals, etc.
Side effects:
If the forbidden adapter highly contributes to some tokens' liquidity, forbidding it may break liquidations, since most of Gearbox's internal liquidators rely on allowed adapters for searching tokens' swap paths. External liquidators may or may not be affected.
Pool‑Global
pausePool(pool)
Pauses pool‑level operations (deposit into pool, withdraw LP tokens)
Designed to be combined with Credit Manager pause to prevent bank runs in the most extremal scenarios.
setCreditManagerDebtLimit(cm, 0)
Sets the Credit Manager debt limit to zero.
Prevents new borrowing capacity from the pool into that CM. Existing positions are not affected.
Credit Manager‑Global
pauseCreditManager(cm)
Pauses all Credit Manager operations.
Borrowing, withdrawing collateral, opening & closing credit accounts, performing adapter calls are blocked.
Only whitelisted Emergency Liquidators can liquidate accounts.
forbidBorrowing(cm)
Forbids opening new accounts in the CM.
Prevents increasing debt in existing accounts.
Loss Policy
setAccessMode(mode)
Adjusts who can execute liquidations which result in bad debt accrual.
Modes must be documented (TBD).
setChecksEnabled(flag)
Enables/disables specific safety checks within loss policy.
Last updated