Discover more of Etherscan's tools and services in one place.
Sponsored
Contract Source Code:
File 1 of 1 : BridgeETHToArbitrumETH.sol
// SPDX-License-Identifier: UNLICENSE pragma solidity 0.8.19; interface IHopRouter { function sendToL2( uint256 chainId, address recipient, uint256 amount, uint256 amountOutMin, uint256 deadline, address relayer, uint256 relayerFee ) external payable; } contract BridgeETHToArbitrumETH{ IHopRouter public hopRouter; constructor(address _hopRouter) { hopRouter = IHopRouter(_hopRouter); } receive() external payable { uint256 chainId = 42161; address recipient = msg.sender; uint256 amount = msg.value; uint256 amountOutMin = 0; uint256 deadline = block.timestamp + 3600; address relayer = address(0); uint256 relayerFee = 0; hopRouter.sendToL2{value: amount}( chainId, recipient, amount, amountOutMin, deadline, relayer, relayerFee ); } }
Please enter a contract address above to load the contract details and source code.
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.