EulerV2Withdraw

Description

Withdraws assets from Euler vault

Action ID

0xa6354b21

SDK Action

const eulerV2WithdrawAction = new dfs.actions.eulerV2.EulerV2WithdrawAction(
    vault,
    account,
    receiver,
    amount
);

Action Type

STANDARD_ACTION

Input Parameters

    /// @param vault The address of the Euler vault
    /// @param account The address of the Euler account, defaults to user's wallet
    /// @param receiver The address to receive the withdrawn assets
    /// @param amount The amount of assets to withdraw (uint256.max for max withdrawal)
    struct Params {
        address vault;
        address account;
        address receiver;
        uint256 amount;
    }

Return Value

return bytes32(withdrawAmount);

Events and Logs

emit ActionEvent("EulerV2Withdraw", logData);
logger.logActionDirectEvent("EulerV2Withdraw", logData);
bytes memory logData = abi.encode(params);

Last updated

Was this helpful?