Verified contractPartial
Forwarder
Address0xf6230ec10cc4415063e512dfa5e5ff6b039bf97b
- Balance
0 ETH
- Transactions
34
- Compiler
solc 0.4.19
- Same code
467 more contracts
Details
- Compiler
- solc 0.4.19+commit.c4cbbb05
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 7,822,320
- Creation transaction
- 0x4e02929454…25acf9ad06
Forwarder.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.14;
contract ERC20Interface {
function transfer(address _to, uint256 _value) returns (bool success);
}
contract Forwarder {
address public parentAddress;
event ForwarderDeposited(address from, uint value, bytes data);
function Forwarder() {
parentAddress = msg.sender;
}
modifier onlyParent {
if (msg.sender != parentAddress) {
revert();
}
_;
}
function() payable {
parentAddress.transfer(msg.value);
ForwarderDeposited(msg.sender, msg.value, msg.data);
}
function flushTokens(address tokenContractAddress, uint256 amount) onlyParent {
ERC20Interface instance = ERC20Interface(tokenContractAddress);
var forwarderBalance = amount;
if (forwarderBalance == 0) {
return;
}
if (!instance.transfer(parentAddress, forwarderBalance)) {
revert();
}
}
function flush() {
parentAddress.transfer(this.balance);
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.