ETH Price: $2,987.69 (+3.64%)
Gas: 2 Gwei

Contract

0x0281d9cB0ee12210c39E64F5d1C48004F1eC452f
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Claim185517862023-11-11 22:51:47237 days ago1699743107IN
0x0281d9cB...4F1eC452f
0 ETH0.0031452928.68748995
Claim185487372023-11-11 12:37:47237 days ago1699706267IN
0x0281d9cB...4F1eC452f
0 ETH0.0027740821.54793748
Claim185487322023-11-11 12:36:47237 days ago1699706207IN
0x0281d9cB...4F1eC452f
0 ETH0.0023618721.15618787
Claim185487322023-11-11 12:36:47237 days ago1699706207IN
0x0281d9cB...4F1eC452f
0 ETH0.0023618721.15618787
Claim184514702023-10-28 21:47:47251 days ago1698529667IN
0x0281d9cB...4F1eC452f
0 ETH0.001346115
Claim184203232023-10-24 13:09:35255 days ago1698152975IN
0x0281d9cB...4F1eC452f
0 ETH0.0058620352.50836522
Claim183908192023-10-20 10:03:47259 days ago1697796227IN
0x0281d9cB...4F1eC452f
0 ETH0.0009588910.14269134
Claim183782822023-10-18 15:59:11261 days ago1697644751IN
0x0281d9cB...4F1eC452f
0 ETH0.001850416.57476483
Claim183764062023-10-18 9:39:59261 days ago1697621999IN
0x0281d9cB...4F1eC452f
0 ETH0.000776726.95744095
Claim183764042023-10-18 9:39:35261 days ago1697621975IN
0x0281d9cB...4F1eC452f
0 ETH0.000745466.67738859
Claim183764022023-10-18 9:39:11261 days ago1697621951IN
0x0281d9cB...4F1eC452f
0 ETH0.000783527.01832358
Claim183764002023-10-18 9:38:47261 days ago1697621927IN
0x0281d9cB...4F1eC452f
0 ETH0.000819667.34200504
Claim183763982023-10-18 9:38:23261 days ago1697621903IN
0x0281d9cB...4F1eC452f
0 ETH0.000765776.85929056
Claim183763862023-10-18 9:35:59261 days ago1697621759IN
0x0281d9cB...4F1eC452f
0 ETH0.000781236.99779279
Claim183743802023-10-18 2:52:11262 days ago1697597531IN
0x0281d9cB...4F1eC452f
0 ETH0.000638965.72343064
Claim183710882023-10-17 15:48:35262 days ago1697557715IN
0x0281d9cB...4F1eC452f
0 ETH0.0017642715.8032728
Claim183662742023-10-16 23:38:59263 days ago1697499539IN
0x0281d9cB...4F1eC452f
0 ETH0.000859067.6949567
Claim183519962023-10-14 23:47:35265 days ago1697327255IN
0x0281d9cB...4F1eC452f
0 ETH0.000478215.0583101
Claim183487182023-10-14 12:48:11265 days ago1697287691IN
0x0281d9cB...4F1eC452f
0 ETH0.00060675.43444543
Claim183486322023-10-14 12:30:47265 days ago1697286647IN
0x0281d9cB...4F1eC452f
0 ETH0.000691556.1945091
Claim183479442023-10-14 10:11:47265 days ago1697278307IN
0x0281d9cB...4F1eC452f
0 ETH0.000493035.21507817
Claim183475352023-10-14 8:48:59266 days ago1697273339IN
0x0281d9cB...4F1eC452f
0 ETH0.000556454.98436403
Claim183461862023-10-14 4:16:47266 days ago1697257007IN
0x0281d9cB...4F1eC452f
0 ETH0.000578275.17984403
Claim183457952023-10-14 2:58:23266 days ago1697252303IN
0x0281d9cB...4F1eC452f
0 ETH0.000620725.56002577
Join183452812023-10-14 1:15:11266 days ago1697246111IN
0x0281d9cB...4F1eC452f
0 ETH0.00045035.99969715
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
EGMCPartnerMine

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : EGMCPartnerMine.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/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

import "./interfaces/IEGMCMine.sol";

