Skip to content
Verified contractPartial

Forwarder

Address0x4e5286e6a263e211237cb46a734dbac57e22ff79
Balance

0 ETH

 

Transactions

2

 

Compiler

solc 0.4.21

 

Same code

7 more contracts

 

Details

Compiler
solc 0.4.21+commit.dfe3193c
Language
solidity
Optimization
Yes, 1 runs
License
Not stated
Match
Partialcreation code: no, runtime code: yes
Verified on Sourcify
Created in block
5,539,934
Creation transaction
0x6297a69159…73b37e0ef5

Forwarder.sol

// Submitted by EthereumHistory (ethereumhistory.com)
pragma solidity ^0.4.20;

contract Factory {
    function owner() public returns (address);
    function emitLogPaymentForwarded(address _from, address _to, uint256 _amount) public;
}

contract ERC20 {
    function transfer(address _to, uint256 _value) public returns (bool);
}

contract Forwarder {
    Factory public factory;
    address public destination;

    function () public payable {
        destination.transfer(msg.value);
        factory.emitLogPaymentForwarded(msg.sender, this, msg.value);
    }

    function transferToken(address _token, address _to, uint256 _amount) public {
        require(msg.sender == factory.owner());
        ERC20 token = ERC20(_token);
        token.transfer(_to, _amount);
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 1,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.