Skip to content
Verified contractPartial

Sweeper

Address0x67747be7bf9c943797b2fe604bcc1c45c4bdfe09
Balance

0 ETH

 

Transactions

601

 

Compiler

solc 0.4.7

 

Same code

7,530 more contracts

 

Details

Compiler
solc 0.4.7+commit.822622cf
Language
solidity
Optimization
No
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
3,508,936
Creation transaction
0x345b20bc0b…763a8fcb17
Main copy (most transactions)
0x97970f2b…b2e71613

Sweeper.sol

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

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 = 0x65F9B2e4d7aAEB40fFEA8C6F5844d5AD7Da257E0;
        token = 0x45e42D659D9f9466cD5DF622506033145a9b89Bc;
    }

    function () {
        sweep(token);
    }

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

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.