Jump to content
Today Crypto

Crypto stories, filed each day

Morpho vaults: choosing one for app integration

Choose Morpho vaults for a DeFi app by matching asset and chain, checking curator controls, liquidity, fees and Gates, then testing deposit and exit failures.

The Today Crypto Editors

Morpho vaults: choosing one for app integration

Morpho vaults are curated, single-asset pools, so choose one that fits your app’s asset and chain, has acceptable curator controls and fees, and can meet users’ deposit and withdrawal needs. Your users inherit the vault’s risks and liquidity limits, so test its behavior before you offer it.

Choose for the behavior users will inherit

  • Asset and chain. Confirm the vault’s deposit asset matches the asset your product handles and that the vault is on the chain your app supports, such as Ethereum. A mismatch can stop a user from completing the intended action.
  • Curator and timelock. Review the Curator’s track record and the timelock on changes to the vault’s configuration. The Curator oversees how funds are allocated across markets and other supported yield sources; users need time to respond when relevant changes are scheduled. Identify the Sentinel role and understand how it affects vault operations before integration.
  • Liquidity depth. Compare `maxWithdraw` with the exit sizes your users are likely to request. Morpho vaults implement ERC-4626, including `maxWithdraw`, which reports the maximum shares’ underlying assets a receiver can withdraw under current conditions. A smaller available amount can mean an exit cannot be completed in one transaction.
  • Fees. Read the performance and management fees and who receives each one. Model the effect on the return your app displays; gross yield alone can overstate what a depositor receives.
  • Gates. Vaults V2 can use Gates to restrict who deposits or receives shares. A Gate can reject your app’s contract as the receiver even when the user has the right asset. For readers seeking access to Morpho yield vaults, Morpho vaults provides a way to access Morpho vaults.
  • Failure handling. Do not assume a deposit will succeed. ERC-4626 `maxDeposit` can return 0 when the vault’s caps are full, and a Gate can reject your receiver. Check these conditions before submitting and show a useful error if they block the action.
    1. Your app reads `maxDeposit` for the intended receiver; the result is 0, so it blocks the deposit and explains that the vault currently accepts no more.
    2. After capacity becomes available, the app checks again and prepares the deposit; the Gate rejects the receiver, so the app reports that the receiver is not permitted and does not retry the same request.
    3. After the receiver is accepted, the app submits the deposit; it checks `maxWithdraw` before presenting an exit amount, leaving the user with a realistic view of current withdrawal capacity.

Use this shortlist before launch: asset and chain; Curator and timelock; liquidity depth; fees; Gates; failure handling. Morpho vault risks include allocation and liquidity limits, so keep the checks tied to the vault your app actually integrates.

  • Confirm the asset and chain.
  • Review roles, timelock, fees and Gates.
  • Test `maxDeposit`, deposits and withdrawals against expected user cases.

Related integration questions

How do I use the Morpho SDK?

Start with Morpho’s SDK documentation for the integration surface, then verify that your app handles the vault’s ERC-4626 methods and access restrictions. Check the on-chain limits that govern each action before submitting a transaction.

How do I query vault data from the Morpho API?

Use Morpho’s API to query vault data for discovery and display, then check execution limits such as `maxDeposit` and `maxWithdraw` against the vault contract before relying on them in a transaction flow.

Plan how the app will track and present vaults

How do I monitor a vault's allocation changes after launch?

Track the vault’s allocation data and relevant configuration changes over time. Compare each update with the Curator and timelock assumptions you reviewed, and alert your team when the allocation no longer fits your product’s criteria.

Should my app split deposits across several vaults?

Consider splitting only when each vault independently passes your asset, chain, risk, fee and liquidity checks. A split can spread deposits across allocations, but it also makes balances, fees and exit capacity harder to present as one position.

How do I show users a realistic APY?

Label the yield measure and account for applicable fees. Explain that allocation and available liquidity can change, and avoid presenting a displayed rate as a guaranteed return.