Skip to content
Verified contractPartial

Wallet

Address0xc5458e431d47d0a06d042686d511c775fc7942b1
Balance

0 ETH

 

Transactions

665

 

Compiler

solc 0.5.5

 

Same code

9,191 more contracts

 

Details

Compiler
solc 0.5.5+commit.47a71e8f
Language
solidity
Optimization
Yes, 200 runs
EVM version
byzantium
License
Not stated
Match
Partialcreation code: no, runtime code: yes
Verified on Sourcify
Created in block
7,538,695
Creation transaction
0xc80aa76d2e…5b9d05d183

Wallet.sol

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

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

contract Wallet {
    address payable owner;

    event DepositFrom(address from, uint256 value);

    constructor() public {
        owner = msg.sender;
    }

    function () external payable {
        require(msg.data.length == 0);
        owner.transfer(msg.value);
        emit DepositFrom(msg.sender, msg.value);
    }

    function getOwner() public view returns (address) {
        return owner;
    }

    function flushTokens(address token, uint256 amount) public {
        require(msg.sender == owner);
        Token t = Token(token);
        t.transfer(owner, amount);
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "byzantium"
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.