Verified contractPartial
IntermediateWallet
Address0xdddbadae98c512d4307f5a74bbc5a5be0f03b95f
- Balance
0 ETH
- Transactions
77
- Compiler
solc 0.4.24
- Same code
389 more contracts
Details
- Compiler
- solc 0.4.24+commit.e67f0147
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- byzantium
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 6,660,489
- Creation transaction
- 0x6d9980a26e…9da3829bd5
IntermediateWallet.sol
pragma solidity ^0.4.18;
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
function Ownable() public {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) public onlyOwner {
require(newOwner != address(0));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
}
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public;
event Transfer(address indexed from, address indexed to, uint256 value);
}
contract IntermediateWallet is Ownable {
address public wallet;
function IntermediateWallet() public {
wallet = 0x246a8bC2bC20826Ba19D8F7FC5799fF69A79388d;
}
function setWallet(address newWallet) public onlyOwner {
wallet = newWallet;
}
function retrieveTokens(address to, address anotherToken) public onlyOwner {
ERC20Basic alienToken = ERC20Basic(anotherToken);
alienToken.transfer(to, alienToken.balanceOf(this));
}
function () payable public {
wallet.transfer(msg.value);
}
}Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
},
"evmVersion": "byzantium",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.