ETH Price: $3,442.11 (+1.49%)
Gas: 4 Gwei

Contract

0x47f8Dd8d32c55F9DD9ed2fC6198F5569EC13A211
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Claim185820992023-11-16 4:36:35225 days ago1700109395IN
0x47f8Dd8d...9EC13A211
0 ETH0.0061338328.34592902
Claim185487232023-11-11 12:34:59229 days ago1699706099IN
0x47f8Dd8d...9EC13A211
0 ETH0.0032857922.36454659
Claim185486922023-11-11 12:28:47229 days ago1699705727IN
0x47f8Dd8d...9EC13A211
0 ETH0.0026827920.03249652
Claim185486882023-11-11 12:27:59229 days ago1699705679IN
0x47f8Dd8d...9EC13A211
0 ETH0.0040794220.46960502
Purchase184829422023-11-02 7:33:35239 days ago1698910415IN
0x47f8Dd8d...9EC13A211
0 ETH0.0043930616.61831012
Claim184756172023-11-01 6:58:23240 days ago1698821903IN
0x47f8Dd8d...9EC13A211
0 ETH0.001773312.06986558
Claim184756072023-11-01 6:56:23240 days ago1698821783IN
0x47f8Dd8d...9EC13A211
0 ETH0.0017134111.66223726
Claim184755942023-11-01 6:53:47240 days ago1698821627IN
0x47f8Dd8d...9EC13A211
0 ETH0.0025900312.06428785
Purchase184590322023-10-29 23:12:47242 days ago1698621167IN
0x47f8Dd8d...9EC13A211
0 ETH0.0016228311.13024149
Claim184590302023-10-29 23:12:23242 days ago1698621143IN
0x47f8Dd8d...9EC13A211
0 ETH0.0022672611.71194405
Claim184578672023-10-29 19:17:47242 days ago1698607067IN
0x47f8Dd8d...9EC13A211
0 ETH0.0025448211.85370351
Claim184516232023-10-28 22:18:23243 days ago1698531503IN
0x47f8Dd8d...9EC13A211
0 ETH0.0023326510.86544493
Claim184390142023-10-27 3:58:59245 days ago1698379139IN
0x47f8Dd8d...9EC13A211
0 ETH0.0032814415.16434997
Claim184327302023-10-26 6:53:23246 days ago1698303203IN
0x47f8Dd8d...9EC13A211
0 ETH0.00269613.64473241
Claim184231662023-10-24 22:42:47247 days ago1698187367IN
0x47f8Dd8d...9EC13A211
0 ETH0.0042609721.38057183
Claim184124202023-10-23 10:37:59249 days ago1698057479IN
0x47f8Dd8d...9EC13A211
0 ETH0.002024879.43180511
Claim184117452023-10-23 8:20:35249 days ago1698049235IN
0x47f8Dd8d...9EC13A211
0 ETH0.001882879.52941561
Purchase184092332023-10-22 23:53:35249 days ago1698018815IN
0x47f8Dd8d...9EC13A211
0 ETH0.001581756.87233513
Claim184085422023-10-22 21:34:11249 days ago1698010451IN
0x47f8Dd8d...9EC13A211
0 ETH0.00178368.3079926
Claim184072982023-10-22 17:23:35249 days ago1697995415IN
0x47f8Dd8d...9EC13A211
0 ETH0.001810628.43383126
Purchase184040502023-10-22 6:27:23250 days ago1697956043IN
0x47f8Dd8d...9EC13A211
0 ETH0.000942226.70066614
Claim184040482023-10-22 6:26:59250 days ago1697956019IN
0x47f8Dd8d...9EC13A211
0 ETH0.00123676.25909546
Claim183984112023-10-21 11:33:11250 days ago1697887991IN
0x47f8Dd8d...9EC13A211
0 ETH0.001339526.77945929
Claim183958332023-10-21 2:53:35251 days ago1697856815IN
0x47f8Dd8d...9EC13A211
0 ETH0.001188786.01654817
Claim183950732023-10-21 0:20:11251 days ago1697847611IN
0x47f8Dd8d...9EC13A211
0 ETH0.001531487.75099186
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
185820992023-11-16 4:36:35225 days ago1700109395
0x47f8Dd8d...9EC13A211
0.02049521 ETH
185820992023-11-16 4:36:35225 days ago1700109395
0x47f8Dd8d...9EC13A211
0.02049521 ETH
185487232023-11-11 12:34:59229 days ago1699706099
0x47f8Dd8d...9EC13A211
0.19672826 ETH
185487232023-11-11 12:34:59229 days ago1699706099
0x47f8Dd8d...9EC13A211
0.19672826 ETH
185486922023-11-11 12:28:47229 days ago1699705727
0x47f8Dd8d...9EC13A211
0.05175402 ETH
185486922023-11-11 12:28:47229 days ago1699705727
0x47f8Dd8d...9EC13A211
0.05175402 ETH
185486882023-11-11 12:27:59229 days ago1699705679
0x47f8Dd8d...9EC13A211
0.07630344 ETH
185486882023-11-11 12:27:59229 days ago1699705679
0x47f8Dd8d...9EC13A211
0.07630344 ETH
184756172023-11-01 6:58:23240 days ago1698821903
0x47f8Dd8d...9EC13A211
0.00535371 ETH
184756172023-11-01 6:58:23240 days ago1698821903
0x47f8Dd8d...9EC13A211
0.00535371 ETH
184756072023-11-01 6:56:23240 days ago1698821783
0x47f8Dd8d...9EC13A211
0.00535371 ETH
184756072023-11-01 6:56:23240 days ago1698821783
0x47f8Dd8d...9EC13A211
0.00535371 ETH
184755942023-11-01 6:53:47240 days ago1698821627
0x47f8Dd8d...9EC13A211
0.00535371 ETH
184755942023-11-01 6:53:47240 days ago1698821627
0x47f8Dd8d...9EC13A211
0.00535371 ETH
184590302023-10-29 23:12:23242 days ago1698621143
0x47f8Dd8d...9EC13A211
0.00085561 ETH
184590302023-10-29 23:12:23242 days ago1698621143
0x47f8Dd8d...9EC13A211
0.00085561 ETH
184578672023-10-29 19:17:47242 days ago1698607067
0x47f8Dd8d...9EC13A211
0.03278021 ETH
184578672023-10-29 19:17:47242 days ago1698607067
0x47f8Dd8d...9EC13A211
0.03278021 ETH
184516232023-10-28 22:18:23243 days ago1698531503
0x47f8Dd8d...9EC13A211
0.00349571 ETH
184516232023-10-28 22:18:23243 days ago1698531503
0x47f8Dd8d...9EC13A211
0.00349571 ETH
184390142023-10-27 3:58:59245 days ago1698379139
0x47f8Dd8d...9EC13A211
0.00314751 ETH
184390142023-10-27 3:58:59245 days ago1698379139
0x47f8Dd8d...9EC13A211
0.00314751 ETH
184327302023-10-26 6:53:23246 days ago1698303203
0x47f8Dd8d...9EC13A211
0.00449432 ETH
184327302023-10-26 6:53:23246 days ago1698303203
0x47f8Dd8d...9EC13A211
0.00449432 ETH
184231662023-10-24 22:42:47247 days ago1698187367
0x47f8Dd8d...9EC13A211
0.00280357 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
EGMCMine

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : EGMCMine.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.19;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

