Skip to content
Verified contractPartial

TokenHolder

Address0xef4d0bdb809d08f41cf174702f264578b853e355
Balance

0 ETH

 

Transactions

4

 

Compiler

solc 0.4.17

 

Same code

593 more contracts

 

Details

Compiler
solc 0.4.17+commit.bdeb9e52
Language
solidity
Optimization
No
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
4,592,459
Creation transaction
0x45301bc0c6…4d567b1b3d

TokenHolder.sol

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

contract Token {
    function transfer(address _to, uint256 _value) returns (bool success);
}

contract TokenHolder {
    address public owner;

    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }

    function TokenHolder() {
        owner = msg.sender;
    }

    function changeOwner(address _newOwner) onlyOwner {
        owner = _newOwner;
    }

    function withdraw(address _token, address _to, uint256 _amount) onlyOwner returns (bool) {
        Token token = Token(_token);
        return token.transfer(_to, _amount);
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.