Verified contractPartial
Forwarder
Address0xeeb430bb6ac3ab7879a15e98dfd256c34a39c2b0
- 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
- 4,073,001
- Creation transaction
- 0x8dbfa7e62a…e0dad04dc4
- 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.