Address Contract Partially Verified
Address
0xC27A69e0136b95dDff00cfA1997bBfDC4A8aD876
Balance
0 ETH
Nonce
1
Code Size
1876 bytes
Creator
0xBa7A8629...1B71 at tx 0x69a18c71...cd1d27
Indexed Transactions
0 (1 on-chain, 0.9% indexed)
Contract Bytecode
1876 bytes
0x6080604052600436106100a35763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663463bb3b881146100a857806359f74607146100f55780636c9fa59e1461011c578063715018a61461014d5780638da5cb5b146101645780638f32d59b1461017957806399b77bae1461018e578063ae2e4cd0146101c7578063eb698a73146101dc578063f2fde38b146101f1575b600080fd5b3480156100b457600080fd5b506100e1600480360360408110156100cb57600080fd5b50600160a060020a038135169060200135610224565b604080519115158252519081900360200190f35b34801561010157600080fd5b5061010a610314565b60408051918252519081900360200190f35b34801561012857600080fd5b506101316103a9565b60408051600160a060020a039092168252519081900360200190f35b34801561015957600080fd5b506101626103b8565b005b34801561017057600080fd5b5061013161045b565b34801561018557600080fd5b506100e161046a565b34801561019a57600080fd5b506100e1600480360360408110156101b157600080fd5b50600160a060020a03813516906020013561048e565b3480156101d357600080fd5b5061010a61054b565b3480156101e857600080fd5b506101316105af565b3480156101fd57600080fd5b506101626004803603602081101561021457600080fd5b5035600160a060020a03166105be565b600061022e61046a565b1515610272576040805160e560020a62461bcd0281526020600482018190526024820152600080516020610709833981519152604482015290519081900360640190fd5b600154604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156102e157600080fd5b505af11580156102f5573d6000803e3d6000fd5b505050506040513d602081101561030b57600080fd5b50519392505050565b600154604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600092600160a060020a0316916370a08231916024808301926020929190829003018186803b15801561037857600080fd5b505afa15801561038c573d6000803e3d6000fd5b505050506040513d60208110156103a257600080fd5b5051905090565b600154600160a060020a031681565b6103c061046a565b1515610404576040805160e560020a62461bcd0281526020600482018190526024820152600080516020610709833981519152604482015290519081900360640190fd5b60008054604051600160a060020a03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600054600160a060020a031690565b60008054600160a060020a031661047f610616565b600160a060020a031614905090565b600061049861046a565b15156104dc576040805160e560020a62461bcd0281526020600482018190526024820152600080516020610709833981519152604482015290519081900360640190fd5b600254604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156102e157600080fd5b600254604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600092600160a060020a0316916370a08231916024808301926020929190829003018186803b15801561037857600080fd5b600254600160a060020a031681565b6105c661046a565b151561060a576040805160e560020a62461bcd0281526020600482018190526024820152600080516020610709833981519152604482015290519081900360640190fd5b6106138161061a565b50565b3390565b600160a060020a03811615156106a0576040805160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039290921691909117905556fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a165627a7a72305820d4d5e63c2764939fad4b61bdd9b9aa0a564821d0ab3ba08e21bdf159cb291f1f0029
Verified Source Code Partial Match
Compiler: v0.5.0+commit.1d4f565a
EVM: byzantium
Optimization: Yes (200 runs)
MinePool.sol 219 lines
// 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);
}
}
Read Contract
dollarBalance 0xae2e4cd0 → uint256
dollarToken 0xeb698a73 → address
isOwner 0x8f32d59b → bool
owner 0x8da5cb5b → address
shareBalance 0x59f74607 → uint256
shareToken 0x6c9fa59e → address
Write Contract 4 functions
These functions modify contract state and require a wallet transaction to execute.
dollarTransfer 0x99b77bae
address to
uint256 value
returns: bool
renounceOwnership 0x715018a6
No parameters
shareTransfer 0x463bb3b8
address to
uint256 value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
This address has 1 on-chain transactions, but only 0.9% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →