πŸ› οΈUnwrapEth

Description

Action ID: 0x929145d0

Unwrap WETH9 token to native ETH

SDK Action

const unwrapEth = new dfs.actions.basic.UnwrapEth(
    amount,
    to,
);

Contract

This is a DFS STANDARD_ACTION.

If amount = max.uint unwrap whole Proxy WETH balance

Input:

    /// @param amount Amount of WETH to unwrap
    /// @param to The address to which we're sending native ETH
    struct Params {
        uint256 amount;
        address to;
    }

Return value:

return bytes32(_unwrapEth(inputData.amount, inputData.to));

Events:

Last updated