🏖️LidoUnwrap

Description

Action ID: 0xacd039ef

Unwrap WStEth and receive StEth

SDK Action

    const lidoUnwrapAction = new dfs.actions.lido.LidoUnwrapAction(amount, from, to);

Contract

This is a DFS STANDARD_ACTION.

User needs to approve the DSProxy to pull WStETH

Input:

    /// @param amount Amount of WStEth to pull
    /// @param from Address from which to pull WStEth from
    /// @param to Address where received stETH will be sent to
    struct Params {
        uint256 amount;
        address from;
        address to;
    }

Return value:

return bytes32(stEthReceivedAmount);

Events:

logData = abi.encode(_inputData, stEthReceivedAmount);

emit ActionEvent("LidoUnwrap", logData);

logger.logActionDirectEvent("LidoUnwrap", logData);

Last updated