Verified contractPartial
Forwarder
Address0xb15de16992cfbdcc32bccebc00dabfd310da0d10
- Balance
0 ETH
- Transactions
15
- Compiler
solc 0.4.23
- Same code
11,825 more contracts
Details
- Compiler
- solc 0.4.23+commit.124ca40d
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 7,539,469
- Creation transaction
- 0xb249c9d938…5188ce3b23
- Main copy (most transactions)
- 0x9d600557…68c49a9c
Forwarder.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.22;
contract ERC20Interface {
function transfer(address _to, uint256 _value) public returns (bool success);
function balanceOf(address _owner) public view returns (uint256 balance);
}
contract Forwarder {
address public parentAddress;
event SweepCompleted(address from, uint256 value, bytes data);
constructor() public {
parentAddress = msg.sender;
}
modifier onlyParent {
require(msg.sender == parentAddress);
_;
}
function sweep(address tokenContractAddress) public onlyParent {
ERC20Interface instance = ERC20Interface(tokenContractAddress);
address forwarderAddress = address(this);
uint256 forwarderBalance = instance.balanceOf(forwarderAddress);
if (forwarderBalance > 0) {
require(instance.transfer(parentAddress, forwarderBalance));
emit SweepCompleted(msg.sender, forwarderBalance, msg.data);
}
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.