# Risks & Mitigations

Using noncustodial DeFi lending infrastructure carries material financial and technical risks, including the potential loss of principal or temporary inability to withdraw. Morfa is designed to reduce operational and liquidity hazards, but **no DeFi protocol can eliminate risk**.

Review each risk category carefully before depositing.

## Structured Risk Matrix

| Risk Category | Description | Mitigation in Morfa |
| --- | --- | --- |
| **1. Smart Contract Risk** | Bugs or vulnerabilities in Morpho Blue, Morpho Vault V2, `MorphoMarketV1AdapterV2`, `AdaptiveCurveIRM`, or `MorfaRebalancer.sol` (Mode A) could cause unexpected behavior or loss of funds. | Mode B relies exclusively on official immutable Morpho Vault V2 & Morpho Blue contracts (multiple tier-1 audits, Certora formal verification, Cantina bounty). Mode A's `MorfaRebalancer.sol` is non-upgradeable, minimal-surface, built on OpenZeppelin v5 primitives, reviewed via Nethermind AuditAgent, and tested against Ethereum Mainnet forks. |
| **2. Collateral & Liquidation Bad-Debt Risk** | If a collateral asset in a Morpho Blue market crashes faster than liquidators can clear debt, bad debt can be socialized across lenders in that isolated market, reducing `mfUSDC` share value (Mode B) or direct supply value (Mode A). | Curated market selection with per-market and shared per-collateral caps in Vault V2; minimum TVL (`≥ 100,000 USDC`) and utilization (`≤ 95%`) on-chain ceilings in Mode A; multi-market diversification in Mode B; instant cap reductions (`0`) and `WithdrawOnly` emergency flags. |
| **3. Oracle Risk** | Morpho Blue markets depend on immutable price oracles to value collateral and trigger liquidations. A misconfigured, stale, manipulated, or zero-returning oracle can cause bad debt or freeze markets. | Oracle addresses are surfaced directly with Etherscan links in the UI; off-chain scanner verifies live positive oracle responses before allocation; broken or zero oracle responses automatically trigger **Smart Emergency Evacuation**. |
| **4. Utilization & Withdrawal Liquidity Risk** | When borrower demand pushes a Morpho Blue market toward `100%` utilization, free USDC liquidity drops to zero and lenders cannot withdraw until borrowers repay or new liquidity arrives. | `95%` post-deposit utilization ceiling; free-liquidity depth screening before allocations; dynamic **Liquidity Adapter** selection in Mode B; automated **Smart Emergency Evacuation** (including partial exits) on sustained extreme utilization; protocol-level `forceDeallocate` and in-kind redemption fallback on Vault V2. |
| **5. Curator & Governance Configuration Risk** | Privileged governance misconfiguration or key compromise could alter curated markets, caps, or fee parameters. In particular, certain live Vault V2 settings (such as `setPerformanceFee`, `setManagementFee`, `setIsAllocator`, `decreaseTimelock`, `setSendAssetsGate`, `setForceDeallocatePenalty`) currently carry a `0s` timelock. | Role separation divides Owner, Curator, Default Admin, and operational worker keys; Mode B adapter/cap expansions enforce a **`7-day` timelock** and permanently **abdicated** adapter registry & share/receive-asset gates; Mode A enforces an **immutable `48-hour` timelock** on market additions, fee increases, and recipient changes, plus personal on-chain user guardrails (`maxFeeBps`, `cooldown`, `periodFeeCap`). No role can withdraw user funds to an arbitrary address. |
| **6. Variable Rate & Merkl Campaign Risk** | Native USDC supply APY fluctuates continuously with borrower demand. External Merkl token incentives are controlled by third parties and can decrease, change tokens, or terminate without warning. | Native USDC Yield (`Variable APY · 6h average`) and Merkl Incentives (`Variable APR · 6h average`) are strictly separated; off-chain optimization conservatively discounts Merkl APR and models post-move `AdaptiveCurveIRM` rate impact before moving capital. |
| **7. `setAuthorization` Scope Risk (Mode A Only)** | `Morpho.setAuthorization` is wallet-wide in Morpho Blue. Any wallet that also manages open Morpho Blue borrows or collateral shares authorization scope at the Morpho layer. | `MorfaRebalancer.sol` is immutable and contains no `borrow` or `withdrawCollateral` functions; UI auto-detects open borrow/collateral positions and warns users to use a separate dedicated wallet or **Mode B (`Morfa Vault`)**, which requires zero `setAuthorization`. |
| **8. Keeper, Frontend & Infrastructure Liveness Risk** | If `morfa.finance`, PostgreSQL telemetry, or `morfa-worker` experiences downtime, automated rebalancing pauses temporarily and historical logs may be unavailable. | User funds remain completely unaffected on-chain. UI degrades gracefully without PostgreSQL using live Morpho/Merkl REST reads; worker reconciles pending transactions cleanly on restart; users retain zero-dependency exit paths via [Independent Exit](/guides/independent-exit). |
| **9. USDC Issuer & Counterparty Risk** | Morfa allocates Circle's **USDC** (`0xA0b8...eB48`). De-pegging, issuer blacklisting, or regulatory restrictions on USDC affect all Ethereum USDC protocols. | Noncustodial architecture ensures users hold direct claims on USDC inside Morpho contracts and can withdraw independently at any time (subject to available market liquidity). |

***

## No Deposit Insurance

Depositing into Morfa Vault or Morpho Blue is **not** a bank deposit and is **not covered by FDIC, SIPC, or any government or private deposit insurance**. Only supply USDC you can afford to allocate to experimental on-chain DeFi software. See [Terms, Attribution & Disclaimers](/legal/disclaimers) and [Morpho Disclaimers](https://morpho.org/disclaimers/).
