🗒️4626 ERC20 Vault Interface

The 4626 ERC20 Vault has compatibility with the underlying Moonwell ERC20 mToken markets. These markets accept ERC20 tokens on deposit, and send users ERC20 tokens on withdrawals.

The 4626 ETH Vault interface conforms to the 4626 specification.

    /// @param shares The number of shares to redeem.
    /// @param receiver The address to receive the ERC20 tokens.
    /// @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 ERC20 tokens.
    /// @param owner The address of the account to withdraw from.
    function withdraw(
        uint256 assets,
        address receiver,
        address owner
    ) public returns (uint256 shares);

Last updated