# Pauses & Incident Response

When an underlying collateral market, oracle, or contract condition degrades, Morfa's emergency controls are designed to **stop new exposure immediately while never locking users out of their own exits or safety switches**.

***

## Emergency Controls by Mode

### Mode B (`Morfa Vault V2 / mfUSDC`)

Morpho Vault V2 does **not** have a global user-withdrawal freeze button. Instead, incident response operates through immediate risk-reduction powers held by the Curator (`0xf4B7...20d7`) and Sentinels (`0x9f28...F0d8`, `0x2c7C...DCAc`):

* **Instant cap reduction (`decreaseAbsoluteCap` / `decreaseRelativeCap`):** Can lower any affected market's cap to `0` immediately (zero timelock). Lowering a cap blocks new allocations into that market and signals `morfa-worker` to begin immediate **Smart Emergency Evacuation** of existing vault funds out of that market into safer liquid markets.
* **Instant pending-action revocation (`revoke`):** Sentinels can cancel any timelocked adapter addition or cap increase before it matures.
* **User withdrawals remain open:** Depositors can withdraw or redeem `mfUSDC` directly on Vault V2 (via `morfa.finance`, [Morpho App](https://app.morpho.org/), or Etherscan) subject to available market liquidity, or use Morpho Vault V2's `forceDeallocate` / in-kind exit paths.

### Mode A (`MorfaRebalancer.sol`)

In Mode A, both `DEFAULT_ADMIN_ROLE` and `SENTINEL_ROLE` (Worker EOA) hold two instant emergency tools:

1. **`disableMarketDeposits(marketId)` (`Active → WithdrawOnly`):**
   * Immediately blocks any new rebalances **into** the affected market.
   * Allows the keeper to keep evacuating user positions **out of** the affected market into safer `Active` markets.
   * **Automatically sets the protocol rebalance fee to `0 bps` (`0%`) on-chain** for every evacuation exiting that `WithdrawOnly` market.
2. **`pause()`:**
   * Immediately halts all keeper rebalancing (`rebalance` and `rebalanceBatch`).
   * Only `DEFAULT_ADMIN_ROLE` can call `unpause()` (`SENTINEL_ROLE` can only pause, never unpause).

***

## What Remains Callable While `MorfaRebalancer` Is Paused?

A pause on `MorfaRebalancer.sol` **never** traps your funds or prevents you from revoking permissions or adjusting your guardrails.

| Action / Function | Contract | Callable While `MorfaRebalancer` Is Paused? |
| --- | --- | --- |
| **`disable()`** | `MorfaRebalancer` | **Yes (always open).** Sets `enabled = false` and increments `configVersion`. |
| **`setConfig(...)`** | `MorfaRebalancer` | **Yes (always open).** Update `maxFeeBps`, `cooldown`, `periodFeeCap`, or `enabled`. |
| **`claimFees()`** | `MorfaRebalancer` | **Yes (always open)** (for `feeRecipient` / Admin; accrued fees only). |
| **`setAuthorization(rebalancer, false)`** | `Morpho Blue` | **Yes (always open)** (independent immutable Morpho contract). |
| **`withdraw(...)`** | `Morpho Blue` | **Yes (always open)** (subject to market free liquidity). |
| **`withdraw(...)` / `redeem(...)`** | `Morfa Vault V2` | **Yes (completely unaffected)** (independent Morpho Vault V2 contract). |
| **`claim(...)`** | `Merkl Distributor` | **Yes (completely unaffected)** (independent Merkl contract). |
| **`enableWithSig(...)`** | `MorfaRebalancer` | **Yes (always open)** (saves config; keeper execution remains halted while paused). |
| `rebalance` / `rebalanceBatch` | `MorfaRebalancer` | **Blocked** while paused. |

***

## Automated Worker Incident Behavior

Even before manual governance intervention occurs, `morfa-worker` monitors live market health continuously:

* If a market's oracle stops returning a positive price or utilization stays critically illiquid across consecutive cycles, the worker triggers **Smart Emergency Evacuation** automatically, lifting routine profitability thresholds and allowing partial withdrawals whenever free liquidity appears.
* If upstream Morpho REST, Merkl v4, or RPC verification data becomes unavailable or inconsistent, the worker **fails closed** and avoids speculative reallocations until clean single-block verification resumes.

For direct step-by-step instructions to exit manually during any incident, see [Independent Exit (Without Morfa)](/guides/independent-exit).
