Discover more of Etherscan's tools and services in one place.
Sponsored
Contract Source Code:
File 1 of 1 : ETHRelayer
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.7.6; /** * @title ETHRelayer * @dev Ether relayer used to relay all ether received in this contract to the receiver address. * Receives ETH via legacy .transfer function using defualt 23000 gas limit and relay it using 100k gas limit to * contracts that have enabled the fallback payable funciton. */ contract ETHRelayer{ address payable public receiver; constructor(address payable _receiver) public { receiver = _receiver; } receive() external payable {} function relay() public { (bool success,) = receiver.call{gas: 100000, value: address(this).balance}(""); require(success, "ETHRelayer: Relay transfer failed"); } }
Please enter a contract address above to load the contract details and source code.
Please DO NOT store any passwords or private keys here. A private note (up to 100 characters) can be saved and is useful for transaction tracking.
My Name Tag:
Private Note:
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.