Skip to content
Verified contractPartial

Sweeper

Address0xcd39da5815c46a10d1be180d4ff8b0b16e06ea46
Balance

0 ETH

 

Transactions

2

 

Compiler

solc 0.4.10

 

Same code

69,054 more contracts

 

Details

Compiler
solc 0.4.10+commit.f0d539ae
Language
solidity
Optimization
No
License
Not stated
Match
Partialcreation code: no, runtime code: yes
Verified on Sourcify
Created in block
5,165,878
Creation transaction
0xc63d172249…2f41c3fa35
Main copy (most transactions)
0xba0cf870…e70c5ec9

Sweeper.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.10;

contract Token {
    function balanceOf(address who) constant returns (uint256);
    function transfer(address to, uint256 value) returns (bool);
}

contract Sweeper {
    address owner;
    address token;

    function Sweeper() {
        owner = 0x48d466B7c0d32B61E8A82Cd2bCF060F7C3F966df;
        token = 0x6810e776880C02933D47DB1b9fc05908e5386b96;
    }

    function () {
        sweep(token);
    }

    function sweep(address _token) {
        Token t = Token(_token);
        require(msg.sender == owner && t.transfer(owner, t.balanceOf(this)));
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.