import "./interfaces/IEGMC.sol";
import "./interfaces/IWETH.sol";
import "./interfaces/IEGMCRewardsDistributor.sol";

contract EGMCMine is Ownable {
    using Address for address payable;
    using SafeMath for uint;
    using SafeERC20 for IERC20;

    IEGMC public immutable token;
    IWETH public immutable WETH;

    uint private constant REWARD_FACTOR_ACCURACY = 1_000_000_000_000 ether;
    uint private constant PERCENTAGE_DENOMINATOR = 10 ** 3;

    address public rewardsDistributor;
    address public shareholderDistributor;
    uint public allTimeGoldRewards;
    uint public allTimeGoldRewardsClaimed;
    uint public allTimeSilverRewards;
    uint public allTimeSilverRewardsClaimed;
    uint public totalMiningPower;
    uint public currentGoldRewardFactor;
    uint public currentSilverRewardFactor;
    bool public isDepositingEnabled;

    uint public currentEpoch;
    uint public mineShare = 400;

    struct Tool {
        bool enabled;
        uint miningPower;
        uint cost;
    }

    struct User {
        uint goldRewardFactor;
        uint goldHeldRewards;
        uint silverRewardFactor;
        uint silverHeldRewards;
        uint miningPower;
    }

    mapping(uint => Tool) public tools;
    mapping(address => User) private _users;
    mapping(address => bool) private _whitelisted;

    event DepositingEnabled();
    event DepositingDisabled();
    event Purchased(address user, uint amount);
    event Claimed(address user, uint goldRewards, uint silverRewards);
    event Distributed(uint goldRewards, uint silverRewards, uint totalMiningPower);
    event NewEpoch(uint oldEpoch, uint newEpoch);

    constructor (
        address _token
    ) {
        token = IEGMC(_token);
        WETH = IWETH(token.WETH());

        _setTool(0, true, 5, 184.80 ether);
        _setTool(1, true, 10, 351.12 ether);
        _setTool(2, true, 50, 1663.20 ether);

        _whitelisted[_msgSender()] = true;
    }

    /** VIEW FUNCTIONS */

    function getAmounts() external view returns (uint goldAmount, uint silverAmount) {
        (goldAmount, silverAmount) = IEGMCRewardsDistributor(rewardsDistributor).getAmounts();
    }

    function getMiningPower(address _user) external view returns (uint) {
        return _users[_user].miningPower;
    }

    function getReward(address _user) external view returns (uint goldReward, uint silverReward) {
        goldReward = _getGoldHeldRewards(_user) + _getGoldCalculatedRewards(_user);
        silverReward = _getSilverHeldRewards(_user) + _getSilverCalculatedRewards(_user);
    }

    function _getGoldHeldRewards(address _user) private view returns (uint) {
        return _users[_user].goldHeldRewards;
    }

    function _getSilverHeldRewards(address _user) private view returns (uint) {
        return _users[_user].silverHeldRewards;
    }

    function _getGoldCalculatedRewards(address _user) private view returns (uint) {
        uint balance = _users[_user].miningPower;
        return balance * (currentGoldRewardFactor - _users[_user].goldRewardFactor) / REWARD_FACTOR_ACCURACY;
    }

    function _getSilverCalculatedRewards(address _user) private view returns (uint) {
        uint balance = _users[_user].miningPower;
        return balance * (currentSilverRewardFactor - _users[_user].silverRewardFactor) / REWARD_FACTOR_ACCURACY;
    }

    function _mergeRewards(address _account) private {
        _holdCalculatedRewards(_account);
        _users[_account].goldRewardFactor = currentGoldRewardFactor;
        _users[_account].silverRewardFactor = currentSilverRewardFactor;
    }

    function _holdCalculatedRewards(address _account) private {
        uint calculatedGoldReward = _getGoldCalculatedRewards(_account);
        if (calculatedGoldReward > 0) {
            _users[_account].goldHeldRewards += calculatedGoldReward;
        }

        uint calculatedSilverReward = _getSilverCalculatedRewards(_account);
        if (calculatedSilverReward > 0) {
            _users[_account].silverHeldRewards += calculatedSilverReward;
        }
    }

    /** INTERNAL FUNCTIONS */

    function _distribute() internal {
        if (totalMiningPower > 0) {
            (uint goldAmount, uint silverAmount) = IEGMCRewardsDistributor(rewardsDistributor).distribute();

            if (goldAmount > 0) {
                allTimeGoldRewards += goldAmount;
                currentGoldRewardFactor += REWARD_FACTOR_ACCURACY * goldAmount / totalMiningPower;
            }

            if (silverAmount > 0) {
                allTimeSilverRewards += silverAmount;
                currentSilverRewardFactor += REWARD_FACTOR_ACCURACY * silverAmount / totalMiningPower;
            }

            emit Distributed(goldAmount, silverAmount, totalMiningPower);
        }
    }

    function _updateUser(address _user, uint _miningPower) internal {
        _mergeRewards(_user);
        _users[_user].miningPower += _miningPower;
        totalMiningPower += _miningPower;
    }

    function _setEpoch() internal {
        uint newEpoch = uint(block.timestamp / 1 hours);
        emit NewEpoch(currentEpoch, newEpoch);
        currentEpoch = newEpoch;
    }

    function _setTool(uint _id, bool _enabled, uint _miningPower, uint _cost) internal {
        tools[_id] = Tool(_enabled, _miningPower, _cost);
    }

    /** EXTERNAL FUNCTIONS */

    function purchase(uint _id, uint _quantity) external checkIfNewEpoch {
        require(isDepositingEnabled, "Depositing is not allowed at this time");
        require(tools[_id].enabled, "This tool is not enabled");

        uint miningPower = tools[_id].miningPower * _quantity;
        _updateUser(_msgSender(), miningPower);

        uint totalCost = tools[_id].cost * _quantity;
        IERC20(address(token)).safeTransferFrom(_msgSender(), address(this), totalCost);

        uint mineAmount = totalCost * mineShare / PERCENTAGE_DENOMINATOR;
        IERC20(address(token)).safeTransfer(rewardsDistributor, mineAmount);
        IERC20(address(token)).safeTransfer(shareholderDistributor, totalCost - mineAmount);

        emit Purchased(_msgSender(), miningPower);
    }

    function claim() external checkIfNewEpoch {
        _mergeRewards(_msgSender());

        uint goldHeldRewards = _users[_msgSender()].goldHeldRewards;
        if (goldHeldRewards > 0) {
            _users[_msgSender()].goldHeldRewards = 0;
            allTimeGoldRewardsClaimed += goldHeldRewards;

            uint balanceBefore = address(this).balance;
            WETH.withdraw(goldHeldRewards);
            payable(_msgSender()).sendValue(address(this).balance - balanceBefore);
        }

        uint silverHeldRewards = _users[_msgSender()].silverHeldRewards;
        if (silverHeldRewards > 0) {
            _users[_msgSender()].silverHeldRewards = 0;
            allTimeSilverRewardsClaimed += silverHeldRewards;
            IERC20(token).safeTransfer(_msgSender(), silverHeldRewards);
        }

        emit Claimed(_msgSender(), goldHeldRewards, silverHeldRewards);
    }

    /** RESTRICTED FUNCTIONS */

    function distribute() external {
        require(_whitelisted[_msgSender()], "Caller is not whitelisted!");
        _distribute();
        _setEpoch();
    }

    function enableDepositing() external onlyOwner {
        require(!isDepositingEnabled, "Depositing is already enabled");
        isDepositingEnabled = true;
        _setEpoch();
        emit DepositingEnabled();
    }

    function disableDepositing() external onlyOwner {
        require(isDepositingEnabled, "Depositing is already disabled");
        isDepositingEnabled = false;
        emit DepositingDisabled();
    }

    function setRewardsDistributor(address _distributor) external onlyOwner {
        rewardsDistributor = _distributor;
    }

    function setShareholderDistributor(address _distributor) external onlyOwner {
        shareholderDistributor = _distributor;
    }

    function setTool(uint id, bool enabled, uint miningPower, uint cost) external onlyOwner {
        _setTool(id, enabled, miningPower, cost);
    }

    function setWhitelist(address _account, bool _enabled) external onlyOwner {
        _whitelisted[_account] = _enabled;
    }

    function recover(address _token) external onlyOwner {
        IERC20(_token).transfer(owner(), IERC20(_token).balanceOf(address(this)));
    }

    function recover() external onlyOwner {
        payable(owner()).sendValue(address(this).balance);
    }

    /** MODIFIERS */

    modifier checkIfNewEpoch() {
        if (uint(block.timestamp / 1 hours) > currentEpoch) {
            _distribute();
            _setEpoch();
        }

        _;
    }

    receive() external payable {}
}

