Docs

Fee Wrapper

Understand how a Fee Wrapper adds a distribution fee layer over a Morpho Vault V2, including gates, deployment, APY, roles, and security for integrators.

What is a Fee Wrapper?

A Fee Wrapper is a Vault V2 configured in a specific, constrained mode that enables distribution channels to add a fee layer on top of an existing Morpho Vault V2.

  1. Main Morpho Vault V2: Handles actual liquidity allocation to Morpho Markets (V1, V2, future versions). This is where yield is generated.
  2. Fee Wrapper: A lightweight Vault V2 that deposits into the main Morpho Vault V2, with the sole purpose of adding a fee layer per customer/distributor.

Key Properties

PropertyDescription
ERC-4626 Mostly CompliantMostly compliant, with shares remaining fully ERC-20. See Vault V2 principles
Immutably BoundBound to a single Morpho Vault V2 at deployment. Can not be changed
Fee FlexibilityOwner can configure performance fees (up to 50%) and management fees (up to 5%)
Simplified ConfigurationRisk management functions are abdicated, making operation simpler
Shared LiquidityUsers share the liquidity of the underlying Morpho Vault V2

Architecture

A Fee Wrapper is deployed with a carefully designed split between immutable, defaulted, and configurable parameters.

Fixed at deployment (addAdapter / removeAdapter abdicated):

  • The single adapter pointing to the underlying Morpho Vault V2
  • The adapter registry lock (no new adapters can ever be added)

Set to recommended defaults:

  • Absolute and relative caps set to maximum values
  • Max rate set to maximum
  • Force-deallocate penalty set to 2% (MAX_FORCE_DEALLOCATE_PENALTY)
  • Liquidity adapter set to the single Morpho Vault V2 adapter
  • All roles (Curator, Allocator, Sentinel) default to the owner

Configurable by the owner:

  • Owner address
  • Vault name and symbol
  • Performance fee (up to 50%) and management fee (up to 5%)
  • Fee recipient address
  • Gate abdication mode (abdicateNonCriticalGates)

Gates

Gates control who can interact with the vault. Each gate is a contract slot that, when set, enforces on-chain rules on a specific action. A Fee Wrapper has four gates:

GateAction it governsCritical?
receiveAssetsGateWho can receive assets on withdrawalYes - can lock assets
receiveSharesGateWho can receive sharesYes - can lock assets
sendSharesGateWho can send/transfer sharesYes - can lock assets
sendAssetsGateWho can deposit assetsNo - cannot lock assets

The three critical gates can prevent users from accessing their own assets if misconfigured. The fourth gate (sendAssetsGate) only restricts who can deposit and cannot lock assets in the wrapper. The underlying vault's gates also apply to the wrapper, see Underlying vault gates.

By default all four gates are set to address(0) (permissionless): anyone can deposit, withdraw, and transfer shares freely.

Permanently abdicate the three critical gate setters at deployment. This locks the wrapper's critical gates to address(0) forever, so no one can set a wrapper gate that restricts user access to assets. This action is irreversible. It does not make the Fee Wrapper non-custodial.

The non-critical sendAssetsGate remains configurable so the curator can still restrict who can deposit post-deployment if needed, without blocking existing users from withdrawing.

Configurable gates

Keep all gate setters configurable and set gate contracts post-deployment to enforce on-chain rules (e.g., KYC whitelists). The curator can set or change gate contracts at any time via timelocked actions.

This lets the curator restrict who can use the wrapper, but the curator keeps the power to block certain users from accessing their assets through the critical gates.

Underlying vault gates

The Fee Wrapper's gates only cover the wrapper itself. Its adapter deposits into and withdraws from the underlying Morpho Vault V2 like any vault user, so the underlying vault's gates apply to the adapter address:

Underlying vault gateEffect if it blocks the adapter
receiveSharesGateWrapper deposits revert
sendSharesGateWrapper withdrawals beyond its idle assets and forceDeallocate revert
receiveAssetsGateWrapper withdrawals beyond its idle assets and forceDeallocate revert
sendAssetsGateWrapper deposits revert

Abdicating the wrapper's critical gates does not stop the underlying vault's curator from setting a gate that blocks the adapter. Check the underlying vault's gates and abdications before deploying a Fee Wrapper on it.

For more details on gates, see the Gates concept page and the Abdicate Gates tutorial.

Use Cases

  • B2B Distribution: Distributors can deploy one Fee Wrapper per customer, each with custom fee configurations
  • Revenue Sharing: Split native yield between the distribution channel and end users (e.g., 50/50 split via fee configuration)
  • White-Label Products: Distributor can offer Morpho yield under their own brand with their own fee structure

Yield and Rewards

Native Yield (Inside ERC-4626 Flow)

Native yield comes from interest paid by borrowers on underlying Morpho Markets. It accrues automatically to shares over time, requiring no separate claim - shares simply appreciate in value. Users withdraw the same token they deposited (e.g., USDC) plus accrued interest. Performance and management fees are applied to this yield.

External Rewards (Outside ERC-4626 Flow)

External rewards (e.g., MORPHO tokens) come from incentives provided by Morpho governance, market creators, or token issuers, and are distributed via Merkl (updated every 8 hours). These rewards require a separate claim action through Merkl and are automatically forwarded to end users by default. It is possible to implement custom distribution. For specific reward routing (e.g., distributor claims rewards instead of users), coordinate with the Merkl team for address remapping configuration.

Deployment

Curator App V2

Use the Curator App V2 to deploy and manage Fee Wrappers. To deploy a new Fee Wrapper, open the Fee Wrapper creation flow.

The Curator App V2 lets you:

  • Deploy a new Fee Wrapper
  • Check whether a Fee Wrapper is properly configured
  • Update fees on an existing Fee Wrapper

Find the factory addresses in the addresses section.

Programmatic Deployment

For programmatic deployments, use the FeeWrapperDeployer periphery contract to create and configure a wrapper in a single transaction.

Roles & Auth Model

All roles default to the owner at deployment:

RoleDefaultDescription
OwnerdeployerTop-level permissions. No timelock on ownership actions.
CuratorownerConfigures vault risk parameters and market allocation strategy. Most actions are timelocked.
AllocatorownerExecutes liquidity allocation within Curator-approved constraints. No timelock on allocation actions.
SentinelownerSafety role. Can revoke pending actions and reduce risk.

Auth tiers:

  • Owner-level: Transfer ownership, set roles - no timelock
  • Curator-level: Change fees, fee recipients, caps - timelocked
  • Allocator-level: Allocate/deallocate to the adapter - no timelock

Security Considerations

What the Owner CAN Do:

  • Change performance fees (up to 50%, timelocked)
  • Change management fees (up to 5%, timelocked)
  • Change fee recipients (timelocked)
  • Add/remove allocators (timelocked)

What the Owner CANNOT Do:

  • Change the underlying vault (abdicated)
  • Add new adapters (abdicated)
  • Remove the existing adapter (abdicated)
  • Access user assets directly