Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
NEST_MiningSave
Compiler Version
v0.5.9+commit.e560f70d
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-09-19 */ pragma solidity ^0.5.8; contract NEST_MiningSave { IBMapping mappingContract; ERC20 nestContract; constructor (address map) public { mappingContract = IBMapping(address(map)); nestContract = ERC20(address(mappingContract.checkAddress("nest"))); } function changeMapping(address map) public onlyOwner { mappingContract = IBMapping(address(map)); nestContract = ERC20(address(mappingContract.checkAddress("nest"))); } function turnOut(uint256 amount, address to) public onlyMiningCalculation returns(uint256) { uint256 leftNum = nestContract.balanceOf(address(this)); if (leftNum >= amount) { nestContract.transfer(to, amount); return amount; } else { return 0; } } modifier onlyOwner(){ require(mappingContract.checkOwners(msg.sender) == true); _; } modifier onlyMiningCalculation(){ require(address(mappingContract.checkAddress("miningCalculation")) == msg.sender); _; } } contract ERC20 { function totalSupply() public view returns (uint supply); function balanceOf( address who ) public view returns (uint value); function allowance( address owner, address spender ) public view returns (uint _allowance); function transfer( address to, uint256 value) external; function transferFrom( address from, address to, uint value) public returns (bool ok); function approve( address spender, uint value ) public returns (bool ok); event Transfer( address indexed from, address indexed to, uint value); event Approval( address indexed owner, address indexed spender, uint value); } contract IBMapping { function checkAddress(string memory name) public view returns (address contractAddress); function checkOwners(address man) public view returns (bool); }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"amount","type":"uint256"},{"name":"to","type":"address"}],"name":"turnOut","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"map","type":"address"}],"name":"changeMapping","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"map","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516104ff3803806104ff8339818101604052602081101561003357600080fd5b5051600080546001600160a01b0319166001600160a01b038084169190911791829055604080517f8fe77e860000000000000000000000000000000000000000000000000000000081526020600480830182905260248301527f6e65737400000000000000000000000000000000000000000000000000000000604483015291519390921692638fe77e86926064808201939291829003018186803b1580156100db57600080fd5b505afa1580156100ef573d6000803e3d6000fd5b505050506040513d602081101561010557600080fd5b5051600180546001600160a01b0319166001600160a01b03909216919091179055506103c9806101366000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80630addec081461003b578063a781e7f814610079575b600080fd5b6100676004803603604081101561005157600080fd5b50803590602001356001600160a01b03166100a1565b60408051918252519081900360200190f35b61009f6004803603602081101561008f57600080fd5b50356001600160a01b031661024d565b005b60008054604080516347f3bf4360e11b8152602060048201819052601160248301527036b4b734b733a1b0b631bab630ba34b7b760791b6044830152915133936001600160a01b031692638fe77e869260648082019391829003018186803b15801561010c57600080fd5b505afa158015610120573d6000803e3d6000fd5b505050506040513d602081101561013657600080fd5b50516001600160a01b03161461014b57600080fd5b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561019657600080fd5b505afa1580156101aa573d6000803e3d6000fd5b505050506040513d60208110156101c057600080fd5b50519050838110610241576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018890529151919092169163a9059cbb91604480830192600092919082900301818387803b15801561022057600080fd5b505af1158015610234573d6000803e3d6000fd5b5050505083915050610247565b60009150505b92915050565b6000546040805163a3bf06f160e01b815233600482015290516001600160a01b039092169163a3bf06f191602480820192602092909190829003018186803b15801561029857600080fd5b505afa1580156102ac573d6000803e3d6000fd5b505050506040513d60208110156102c257600080fd5b505115156001146102d257600080fd5b600080546001600160a01b0319166001600160a01b038381169190911791829055604080516347f3bf4360e11b8152602060048083018290526024830152631b995cdd60e21b604483015291519390921692638fe77e86926064808201939291829003018186803b15801561034657600080fd5b505afa15801561035a573d6000803e3d6000fd5b505050506040513d602081101561037057600080fd5b5051600180546001600160a01b0319166001600160a01b039092169190911790555056fea265627a7a723058208ef23e042968a0b22fbba4e2f8ad3a3ba988e63220c9d4e77ebe977119cc987964736f6c634300050900320000000000000000000000005e7db2ffc5b2c7c47103e4f21c702bc402603fbf
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100365760003560e01c80630addec081461003b578063a781e7f814610079575b600080fd5b6100676004803603604081101561005157600080fd5b50803590602001356001600160a01b03166100a1565b60408051918252519081900360200190f35b61009f6004803603602081101561008f57600080fd5b50356001600160a01b031661024d565b005b60008054604080516347f3bf4360e11b8152602060048201819052601160248301527036b4b734b733a1b0b631bab630ba34b7b760791b6044830152915133936001600160a01b031692638fe77e869260648082019391829003018186803b15801561010c57600080fd5b505afa158015610120573d6000803e3d6000fd5b505050506040513d602081101561013657600080fd5b50516001600160a01b03161461014b57600080fd5b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561019657600080fd5b505afa1580156101aa573d6000803e3d6000fd5b505050506040513d60208110156101c057600080fd5b50519050838110610241576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018890529151919092169163a9059cbb91604480830192600092919082900301818387803b15801561022057600080fd5b505af1158015610234573d6000803e3d6000fd5b5050505083915050610247565b60009150505b92915050565b6000546040805163a3bf06f160e01b815233600482015290516001600160a01b039092169163a3bf06f191602480820192602092909190829003018186803b15801561029857600080fd5b505afa1580156102ac573d6000803e3d6000fd5b505050506040513d60208110156102c257600080fd5b505115156001146102d257600080fd5b600080546001600160a01b0319166001600160a01b038381169190911791829055604080516347f3bf4360e11b8152602060048083018290526024830152631b995cdd60e21b604483015291519390921692638fe77e86926064808201939291829003018186803b15801561034657600080fd5b505afa15801561035a573d6000803e3d6000fd5b505050506040513d602081101561037057600080fd5b5051600180546001600160a01b0319166001600160a01b039092169190911790555056fea265627a7a723058208ef23e042968a0b22fbba4e2f8ad3a3ba988e63220c9d4e77ebe977119cc987964736f6c63430005090032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000005e7db2ffc5b2c7c47103e4f21c702bc402603fbf
-----Decoded View---------------
Arg [0] : map (address): 0x5E7db2FFc5b2c7C47103e4F21C702bc402603fBf
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005e7db2ffc5b2c7c47103e4f21c702bc402603fbf
Deployed Bytecode Sourcemap
27:1197:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27:1197:0;;;;;;;;;;;;;;;;;;;;;;;;617:327;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;617:327:0;;;;;;-1:-1:-1;;;;;617:327:0;;:::i;:::-;;;;;;;;;;;;;;;;388:217;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;388:217:0;-1:-1:-1;;;;;388:217:0;;:::i;:::-;;617:327;699:7;1130:15;;:49;;;-1:-1:-1;;;1130:49:0;;;;;;;;;;;;;;-1:-1:-1;;;1130:49:0;;;;;;1184:10;;-1:-1:-1;;;;;1130:15:0;;:28;;:49;;;;;;;;;;;:15;:49;;;5:2:-1;;;;30:1;27;20:12;5:2;1130:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1130:49:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1130:49:0;-1:-1:-1;;;;;1122:72:0;;1114:81;;;;;;737:12;;:37;;;-1:-1:-1;;;737:37:0;;768:4;737:37;;;;;;719:15;;-1:-1:-1;;;;;737:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;737:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;737:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;737:37:0;;-1:-1:-1;789:17:0;;;785:152;;823:12;;:33;;;-1:-1:-1;;;823:33:0;;-1:-1:-1;;;;;823:33:0;;;;;;;;;;;;;;;:12;;;;;:21;;:33;;;;;:12;;:33;;;;;;;:12;;:33;;;5:2:-1;;;;30:1;27;20:12;5:2;823:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;823:33:0;;;;878:6;871:13;;;;;785:152;924:1;917:8;;;1206:1;617:327;;;;:::o;388:217::-;995:15;;:39;;;-1:-1:-1;;;995:39:0;;1023:10;995:39;;;;;;-1:-1:-1;;;;;995:15:0;;;;:27;;:39;;;;;;;;;;;;;;;:15;:39;;;5:2:-1;;;;30:1;27;20:12;5:2;995:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;995:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;995:39:0;:47;;1038:4;995:47;987:56;;;;;;452:15;:41;;-1:-1:-1;;;;;;452:41:0;-1:-1:-1;;;;;452:41:0;;;;;;;;;;;547:36;;;-1:-1:-1;;;547:36:0;;;;;;;;;;;;;;-1:-1:-1;;;547:36:0;;;;;;:15;;;;;:28;;:36;;;;;;;;;;;;:15;:36;;;5:2:-1;;;;30:1;27;20:12;5:2;547:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;547:36:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;547:36:0;518:12;:67;;-1:-1:-1;;;;;;518:67:0;-1:-1:-1;;;;;518:67:0;;;;;;;;;-1:-1:-1;388:217:0:o
Swarm Source
bzzr://8ef23e042968a0b22fbba4e2f8ad3a3ba988e63220c9d4e77ebe977119cc9879
Loading...
Loading
Loading...
Loading
OVERVIEW
This address is part of the NEST oracle v2 mining pool contract.Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.