File 2 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @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.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * 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.
 */
abstract 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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(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 virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 11 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 4 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool);
}

File 5 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
     * 0 before setting it to a non-zero value.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 6 of 11 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 7 of 11 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.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 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.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 8 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 9 of 11 : IEGMC.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IEGMC is IERC20 {
    function uniswapV2Router() external view returns (address);
    function uniswapV2Pair() external view returns (address);
    function WETH() external view returns (address);

    function liquidityWallet() external view returns (address);
}

File 10 of 11 : IEGMCRewardsDistributor.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IEGMCRewardsDistributor {
    function getAmounts() external view returns (uint goldRewards, uint silverRewards);
    function distribute() external returns (uint goldAmount, uint silverAmount);
}

File 11 of 11 : IWETH.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;

interface IWETH {
    function deposit() external payable;
    function transfer(address to, uint value) external returns (bool);
    function withdraw(uint) external;
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"goldRewards","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"silverRewards","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[],"name":"DepositingDisabled","type":"event"},{"anonymous":false,"inputs":[],"name":"DepositingEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"goldRewards","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"silverRewards","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalMiningPower","type":"uint256"}],"name":"Distributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldEpoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newEpoch","type":"uint256"}],"name":"NewEpoch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Purchased","type":"event"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"contract IWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allTimeGoldRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allTimeGoldRewardsClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allTimeSilverRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allTimeSilverRewardsClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentGoldRewardFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentSilverRewardFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableDepositing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableDepositing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAmounts","outputs":[{"internalType":"uint256","name":"goldAmount","type":"uint256"},{"internalType":"uint256","name":"silverAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getMiningPower","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getReward","outputs":[{"internalType":"uint256","name":"goldReward","type":"uint256"},{"internalType":"uint256","name":"silverReward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isDepositingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mineShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"purchase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"recover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"recover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardsDistributor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_distributor","type":"address"}],"name":"setRewardsDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_distributor","type":"address"}],"name":"setShareholderDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bool","name":"enabled","type":"bool"},{"internalType":"uint256","name":"miningPower","type":"uint256"},{"internalType":"uint256","name":"cost","type":"uint256"}],"name":"setTool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shareholderDistributor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IEGMC","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tools","outputs":[{"internalType":"bool","name":"enabled","type":"bool"},{"internalType":"uint256","name":"miningPower","type":"uint256"},{"internalType":"uint256","name":"cost","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMiningPower","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c0604052610190600c553480156200001757600080fd5b50604051620032943803806200329483398181016040528101906200003d9190620003a8565b6200005d620000516200020560201b60201c565b6200020d60201b60201c565b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff168152505060805173ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620000df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001059190620003a8565b73ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff168152505062000158600060016005680a049d7ce33c300000620002d160201b60201c565b62000177600180600a681308c4d3afbf280000620002d160201b60201c565b62000197600260016032685a298963fd1db00000620002d160201b60201c565b6001600f6000620001ad6200020560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050620003da565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6040518060600160405280841515815260200183815260200182815250600d600086815260200190815260200160002060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101556040820151816002015590505050505050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003708262000343565b9050919050565b620003828162000363565b81146200038e57600080fd5b50565b600081519050620003a28162000377565b92915050565b600060208284031215620003c157620003c06200033e565b5b6000620003d18482850162000391565b91505092915050565b60805160a051612e716200042360003960008181610b410152611195015260008181610cd401528181610f0801528181610f950152818161100d01526114210152612e716000f3fe6080604052600436106101e75760003560e01c8063a5d87d6c11610102578063d1f5c33b11610095578063f08ee71911610064578063f08ee7191461065d578063f2fde38b14610688578063f42a3511146106b1578063fc0c546a146106dc576101ee565b8063d1f5c33b146105c7578063e4fc6b6d146105f0578063e9fcfbd914610607578063ec81532a14610632576101ee565b8063bc60c31d116100d1578063bc60c31d1461050a578063c00007b014610549578063c2ed0cec14610587578063ce746024146105b0576101ee565b8063a5d87d6c14610472578063a68d313514610489578063aaf435aa146104b4578063ad5c4648146104df576101ee565b80634e71d92d1161017a578063766718081161014957806376671808146103c65780638da5cb5b146103f15780639f1256291461041c578063a2bab5d614610447576101ee565b80634e71d92d1461034657806353d6fd591461035d57806370876c9814610386578063715018a6146103af576101ee565b806320a14e4d116101b657806320a14e4d146102995780633d370b4e146102c45780633f2a5540146102f0578063432954c31461031b576101ee565b8063032b31dc146101f357806304d7ba151461023057806307ed4ac9146102475780630cd865ec14610270576101ee565b366101ee57005b600080fd5b3480156101ff57600080fd5b5061021a60048036038101906102159190612114565b610707565b604051610227919061215a565b60405180910390f35b34801561023c57600080fd5b50610245610753565b005b34801561025357600080fd5b5061026e60048036038101906102699190612114565b6107fc565b005b34801561027c57600080fd5b5061029760048036038101906102929190612114565b610848565b005b3480156102a557600080fd5b506102ae610952565b6040516102bb919061215a565b60405180910390f35b3480156102d057600080fd5b506102d9610958565b6040516102e7929190612175565b60405180910390f35b3480156102fc57600080fd5b506103056109f7565b60405161031291906121ad565b60405180910390f35b34801561032757600080fd5b50610330610a1d565b60405161033d91906121ad565b60405180910390f35b34801561035257600080fd5b5061035b610a43565b005b34801561036957600080fd5b50610384600480360381019061037f9190612200565b610d5f565b005b34801561039257600080fd5b506103ad60048036038101906103a8919061226c565b610dc2565b005b3480156103bb57600080fd5b506103c4611098565b005b3480156103d257600080fd5b506103db6110ac565b6040516103e8919061215a565b60405180910390f35b3480156103fd57600080fd5b506104066110b2565b60405161041391906121ad565b60405180910390f35b34801561042857600080fd5b506104316110db565b60405161043e919061215a565b60405180910390f35b34801561045357600080fd5b5061045c6110e1565b604051610469919061215a565b60405180910390f35b34801561047e57600080fd5b506104876110e7565b005b34801561049557600080fd5b5061049e611187565b6040516104ab919061215a565b60405180910390f35b3480156104c057600080fd5b506104c961118d565b6040516104d6919061215a565b60405180910390f35b3480156104eb57600080fd5b506104f4611193565b604051610501919061230b565b60405180910390f35b34801561051657600080fd5b50610531600480360381019061052c9190612326565b6111b7565b60405161054093929190612362565b60405180910390f35b34801561055557600080fd5b50610570600480360381019061056b9190612114565b6111ee565b60405161057e929190612175565b60405180910390f35b34801561059357600080fd5b506105ae60048036038101906105a99190612399565b611232565b005b3480156105bc57600080fd5b506105c561124c565b005b3480156105d357600080fd5b506105ee60048036038101906105e99190612114565b611286565b005b3480156105fc57600080fd5b506106056112d2565b005b34801561061357600080fd5b5061061c611377565b604051610629919061215a565b60405180910390f35b34801561063e57600080fd5b5061064761137d565b6040516106549190612400565b60405180910390f35b34801561066957600080fd5b50610672611390565b60405161067f919061215a565b60405180910390f35b34801561069457600080fd5b506106af60048036038101906106aa9190612114565b611396565b005b3480156106bd57600080fd5b506106c6611419565b6040516106d3919061215a565b60405180910390f35b3480156106e857600080fd5b506106f161141f565b6040516106fe919061243c565b60405180910390f35b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600401549050919050565b61075b611443565b600a60009054906101000a900460ff16156107ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a2906124b4565b60405180910390fd5b6001600a60006101000a81548160ff0219169083151502179055506107ce6114c1565b7f8d8235615e2606a7fbb90e968cf1f1d51deafcb5ec8e6c339883b812cf5e0c0c60405160405180910390a1565b610804611443565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610850611443565b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6108746110b2565b8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108ad91906121ad565b602060405180830381865afa1580156108ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ee91906124e9565b6040518363ffffffff1660e01b815260040161090b929190612516565b6020604051808303816000875af115801561092a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094e9190612554565b5050565b60095481565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633d370b4e6040518163ffffffff1660e01b81526004016040805180830381865afa1580156109c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109eb9190612581565b80925081935050509091565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b54610e1042610a54919061261f565b1115610a6b57610a62611518565b610a6a6114c1565b5b610a7b610a766116c0565b6116c8565b6000600e6000610a896116c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015490506000811115610c07576000600e6000610ae06116c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055508060046000828254610b339190612650565b9250508190555060004790507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d836040518263ffffffff1660e01b8152600401610b98919061215a565b600060405180830381600087803b158015610bb257600080fd5b505af1158015610bc6573d6000803e3d6000fd5b50505050610c058147610bd99190612684565b610be16116c0565b73ffffffffffffffffffffffffffffffffffffffff1661176690919063ffffffff16565b505b6000600e6000610c156116c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003015490506000811115610d19576000600e6000610c6c6116c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301819055508060066000828254610cbf9190612650565b92505081905550610d18610cd16116c0565b827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661185a9092919063ffffffff16565b5b7f987d620f307ff6b94d58743cb7a7509f24071586a77759b77c2d4e29f75a2f9a610d426116c0565b8383604051610d53939291906126b8565b60405180910390a15050565b610d67611443565b80600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600b54610e1042610dd3919061261f565b1115610dea57610de1611518565b610de96114c1565b5b600a60009054906101000a900460ff16610e39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3090612761565b60405180910390fd5b600d600083815260200190815260200160002060000160009054906101000a900460ff16610e9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e93906127cd565b60405180910390fd5b600081600d600085815260200190815260200160002060010154610ec091906127ed565b9050610ed3610ecd6116c0565b826118e0565b600082600d600086815260200190815260200160002060020154610ef791906127ed565b9050610f4d610f046116c0565b30837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661195f909392919063ffffffff16565b60006103e8600c5483610f6091906127ed565b610f6a919061261f565b9050610fd9600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661185a9092919063ffffffff16565b611051600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828461100b9190612684565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661185a9092919063ffffffff16565b7fa512fb2532ca8587f236380171326ebb69670e86a2ba0c4412a3fcca4c3ada9b61107a6116c0565b84604051611089929190612516565b60405180910390a15050505050565b6110a0611443565b6110aa60006119e8565b565b600b5481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60055481565b60035481565b6110ef611443565b600a60009054906101000a900460ff1661113e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111359061287b565b60405180910390fd5b6000600a60006101000a81548160ff0219169083151502179055507f1d2df1f82541c9ce547cfbcb99cb9ea10d959f53ca0c7b47e17640932dadc42060405160405180910390a1565b60085481565b60075481565b7f000000000000000000000000000000000000000000000000000000000000000081565b600d6020528060005260406000206000915090508060000160009054906101000a900460ff16908060010154908060020154905083565b6000806111fa83611aac565b61120384611b6f565b61120d9190612650565b915061121883611bbb565b61122184611c7e565b61122b9190612650565b9050915091565b61123a611443565b61124684848484611cca565b50505050565b611254611443565b611284476112606110b2565b73ffffffffffffffffffffffffffffffffffffffff1661176690919063ffffffff16565b565b61128e611443565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600f60006112de6116c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135c906128e7565b60405180910390fd5b61136d611518565b6113756114c1565b565b60045481565b600a60009054906101000a900460ff1681565b60065481565b61139e611443565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361140d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140490612979565b60405180910390fd5b611416816119e8565b50565b600c5481565b7f000000000000000000000000000000000000000000000000000000000000000081565b61144b6116c0565b73ffffffffffffffffffffffffffffffffffffffff166114696110b2565b73ffffffffffffffffffffffffffffffffffffffff16146114bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b6906129e5565b60405180910390fd5b565b6000610e10426114d1919061261f565b90507f3ef85928df9ae51bdb3eb4c00ec73b92b82307f319ac1b029de14796a0972609600b5482604051611506929190612175565b60405180910390a180600b8190555050565b600060075411156116be57600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e4fc6b6d6040518163ffffffff1660e01b815260040160408051808303816000875af1158015611594573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b89190612581565b91509150600082111561161d5781600360008282546115d79190612650565b92505081905550600754826c0c9f2c9cd04674edea400000006115fa91906127ed565b611604919061261f565b600860008282546116159190612650565b925050819055505b600081111561167e5780600560008282546116389190612650565b92505081905550600754816c0c9f2c9cd04674edea4000000061165b91906127ed565b611665919061261f565b600960008282546116769190612650565b925050819055505b7fc5d35a65af09b3042394b742529d10f7fbf9a37294d6b13e4d63d06f9909a15b82826007546040516116b393929190612a05565b60405180910390a150505b565b600033905090565b6116d181611d37565b600854600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550600954600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002018190555050565b804710156117a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a090612a88565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516117cf90612ad9565b60006040518083038185875af1925050503d806000811461180c576040519150601f19603f3d011682016040523d82523d6000602084013e611811565b606091505b5050905080611855576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184c90612b60565b60405180910390fd5b505050565b6118db8363a9059cbb60e01b8484604051602401611879929190612516565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611e1c565b505050565b6118e9826116c8565b80600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600401600082825461193b9190612650565b9250508190555080600760008282546119549190612650565b925050819055505050565b6119e2846323b872dd60e01b85858560405160240161198093929190612b80565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611e1c565b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206004015490506c0c9f2c9cd04674edea40000000600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154600854611b529190612684565b82611b5d91906127ed565b611b67919061261f565b915050919050565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549050919050565b600080600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206004015490506c0c9f2c9cd04674edea40000000600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020154600954611c619190612684565b82611c6c91906127ed565b611c76919061261f565b915050919050565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301549050919050565b6040518060600160405280841515815260200183815260200182815250600d600086815260200190815260200160002060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101556040820151816002015590505050505050565b6000611d4282611aac565b90506000811115611da75780600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254611d9f9190612650565b925050819055505b6000611db283611bbb565b90506000811115611e175780600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003016000828254611e0f9190612650565b925050819055505b505050565b6000611e7e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611ee49092919063ffffffff16565b9050600081511480611ea0575080806020019051810190611e9f9190612554565b5b611edf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed690612c29565b60405180910390fd5b505050565b6060611ef38484600085611efc565b90509392505050565b606082471015611f41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3890612cbb565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611f6a9190612d41565b60006040518083038185875af1925050503d8060008114611fa7576040519150601f19603f3d011682016040523d82523d6000602084013e611fac565b606091505b5091509150611fbd87838387611fc9565b92505050949350505050565b6060831561202b57600083510361202357611fe38561203e565b612022576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201990612da4565b60405180910390fd5b5b829050612036565b6120358383612061565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156120745781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a89190612e19565b60405180910390fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006120e1826120b6565b9050919050565b6120f1816120d6565b81146120fc57600080fd5b50565b60008135905061210e816120e8565b92915050565b60006020828403121561212a576121296120b1565b5b6000612138848285016120ff565b91505092915050565b6000819050919050565b61215481612141565b82525050565b600060208201905061216f600083018461214b565b92915050565b600060408201905061218a600083018561214b565b612197602083018461214b565b9392505050565b6121a7816120d6565b82525050565b60006020820190506121c2600083018461219e565b92915050565b60008115159050919050565b6121dd816121c8565b81146121e857600080fd5b50565b6000813590506121fa816121d4565b92915050565b60008060408385031215612217576122166120b1565b5b6000612225858286016120ff565b9250506020612236858286016121eb565b9150509250929050565b61224981612141565b811461225457600080fd5b50565b60008135905061226681612240565b92915050565b60008060408385031215612283576122826120b1565b5b600061229185828601612257565b92505060206122a285828601612257565b9150509250929050565b6000819050919050565b60006122d16122cc6122c7846120b6565b6122ac565b6120b6565b9050919050565b60006122e3826122b6565b9050919050565b60006122f5826122d8565b9050919050565b612305816122ea565b82525050565b600060208201905061232060008301846122fc565b92915050565b60006020828403121561233c5761233b6120b1565b5b600061234a84828501612257565b91505092915050565b61235c816121c8565b82525050565b60006060820190506123776000830186612353565b612384602083018561214b565b612391604083018461214b565b949350505050565b600080600080608085870312156123b3576123b26120b1565b5b60006123c187828801612257565b94505060206123d2878288016121eb565b93505060406123e387828801612257565b92505060606123f487828801612257565b91505092959194509250565b60006020820190506124156000830184612353565b92915050565b6000612426826122d8565b9050919050565b6124368161241b565b82525050565b6000602082019050612451600083018461242d565b92915050565b600082825260208201905092915050565b7f4465706f736974696e6720697320616c726561647920656e61626c6564000000600082015250565b600061249e601d83612457565b91506124a982612468565b602082019050919050565b600060208201905081810360008301526124cd81612491565b9050919050565b6000815190506124e381612240565b92915050565b6000602082840312156124ff576124fe6120b1565b5b600061250d848285016124d4565b91505092915050565b600060408201905061252b600083018561219e565b612538602083018461214b565b9392505050565b60008151905061254e816121d4565b92915050565b60006020828403121561256a576125696120b1565b5b60006125788482850161253f565b91505092915050565b60008060408385031215612598576125976120b1565b5b60006125a6858286016124d4565b92505060206125b7858286016124d4565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061262a82612141565b915061263583612141565b925082612645576126446125c1565b5b828204905092915050565b600061265b82612141565b915061266683612141565b925082820190508082111561267e5761267d6125f0565b5b92915050565b600061268f82612141565b915061269a83612141565b92508282039050818111156126b2576126b16125f0565b5b92915050565b60006060820190506126cd600083018661219e565b6126da602083018561214b565b6126e7604083018461214b565b949350505050565b7f4465706f736974696e67206973206e6f7420616c6c6f7765642061742074686960008201527f732074696d650000000000000000000000000000000000000000000000000000602082015250565b600061274b602683612457565b9150612756826126ef565b604082019050919050565b6000602082019050818103600083015261277a8161273e565b9050919050565b7f5468697320746f6f6c206973206e6f7420656e61626c65640000000000000000600082015250565b60006127b7601883612457565b91506127c282612781565b602082019050919050565b600060208201905081810360008301526127e6816127aa565b9050919050565b60006127f882612141565b915061280383612141565b925082820261281181612141565b91508282048414831517612828576128276125f0565b5b5092915050565b7f4465706f736974696e6720697320616c72656164792064697361626c65640000600082015250565b6000612865601e83612457565b91506128708261282f565b602082019050919050565b6000602082019050818103600083015261289481612858565b9050919050565b7f43616c6c6572206973206e6f742077686974656c697374656421000000000000600082015250565b60006128d1601a83612457565b91506128dc8261289b565b602082019050919050565b60006020820190508181036000830152612900816128c4565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612963602683612457565b915061296e82612907565b604082019050919050565b6000602082019050818103600083015261299281612956565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006129cf602083612457565b91506129da82612999565b602082019050919050565b600060208201905081810360008301526129fe816129c2565b9050919050565b6000606082019050612a1a600083018661214b565b612a27602083018561214b565b612a34604083018461214b565b949350505050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000612a72601d83612457565b9150612a7d82612a3c565b602082019050919050565b60006020820190508181036000830152612aa181612a65565b9050919050565b600081905092915050565b50565b6000612ac3600083612aa8565b9150612ace82612ab3565b600082019050919050565b6000612ae482612ab6565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000612b4a603a83612457565b9150612b5582612aee565b604082019050919050565b60006020820190508181036000830152612b7981612b3d565b9050919050565b6000606082019050612b95600083018661219e565b612ba2602083018561219e565b612baf604083018461214b565b949350505050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000612c13602a83612457565b9150612c1e82612bb7565b604082019050919050565b60006020820190508181036000830152612c4281612c06565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000612ca5602683612457565b9150612cb082612c49565b604082019050919050565b60006020820190508181036000830152612cd481612c98565b9050919050565b600081519050919050565b60005b83811015612d04578082015181840152602081019050612ce9565b60008484015250505050565b6000612d1b82612cdb565b612d258185612aa8565b9350612d35818560208601612ce6565b80840191505092915050565b6000612d4d8284612d10565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612d8e601d83612457565b9150612d9982612d58565b602082019050919050565b60006020820190508181036000830152612dbd81612d81565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b6000612deb82612dc4565b612df58185612457565b9350612e05818560208601612ce6565b612e0e81612dcf565b840191505092915050565b60006020820190508181036000830152612e338184612de0565b90509291505056fea26469706673582212206231f47e4ae5852f1eec8469bb0471455ed384cbfb5dcec5ed8907642a31c06864736f6c63430008130033000000000000000000000000f70e5e46a50bba54917d9cb7aeb8b83610bcd969

Deployed Bytecode

0x6080604052600436106101e75760003560e01c8063a5d87d6c11610102578063d1f5c33b11610095578063f08ee71911610064578063f08ee7191461065d578063f2fde38b14610688578063f42a3511146106b1578063fc0c546a146106dc576101ee565b8063d1f5c33b146105c7578063e4fc6b6d146105f0578063e9fcfbd914610607578063ec81532a14610632576101ee565b8063bc60c31d116100d1578063bc60c31d1461050a578063c00007b014610549578063c2ed0cec14610587578063ce746024146105b0576101ee565b8063a5d87d6c14610472578063a68d313514610489578063aaf435aa146104b4578063ad5c4648146104df576101ee565b80634e71d92d1161017a578063766718081161014957806376671808146103c65780638da5cb5b146103f15780639f1256291461041c578063a2bab5d614610447576101ee565b80634e71d92d1461034657806353d6fd591461035d57806370876c9814610386578063715018a6146103af576101ee565b806320a14e4d116101b657806320a14e4d146102995780633d370b4e146102c45780633f2a5540146102f0578063432954c31461031b576101ee565b8063032b31dc146101f357806304d7ba151461023057806307ed4ac9146102475780630cd865ec14610270576101ee565b366101ee57005b600080fd5b3480156101ff57600080fd5b5061021a60048036038101906102159190612114565b610707565b604051610227919061215a565b60405180910390f35b34801561023c57600080fd5b50610245610753565b005b34801561025357600080fd5b5061026e60048036038101906102699190612114565b6107fc565b005b34801561027c57600080fd5b5061029760048036038101906102929190612114565b610848565b005b3480156102a557600080fd5b506102ae610952565b6040516102bb919061215a565b60405180910390f35b3480156102d057600080fd5b506102d9610958565b6040516102e7929190612175565b60405180910390f35b3480156102fc57600080fd5b506103056109f7565b60405161031291906121ad565b60405180910390f35b34801561032757600080fd5b50610330610a1d565b60405161033d91906121ad565b60405180910390f35b34801561035257600080fd5b5061035b610a43565b005b34801561036957600080fd5b50610384600480360381019061037f9190612200565b610d5f565b005b34801561039257600080fd5b506103ad60048036038101906103a8919061226c565b610dc2565b005b3480156103bb57600080fd5b506103c4611098565b005b3480156103d257600080fd5b506103db6110ac565b6040516103e8919061215a565b60405180910390f35b3480156103fd57600080fd5b506104066110b2565b60405161041391906121ad565b60405180910390f35b34801561042857600080fd5b506104316110db565b60405161043e919061215a565b60405180910390f35b34801561045357600080fd5b5061045c6110e1565b604051610469919061215a565b60405180910390f35b34801561047e57600080fd5b506104876110e7565b005b34801561049557600080fd5b5061049e611187565b6040516104ab919061215a565b60405180910390f35b3480156104c057600080fd5b506104c961118d565b6040516104d6919061215a565b60405180910390f35b3480156104eb57600080fd5b506104f4611193565b604051610501919061230b565b60405180910390f35b34801561051657600080fd5b50610531600480360381019061052c9190612326565b6111b7565b60405161054093929190612362565b60405180910390f35b34801561055557600080fd5b50610570600480360381019061056b9190612114565b6111ee565b60405161057e929190612175565b60405180910390f35b34801561059357600080fd5b506105ae60048036038101906105a99190612399565b611232565b005b3480156105bc57600080fd5b506105c561124c565b005b3480156105d357600080fd5b506105ee60048036038101906105e99190612114565b611286565b005b3480156105fc57600080fd5b506106056112d2565b005b34801561061357600080fd5b5061061c611377565b604051610629919061215a565b60405180910390f35b34801561063e57600080fd5b5061064761137d565b6040516106549190612400565b60405180910390f35b34801561066957600080fd5b50610672611390565b60405161067f919061215a565b60405180910390f35b34801561069457600080fd5b506106af60048036038101906106aa9190612114565b611396565b005b3480156106bd57600080fd5b506106c6611419565b6040516106d3919061215a565b60405180910390f35b3480156106e857600080fd5b506106f161141f565b6040516106fe919061243c565b60405180910390f35b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600401549050919050565b61075b611443565b600a60009054906101000a900460ff16156107ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a2906124b4565b60405180910390fd5b6001600a60006101000a81548160ff0219169083151502179055506107ce6114c1565b7f8d8235615e2606a7fbb90e968cf1f1d51deafcb5ec8e6c339883b812cf5e0c0c60405160405180910390a1565b610804611443565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610850611443565b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6108746110b2565b8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108ad91906121ad565b602060405180830381865afa1580156108ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ee91906124e9565b6040518363ffffffff1660e01b815260040161090b929190612516565b6020604051808303816000875af115801561092a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094e9190612554565b5050565b60095481565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633d370b4e6040518163ffffffff1660e01b81526004016040805180830381865afa1580156109c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109eb9190612581565b80925081935050509091565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b54610e1042610a54919061261f565b1115610a6b57610a62611518565b610a6a6114c1565b5b610a7b610a766116c0565b6116c8565b6000600e6000610a896116c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015490506000811115610c07576000600e6000610ae06116c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055508060046000828254610b339190612650565b9250508190555060004790507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d836040518263ffffffff1660e01b8152600401610b98919061215a565b600060405180830381600087803b158015610bb257600080fd5b505af1158015610bc6573d6000803e3d6000fd5b50505050610c058147610bd99190612684565b610be16116c0565b73ffffffffffffffffffffffffffffffffffffffff1661176690919063ffffffff16565b505b6000600e6000610c156116c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003015490506000811115610d19576000600e6000610c6c6116c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301819055508060066000828254610cbf9190612650565b92505081905550610d18610cd16116c0565b827f000000000000000000000000f70e5e46a50bba54917d9cb7aeb8b83610bcd96973ffffffffffffffffffffffffffffffffffffffff1661185a9092919063ffffffff16565b5b7f987d620f307ff6b94d58743cb7a7509f24071586a77759b77c2d4e29f75a2f9a610d426116c0565b8383604051610d53939291906126b8565b60405180910390a15050565b610d67611443565b80600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600b54610e1042610dd3919061261f565b1115610dea57610de1611518565b610de96114c1565b5b600a60009054906101000a900460ff16610e39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3090612761565b60405180910390fd5b600d600083815260200190815260200160002060000160009054906101000a900460ff16610e9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e93906127cd565b60405180910390fd5b600081600d600085815260200190815260200160002060010154610ec091906127ed565b9050610ed3610ecd6116c0565b826118e0565b600082600d600086815260200190815260200160002060020154610ef791906127ed565b9050610f4d610f046116c0565b30837f000000000000000000000000f70e5e46a50bba54917d9cb7aeb8b83610bcd96973ffffffffffffffffffffffffffffffffffffffff1661195f909392919063ffffffff16565b60006103e8600c5483610f6091906127ed565b610f6a919061261f565b9050610fd9600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16827f000000000000000000000000f70e5e46a50bba54917d9cb7aeb8b83610bcd96973ffffffffffffffffffffffffffffffffffffffff1661185a9092919063ffffffff16565b611051600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828461100b9190612684565b7f000000000000000000000000f70e5e46a50bba54917d9cb7aeb8b83610bcd96973ffffffffffffffffffffffffffffffffffffffff1661185a9092919063ffffffff16565b7fa512fb2532ca8587f236380171326ebb69670e86a2ba0c4412a3fcca4c3ada9b61107a6116c0565b84604051611089929190612516565b60405180910390a15050505050565b6110a0611443565b6110aa60006119e8565b565b600b5481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60055481565b60035481565b6110ef611443565b600a60009054906101000a900460ff1661113e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111359061287b565b60405180910390fd5b6000600a60006101000a81548160ff0219169083151502179055507f1d2df1f82541c9ce547cfbcb99cb9ea10d959f53ca0c7b47e17640932dadc42060405160405180910390a1565b60085481565b60075481565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b600d6020528060005260406000206000915090508060000160009054906101000a900460ff16908060010154908060020154905083565b6000806111fa83611aac565b61120384611b6f565b61120d9190612650565b915061121883611bbb565b61122184611c7e565b61122b9190612650565b9050915091565b61123a611443565b61124684848484611cca565b50505050565b611254611443565b611284476112606110b2565b73ffffffffffffffffffffffffffffffffffffffff1661176690919063ffffffff16565b565b61128e611443565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600f60006112de6116c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135c906128e7565b60405180910390fd5b61136d611518565b6113756114c1565b565b60045481565b600a60009054906101000a900460ff1681565b60065481565b61139e611443565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361140d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140490612979565b60405180910390fd5b611416816119e8565b50565b600c5481565b7f000000000000000000000000f70e5e46a50bba54917d9cb7aeb8b83610bcd96981565b61144b6116c0565b73ffffffffffffffffffffffffffffffffffffffff166114696110b2565b73ffffffffffffffffffffffffffffffffffffffff16146114bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b6906129e5565b60405180910390fd5b565b6000610e10426114d1919061261f565b90507f3ef85928df9ae51bdb3eb4c00ec73b92b82307f319ac1b029de14796a0972609600b5482604051611506929190612175565b60405180910390a180600b8190555050565b600060075411156116be57600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e4fc6b6d6040518163ffffffff1660e01b815260040160408051808303816000875af1158015611594573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b89190612581565b91509150600082111561161d5781600360008282546115d79190612650565b92505081905550600754826c0c9f2c9cd04674edea400000006115fa91906127ed565b611604919061261f565b600860008282546116159190612650565b925050819055505b600081111561167e5780600560008282546116389190612650565b92505081905550600754816c0c9f2c9cd04674edea4000000061165b91906127ed565b611665919061261f565b600960008282546116769190612650565b925050819055505b7fc5d35a65af09b3042394b742529d10f7fbf9a37294d6b13e4d63d06f9909a15b82826007546040516116b393929190612a05565b60405180910390a150505b565b600033905090565b6116d181611d37565b600854600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550600954600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002018190555050565b804710156117a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a090612a88565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516117cf90612ad9565b60006040518083038185875af1925050503d806000811461180c576040519150601f19603f3d011682016040523d82523d6000602084013e611811565b606091505b5050905080611855576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184c90612b60565b60405180910390fd5b505050565b6118db8363a9059cbb60e01b8484604051602401611879929190612516565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611e1c565b505050565b6118e9826116c8565b80600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600401600082825461193b9190612650565b9250508190555080600760008282546119549190612650565b925050819055505050565b6119e2846323b872dd60e01b85858560405160240161198093929190612b80565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611e1c565b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206004015490506c0c9f2c9cd04674edea40000000600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154600854611b529190612684565b82611b5d91906127ed565b611b67919061261f565b915050919050565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549050919050565b600080600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206004015490506c0c9f2c9cd04674edea40000000600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020154600954611c619190612684565b82611c6c91906127ed565b611c76919061261f565b915050919050565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301549050919050565b6040518060600160405280841515815260200183815260200182815250600d600086815260200190815260200160002060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101556040820151816002015590505050505050565b6000611d4282611aac565b90506000811115611da75780600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254611d9f9190612650565b925050819055505b6000611db283611bbb565b90506000811115611e175780600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003016000828254611e0f9190612650565b925050819055505b505050565b6000611e7e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611ee49092919063ffffffff16565b9050600081511480611ea0575080806020019051810190611e9f9190612554565b5b611edf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed690612c29565b60405180910390fd5b505050565b6060611ef38484600085611efc565b90509392505050565b606082471015611f41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3890612cbb565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611f6a9190612d41565b60006040518083038185875af1925050503d8060008114611fa7576040519150601f19603f3d011682016040523d82523d6000602084013e611fac565b606091505b5091509150611fbd87838387611fc9565b92505050949350505050565b6060831561202b57600083510361202357611fe38561203e565b612022576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201990612da4565b60405180910390fd5b5b829050612036565b6120358383612061565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156120745781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a89190612e19565b60405180910390fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006120e1826120b6565b9050919050565b6120f1816120d6565b81146120fc57600080fd5b50565b60008135905061210e816120e8565b92915050565b60006020828403121561212a576121296120b1565b5b6000612138848285016120ff565b91505092915050565b6000819050919050565b61215481612141565b82525050565b600060208201905061216f600083018461214b565b92915050565b600060408201905061218a600083018561214b565b612197602083018461214b565b9392505050565b6121a7816120d6565b82525050565b60006020820190506121c2600083018461219e565b92915050565b60008115159050919050565b6121dd816121c8565b81146121e857600080fd5b50565b6000813590506121fa816121d4565b92915050565b60008060408385031215612217576122166120b1565b5b6000612225858286016120ff565b9250506020612236858286016121eb565b9150509250929050565b61224981612141565b811461225457600080fd5b50565b60008135905061226681612240565b92915050565b60008060408385031215612283576122826120b1565b5b600061229185828601612257565b92505060206122a285828601612257565b9150509250929050565b6000819050919050565b60006122d16122cc6122c7846120b6565b6122ac565b6120b6565b9050919050565b60006122e3826122b6565b9050919050565b60006122f5826122d8565b9050919050565b612305816122ea565b82525050565b600060208201905061232060008301846122fc565b92915050565b60006020828403121561233c5761233b6120b1565b5b600061234a84828501612257565b91505092915050565b61235c816121c8565b82525050565b60006060820190506123776000830186612353565b612384602083018561214b565b612391604083018461214b565b949350505050565b600080600080608085870312156123b3576123b26120b1565b5b60006123c187828801612257565b94505060206123d2878288016121eb565b93505060406123e387828801612257565b92505060606123f487828801612257565b91505092959194509250565b60006020820190506124156000830184612353565b92915050565b6000612426826122d8565b9050919050565b6124368161241b565b82525050565b6000602082019050612451600083018461242d565b92915050565b600082825260208201905092915050565b7f4465706f736974696e6720697320616c726561647920656e61626c6564000000600082015250565b600061249e601d83612457565b91506124a982612468565b602082019050919050565b600060208201905081810360008301526124cd81612491565b9050919050565b6000815190506124e381612240565b92915050565b6000602082840312156124ff576124fe6120b1565b5b600061250d848285016124d4565b91505092915050565b600060408201905061252b600083018561219e565b612538602083018461214b565b9392505050565b60008151905061254e816121d4565b92915050565b60006020828403121561256a576125696120b1565b5b60006125788482850161253f565b91505092915050565b60008060408385031215612598576125976120b1565b5b60006125a6858286016124d4565b92505060206125b7858286016124d4565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061262a82612141565b915061263583612141565b925082612645576126446125c1565b5b828204905092915050565b600061265b82612141565b915061266683612141565b925082820190508082111561267e5761267d6125f0565b5b92915050565b600061268f82612141565b915061269a83612141565b92508282039050818111156126b2576126b16125f0565b5b92915050565b60006060820190506126cd600083018661219e565b6126da602083018561214b565b6126e7604083018461214b565b949350505050565b7f4465706f736974696e67206973206e6f7420616c6c6f7765642061742074686960008201527f732074696d650000000000000000000000000000000000000000000000000000602082015250565b600061274b602683612457565b9150612756826126ef565b604082019050919050565b6000602082019050818103600083015261277a8161273e565b9050919050565b7f5468697320746f6f6c206973206e6f7420656e61626c65640000000000000000600082015250565b60006127b7601883612457565b91506127c282612781565b602082019050919050565b600060208201905081810360008301526127e6816127aa565b9050919050565b60006127f882612141565b915061280383612141565b925082820261281181612141565b91508282048414831517612828576128276125f0565b5b5092915050565b7f4465706f736974696e6720697320616c72656164792064697361626c65640000600082015250565b6000612865601e83612457565b91506128708261282f565b602082019050919050565b6000602082019050818103600083015261289481612858565b9050919050565b7f43616c6c6572206973206e6f742077686974656c697374656421000000000000600082015250565b60006128d1601a83612457565b91506128dc8261289b565b602082019050919050565b60006020820190508181036000830152612900816128c4565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612963602683612457565b915061296e82612907565b604082019050919050565b6000602082019050818103600083015261299281612956565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006129cf602083612457565b91506129da82612999565b602082019050919050565b600060208201905081810360008301526129fe816129c2565b9050919050565b6000606082019050612a1a600083018661214b565b612a27602083018561214b565b612a34604083018461214b565b949350505050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000612a72601d83612457565b9150612a7d82612a3c565b602082019050919050565b60006020820190508181036000830152612aa181612a65565b9050919050565b600081905092915050565b50565b6000612ac3600083612aa8565b9150612ace82612ab3565b600082019050919050565b6000612ae482612ab6565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000612b4a603a83612457565b9150612b5582612aee565b604082019050919050565b60006020820190508181036000830152612b7981612b3d565b9050919050565b6000606082019050612b95600083018661219e565b612ba2602083018561219e565b612baf604083018461214b565b949350505050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000612c13602a83612457565b9150612c1e82612bb7565b604082019050919050565b60006020820190508181036000830152612c4281612c06565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000612ca5602683612457565b9150612cb082612c49565b604082019050919050565b60006020820190508181036000830152612cd481612c98565b9050919050565b600081519050919050565b60005b83811015612d04578082015181840152602081019050612ce9565b60008484015250505050565b6000612d1b82612cdb565b612d258185612aa8565b9350612d35818560208601612ce6565b80840191505092915050565b6000612d4d8284612d10565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612d8e601d83612457565b9150612d9982612d58565b602082019050919050565b60006020820190508181036000830152612dbd81612d81565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b6000612deb82612dc4565b612df58185612457565b9350612e05818560208601612ce6565b612e0e81612dcf565b840191505092915050565b60006020820190508181036000830152612e338184612de0565b90509291505056fea26469706673582212206231f47e4ae5852f1eec8469bb0471455ed384cbfb5dcec5ed8907642a31c06864736f6c63430008130033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000f70e5e46a50bba54917d9cb7aeb8b83610bcd969

-----Decoded View---------------
Arg [0] : _token (address): 0xf70E5E46A50bba54917D9Cb7aEB8b83610bCd969

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000f70e5e46a50bba54917d9cb7aeb8b83610bcd969


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ 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.