Verified contractPartial
Wallet
Address0xd3a5edcc7ef363fca7d8431c411abb62fcef47ea
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.4.24
- Same code
112,986 more contracts
Details
- Compiler
- solc 0.4.24+commit.e67f0147
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 7,702,546
- Creation transaction
- 0x70231327c3…f3e5a7dd6e
- Main copy (most transactions)
- 0x007fba6d…919c4af0
Wallet.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.24;
contract Setting {
function invoker() public view returns (address);
}
contract Token {
function transfer(address to, uint256 value) public returns (bool);
}
contract BasicToken {
function transfer(address to, uint256 value) public;
}
contract Wallet {
address public settingAddress;
constructor(address _setting) public {
settingAddress = _setting;
}
function () public payable {
}
function transferBasic(address token, uint256 amount) public {
address invoker = Setting(settingAddress).invoker();
require(invoker == msg.sender);
if (amount > 0) {
BasicToken(token).transfer(invoker, amount);
}
}
function transferMain(uint256 amount) public {
address invoker = Setting(settingAddress).invoker();
require(invoker == msg.sender);
if (amount > 0) {
invoker.transfer(amount);
}
}
function transfer(address token, uint256 amount) public {
address invoker = Setting(settingAddress).invoker();
require(invoker == msg.sender);
if (amount > 0) {
bool success = Token(token).transfer(invoker, amount);
require(success);
}
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.