Skip to content
Verified contractPartial

Wallet

Address0xca32d0b7c663a3c0572bf19f15daf07efe364305
Balance

0 ETH

 

Transactions

3

 

Compiler

solc 0.4.21

 

Same code

467 more contracts

 

Details

Compiler
solc 0.4.21+commit.dfe3193c
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: no, runtime code: yes
Verified on Sourcify

Wallet.sol

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

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

contract Controller {
    function getEverything() public returns (address);
}

contract Wallet {
    Controller controller;

    function Wallet(address _controller) public {
        controller = Controller(_controller);
    }

    function () public payable { }

    function transferEther(address _to, uint256 _amount) public {
        require(msg.sender == controller.getEverything());
        _to.transfer(_amount);
    }

    function transferToken(address _token, address _to, uint256 _amount) public {
        require(msg.sender == controller.getEverything());
        Token(_token).transfer(_to, _amount);
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.