# Morfa Docs

Official documentation for Morfa, a noncustodial USDC yield rebalancer on Ethereum Mainnet powered by Morpho.

- [Morfa Documentation](/index.md): Noncustodial USDC yield rebalancer on Ethereum Mainnet powered by Morpho Vault V2 and Morpho Blue.
- [How Morfa Works](/getting-started/how-it-works.md): Follow 1 USDC through Morfa's closed-loop Vault (Mode B) and Direct Wallet (Mode A) architectures on Ethereum Mainnet.
- [Choosing a Mode: Vault vs Direct](/getting-started/modes.md): Side-by-side comparison of Morfa Vault (Mode B, mfUSDC) and Direct Wallet (Mode A, Morpho Blue + MorfaRebalancer).
- [Quickstart](/getting-started/quickstart.md): Connect a wallet on Ethereum Mainnet, review terms, deposit USDC into Morfa Vault or Direct Wallet, and track Merkl rewards.
- [Morfa Vault (mfUSDC)](/guides/morfa-vault.md): Complete user guide to Mode B: depositing USDC, ERC-4626 mfUSDC receipt tokens, slippage protection, ordinary withdrawals, zero-dust redemptions, and Morpho fallback exits.
- [Direct Wallet & Guardrails](/guides/direct-wallet.md): Complete user guide to Mode A: direct Morpho Blue supply/withdraw, personal on-chain rebalancing guardrails, enableWithSig onboarding, and instant revocation.
- [Merkl Rewards & Claiming](/guides/merkl-rewards.md): How external Merkl token incentives work on Morfa Vault and Morpho Blue, Claimable vs Pending states, supported TREE claims, and claiming via the Ethereum Merkl Distributor.
- [Independent Exit (Without Morfa)](/guides/independent-exit.md): Zero-dependency step-by-step guide to withdraw mfUSDC, exit Morpho Blue, revoke MorfaRebalancer authorization, and claim Merkl rewards if morfa.finance or the worker is offline.
- [Yield, Rates & Merkl Methodology](/mechanics/yield-and-rates.md): How Morfa separates Native USDC APY from external Merkl APR, models Morpho AdaptiveCurveIRM dynamics, and handles missing data honestly.
- [Rebalancing & Allocation Engine](/mechanics/rebalancing.md): How Morfa's automated off-chain worker scans Ethereum Mainnet USDC markets, models rate impact, optimizes Mode B Vault allocations, and executes Mode A rebalances safely.
- [Risk Filters & Emergency Evacuation](/mechanics/risk-and-evacuation.md): How Morfa prevents toxic APY traps using layered on-chain and off-chain guardrails and executes automated emergency evacuations when market health degrades.
- [Fees & Gas Economics](/mechanics/fees-and-gas.md): Transparent breakdown of Mode B Vault performance fees, Mode A rebalance fees, worked $1,000 and $100,000 examples, and keeper gas economics.
- [Security Architecture](/security/architecture.md): Noncustodial closed-loop security guarantees across Morfa Vault V2 (Mode B), immutable MorfaRebalancer.sol (Mode A), and pre-flight execution controls.
- [Roles, Governance & Timelocks](/security/governance.md): Complete Role-Based Access Control (RBAC), live Ethereum Mainnet role addresses, Vault V2 timelocks and abdications, and MorfaRebalancer 48-hour timelocks.
- [Morpho Authorization Scope (Mode A)](/security/authorization-scope.md): How Morpho.setAuthorization works in Mode A Direct Wallet mode, why its scope is wallet-wide in Morpho Blue, how MorfaRebalancer restricts it in immutable bytecode, and how to revoke instantly.
- [Risks & Mitigations](/security/risks.md): Comprehensive overview of smart contract, collateral, oracle, liquidity, governance, rate, authorization, keeper, and USDC risks on Morfa and how each is mitigated.
- [Pauses & Incident Response](/security/emergency-and-pauses.md): What happens during a Mode A pause, WithdrawOnly emergency trigger, or Mode B cap reduction, including the exact matrix of user functions that remain callable at all times.
- [Audits & Verification](/security/audits.md): Transparent breakdown of smart contract audit coverage across official Morpho core contracts, OpenZeppelin v5 primitives, and MorfaRebalancer.sol (Nethermind AuditAgent scan, Slither, and Mainnet fork tests).
- [Deployed Contracts & Addresses](/reference/contracts.md): Authoritative registry of Ethereum Mainnet (chainId 1) contracts, live governance and worker addresses, external Morpho and Merkl contracts, and starter curated USDC market IDs.
- [MorfaRebalancer Contract Spec](/reference/morfa-rebalancer.md): User-focused technical specification for MorfaRebalancer.sol (Mode A): immutable constants, UserConfig storage, primary user functions, and role boundaries.
- [System & Data Architecture](/reference/architecture.md): Overview of Morfa's monorepo packages, client-side Morpho SDK v10 transaction flow, server-side API routes, worker telemetry, and graceful degradation.
- [FAQ & Troubleshooting](/reference/faq.md): Answers to common questions about Morfa custody, Mode B vs Mode A, Native APY vs Merkl APR, withdrawals, fees, gas, and troubleshooting transaction issues.
- [Glossary](/reference/glossary.md): Definitions of key Morpho, Morfa, ERC-4626, Merkl, and smart contract governance terms used across the Morfa documentation.
- [Terms, Attribution & Disclaimers](/legal/disclaimers.md): Official protocol boundary between Morfa and Morpho, Powered by Morpho attribution, mandatory user acknowledgment terms, and noncustodial DeFi disclosures.