Verified contractExact
HotWallet
Address0xe5d6d85502efa957401d778ce3f4ef822e3ffe8a
- Balance
0 ETH
- Transactions
18
- Compiler
solc 0.5.11
- Same code
5 more contracts
Details
- Compiler
- solc 0.5.11+commit.c082d0b4
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- petersburg
- License
- Not stated
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 10,398,070
- Creation transaction
- 0x77528e274f…e4d53d3350
- Main copy (most transactions)
- 0x7cad9290…eb1b3713
browser/HotWallet.sol
pragma solidity 0.5.11;
contract IToken {
function balanceOf(address) public view returns (uint256);
function transfer(address to, uint value) public;
}
contract Manageable {
mapping(address => bool) public admins;
constructor() public {
admins[msg.sender] = true;
}
modifier onlyAdmins() {
require(admins[msg.sender]);
_;
}
function modifyAdmins(address[] memory newAdmins, address[] memory removedAdmins) public onlyAdmins {
for(uint256 index; index < newAdmins.length; index++) {
admins[newAdmins[index]] = true;
}
for(uint256 index; index < removedAdmins.length; index++) {
admins[removedAdmins[index]] = false;
}
}
}
contract HotWallet is Manageable {
mapping(uint256 => bool) public isPaid;
event Transfer(uint256 transactionRequestId, address coinAddress, uint256 value, address payable to);
function transfer(uint256 transactionRequestId, address coinAddress, uint256 value, address payable to) public onlyAdmins {
require(!isPaid[transactionRequestId]);
isPaid[transactionRequestId] = true;
emit Transfer(transactionRequestId, coinAddress, value, to);
if (coinAddress == address(0)) {
return to.transfer(value);
}
IToken(coinAddress).transfer(to, value);
}
function getBalances(address coinAddress) public view returns (uint256 balance) {
if (coinAddress == address(0)) {
return address(this).balance;
}
return IToken(coinAddress).balanceOf(address(this));
}
function () external payable {}
}
Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
},
"evmVersion": "petersburg",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.