🏖️LidoStake

Description

Action ID: 0xd7e40b2d

Network mainnet: (Deployed address | Code)

Supply ETH (pull WETH) to Lido for ETH2 Staking. Receive stETH in return.

SDK Action

    const lidoStakeAction = new dfs.actions.lido.LidoStakeAction(amount, from, to);

Contract

This is a DFS STANDARD_ACTION.

receiving address may find itself with 1-2 less wei than amount sent (received from staking) due to lido rounding error

User needs to approve the DSProxy to pull WETH

If amount == uint.max it will supply whole WETH balance of from address

Input:

    /// @param amount Amount of WETH to pull
    /// @param from Address from which to pull WETH 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("LidoStake", logData);

logger.logActionDirectEvent("LidoStake", logData);

Last updated