For institutions
Build lending and borrowing products through your app on Morpho's noncustodial infrastructure. Configure vault roles, access controls and distribution fees, and assess the limits and risks.
Reuse the lending and vault contracts while choosing who controls risk parameters, how users access the product, and how you charge distribution fees.
How Morpho fits together
Markets form the lending layer: Morpho Blue uses variable rates, while Midnight lets makers and takers settle offers at fixed terms. Lenders supply an asset and earn interest from collateralized borrowers, with their position denominated in that asset. Unlike providing liquidity to an automated market maker, lending does not earn trading fees or depend on changing token exposure from market making. It still carries risks specific to onchain lending.
Morpho Vault V2 sits above markets, allocating through adapters within configured roles and caps. It provides vault receipt token accounting, deposits, withdrawals and visible onchain allocations; vault yield is variable. Your app is the distribution layer, connecting users' wallets to markets or vaults, optionally through a Fee Wrapper. API and SDK tooling supports data access and contract integration.
This noncustodial infrastructure lets you focus on your interface, wallets and execution tooling, subject to the role, gate and liquidity limits below. Published security reviews cover specific contracts; check their scope rather than assuming they cover a custom integration or gate.
Who controls what
Vault roles separate administration, risk parameters and execution. Holding one role does not confer the others; assign each explicitly.
| Role | What it controls |
|---|---|
Owner | Sets the vault name and symbol, and appoints or replaces the Curator and Sentinels. It does not inherit allocation powers. |
Curator | Configures permitted adapters, absolute and percentage allocation caps, fees, gates and authorized Allocators. |
Allocator | Moves assets through enabled adapters within curator limits. |
Sentinel | Revokes pending curator actions, lowers caps and returns available assets from adapters to the vault. |
Vault roles alone do not authorize withdrawing another user's assets: withdrawing on that user's behalf requires an allowance against their vault receipt tokens. Allocators can only allocate through adapters and within caps enabled by the Curator. Adding adapters and raising caps use per-action timelocks, but these can be set to zero; a Sentinel can revoke pending timelocked actions, not reverse completed ones. Separating roles and using nonzero delays gives users and monitors time to respond before configuration changes execute, not protection from all losses. Where supported by the underlying positions and permitted by gates, users can use forceDeallocate to return assets from an adapter to the vault, then withdraw or redeem; a penalty may apply, which can be zero.
Gates
Vault gates
Morpho Vault V2 can restrict deposits, receipt or transfer of vault receipt tokens, and exits separately to approved wallets. Gates are external contracts checked by the vault during the relevant actions. For an allowlist gate with separate administration and whitelister permissions, the basic flow is:
- Deploy the gate contract and designate its administrator (
roleSetter). - That administrator assigns whitelister permissions to the operators who will maintain the allowlist.
- Whitelisters add the approved wallets, including existing holders of vault receipt tokens if the vault already holds deposits, and management and performance fee recipients even if they hold no vault receipt tokens yet. An exit gate on sending vault receipt tokens checks the holder; an exit gate on receiving assets checks the wallet that receives the withdrawn assets, which can differ from the holder. Before step 4, query the exit gates for each holder and withdrawal receiver, or test a withdrawal with the gates active on a fork or staging vault; this checks exits only. Separately check fee recipients against the receive-shares gate: accrued fees are not minted to recipients it blocks.
- The
Curatorsubmits the gate change; after the applicable timelock, which can be zero, anyone can execute it. Before the delay ends, whitelisters must keep the allowlist complete for holders, fee recipients and withdrawal receivers, including new holders and changed payout addresses. If it is not ready, theCuratoror aSentinelmust revoke the pending change before it executes. Once active, the vault checks the gate during restricted actions, and whitelisters keep the allowlist up to date.
Vault roles and gate administration are separate permissions: holding Owner or Curator does not itself make an address a gate administrator or whitelister. Allowlist updates follow the gate's permissions, not the vault timelock. Configure restrictions to keep eligible users' exit path usable; see the gate guide for the mechanics and exit limitations.
Market gates
Morpho Blue has no contract-level gates: its markets are public. Your app and the Morpho interface can screen users at the interface level, but other interfaces and direct contract calls reach the same markets. Screening your users does not establish who else participates, how other wallets were screened or where assets originated.
Midnight contracts can restrict who enters a market or who takes an offer, through these options:
| Option | What it does | Limits |
|---|---|---|
| Approved counterparties on Midnight | Screen users and select makers (offer creators) offchain through an offer selection flow. PriceRatifierV1 can restrict an offer to a designated taker. | The ratifier enforces the selected pair onchain, not the offchain screening itself. Other offers and users can settle in the same market and share its liquidity. |
| Separate Midnight market with its own Market Gate | An entry gate restricts who can increase credit or debt, regardless of interface. | Gate addresses are fixed at market creation; allowlist whitelisters can still add or remove wallets. A different gate contract requires a separate market with separate liquidity to establish. Direct repayment and withdrawal of available assets do not check the entry gate, but selling credit through an offer (take()) checks the buyer's eligibility if settlement increases their credit. A liquidator gate can restrict liquidators; too few available liquidators can delay resolution. |
Choose an ownership model
Both models can be offered through your app, with different control over branding, oversight and the curation relationship:
- Distributor-owned: your institution holds
Ownerand engages a curator as a service provider. You can replace theCuratorwithout replacing the vault and appoint your ownSentinel. Fees can be shared with the curator through an onchain fee splitter, an offchain agreement, or both. - Curator-owned: an external curator holds both
OwnerandCurator. Your institution distributes the vault but relies on that provider's operating standards and agreed reporting; distribution alone gives no appointment powers.
These models use the same documented role permissions.
Fee Wrapper for a curator-owned vault
Every Morpho Vault V2 can charge management and performance fees, set by its Curator within fee caps and timelocks. A vault you own (distributor-owned) can charge fees without a wrapper, but the Curator you appoint sets them, unless you hold that role yourself. If you distribute a vault you don't own (curator-owned), its curator sets its fees. To add your own, offer it through a Fee Wrapper: a vault you own that allocates only to the curator's vault. Your users deposit into the wrapper, which deposits into the underlying vault. You set fees and access rules on the wrapper; the curator keeps control of the underlying vault.
The standard wrapper is fixed to one underlying vault at deployment. Owning it gives no power to replace the underlying vault's Curator or change that vault's caps. Wrapper settings remain subject to configured timelocks and permanently disabled powers. Fees and access restrictions can apply at both levels; gates must accommodate the connecting adapter. Fee Wrappers can't be qualified as noncustodial: their users' ability to withdraw depends on the gates and liquidity settings of the vault they wrap, which neither the Fee Wrapper nor its users control. See Fee Wrapper gates.
To compare revenue models, including Fee Wrappers, onchain fee splitters and offchain agreements, see how distributors generate revenue.
Risk management and security
| Area | What to assess |
|---|---|
| Core contracts | The security programme includes audits, formal verification and a bug bounty, with reports published. These measures do not eliminate exploit risk. |
| Protocol governance | Governance cannot upgrade immutable core lending code or change existing markets' fixed parameters. Remaining powers include protocol fees within fixed caps, approving Blue interest-rate models and LLTVs, and enabling Midnight LLTVs and liquidation cursors for market creation. |
| Vault operations | Assign accountable owners for vault approval, collateral assessment, role keys, fees, configuration monitoring and incident response. Vault role holders act only within their assigned permissions. |
| External dependencies | Identify oracle, token and custody providers and any administrator powers. Those controls are separate from Morpho governance; outages, freezes or compromised keys can affect repayments and withdrawals. |
Contract exploits, curator or key compromise, oracle failure and token or custody outages can cause principal loss, block liquidations or delay repayment and withdrawals. Emergency actions may include stopping new business in your app, reducing caps, returning available liquidity or replacing a failed curator through the appropriate role. Configuration and available liquidity limit those responses; recovery is uncertain.
Listing is not due diligence
The interface listing policy covers curator applications, technical vault checks and ongoing monitoring. It considers accountability, track record, key security, risk processes and continuity planning. Technical checks include deployment sources, adapters, timelocks and protective initial deposits; monitoring can lead to warnings or delisting.
These checks determine interface visibility, not investment approval, comprehensive vault due diligence or participant identity checks. Listing or an absence of warnings is not evidence that a vault is safe. Delisting does not disable its contracts. Apply your own vault-address approval, exit tests and monitoring of collateral, liquidation liquidity, lender concentration and changing exposures.
Oracle and liquidation limits
A faulty oracle can overvalue collateral and cause losses. A reverting oracle can block liquidation and collateral release while debt remains, even when repayment is still possible. Review token-issuer controls and differences between reported asset values and executable market prices.
Test stale asset valuations, closed markets, unavailable liquidators and insufficient repayment-token liquidity, including Midnight maturity and liquidation conditions where applicable. Collateral does not remove the risk of bad debt, and neither returns nor immediate withdrawals are assured.
Start building
- Earn: Distribute Morpho Vaults to your users.
- Borrow: Integrate borrowing at a variable rate on Morpho Blue.
- Fixed terms: Lend and borrow on Midnight, with an integration guide for developers.
- Your own vault: Create and curate a Morpho Vault V2.
Explore the API and SDK for data and integration tools.
Contact the Morpho team to discuss what you want to build.