Skip to content
Verified contractPartial

Wallet

Address0x5e52af7eb10f53fcfc977e26a1fa18ed09f42e60
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.3.2

 

Same code

119 more contracts

 

Details

Compiler
solc 0.3.2+commit.81ae2a78
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
1,579,867
Creation transaction
0x0596cc682b…959c447c90

Wallet.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract Token {
    function balanceOf(address _owner) constant returns (uint256);
    function transfer(address _to, uint256 _value) returns (bool);
}

contract Wallet {
    address public owner;
    Token public tokenContract;

    function Wallet(address _tokenContract) {
        owner = msg.sender;
        tokenContract = Token(_tokenContract);
    }

    function balance() constant returns (uint256) {
        return tokenContract.balanceOf(this);
    }

    function sweep() returns (uint256 success, uint256 amount) {
        if (msg.sender != owner) throw;
        amount = balance();
        if (tokenContract.transfer(owner, amount)) {
            success = 1;
        } else {
            success = 0;
        }
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.