Verified contractPartial
Wallet
Address0x576303995e052d4fc457c77da99ec96063fb913d
- Balance
0 ETH
- Transactions
2
- Compiler
solc 0.4.24
- Same code
15 more contracts
Details
- Compiler
- solc 0.4.24+commit.e67f0147
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: no, runtime code: yes
- Verified on Sourcify
- Created in block
- 6,880,171
- Creation transaction
- 0x1cddc26c02…324494fbe0
Wallet.sol
// Submitted by EthereumHistory (ethereumhistory.com)
pragma solidity ^0.4.24;
contract Authority {
function isOperator(address _operator, address _target) public view returns (bool);
}
contract ERC20 {
function transfer(address _to, uint256 _value) public;
function balanceOf(address _owner) public view returns (uint256);
}
contract Wallet {
Authority authority;
address ethToken;
function () public payable {
}
function withdraw(address _token, uint256 _amount, address _to) public {
require(authority.isOperator(msg.sender, _token));
if (_token == ethToken) {
_to.transfer(_amount);
} else {
ERC20(_token).transfer(_to, _amount);
}
}
function balanceOf(address _token) public view returns (uint256) {
if (_token == ethToken) {
return address(this).balance;
}
return ERC20(_token).balanceOf(address(this));
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.