Source Code
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| - | 10720751 | 2046 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xa7F0Ee18...9587333D5 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
MinePool
Compiler Version
v0.5.0+commit.1d4f565a
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2020-09-11
*/
// File: openzeppelin-solidity/contracts/GSN/Context.sol
pragma solidity ^0.5.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor () internal { }
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal view returns (address payable) {
return msg.sender;
}
function _msgData() internal view returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
// File: openzeppelin-solidity/contracts/ownership/Ownable.sol
pragma solidity ^0.5.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
_owner = _msgSender();
emit OwnershipTransferred(address(0), _owner);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(isOwner(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Returns true if the caller is the current owner.
*/
function isOwner() public view returns (bool) {
return _msgSender() == _owner;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public onlyOwner {
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
*/
function _transferOwnership(address newOwner) internal {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.5.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
// File: contracts/MinePool.sol
pragma solidity 0.5.0;
contract MinePool is Ownable {
IERC20 public shareToken;
IERC20 public dollarToken;
constructor(IERC20 _shareToken, IERC20 _dollarToken) public {
shareToken = _shareToken;
dollarToken = _dollarToken;
}
function shareBalance() public view returns (uint256) {
return shareToken.balanceOf(address(this));
}
function shareTransfer(address to, uint256 value) external onlyOwner returns (bool) {
return shareToken.transfer(to, value);
}
function dollarBalance() public view returns (uint256) {
return dollarToken.balanceOf(address(this));
}
function dollarTransfer(address to, uint256 value) external onlyOwner returns (bool) {
return dollarToken.transfer(to, value);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"shareTransfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"shareBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"shareToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"dollarTransfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"dollarBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"dollarToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_shareToken","type":"address"},{"name":"_dollarToken","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]Contract Creation Code
0x608060405234801561001057600080fd5b5060405160408061082a8339810180604052604081101561003057600080fd5b50805160209091015161004a6401000000006100c3810204565b60008054600160a060020a031916600160a060020a03928316178082556040519216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a360018054600160a060020a03938416600160a060020a031991821617909155600280549290931691161790556100c7565b3390565b610754806100d66000396000f3fe6080604052600436106100a35763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663463bb3b881146100a857806359f74607146100f55780636c9fa59e1461011c578063715018a61461014d5780638da5cb5b146101645780638f32d59b1461017957806399b77bae1461018e578063ae2e4cd0146101c7578063eb698a73146101dc578063f2fde38b146101f1575b600080fd5b3480156100b457600080fd5b506100e1600480360360408110156100cb57600080fd5b50600160a060020a038135169060200135610224565b604080519115158252519081900360200190f35b34801561010157600080fd5b5061010a610314565b60408051918252519081900360200190f35b34801561012857600080fd5b506101316103a9565b60408051600160a060020a039092168252519081900360200190f35b34801561015957600080fd5b506101626103b8565b005b34801561017057600080fd5b5061013161045b565b34801561018557600080fd5b506100e161046a565b34801561019a57600080fd5b506100e1600480360360408110156101b157600080fd5b50600160a060020a03813516906020013561048e565b3480156101d357600080fd5b5061010a61054b565b3480156101e857600080fd5b506101316105af565b3480156101fd57600080fd5b506101626004803603602081101561021457600080fd5b5035600160a060020a03166105be565b600061022e61046a565b1515610272576040805160e560020a62461bcd0281526020600482018190526024820152600080516020610709833981519152604482015290519081900360640190fd5b600154604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156102e157600080fd5b505af11580156102f5573d6000803e3d6000fd5b505050506040513d602081101561030b57600080fd5b50519392505050565b600154604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600092600160a060020a0316916370a08231916024808301926020929190829003018186803b15801561037857600080fd5b505afa15801561038c573d6000803e3d6000fd5b505050506040513d60208110156103a257600080fd5b5051905090565b600154600160a060020a031681565b6103c061046a565b1515610404576040805160e560020a62461bcd0281526020600482018190526024820152600080516020610709833981519152604482015290519081900360640190fd5b60008054604051600160a060020a03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031690565b60008054600160a060020a031661047f610616565b600160a060020a031614905090565b600061049861046a565b15156104dc576040805160e560020a62461bcd0281526020600482018190526024820152600080516020610709833981519152604482015290519081900360640190fd5b600254604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156102e157600080fd5b600254604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600092600160a060020a0316916370a08231916024808301926020929190829003018186803b15801561037857600080fd5b600254600160a060020a031681565b6105c661046a565b151561060a576040805160e560020a62461bcd0281526020600482018190526024820152600080516020610709833981519152604482015290519081900360640190fd5b6106138161061a565b50565b3390565b600160a060020a03811615156106a0576040805160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039290921691909117905556fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a165627a7a72305820d4d5e63c2764939fad4b61bdd9b9aa0a564821d0ab3ba08e21bdf159cb291f1f00290000000000000000000000006b583cf4aba7bf9d6f8a51b3f1f7c7b2ce59bf15000000000000000000000000d233d1f6fd11640081abb8db125f722b5dc729dc
Deployed Bytecode
0x6080604052600436106100a35763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663463bb3b881146100a857806359f74607146100f55780636c9fa59e1461011c578063715018a61461014d5780638da5cb5b146101645780638f32d59b1461017957806399b77bae1461018e578063ae2e4cd0146101c7578063eb698a73146101dc578063f2fde38b146101f1575b600080fd5b3480156100b457600080fd5b506100e1600480360360408110156100cb57600080fd5b50600160a060020a038135169060200135610224565b604080519115158252519081900360200190f35b34801561010157600080fd5b5061010a610314565b60408051918252519081900360200190f35b34801561012857600080fd5b506101316103a9565b60408051600160a060020a039092168252519081900360200190f35b34801561015957600080fd5b506101626103b8565b005b34801561017057600080fd5b5061013161045b565b34801561018557600080fd5b506100e161046a565b34801561019a57600080fd5b506100e1600480360360408110156101b157600080fd5b50600160a060020a03813516906020013561048e565b3480156101d357600080fd5b5061010a61054b565b3480156101e857600080fd5b506101316105af565b3480156101fd57600080fd5b506101626004803603602081101561021457600080fd5b5035600160a060020a03166105be565b600061022e61046a565b1515610272576040805160e560020a62461bcd0281526020600482018190526024820152600080516020610709833981519152604482015290519081900360640190fd5b600154604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156102e157600080fd5b505af11580156102f5573d6000803e3d6000fd5b505050506040513d602081101561030b57600080fd5b50519392505050565b600154604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600092600160a060020a0316916370a08231916024808301926020929190829003018186803b15801561037857600080fd5b505afa15801561038c573d6000803e3d6000fd5b505050506040513d60208110156103a257600080fd5b5051905090565b600154600160a060020a031681565b6103c061046a565b1515610404576040805160e560020a62461bcd0281526020600482018190526024820152600080516020610709833981519152604482015290519081900360640190fd5b60008054604051600160a060020a03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031690565b60008054600160a060020a031661047f610616565b600160a060020a031614905090565b600061049861046a565b15156104dc576040805160e560020a62461bcd0281526020600482018190526024820152600080516020610709833981519152604482015290519081900360640190fd5b600254604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156102e157600080fd5b600254604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600092600160a060020a0316916370a08231916024808301926020929190829003018186803b15801561037857600080fd5b600254600160a060020a031681565b6105c661046a565b151561060a576040805160e560020a62461bcd0281526020600482018190526024820152600080516020610709833981519152604482015290519081900360640190fd5b6106138161061a565b50565b3390565b600160a060020a03811615156106a0576040805160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039290921691909117905556fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a165627a7a72305820d4d5e63c2764939fad4b61bdd9b9aa0a564821d0ab3ba08e21bdf159cb291f1f0029
Deployed Bytecode Sourcemap
6637:790:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7009:140;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7009:140:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;7009:140:0;;;;;;;;;;;;;;;;;;;;;;;;;;;6886:115;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6886:115:0;;;;;;;;;;;;;;;;;;;;6673:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6673:24:0;;;;;;;;-1:-1:-1;;;;;6673:24:0;;;;;;;;;;;;;;2936:140;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2936:140:0;;;;;;2125:79;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2125:79:0;;;;2491:94;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2491:94:0;;;;7282:142;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7282:142:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;7282:142:0;;;;;;;;;7157:117;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7157:117:0;;;;6704:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6704:25:0;;;;3231:109;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3231:109:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3231:109:0;-1:-1:-1;;;;;3231:109:0;;;7009:140;7087:4;2337:9;:7;:9::i;:::-;2329:54;;;;;;;-1:-1:-1;;;;;2329:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2329:54:0;;;;;;;;;;;;;;;7111:10;;:30;;;;;;-1:-1:-1;;;;;7111:30:0;;;;;;;;;;;;;;;:10;;;;;:19;;:30;;;;;;;;;;;;;;:10;;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;7111:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;7111:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;7111:30:0;;7009:140;-1:-1:-1;;;7009:140:0:o;6886:115::-;6958:10;;:35;;;;;;6987:4;6958:35;;;;;;6931:7;;-1:-1:-1;;;;;6958:10:0;;:20;;:35;;;;;;;;;;;;;;:10;:35;;;5:2:-1;;;;30:1;27;20:12;5:2;6958:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;6958:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;6958:35:0;;-1:-1:-1;6886:115:0;:::o;6673:24::-;;;-1:-1:-1;;;;;6673:24:0;;:::o;2936:140::-;2337:9;:7;:9::i;:::-;2329:54;;;;;;;-1:-1:-1;;;;;2329:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2329:54:0;;;;;;;;;;;;;;;3035:1;3019:6;;2998:40;;-1:-1:-1;;;;;3019:6:0;;;;2998:40;;3035:1;;2998:40;3066:1;3049:19;;-1:-1:-1;;3049:19:0;;;2936:140::o;2125:79::-;2163:7;2190:6;-1:-1:-1;;;;;2190:6:0;2125:79;:::o;2491:94::-;2531:4;2571:6;;-1:-1:-1;;;;;2571:6:0;2555:12;:10;:12::i;:::-;-1:-1:-1;;;;;2555:22:0;;2548:29;;2491:94;:::o;7282:142::-;7361:4;2337:9;:7;:9::i;:::-;2329:54;;;;;;;-1:-1:-1;;;;;2329:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2329:54:0;;;;;;;;;;;;;;;7385:11;;:31;;;;;;-1:-1:-1;;;;;7385:31:0;;;;;;;;;;;;;;;:11;;;;;:20;;:31;;;;;;;;;;;;;;:11;;:31;;;5:2:-1;;;;30:1;27;20:12;7157:117:0;7230:11;;:36;;;;;;7260:4;7230:36;;;;;;7203:7;;-1:-1:-1;;;;;7230:11:0;;:21;;:36;;;;;;;;;;;;;;:11;:36;;;5:2:-1;;;;30:1;27;20:12;6704:25:0;;;-1:-1:-1;;;;;6704:25:0;;:::o;3231:109::-;2337:9;:7;:9::i;:::-;2329:54;;;;;;;-1:-1:-1;;;;;2329:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2329:54:0;;;;;;;;;;;;;;;3304:28;3323:8;3304:18;:28::i;:::-;3231:109;:::o;866:98::-;946:10;866:98;:::o;3446:229::-;-1:-1:-1;;;;;3520:22:0;;;;3512:73;;;;;-1:-1:-1;;;;;3512:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3622:6;;;3601:38;;-1:-1:-1;;;;;3601:38:0;;;;3622:6;;;3601:38;;;3650:6;:17;;-1:-1:-1;;3650:17:0;-1:-1:-1;;;;;3650:17:0;;;;;;;;;;3446:229::o
Swarm Source
bzzr://d4d5e63c2764939fad4b61bdd9b9aa0a564821d0ab3ba08e21bdf159cb291f1f
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.