# Roles, Governance & Timelocks

Morfa separates privileged governance from automated execution across both modes. Administrative roles (`Owner`, `Curator`, and `DEFAULT_ADMIN_ROLE`) can be held by any Ethereum wallet (an EOA or a smart contract wallet) and transferred on-chain, while the automated worker EOA holds strictly limited operational and emergency-defense roles.

> Diagram (Governance & RBAC): Mode B Morpho Vault V2 separates Owner (0x9f28...F0d8), Curator (0xf4B7...20d7) with 7-day timelocks on adapters/cap increases/abdicate and permanently abdicated AdapterRegistry & share/receive-asset gates, and Worker EOA (0x2c7C...DCAc) as Allocator & Sentinel. Mode A MorfaRebalancer assigns DEFAULT_ADMIN_ROLE (0x9f28...F0d8) with immutable 48-hour timelocks on market additions, fee increases, and fee recipient changes, plus Worker EOA (0x2c7C...DCAc) with SENTINEL_ROLE and KEEPER_ROLE. Administrative roles can be held by any Ethereum wallet, and no role can withdraw user funds to an arbitrary address.

***

## Live Role Addresses (Ethereum Mainnet)

| Address | Role Group | Mode B (`Morfa Vault V2`) Roles | Mode A (`MorfaRebalancer`) Roles |
| --- | --- | --- | --- |
| [`0x9f2837A11fA450D8122558dD034b871C46DfF0d8`](https://etherscan.io/address/0x9f2837A11fA450D8122558dD034b871C46DfF0d8) | **Owner / Admin / Fee Recipient** | `Owner`, `Performance Fee Recipient`, `Allocator`, `Sentinel` | `DEFAULT_ADMIN_ROLE` (48h 2-step transfer), `feeRecipient` |
| [`0xf4B7d4721216CABA403083074aD4556ae1f520d7`](https://etherscan.io/address/0xf4B7d4721216CABA403083074aD4556ae1f520d7) | **Vault Curator** | `Curator`, `Allocator` (`isSentinel = false`) | N/A |
| [`0x2c7CB5D2f34e547d3EadbeF116f97D2e2A92DCAc`](https://etherscan.io/address/0x2c7CB5D2f34e547d3EadbeF116f97D2e2A92DCAc) | **Automated Worker EOA** | `Allocator`, `Sentinel` | `KEEPER_ROLE`, `SENTINEL_ROLE` |

***

## Mode B: Morfa Vault V2 Timelocks & Abdications

Morpho Vault V2 lets each sensitive governance function have its own on-chain timelock or be **permanently abdicated** (disabled forever on-chain).

The table below reflects the **verified live Ethereum Mainnet configuration** of Morfa Vault V2 (`0xfde07Bd3A0e514e7216239Ecd31c51a2400B99c9`):

| Governance Status | Functions Covered | Meaning for Depositors |
| --- | --- | --- |
| **`7 days` (`604,800s`) timelock** | `addAdapter`, `removeAdapter`, `increaseAbsoluteCap`, `increaseRelativeCap`, `increaseTimelock`, `abdicate` | Expanding market exposure caps or attaching/removing an adapter requires a public **7-day waiting period** on-chain, giving depositors ample time to review and withdraw before changes take effect. |
| **Permanently `abdicated`** | `setAdapterRegistry`, `setSendSharesGate`, `setReceiveSharesGate`, `setReceiveAssetsGate` | Locked forever on-chain. The Adapter Registry (`0x3696...364e`) cannot be swapped, and no transfer or deposit gate can ever be imposed on `mfUSDC` shares or incoming USDC. |
| **Currently `0s` timelock** | `setPerformanceFee`, `setManagementFee`, `setPerformanceFeeRecipient`, `setManagementFeeRecipient`, `setIsAllocator`, `decreaseTimelock`, `setSendAssetsGate`, `setForceDeallocatePenalty` | Executable without a timelock wait by the Curator/Owner wallet under current live settings. See transparency note below. |
| **Instant defense (by Morpho design)** | `decreaseAbsoluteCap`, `decreaseRelativeCap`, `revoke` (pending timelocked actions) | Sentinels and the Curator can immediately lower market caps or cancel pending timelocked actions in an emergency. |

:::warning[Transparent Disclosure on `0s` Timelock Functions]
Under the current live Vault V2 configuration, functions including `setPerformanceFee`, `setManagementFee`, `setIsAllocator`, `decreaseTimelock`, `setSendAssetsGate`, and `setForceDeallocatePenalty` currently carry a **`0s` timelock** controlled by the live Curator address (`0xf4B7...20d7`).

You can independently verify current live role holders, timelocks, and abdication flags at any time on [Morpho App](https://app.morpho.org/) or directly via `timelock(selector)` and `abdicated(selector)` on [Etherscan](https://etherscan.io/address/0xfde07Bd3A0e514e7216239Ecd31c51a2400B99c9#readContract).
:::

***

## Mode A: `MorfaRebalancer.sol` RBAC & Immutable `48h` Timelock

Unlike configurable Vault V2 timelocks, **`MorfaRebalancer.sol`** hardcodes its `48-hour` timelock as an **immutable constant** (`TIMELOCK_DELAY = 48 hours`) and uses OpenZeppelin v5 `AccessControlDefaultAdminRules` (single default admin wallet with a mandatory 48-hour two-step admin transfer).

| Action | Authorized Role | Timelock | Notes |
| --- | --- | --- | --- |
| `queueAddMarket` → `executeAddMarket` | `DEFAULT_ADMIN_ROLE` | **`48 hours` (immutable)** | Whitelisting any new target Morpho Blue market; cancellable via `cancelAddMarket`. |
| `queueSetFeeBps` → `executeSetFeeBps` | `DEFAULT_ADMIN_ROLE` | **`48 hours` (immutable)** | Raising rebalance fee (hard-capped at `MAX_FEE_BPS = 100` / `1.00%`); cancellable via `cancelSetFeeBps`. |
| `queueSetFeeRecipient` → `executeSetFeeRecipient` | `DEFAULT_ADMIN_ROLE` | **`48 hours` (immutable)** | Updating fee recipient address; cancellable via `cancelSetFeeRecipient`. |
| `reduceFeeBps` | `DEFAULT_ADMIN_ROLE` | **Instant (downward only)** | Immediately lowers `feeBps` and cancels any queued fee increase. |
| `disableMarketDeposits` | `DEFAULT_ADMIN_ROLE` or `SENTINEL_ROLE` | **Instant** | Flips market `Active → WithdrawOnly`; forces **`0 bps` (fee-free)** and cooldown-exempt emergency evacuations out of that market. |
| `pause` | `DEFAULT_ADMIN_ROLE` or `SENTINEL_ROLE` | **Instant** | Halts `rebalance` and `rebalanceBatch`. User `disable()`, `setConfig()`, `enableWithSig()`, and `claimFees()` remain open. |
| `unpause` | `DEFAULT_ADMIN_ROLE` | **Instant** | Only the Default Admin can unpause (Sentinel cannot unpause). |
| `rebalance` / `rebalanceBatch` | `KEEPER_ROLE` | **None** | Strictly constrained by user guardrails and on-chain safety checks. |
| `claimFees` | `feeRecipient` or `DEFAULT_ADMIN_ROLE` | **None** | Pulls only accrued fees; never touches user principal. |

***

## What Admin, Curator, Keeper, and Sentinel CANNOT Do

Regardless of mode or which wallet holds an administrative role, the smart contracts enforce strict negative boundaries on every privileged key:

1. **Cannot withdraw user USDC to an arbitrary address:** Neither the Owner/Curator/Admin wallets nor the worker EOA can transfer deposited USDC from Morpho Vault V2 or from any Mode A user wallet to themselves or a third party.
2. **Cannot borrow or remove collateral on Mode A wallets:** `MorfaRebalancer.sol` contains no `borrow` or `withdrawCollateral` code paths and is non-upgradeable.
3. **Cannot block user off-switching or direct Morpho exits:** Even if `MorfaRebalancer` is paused or Morfa's frontend is offline, Mode A users can always call `disable()`, `Morpho.setAuthorization(rebalancer, false)`, and `Morpho.withdraw(...)`. Mode B users can always withdraw or redeem directly on `Morpho Vault V2` via Morpho App or Etherscan (subject to available liquidity).
4. **Cannot bypass Mode A user guardrails:** Even if `feeBps` were raised after a 48-hour timelock, `MorfaRebalancer` still enforces each wallet's individual `maxFeeBps`, `cooldown`, and 30-day `periodFeeCap`.
5. **Cannot deploy Mode B funds outside curated adapters and caps:** The Allocator EOA cannot attach adapters, increase caps, or allocate into unapproved markets.
6. **Cannot override permanently abdicated Vault V2 functions:** `setAdapterRegistry`, `setSendSharesGate`, `setReceiveSharesGate`, and `setReceiveAssetsGate` are permanently locked on-chain.
