Skip to content
Verified contractPartial

Sweeper

Address0x07ddd9f0dc4d712ef85538b241c87685d18f158b
Balance

0 ETH

 

Transactions

1,738

 

Compiler

solc 0.4.18

 

Same code

169 more contracts

 

Details

Compiler
solc 0.4.18+commit.9cf6e910
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: no, runtime code: yes
Verified on Sourcify
Created in block
4,893,642
Creation transaction
0xf9593ad610…76022c54e7
Main copy (most transactions)
0x02e1315d…aecab30b

Sweeper.sol

// Submitted by EthereumHistory (ethereumhistory.com)
pragma solidity ^0.4.11;

contract Sweeper {
    address owner;
    address authorizedCaller;

    function Sweeper() {
        owner = msg.sender;
        authorizedCaller = msg.sender;
    }

    function changeAuthorizedCaller(address _newCaller) {
        require(msg.sender == owner);
        authorizedCaller = _newCaller;
    }

    function changeOwner(address _owner) {
        require(msg.sender == owner);
        owner = _owner;
    }

    function sweep(uint _amount, address _token) returns (bool) {
        require(msg.sender == authorizedCaller);
        return _token.call(bytes4(sha3("transfer(address,uint256)")), authorizedCaller, _amount);
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.