Verified contractPartial
Sweeper
Address0xfd69f8648fad017fbd91e4ec78f36e0c1b1bdb15
- Balance
0 ETH
- Transactions
0
- Compiler
solc 0.4.25
- Same code
8,980 more contracts
Details
- Compiler
- solc 0.4.25+commit.59dbf8f1
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 6,367,519
- Creation transaction
- 0x51fa257990…b256cc303e
Sweeper.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.24;
contract ERC20 { function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); }
contract Sweeper {
constructor(address _token, address _to) public {
sweep(_token, _to);
}
function sweep(address _token, address _to) internal {
bool ok = _token.call.value(0)();
if (ok == true) {
transferAll(_token, _to);
} else {
revert();
}
}
function transferAll(address _token, address _to) internal {
bool ok = ERC20(_token).transfer(_to, ERC20(_token).balanceOf(this));
require(ok == true);
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.