WDK logoWDK documentation
StartWalletsDeFi & FiatAI & CLITools

Lend with Morpho

Use Morpho Vault V2 earn targets and Morpho Blue markets from WDK-compatible EVM accounts.

Community module, maintained independently by third-party contributors. See Legal and Disclaimers.

Use the Morpho lending community module to interact with Morpho Vault V2 earn targets and Morpho Blue markets from WDK-compatible EVM accounts through @morpho-org/morpho-sdk.

Features

  • Vault earn flows: Deposit into and withdraw from configured Morpho Vault V2 targets
  • Market collateral: Supply and withdraw collateral in a configured Morpho Blue market
  • Borrow/Repay: Borrow from and repay a configured Morpho Blue market
  • Requirements API: Surface Morpho SDK approval, signature, and authorization requirements
  • Quotes: Estimate transaction costs before sending
  • Account Reads: Read vault, market, and combined account position data
  • Account Support: Works with standard EVM accounts and ERC-4337 smart accounts

Supported Targets

The module supports curated Ethereum mainnet presets and explicit Morpho target configuration. The package exports MORPHO_VAULT_PRESETS and MORPHO_MARKET_PRESETS; inspect those maps for the complete preset registry shipped with your installed version.

XAU₮ Borrow Preset

OperationPresetTarget
BorrowxautXAU₮ collateral

For vault operations, configure an operator-selected target after verifying its underlying asset, share token, collateral exposure, and chain. See Explicit Targets.

Wallet Compatibility

  • Standard EVM Wallets: @tetherto/wdk-wallet-evm
  • ERC-4337 Smart Accounts: @tetherto/wdk-wallet-evm-erc-4337
  • Read-Only Accounts: For quoting and reading configured vault or market positions without sending transactions

Key Components

  • MorphoProtocolEvm: Main class for Morpho lending operations
  • Morpho Protocol Options: Configure vaults, markets, presets, chain guards, slippage, signatures, and deployless reads
  • Requirement Helpers: getSupplyRequirements, getSupplyCollateralRequirements, getBorrowRequirements, and getRepayRequirements
  • Position Reads: getVaultPosition, getMarketPosition, and getAccountData

Next Steps

On this page