Verified contractPartial
Sweeper
Address0x1372fbe8e97d53bce82968cff3030890752e53ea
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.5.1
- Same code
311 more contracts
Details
- Compiler
- solc 0.5.1+commit.c8a2cb62
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 7,303,678
- Creation transaction
- 0x870bc29445…3d6bc2d1bc
Sweeper5.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.5.0;
contract ERC20 {
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
}
contract Sweeper {
address payable public destinationAddress;
event Sweep(uint256 amount);
constructor() public {
destinationAddress = tx.origin;
}
function () external payable {
destinationAddress.transfer(msg.value);
emit Sweep(msg.value);
}
function sweepTokens(address _token) public {
ERC20 token = ERC20(_token);
uint256 balance = token.balanceOf(address(this));
require(token.transfer(destinationAddress, balance));
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.