# Morfa Vault (`mfUSDC`)

**Mode B (`Morfa Vault`)** is Morfa's default way to earn variable DeFi yield on USDC. It uses an official ERC-4626 **Morpho Vault V2** smart contract on Ethereum Mainnet (`0xfde07Bd3A0e514e7216239Ecd31c51a2400B99c9`) paired with `MorphoMarketV1AdapterV2`.

## How `mfUSDC` Receipt Tokens Work

When you deposit USDC into Morfa Vault, the vault mints **`mfUSDC`**, a standard **ERC-4626** receipt token, directly to your wallet:

* **Share decimals:** USDC uses `6` decimals, while `mfUSDC` uses **`18` decimals** (`asset decimals + 12` virtual offset, a standard ERC-4626 inflation-attack defense in Morpho Vault V2).
* **Continuous native compounding:** Borrower-paid USDC interest accrues continuously inside the underlying Morpho Blue markets and increases the `mfUSDC` share price (`realAssets() / totalSupply()`). Your `mfUSDC` token count stays constant while each token becomes redeemable for more USDC over time (net of the vault's `5%` performance fee on earned native yield).
* **No `setAuthorization` required:** Depositing and withdrawing in Mode B never touches `Morpho.setAuthorization`. Your Mode B position is completely isolated from any Morpho Blue borrow or collateral positions your wallet may hold.
* **No minimum deposit:** You can deposit any positive USDC amount.

## Depositing USDC

1. Open the **Morfa Vault** panel on [`morfa.finance/portfolio`](https://morfa.finance/portfolio).
2. Enter a USDC amount or click **MAX**. Morfa estimates the `mfUSDC` shares you will receive from the vault's live on-chain share price.
3. Click **Deposit** to inspect the **Transaction Review** modal before signing.

### Permit vs. Approve (EOA vs. Smart Account)

Morfa automatically detects whether your connected address is a standard EOA wallet or a contract-based **Smart Account** (such as a Safe multisig):

* **EOA wallets (default):** Uses a gasless **EIP-2612 Permit** signature followed by a single deposit transaction. If you prefer a traditional approval, uncheck the permit option in the review modal to send an ERC-20 `approve` transaction instead.
* **Smart Accounts:** Automatically skips EIP-2612 permit and prepares a standard ERC-20 `approve` followed by the deposit transaction.

### Built-In Transaction Protections

Every vault deposit and withdrawal bundle prepared by `morfa.finance` via `@morpho-org/morpho-sdk` includes:

* **Share-price slippage protection:** Default **`0.03%`** `maxSharePrice` tolerance on deposits so unexpected share-price movement reverts safely rather than executing at an unfavorable rate.
* **1-hour plan validity:** Prepared transaction plans carry a **1-hour** deadline and block submission if fewer than 60 seconds remain so you never sign a stale transaction.
* **Mandatory pre-flight simulation:** Morfa runs an on-chain `eth_call` simulation before prompting your wallet. If a transaction would revert on-chain, the UI stops and explains why instead of wasting gas.

***

## Withdrawing USDC & Zero-Dust Redemption

There are **no lock-up periods** and **no withdrawal fees** (`0%`). However, like all noncustodial lending protocols, withdrawals are always **subject to available liquidity**.

### Total TVL vs. Ordinary Withdrawable Liquidity

It is important to understand the difference between two metrics shown on `/portfolio`:

* **Total TVL:** All USDC currently deposited in the Morfa Vault across idle reserves and all curated Morpho Blue markets.
* **Ordinary Withdrawable Liquidity:** The USDC immediately available for a standard `withdraw()` or `redeem()` call without manual market deallocation:

```text
Ordinary Withdrawable Liquidity = Idle USDC in Vault + Free Liquidity in Active Liquidity Adapter
```

Morfa's automated allocator keeps the vault's **Liquidity Adapter** pointed at a healthy, liquid curated market so ordinary deposits and withdrawals flow cleanly. Your maximum ordinary withdrawal is strictly bounded by:

```text
Max Ordinary Withdrawal = min(Your Position in USDC, Ordinary Withdrawable Liquidity)
```

### Exact USDC Withdraw vs. `Redeem All (Zero Dust)`

* **Withdraw (by USDC amount):** Burns just enough `mfUSDC` shares to return your exact requested USDC amount.
* **`Redeem All (mfUSDC, Zero Dust)`:** Available whenever your full position fits within Ordinary Withdrawable Liquidity. Burns 100% of your exact `mfUSDC` share balance (`VaultBundlesV1.redeem`) so no fractional dust remains in your wallet.

### What Happens During a Liquidity Shortfall?

If high borrower demand temporarily reduces free liquidity below your desired withdrawal size:

1. Morfa calculates the exact numeric shortfall and shows how much you can withdraw immediately via an ordinary transaction.
2. You can wait for borrowers to repay, new USDC liquidity to enter, or Morfa's allocator to deallocate liquidity from other curated markets.
3. For immediate advanced exits when vault liquidity is binding, **Morpho Vault V2** also supports protocol-level **`forceDeallocate`** and **in-kind redemptions** directly through [Morpho App](https://app.morpho.org/) (see [Independent Exit (Without Morfa)](/guides/independent-exit)).

:::info[Withdrawing Does Not Auto-Claim Merkl Rewards]
Burning your `mfUSDC` shares returns your USDC principal plus accrued native yield, but does **not** automatically claim external Merkl token incentives. Any claimable Merkl rewards remain accessible in the **Merkl Rewards** panel even after your vault balance reaches `0`. See [Merkl Rewards & Claiming](/guides/merkl-rewards).
:::

## Verifying Vault Activity

You can independently verify Morfa Vault V2 balances, allocations, caps, timelocks, and transaction history at any time on:

* **Morfa Portfolio:** [`morfa.finance/portfolio`](https://morfa.finance/portfolio) (including the **Advanced** drawer)
* **Morpho App:** [`app.morpho.org`](https://app.morpho.org/)
* **Etherscan:** [`0xfde07Bd3A0e514e7216239Ecd31c51a2400B99c9`](https://etherscan.io/address/0xfde07Bd3A0e514e7216239Ecd31c51a2400B99c9)
