Verified contractPartial
TokenVault
Address0x03c22babc16d3f8438aebb686e680792b4e9220e
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.4.24
- Same code
146 more contracts
Details
- Compiler
- solc 0.4.24+commit.e67f0147
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 6,622,401
- Creation transaction
- 0xae5d199d3a…0e07b89dc3
TokenVault.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.22;
contract ERC20 {
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
}
contract TokenVault {
address public admin;
constructor() public {
admin = msg.sender;
}
modifier onlyAdmin() {
require(msg.sender == admin);
_;
}
function transfer(address _token, address _to, uint256 _amount) public onlyAdmin {
ERC20(_token).transfer(_to, _amount);
}
function getBalance(address _token) public view returns (uint256) {
return ERC20(_token).balanceOf(this);
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.