Skip to content
Verified contractPartial

Forwarder

Address0x7109efe5aa75d6cec752fe64fef397d944cd9adb
Balance

0 ETH

 

Transactions

4

 

Compiler

solc 0.4.11

 

Same code

89,133 more contracts

 

Details

Compiler
solc 0.4.11+commit.68ef5810
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
3,927,522
Creation transaction
0x4a2b254a27…1f287d3cc0
Main copy (most transactions)
0x92c6f92e…69c1cf13

Forwarder.sol

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

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

// Deposit address: logs incoming ETH (with a fixed id, 88); only the owner (the creator) can move ETH or tokens
// out or destroy it. Calls from anyone else do nothing (no throw).
contract Forwarder {
    address owner;

    event Deposit(address indexed from, uint256 indexed id, uint256 value);

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

    function() payable {
        if (msg.value > 0) Deposit(msg.sender, 88, msg.value);
    }

    function collectToken(address token, address to, uint256 amount) {
        if (msg.sender == owner) {
            Token t = Token(token);
            t.transfer(to, amount);
        }
    }

    function kill() {
        if (msg.sender == owner) selfdestruct(owner);
    }

    function collect() {
        if (msg.sender == owner) owner.send(this.balance);
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.