DeFi Saver
Search
K

WrapEth

Description

Action ID: 0x11135183
Network mainnet: (Deployed address | Code)
Network optimism: (Deployed address | Code)
Network arbitrum: (Deployed address | Code)
Wraps native Eth to WETH9 token

SDK Action

const wrapEthAction = new dfs.actions.basic.WrapEthAction(
amount,
);

Contract

This is a DFS STANDARD_ACTION.
Input:
/// @param amount Amount of ETH to wrap
struct Params {
uint256 amount;
}
Return value:
return bytes32(_wrapEth(inputData.amount));
Events: