Verified contractPartial
Wallet
Address0x34655cabfdc64e17cab285ee737e30e2c2fc50de
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.4.24
- Same code
Only this contract
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,883,552
- Creation transaction
- 0x750845ad85…0ce8b76f20
Wallet.sol
// Submitted by EthereumHistory (ethereumhistory.com)
pragma solidity ^0.4.23;
contract Authority {
function isOperator(address _operator, address _account) public returns (bool);
}
contract ERC20 {
function transfer(address _to, uint256 _value) public;
function balanceOf(address _owner) public view returns (uint256);
}
contract Wallet {
Authority authority;
address etherToken;
function () public payable {
}
function withdraw(address _token, uint256 _amount, address _to) public {
require(authority.isOperator(msg.sender, _token));
if (_token == etherToken) {
_to.transfer(_amount);
} else {
ERC20(_token).transfer(_to, _amount);
}
}
function balanceOf(address _token) public view returns (uint256) {
if (_token == etherToken) {
return address(this).balance;
}
return ERC20(_token).balanceOf(this);
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.