🏖️LidoWrap

Description

Action ID: 0x43142355

Network mainnet: (Deployed address | Code)

Wrap either WETH or StEth into WrappedStakedEther (WStEth)

SDK Action

    const lidoWrapAction = new dfs.actions.lido.LidoWrapAction(amount, from, to, useEth);

Contract

This is a DFS STANDARD_ACTION.

User needs to approve the DSProxy to pull WETH or StETH

Input:

    /// @param amount Amount of tokens to pull and wrep
    /// @param from Address from which to pull tokens from
    /// @param to Address where received WStEth will be sent to
    /// @param useWeth true for using WETH, false for using stEth
    struct Params {
        uint256 amount;
        address from;
        address to;
        bool useWeth;
    }

Return value:

return bytes32(wStEthReceivedAmount);

Events:

logData = abi.encode(_inputData, wStEthReceivedAmount);

emit ActionEvent("LidoWrap", logData);

logger.logActionDirectEvent("LidoWrap", logData);

Last updated