🗒️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.

Last updated