LogoLogo
  • Discover
    • 🌜About Moonwell
    • 👥Contributors
    • 🌐Networks
    • 🔗Quick Links
  • Moonwell Overview
    • 🌙Getting Started
      • Wallet Connection
    • 🤝Lend
      • Supply
      • Withdraw
      • Claiming Rewards
      • Lend FAQ
    • 🤝Borrow
      • How to Borrow
      • Loan Repayment
      • Credit and Liquidations
      • Borrow FAQ
    • 🏦Vaults
      • Interacting with Morpho Vaults
      • Fund Wallet and Deposit
    • 🌐Virtual Accounts
      • Create Virtual Account
      • Accessing Virtual Account
      • FAQ
    • 🦋Isolated Markets
      • Interacting with Isolated Markets
    • 💲USDC Anywhere
      • Supply USDC
      • Borrow USDC
    • 💳Moonwell Card
      • Get Started
      • Load and Spend
      • Auto Load
      • FAQ
    • 💡Smart Wallet
      • Create
      • Connect
      • Getting Started
    • 🌙Tokens
      • WELL Transparency Report
      • WELL Transfer
      • WELL Migration (Base)
      • MFAM Transparency Report
    • 🫂Stake
      • How to Stake
      • How to Unstake
      • Claim Staking Rewards
  • Governance
    • 🗳️Moonwell Governance
      • 🪙Delegate
      • 📜Proposals
      • 🗳️Voting
      • 🔢Parameters
      • ❔FAQ
      • 📜DAO Constitutions
        • Moonwell DAO Constitution
        • Moonwell Apollo DAO Constitution
      • 🗣️Forum
    • 🏛️Moonwell Foundation
      • 🏦Treasury
      • 🔒Security Council
      • 📃Governing Documents
        • Foundation Bylaws
        • Foundation M&A
  • Protocol Information
    • ‼️Protocol Information
    • 📊Asset Risk Parameters
    • 📈Interest Rate Curves
    • ⚖️Reserve Auctions
    • 🛡️Security
    • 🔎Audits
    • 📜Contracts
    • 🖊️Terms of Service
  • Developers
    • 🪙mTokens
      • 📝Contract Interactions
    • 👮‍♀️Comptroller
      • 📝Contract Interactions
      • 🚦Risk Parameters
      • 🛡️Guardian Roles
    • 🏦4626 Vaults
      • 👷‍♂️ERC20 Vault Deployment
        • 🗒️4626 ERC20 Vault Interface
      • 👷‍♀️ETH Vault Deployment
        • 🗒️4626 ETH Vault Interface
        • 📍4626 ETH Router
    • 💻Moonwell SDK
    • 🔨Contribution Guidelines
Powered by GitBook
On this page
  1. Developers
  2. 4626 Vaults
  3. ETH Vault Deployment

4626 ETH Vault Interface

The 4626 ETH Vault has compatibility with the underlying Moonwell WETH market. This market accepts WETH on deposit, and automatically unwraps the WETH for ETH on withdrawals.

The 4626 ETH Vault interface conforms to the 4626 specification, however it has one slight modification. Instead of sending the underlying ERC20 token (WETH) to users on redeem or withdraw, it instead sends raw ETH to the specified receiver of said withdrawal operation.

    /// @param shares The number of shares to redeem.
    /// @param receiver The address to receive the ETH.
    /// @param owner The address of the account to redeem from.
    function redeem(
        uint256 shares,
        address receiver,
        address owner
    ) public returns (uint256 assets);
    /// @param assets The amount of assets to withdraw.
    /// @param receiver The address to receive the ETH.
    /// @param owner The address of the account to withdraw from.
    function withdraw(
        uint256 assets,
        address receiver,
        address owner
    ) public returns (uint256 shares);

Besides this difference, the 4626 ETH vault performs exactly the same as the ERC20 4626 Moonwell Vault.

PreviousETH Vault DeploymentNext4626 ETH Router

Last updated 9 months ago

🏦
👷‍♀️
🗒️