contract EGMCPartnerMine is ReentrancyGuard, Ownable, Pausable {
    using SafeMath for uint;
    using SafeERC20 for IERC20;

    // STATE VARIABLES

    IERC20 public rewardsToken;
    IEGMCMine public mine;
    uint public maxParticipants;
    uint public capPerParticipant;
    uint public periodFinish = 0;
    uint public rewardRate = 0;
    uint public rewardsDuration = 2 weeks;
    uint public lastUpdateTime;
    uint public rewardPerTokenStored;

    mapping(address => uint) public userRewardPerTokenPaid;
    mapping(address => uint) public rewards;

    uint private _totalSupply;
    uint private _totalParticipants;
    mapping(address => uint) private _balances;

    // CONSTRUCTOR

    constructor(
        address _rewardsToken,
        address _mine
    ) {
        rewardsToken = IERC20(_rewardsToken);
        mine = IEGMCMine(_mine);
    }

    // VIEWS

    function totalSupply() external view returns (uint) {
        return _totalSupply;
    }

    function totalParticipants() external view returns (uint) {
        return _totalParticipants;
    }

    function balanceOf(address account) external view returns (uint) {
        return _balances[account];
    }

    function lastTimeRewardApplicable() public view returns (uint) {
        return min(block.timestamp, periodFinish);
    }

    function rewardPerToken() public view returns (uint) {
        if (_totalSupply == 0) {
            return rewardPerTokenStored;
        }
        return
            rewardPerTokenStored.add(
                lastTimeRewardApplicable()
                    .sub(lastUpdateTime)
                    .mul(rewardRate)
                    .mul(1e18)
                    .div(_totalSupply)
            );
    }

    function earned(address account) public view returns (uint) {
        return
            _balances[account]
                .mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
                .div(1e18)
                .add(rewards[account]);
    }

    function getRewardForDuration() external view returns (uint) {
        return rewardRate.mul(rewardsDuration);
    }

    function min(uint a, uint b) public pure returns (uint) {
        return a < b ? a : b;
    }

    // PUBLIC FUNCTIONS

    function join(uint amount)
        external
        nonReentrant
        whenNotPaused
        updateReward(_msgSender())
    {
        require(amount > 0, "Cannot stake 0");
        require(
            amount <= mine.getMiningPower(_msgSender()),
            "You do not have enough mining power"
        );
        require(
            _balances[_msgSender()].div(1e18).add(amount) <= capPerParticipant, 
            "This amount would bring you above the cap per participant"
        );

        amount = amount.mul(1e18);

        _totalSupply = _totalSupply.add(amount);
        if (_balances[_msgSender()] == 0) {
            require(
                _totalParticipants.add(1) <= maxParticipants,
                "This action would bring the mine above the max participant count"
            );
            _totalParticipants = _totalParticipants.add(1);
        }
        _balances[_msgSender()] = _balances[_msgSender()].add(amount);
        
        emit Joined(_msgSender(), amount);
    }

    function claim() 
        public 
        nonReentrant 
        whenNotPaused
        updateReward(_msgSender()) 
    {
        uint reward = rewards[_msgSender()];
        if (reward > 0) {
            rewards[_msgSender()] = 0;
            rewardsToken.safeTransfer(_msgSender(), reward);
            emit RewardPaid(_msgSender(), reward);
        }
    }

    // RESTRICTED FUNCTIONS

    function notifyRewardAmount(uint reward)
        external
        onlyOwner
        updateReward(address(0))
    {
        uint balanceBefore = rewardsToken.balanceOf(address(this));
        rewardsToken.safeTransferFrom(_msgSender(), address(this), reward);
        uint balance = rewardsToken.balanceOf(address(this));
        uint deltaBalance = balance.sub(balanceBefore);
        if (deltaBalance < reward) reward = deltaBalance;

        if (block.timestamp >= periodFinish) {
            rewardRate = reward.div(rewardsDuration);
        } else {
            uint remaining = periodFinish.sub(block.timestamp);
            uint leftover = remaining.mul(rewardRate);
            rewardRate = reward.add(leftover).div(rewardsDuration);
        }

        // Ensure the provided reward amount is not more than the balance in the contract.
        // This keeps the reward rate in the right range, preventing overflows due to
        // very high values of rewardRate in the earned and rewardsPerToken functions;
        // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
        require(
            rewardRate <= balance.div(rewardsDuration),
            "Provided reward too high"
        );

        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(rewardsDuration);
        emit RewardAdded(reward);
    }

    function recoverERC20(address tokenAddress, uint tokenAmount)
        external
        onlyOwner
    {
        IERC20(tokenAddress).safeTransfer(owner(), tokenAmount);
        emit Recovered(tokenAddress, tokenAmount);
    }

    function setRewardsDuration(uint _rewardsDuration) external onlyOwner {
        require(
            block.timestamp > periodFinish,
            "Previous rewards period must be complete before changing the duration for the new period"
        );
        rewardsDuration = _rewardsDuration;
        emit RewardsDurationUpdated(rewardsDuration);
    }

    function setMaxParticipants(uint _maxParticipants) external onlyOwner {
        maxParticipants = _maxParticipants;
    }

    function setCapPerParticipant(uint _capPerParticipant) external onlyOwner {
        capPerParticipant = _capPerParticipant;
    }

    function enableDepositing() external onlyOwner {
        require(paused(), "Contract is not paused");
        _unpause();
    }

    function disableDepositing() external onlyOwner {
        require(!paused(), "Contract is already paused");
        _pause();
    }

    // *** MODIFIERS ***

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            rewards[account] = earned(account);
            userRewardPerTokenPaid[account] = rewardPerTokenStored;
        }

        _;
    }

    // EVENTS

    event RewardAdded(uint reward);
    event Joined(address indexed user, uint amount);
    event RewardPaid(address indexed user, uint reward);
    event RewardsDurationUpdated(uint newDuration);
    event Recovered(address token, uint amount);
}

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 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 5 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 6 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 7 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 8 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 9 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 10 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 11 of 11 : IEGMCMine.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IEGMCMine {
    function getMiningPower(address _user) external view returns (uint);
}

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":"_rewardsToken","type":"address"},{"internalType":"address","name":"_mine","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Joined","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":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardsDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"capPerParticipant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableDepositing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableDepositing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"join","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxParticipants","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"min","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"mine","outputs":[{"internalType":"contract IEGMCMine","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_capPerParticipant","type":"uint256"}],"name":"setCapPerParticipant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxParticipants","type":"uint256"}],"name":"setMaxParticipants","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalParticipants","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405260006006556000600755621275006008553480156200002257600080fd5b5060405162002e2d38038062002e2d83398181016040528101906200004891906200024d565b600160008190555062000070620000646200011560201b60201c565b6200011d60201b60201c565b6000600160146101000a81548160ff02191690831515021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505062000294565b600033905090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200021582620001e8565b9050919050565b620002278162000208565b81146200023357600080fd5b50565b60008151905062000247816200021c565b92915050565b60008060408385031215620002675762000266620001e3565b5b6000620002778582860162000236565b92505060206200028a8582860162000236565b9150509250929050565b612b8980620002a46000396000f3fe608060405234801561001057600080fd5b50600436106101ef5760003560e01c80637b0a47ee1161010f578063b93042ea116100a2578063d1af0c7d11610071578063d1af0c7d1461053a578063df136d6514610558578063ebe2b12b14610576578063f2fde38b14610594576101ef565b8063b93042ea146104c4578063c8f33c91146104e2578063cc1a378f14610500578063cd3daf9d1461051c576101ef565b80638da5cb5b116100de5780638da5cb5b1461046057806399f4b2511461047e578063a26dbf261461049c578063a5d87d6c146104ba576101ef565b80637b0a47ee146103d857806380faa57d146103f65780638980f11f146104145780638b87634714610430576101ef565b80632bf7299b116101875780635c975abb116101565780635c975abb1461035057806370a082311461036e578063715018a61461039e5780637ae2b5c7146103a8576101ef565b80632bf7299b146102f0578063386a95251461030c5780633c6b16ab1461032a5780634e71d92d14610346576101ef565b806318160ddd116101c357806318160ddd1461027a5780631c1f78eb146102985780632373fcde146102b657806324924bf7146102d2576101ef565b80628cc262146101f4578063049878f31461022457806304d7ba15146102405780630700037d1461024a575b600080fd5b61020e60048036038101906102099190611dcf565b6105b0565b60405161021b9190611e15565b60405180910390f35b61023e60048036038101906102399190611e5c565b6106ce565b005b610248610ba9565b005b610264600480360381019061025f9190611dcf565b610c02565b6040516102719190611e15565b60405180910390f35b610282610c1a565b60405161028f9190611e15565b60405180910390f35b6102a0610c24565b6040516102ad9190611e15565b60405180910390f35b6102d060048036038101906102cb9190611e5c565b610c42565b005b6102da610c54565b6040516102e79190611e15565b60405180910390f35b61030a60048036038101906103059190611e5c565b610c5a565b005b610314610c6c565b6040516103219190611e15565b60405180910390f35b610344600480360381019061033f9190611e5c565b610c72565b005b61034e61105c565b005b6103586112ad565b6040516103659190611ea4565b60405180910390f35b61038860048036038101906103839190611dcf565b6112c4565b6040516103959190611e15565b60405180910390f35b6103a661130d565b005b6103c260048036038101906103bd9190611ebf565b611321565b6040516103cf9190611e15565b60405180910390f35b6103e061133a565b6040516103ed9190611e15565b60405180910390f35b6103fe611340565b60405161040b9190611e15565b60405180910390f35b61042e60048036038101906104299190611eff565b611353565b005b61044a60048036038101906104459190611dcf565b6113ca565b6040516104579190611e15565b60405180910390f35b6104686113e2565b6040516104759190611f4e565b60405180910390f35b61048661140c565b6040516104939190611fc8565b60405180910390f35b6104a4611432565b6040516104b19190611e15565b60405180910390f35b6104c261143c565b005b6104cc611496565b6040516104d99190611e15565b60405180910390f35b6104ea61149c565b6040516104f79190611e15565b60405180910390f35b61051a60048036038101906105159190611e5c565b6114a2565b005b610524611531565b6040516105319190611e15565b60405180910390f35b6105426115be565b60405161054f9190612004565b60405180910390f35b6105606115e4565b60405161056d9190611e15565b60405180910390f35b61057e6115ea565b60405161058b9190611e15565b60405180910390f35b6105ae60048036038101906105a99190611dcf565b6115f0565b005b60006106c7600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546106b9670de0b6b3a76400006106ab61065d600b60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461064f611531565b61167390919063ffffffff16565b600f60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461168990919063ffffffff16565b61169f90919063ffffffff16565b6116b590919063ffffffff16565b9050919050565b6106d66116cb565b6106de61171a565b6106e6611764565b6106ee611531565b600a819055506106fc611340565b600981905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146107c95761073f816105b0565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600a54600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000821161080c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108039061207c565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663032b31dc610852611764565b6040518263ffffffff1660e01b815260040161086e9190611f4e565b602060405180830381865afa15801561088b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108af91906120b1565b8211156108f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e890612150565b60405180910390fd5b60055461096783610959670de0b6b3a7640000600f6000610910611764565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461169f90919063ffffffff16565b6116b590919063ffffffff16565b11156109a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099f906121e2565b60405180910390fd5b6109c3670de0b6b3a76400008361168990919063ffffffff16565b91506109da82600d546116b590919063ffffffff16565b600d819055506000600f60006109ee611764565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403610aa557600454610a476001600e546116b590919063ffffffff16565b1115610a88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7f90612274565b60405180910390fd5b610a9e6001600e546116b590919063ffffffff16565b600e819055505b610afe82600f6000610ab5611764565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116b590919063ffffffff16565b600f6000610b0a611764565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610b50611764565b73ffffffffffffffffffffffffffffffffffffffff167f49f8fa5eee2e3f21251c2e968640dcaef35cb9332429eb059bb3cd56ddc2533d83604051610b959190611e15565b60405180910390a250610ba661176c565b50565b610bb1611776565b610bb96112ad565b610bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bef906122e0565b60405180910390fd5b610c006117f4565b565b600c6020528060005260406000206000915090505481565b6000600d54905090565b6000610c3d60085460075461168990919063ffffffff16565b905090565b610c4a611776565b8060058190555050565b60045481565b610c62611776565b8060048190555050565b60085481565b610c7a611776565b6000610c84611531565b600a81905550610c92611340565b600981905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d5f57610cd5816105b0565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600a54600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610dbc9190611f4e565b602060405180830381865afa158015610dd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfd91906120b1565b9050610e55610e0a611764565b3085600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611857909392919063ffffffff16565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610eb29190611f4e565b602060405180830381865afa158015610ecf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef391906120b1565b90506000610f0a838361167390919063ffffffff16565b905084811015610f18578094505b6006544210610f4157610f366008548661169f90919063ffffffff16565b600781905550610fa3565b6000610f584260065461167390919063ffffffff16565b90506000610f716007548361168990919063ffffffff16565b9050610f9a600854610f8c838a6116b590919063ffffffff16565b61169f90919063ffffffff16565b60078190555050505b610fb86008548361169f90919063ffffffff16565b6007541115610ffc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff39061234c565b60405180910390fd5b42600981905550611018600854426116b590919063ffffffff16565b6006819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d8560405161104d9190611e15565b60405180910390a15050505050565b6110646116cb565b61106c61171a565b611074611764565b61107c611531565b600a8190555061108a611340565b600981905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611157576110cd816105b0565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600a54600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000600c6000611165611764565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008111156112a1576000600c60006111b9611764565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061124b611202611764565b82600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166118e09092919063ffffffff16565b611253611764565b73ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040516112989190611e15565b60405180910390a25b50506112ab61176c565b565b6000600160149054906101000a900460ff16905090565b6000600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611315611776565b61131f6000611966565b565b60008183106113305781611332565b825b905092915050565b60075481565b600061134e42600654611321565b905090565b61135b611776565b61138d6113666113e2565b828473ffffffffffffffffffffffffffffffffffffffff166118e09092919063ffffffff16565b7f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa2882826040516113be92919061236c565b60405180910390a15050565b600b6020528060005260406000206000915090505481565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600e54905090565b611444611776565b61144c6112ad565b1561148c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611483906123e1565b60405180910390fd5b611494611a2c565b565b60055481565b60095481565b6114aa611776565b60065442116114ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e590612499565b60405180910390fd5b806008819055507ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d36008546040516115269190611e15565b60405180910390a150565b600080600d540361154657600a5490506115bb565b6115b86115a7600d54611599670de0b6b3a764000061158b60075461157d60095461156f611340565b61167390919063ffffffff16565b61168990919063ffffffff16565b61168990919063ffffffff16565b61169f90919063ffffffff16565b600a546116b590919063ffffffff16565b90505b90565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b60065481565b6115f8611776565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611667576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165e9061252b565b60405180910390fd5b61167081611966565b50565b60008183611681919061257a565b905092915050565b6000818361169791906125ae565b905092915050565b600081836116ad919061261f565b905092915050565b600081836116c39190612650565b905092915050565b600260005403611710576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611707906126d0565b60405180910390fd5b6002600081905550565b6117226112ad565b15611762576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117599061273c565b60405180910390fd5b565b600033905090565b6001600081905550565b61177e611764565b73ffffffffffffffffffffffffffffffffffffffff1661179c6113e2565b73ffffffffffffffffffffffffffffffffffffffff16146117f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e9906127a8565b60405180910390fd5b565b6117fc611a8e565b6000600160146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611840611764565b60405161184d9190611f4e565b60405180910390a1565b6118da846323b872dd60e01b858585604051602401611878939291906127c8565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611ad7565b50505050565b6119618363a9059cbb60e01b84846040516024016118ff92919061236c565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611ad7565b505050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611a3461171a565b60018060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611a77611764565b604051611a849190611f4e565b60405180910390a1565b611a966112ad565b611ad5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611acc9061284b565b60405180910390fd5b565b6000611b39826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611b9f9092919063ffffffff16565b9050600081511480611b5b575080806020019051810190611b5a9190612897565b5b611b9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9190612936565b60405180910390fd5b505050565b6060611bae8484600085611bb7565b90509392505050565b606082471015611bfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf3906129c8565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611c259190612a59565b60006040518083038185875af1925050503d8060008114611c62576040519150601f19603f3d011682016040523d82523d6000602084013e611c67565b606091505b5091509150611c7887838387611c84565b92505050949350505050565b60608315611ce6576000835103611cde57611c9e85611cf9565b611cdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd490612abc565b60405180910390fd5b5b829050611cf1565b611cf08383611d1c565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115611d2f5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d639190612b31565b60405180910390fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611d9c82611d71565b9050919050565b611dac81611d91565b8114611db757600080fd5b50565b600081359050611dc981611da3565b92915050565b600060208284031215611de557611de4611d6c565b5b6000611df384828501611dba565b91505092915050565b6000819050919050565b611e0f81611dfc565b82525050565b6000602082019050611e2a6000830184611e06565b92915050565b611e3981611dfc565b8114611e4457600080fd5b50565b600081359050611e5681611e30565b92915050565b600060208284031215611e7257611e71611d6c565b5b6000611e8084828501611e47565b91505092915050565b60008115159050919050565b611e9e81611e89565b82525050565b6000602082019050611eb96000830184611e95565b92915050565b60008060408385031215611ed657611ed5611d6c565b5b6000611ee485828601611e47565b9250506020611ef585828601611e47565b9150509250929050565b60008060408385031215611f1657611f15611d6c565b5b6000611f2485828601611dba565b9250506020611f3585828601611e47565b9150509250929050565b611f4881611d91565b82525050565b6000602082019050611f636000830184611f3f565b92915050565b6000819050919050565b6000611f8e611f89611f8484611d71565b611f69565b611d71565b9050919050565b6000611fa082611f73565b9050919050565b6000611fb282611f95565b9050919050565b611fc281611fa7565b82525050565b6000602082019050611fdd6000830184611fb9565b92915050565b6000611fee82611f95565b9050919050565b611ffe81611fe3565b82525050565b60006020820190506120196000830184611ff5565b92915050565b600082825260208201905092915050565b7f43616e6e6f74207374616b652030000000000000000000000000000000000000600082015250565b6000612066600e8361201f565b915061207182612030565b602082019050919050565b6000602082019050818103600083015261209581612059565b9050919050565b6000815190506120ab81611e30565b92915050565b6000602082840312156120c7576120c6611d6c565b5b60006120d58482850161209c565b91505092915050565b7f596f7520646f206e6f74206861766520656e6f756768206d696e696e6720706f60008201527f7765720000000000000000000000000000000000000000000000000000000000602082015250565b600061213a60238361201f565b9150612145826120de565b604082019050919050565b600060208201905081810360008301526121698161212d565b9050919050565b7f5468697320616d6f756e7420776f756c64206272696e6720796f752061626f7660008201527f65207468652063617020706572207061727469636970616e7400000000000000602082015250565b60006121cc60398361201f565b91506121d782612170565b604082019050919050565b600060208201905081810360008301526121fb816121bf565b9050919050565b7f5468697320616374696f6e20776f756c64206272696e6720746865206d696e6560008201527f2061626f766520746865206d6178207061727469636970616e7420636f756e74602082015250565b600061225e60408361201f565b915061226982612202565b604082019050919050565b6000602082019050818103600083015261228d81612251565b9050919050565b7f436f6e7472616374206973206e6f742070617573656400000000000000000000600082015250565b60006122ca60168361201f565b91506122d582612294565b602082019050919050565b600060208201905081810360008301526122f9816122bd565b9050919050565b7f50726f76696465642072657761726420746f6f20686967680000000000000000600082015250565b600061233660188361201f565b915061234182612300565b602082019050919050565b6000602082019050818103600083015261236581612329565b9050919050565b60006040820190506123816000830185611f3f565b61238e6020830184611e06565b9392505050565b7f436f6e747261637420697320616c726561647920706175736564000000000000600082015250565b60006123cb601a8361201f565b91506123d682612395565b602082019050919050565b600060208201905081810360008301526123fa816123be565b9050919050565b7f50726576696f7573207265776172647320706572696f64206d7573742062652060008201527f636f6d706c657465206265666f7265206368616e67696e67207468652064757260208201527f6174696f6e20666f7220746865206e657720706572696f640000000000000000604082015250565b600061248360588361201f565b915061248e82612401565b606082019050919050565b600060208201905081810360008301526124b281612476565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061251560268361201f565b9150612520826124b9565b604082019050919050565b6000602082019050818103600083015261254481612508565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061258582611dfc565b915061259083611dfc565b92508282039050818111156125a8576125a761254b565b5b92915050565b60006125b982611dfc565b91506125c483611dfc565b92508282026125d281611dfc565b915082820484148315176125e9576125e861254b565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061262a82611dfc565b915061263583611dfc565b925082612645576126446125f0565b5b828204905092915050565b600061265b82611dfc565b915061266683611dfc565b925082820190508082111561267e5761267d61254b565b5b92915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006126ba601f8361201f565b91506126c582612684565b602082019050919050565b600060208201905081810360008301526126e9816126ad565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061272660108361201f565b9150612731826126f0565b602082019050919050565b6000602082019050818103600083015261275581612719565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061279260208361201f565b915061279d8261275c565b602082019050919050565b600060208201905081810360008301526127c181612785565b9050919050565b60006060820190506127dd6000830186611f3f565b6127ea6020830185611f3f565b6127f76040830184611e06565b949350505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061283560148361201f565b9150612840826127ff565b602082019050919050565b6000602082019050818103600083015261286481612828565b9050919050565b61287481611e89565b811461287f57600080fd5b50565b6000815190506128918161286b565b92915050565b6000602082840312156128ad576128ac611d6c565b5b60006128bb84828501612882565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000612920602a8361201f565b915061292b826128c4565b604082019050919050565b6000602082019050818103600083015261294f81612913565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006129b260268361201f565b91506129bd82612956565b604082019050919050565b600060208201905081810360008301526129e1816129a5565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015612a1c578082015181840152602081019050612a01565b60008484015250505050565b6000612a33826129e8565b612a3d81856129f3565b9350612a4d8185602086016129fe565b80840191505092915050565b6000612a658284612a28565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612aa6601d8361201f565b9150612ab182612a70565b602082019050919050565b60006020820190508181036000830152612ad581612a99565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b6000612b0382612adc565b612b0d818561201f565b9350612b1d8185602086016129fe565b612b2681612ae7565b840191505092915050565b60006020820190508181036000830152612b4b8184612af8565b90509291505056fea2646970667358221220323fc5595cd51c97b5f6a991e5b2eabe80fa73cb2ef1c7baf1ab8b81a358beb064736f6c6343000813003300000000000000000000000059c6766de1dc50a9c9db86cb0461b5ce07408ab700000000000000000000000047f8dd8d32c55f9dd9ed2fc6198f5569ec13a211

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101ef5760003560e01c80637b0a47ee1161010f578063b93042ea116100a2578063d1af0c7d11610071578063d1af0c7d1461053a578063df136d6514610558578063ebe2b12b14610576578063f2fde38b14610594576101ef565b8063b93042ea146104c4578063c8f33c91146104e2578063cc1a378f14610500578063cd3daf9d1461051c576101ef565b80638da5cb5b116100de5780638da5cb5b1461046057806399f4b2511461047e578063a26dbf261461049c578063a5d87d6c146104ba576101ef565b80637b0a47ee146103d857806380faa57d146103f65780638980f11f146104145780638b87634714610430576101ef565b80632bf7299b116101875780635c975abb116101565780635c975abb1461035057806370a082311461036e578063715018a61461039e5780637ae2b5c7146103a8576101ef565b80632bf7299b146102f0578063386a95251461030c5780633c6b16ab1461032a5780634e71d92d14610346576101ef565b806318160ddd116101c357806318160ddd1461027a5780631c1f78eb146102985780632373fcde146102b657806324924bf7146102d2576101ef565b80628cc262146101f4578063049878f31461022457806304d7ba15146102405780630700037d1461024a575b600080fd5b61020e60048036038101906102099190611dcf565b6105b0565b60405161021b9190611e15565b60405180910390f35b61023e60048036038101906102399190611e5c565b6106ce565b005b610248610ba9565b005b610264600480360381019061025f9190611dcf565b610c02565b6040516102719190611e15565b60405180910390f35b610282610c1a565b60405161028f9190611e15565b60405180910390f35b6102a0610c24565b6040516102ad9190611e15565b60405180910390f35b6102d060048036038101906102cb9190611e5c565b610c42565b005b6102da610c54565b6040516102e79190611e15565b60405180910390f35b61030a60048036038101906103059190611e5c565b610c5a565b005b610314610c6c565b6040516103219190611e15565b60405180910390f35b610344600480360381019061033f9190611e5c565b610c72565b005b61034e61105c565b005b6103586112ad565b6040516103659190611ea4565b60405180910390f35b61038860048036038101906103839190611dcf565b6112c4565b6040516103959190611e15565b60405180910390f35b6103a661130d565b005b6103c260048036038101906103bd9190611ebf565b611321565b6040516103cf9190611e15565b60405180910390f35b6103e061133a565b6040516103ed9190611e15565b60405180910390f35b6103fe611340565b60405161040b9190611e15565b60405180910390f35b61042e60048036038101906104299190611eff565b611353565b005b61044a60048036038101906104459190611dcf565b6113ca565b6040516104579190611e15565b60405180910390f35b6104686113e2565b6040516104759190611f4e565b60405180910390f35b61048661140c565b6040516104939190611fc8565b60405180910390f35b6104a4611432565b6040516104b19190611e15565b60405180910390f35b6104c261143c565b005b6104cc611496565b6040516104d99190611e15565b60405180910390f35b6104ea61149c565b6040516104f79190611e15565b60405180910390f35b61051a60048036038101906105159190611e5c565b6114a2565b005b610524611531565b6040516105319190611e15565b60405180910390f35b6105426115be565b60405161054f9190612004565b60405180910390f35b6105606115e4565b60405161056d9190611e15565b60405180910390f35b61057e6115ea565b60405161058b9190611e15565b60405180910390f35b6105ae60048036038101906105a99190611dcf565b6115f0565b005b60006106c7600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546106b9670de0b6b3a76400006106ab61065d600b60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461064f611531565b61167390919063ffffffff16565b600f60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461168990919063ffffffff16565b61169f90919063ffffffff16565b6116b590919063ffffffff16565b9050919050565b6106d66116cb565b6106de61171a565b6106e6611764565b6106ee611531565b600a819055506106fc611340565b600981905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146107c95761073f816105b0565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600a54600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000821161080c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108039061207c565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663032b31dc610852611764565b6040518263ffffffff1660e01b815260040161086e9190611f4e565b602060405180830381865afa15801561088b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108af91906120b1565b8211156108f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e890612150565b60405180910390fd5b60055461096783610959670de0b6b3a7640000600f6000610910611764565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461169f90919063ffffffff16565b6116b590919063ffffffff16565b11156109a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099f906121e2565b60405180910390fd5b6109c3670de0b6b3a76400008361168990919063ffffffff16565b91506109da82600d546116b590919063ffffffff16565b600d819055506000600f60006109ee611764565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403610aa557600454610a476001600e546116b590919063ffffffff16565b1115610a88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7f90612274565b60405180910390fd5b610a9e6001600e546116b590919063ffffffff16565b600e819055505b610afe82600f6000610ab5611764565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116b590919063ffffffff16565b600f6000610b0a611764565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610b50611764565b73ffffffffffffffffffffffffffffffffffffffff167f49f8fa5eee2e3f21251c2e968640dcaef35cb9332429eb059bb3cd56ddc2533d83604051610b959190611e15565b60405180910390a250610ba661176c565b50565b610bb1611776565b610bb96112ad565b610bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bef906122e0565b60405180910390fd5b610c006117f4565b565b600c6020528060005260406000206000915090505481565b6000600d54905090565b6000610c3d60085460075461168990919063ffffffff16565b905090565b610c4a611776565b8060058190555050565b60045481565b610c62611776565b8060048190555050565b60085481565b610c7a611776565b6000610c84611531565b600a81905550610c92611340565b600981905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d5f57610cd5816105b0565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600a54600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610dbc9190611f4e565b602060405180830381865afa158015610dd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfd91906120b1565b9050610e55610e0a611764565b3085600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611857909392919063ffffffff16565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610eb29190611f4e565b602060405180830381865afa158015610ecf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef391906120b1565b90506000610f0a838361167390919063ffffffff16565b905084811015610f18578094505b6006544210610f4157610f366008548661169f90919063ffffffff16565b600781905550610fa3565b6000610f584260065461167390919063ffffffff16565b90506000610f716007548361168990919063ffffffff16565b9050610f9a600854610f8c838a6116b590919063ffffffff16565b61169f90919063ffffffff16565b60078190555050505b610fb86008548361169f90919063ffffffff16565b6007541115610ffc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff39061234c565b60405180910390fd5b42600981905550611018600854426116b590919063ffffffff16565b6006819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d8560405161104d9190611e15565b60405180910390a15050505050565b6110646116cb565b61106c61171a565b611074611764565b61107c611531565b600a8190555061108a611340565b600981905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611157576110cd816105b0565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600a54600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000600c6000611165611764565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008111156112a1576000600c60006111b9611764565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061124b611202611764565b82600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166118e09092919063ffffffff16565b611253611764565b73ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040516112989190611e15565b60405180910390a25b50506112ab61176c565b565b6000600160149054906101000a900460ff16905090565b6000600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611315611776565b61131f6000611966565b565b60008183106113305781611332565b825b905092915050565b60075481565b600061134e42600654611321565b905090565b61135b611776565b61138d6113666113e2565b828473ffffffffffffffffffffffffffffffffffffffff166118e09092919063ffffffff16565b7f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa2882826040516113be92919061236c565b60405180910390a15050565b600b6020528060005260406000206000915090505481565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600e54905090565b611444611776565b61144c6112ad565b1561148c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611483906123e1565b60405180910390fd5b611494611a2c565b565b60055481565b60095481565b6114aa611776565b60065442116114ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e590612499565b60405180910390fd5b806008819055507ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d36008546040516115269190611e15565b60405180910390a150565b600080600d540361154657600a5490506115bb565b6115b86115a7600d54611599670de0b6b3a764000061158b60075461157d60095461156f611340565b61167390919063ffffffff16565b61168990919063ffffffff16565b61168990919063ffffffff16565b61169f90919063ffffffff16565b600a546116b590919063ffffffff16565b90505b90565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b60065481565b6115f8611776565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611667576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165e9061252b565b60405180910390fd5b61167081611966565b50565b60008183611681919061257a565b905092915050565b6000818361169791906125ae565b905092915050565b600081836116ad919061261f565b905092915050565b600081836116c39190612650565b905092915050565b600260005403611710576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611707906126d0565b60405180910390fd5b6002600081905550565b6117226112ad565b15611762576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117599061273c565b60405180910390fd5b565b600033905090565b6001600081905550565b61177e611764565b73ffffffffffffffffffffffffffffffffffffffff1661179c6113e2565b73ffffffffffffffffffffffffffffffffffffffff16146117f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e9906127a8565b60405180910390fd5b565b6117fc611a8e565b6000600160146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611840611764565b60405161184d9190611f4e565b60405180910390a1565b6118da846323b872dd60e01b858585604051602401611878939291906127c8565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611ad7565b50505050565b6119618363a9059cbb60e01b84846040516024016118ff92919061236c565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611ad7565b505050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611a3461171a565b60018060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611a77611764565b604051611a849190611f4e565b60405180910390a1565b611a966112ad565b611ad5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611acc9061284b565b60405180910390fd5b565b6000611b39826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611b9f9092919063ffffffff16565b9050600081511480611b5b575080806020019051810190611b5a9190612897565b5b611b9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9190612936565b60405180910390fd5b505050565b6060611bae8484600085611bb7565b90509392505050565b606082471015611bfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf3906129c8565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611c259190612a59565b60006040518083038185875af1925050503d8060008114611c62576040519150601f19603f3d011682016040523d82523d6000602084013e611c67565b606091505b5091509150611c7887838387611c84565b92505050949350505050565b60608315611ce6576000835103611cde57611c9e85611cf9565b611cdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd490612abc565b60405180910390fd5b5b829050611cf1565b611cf08383611d1c565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115611d2f5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d639190612b31565b60405180910390fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611d9c82611d71565b9050919050565b611dac81611d91565b8114611db757600080fd5b50565b600081359050611dc981611da3565b92915050565b600060208284031215611de557611de4611d6c565b5b6000611df384828501611dba565b91505092915050565b6000819050919050565b611e0f81611dfc565b82525050565b6000602082019050611e2a6000830184611e06565b92915050565b611e3981611dfc565b8114611e4457600080fd5b50565b600081359050611e5681611e30565b92915050565b600060208284031215611e7257611e71611d6c565b5b6000611e8084828501611e47565b91505092915050565b60008115159050919050565b611e9e81611e89565b82525050565b6000602082019050611eb96000830184611e95565b92915050565b60008060408385031215611ed657611ed5611d6c565b5b6000611ee485828601611e47565b9250506020611ef585828601611e47565b9150509250929050565b60008060408385031215611f1657611f15611d6c565b5b6000611f2485828601611dba565b9250506020611f3585828601611e47565b9150509250929050565b611f4881611d91565b82525050565b6000602082019050611f636000830184611f3f565b92915050565b6000819050919050565b6000611f8e611f89611f8484611d71565b611f69565b611d71565b9050919050565b6000611fa082611f73565b9050919050565b6000611fb282611f95565b9050919050565b611fc281611fa7565b82525050565b6000602082019050611fdd6000830184611fb9565b92915050565b6000611fee82611f95565b9050919050565b611ffe81611fe3565b82525050565b60006020820190506120196000830184611ff5565b92915050565b600082825260208201905092915050565b7f43616e6e6f74207374616b652030000000000000000000000000000000000000600082015250565b6000612066600e8361201f565b915061207182612030565b602082019050919050565b6000602082019050818103600083015261209581612059565b9050919050565b6000815190506120ab81611e30565b92915050565b6000602082840312156120c7576120c6611d6c565b5b60006120d58482850161209c565b91505092915050565b7f596f7520646f206e6f74206861766520656e6f756768206d696e696e6720706f60008201527f7765720000000000000000000000000000000000000000000000000000000000602082015250565b600061213a60238361201f565b9150612145826120de565b604082019050919050565b600060208201905081810360008301526121698161212d565b9050919050565b7f5468697320616d6f756e7420776f756c64206272696e6720796f752061626f7660008201527f65207468652063617020706572207061727469636970616e7400000000000000602082015250565b60006121cc60398361201f565b91506121d782612170565b604082019050919050565b600060208201905081810360008301526121fb816121bf565b9050919050565b7f5468697320616374696f6e20776f756c64206272696e6720746865206d696e6560008201527f2061626f766520746865206d6178207061727469636970616e7420636f756e74602082015250565b600061225e60408361201f565b915061226982612202565b604082019050919050565b6000602082019050818103600083015261228d81612251565b9050919050565b7f436f6e7472616374206973206e6f742070617573656400000000000000000000600082015250565b60006122ca60168361201f565b91506122d582612294565b602082019050919050565b600060208201905081810360008301526122f9816122bd565b9050919050565b7f50726f76696465642072657761726420746f6f20686967680000000000000000600082015250565b600061233660188361201f565b915061234182612300565b602082019050919050565b6000602082019050818103600083015261236581612329565b9050919050565b60006040820190506123816000830185611f3f565b61238e6020830184611e06565b9392505050565b7f436f6e747261637420697320616c726561647920706175736564000000000000600082015250565b60006123cb601a8361201f565b91506123d682612395565b602082019050919050565b600060208201905081810360008301526123fa816123be565b9050919050565b7f50726576696f7573207265776172647320706572696f64206d7573742062652060008201527f636f6d706c657465206265666f7265206368616e67696e67207468652064757260208201527f6174696f6e20666f7220746865206e657720706572696f640000000000000000604082015250565b600061248360588361201f565b915061248e82612401565b606082019050919050565b600060208201905081810360008301526124b281612476565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061251560268361201f565b9150612520826124b9565b604082019050919050565b6000602082019050818103600083015261254481612508565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061258582611dfc565b915061259083611dfc565b92508282039050818111156125a8576125a761254b565b5b92915050565b60006125b982611dfc565b91506125c483611dfc565b92508282026125d281611dfc565b915082820484148315176125e9576125e861254b565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061262a82611dfc565b915061263583611dfc565b925082612645576126446125f0565b5b828204905092915050565b600061265b82611dfc565b915061266683611dfc565b925082820190508082111561267e5761267d61254b565b5b92915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006126ba601f8361201f565b91506126c582612684565b602082019050919050565b600060208201905081810360008301526126e9816126ad565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061272660108361201f565b9150612731826126f0565b602082019050919050565b6000602082019050818103600083015261275581612719565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061279260208361201f565b915061279d8261275c565b602082019050919050565b600060208201905081810360008301526127c181612785565b9050919050565b60006060820190506127dd6000830186611f3f565b6127ea6020830185611f3f565b6127f76040830184611e06565b949350505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061283560148361201f565b9150612840826127ff565b602082019050919050565b6000602082019050818103600083015261286481612828565b9050919050565b61287481611e89565b811461287f57600080fd5b50565b6000815190506128918161286b565b92915050565b6000602082840312156128ad576128ac611d6c565b5b60006128bb84828501612882565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000612920602a8361201f565b915061292b826128c4565b604082019050919050565b6000602082019050818103600083015261294f81612913565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006129b260268361201f565b91506129bd82612956565b604082019050919050565b600060208201905081810360008301526129e1816129a5565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015612a1c578082015181840152602081019050612a01565b60008484015250505050565b6000612a33826129e8565b612a3d81856129f3565b9350612a4d8185602086016129fe565b80840191505092915050565b6000612a658284612a28565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612aa6601d8361201f565b9150612ab182612a70565b602082019050919050565b60006020820190508181036000830152612ad581612a99565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b6000612b0382612adc565b612b0d818561201f565b9350612b1d8185602086016129fe565b612b2681612ae7565b840191505092915050565b60006020820190508181036000830152612b4b8184612af8565b90509291505056fea2646970667358221220323fc5595cd51c97b5f6a991e5b2eabe80fa73cb2ef1c7baf1ab8b81a358beb064736f6c63430008130033

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

00000000000000000000000059c6766de1dc50a9c9db86cb0461b5ce07408ab700000000000000000000000047f8dd8d32c55f9dd9ed2fc6198f5569ec13a211

-----Decoded View---------------
Arg [0] : _rewardsToken (address): 0x59C6766de1Dc50a9c9DB86CB0461b5Ce07408aB7
Arg [1] : _mine (address): 0x47f8Dd8d32c55F9DD9ed2fC6198F5569EC13A211

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000059c6766de1dc50a9c9db86cb0461b5ce07408ab7
Arg [1] : 00000000000000000000000047f8dd8d32c55f9dd9ed2fc6198f5569ec13a211


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  ]

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.