ETH Price: $3,554.33 (-0.55%)
Gas: 29 Gwei

Contract

0x308A61E8b52430342295583EA3641B49ad832E22
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Exit138742362021-12-25 12:07:01825 days ago1640434021IN
0x308A61E8...9ad832E22
0 ETH0.0073493462.38140618
Exit137296532021-12-02 21:23:01847 days ago1638480181IN
0x308A61E8...9ad832E22
0 ETH0.01316065111.70798382
Exit137284282021-12-02 16:36:20847 days ago1638462980IN
0x308A61E8...9ad832E22
0 ETH0.01313555113.42041924
Exit130379082021-08-16 18:42:42955 days ago1629139362IN
0x308A61E8...9ad832E22
0 ETH0.0061262752
Get Reward129251952021-07-30 5:41:46973 days ago1627623706IN
0x308A61E8...9ad832E22
0 ETH0.0016325730
Exit126839282021-06-22 12:11:441011 days ago1624363904IN
0x308A61E8...9ad832E22
0 ETH0.0097276178
Exit125942532021-06-08 13:50:291024 days ago1623160229IN
0x308A61E8...9ad832E22
0 ETH0.0008647420
Withdraw124362522021-05-15 2:16:091049 days ago1621044969IN
0x308A61E8...9ad832E22
0 ETH0.00860164114
Withdraw123038472021-04-24 15:50:541069 days ago1619279454IN
0x308A61E8...9ad832E22
0 ETH0.0056737170
Exit121901462021-04-07 3:01:001087 days ago1617764460IN
0x308A61E8...9ad832E22
0 ETH0.0117281790.00000134
Exit121216222021-03-27 14:29:491097 days ago1616855389IN
0x308A61E8...9ad832E22
0 ETH0.01381317106
Exit119373522021-02-27 5:01:021126 days ago1614402062IN
0x308A61E8...9ad832E22
0 ETH0.0034109680
Exit119373502021-02-27 5:00:411126 days ago1614402041IN
0x308A61E8...9ad832E22
0 ETH0.0104250480
Withdraw118848232021-02-19 3:13:511134 days ago1613704431IN
0x308A61E8...9ad832E22
0 ETH0.01122759149
Exit117644212021-01-31 14:46:541152 days ago1612104414IN
0x308A61E8...9ad832E22
0 ETH0.01383756120.00000145
Withdraw117488092021-01-29 5:02:421155 days ago1611896562IN
0x308A61E8...9ad832E22
0 ETH0.004521960
Withdraw116634112021-01-16 1:55:301168 days ago1610762130IN
0x308A61E8...9ad832E22
0 ETH0.0038433651.0048
Withdraw116474512021-01-13 15:27:431170 days ago1610551663IN
0x308A61E8...9ad832E22
0 ETH0.0034333841.00000134
Withdraw116329972021-01-11 10:14:001173 days ago1610360040IN
0x308A61E8...9ad832E22
0 ETH0.003621960.00000134
Get Reward115660202021-01-01 3:32:581183 days ago1609471978IN
0x308A61E8...9ad832E22
0 ETH0.003207553
Withdraw115660102021-01-01 3:31:141183 days ago1609471874IN
0x308A61E8...9ad832E22
0 ETH0.005233953
Get Reward115400502020-12-28 3:54:431187 days ago1609127683IN
0x308A61E8...9ad832E22
0 ETH0.0041600355
Withdraw115162922020-12-24 12:27:431191 days ago1608812863IN
0x308A61E8...9ad832E22
0 ETH0.0055301656
Withdraw115158072020-12-24 10:40:381191 days ago1608806438IN
0x308A61E8...9ad832E22
0 ETH0.0036211860
Withdraw115148312020-12-24 7:03:301191 days ago1608793410IN
0x308A61E8...9ad832E22
0 ETH0.0062166282.5
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:
GOFGXCPool

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-09-09
*/

// File: @openzeppelin/contracts/math/Math.sol

pragma solidity 0.5.16;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

// File: @openzeppelin/contracts/math/SafeMath.sol

pragma solidity 0.5.16;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @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 sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @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) {
        // 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 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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 mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/GSN/Context.sol

pragma solidity 0.5.16;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/contracts/ownership/Ownable.sol

pragma solidity 0.5.16;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        _owner = _msgSender();
        emit OwnershipTransferred(address(0), _owner);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _owner;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

pragma solidity 0.5.16;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);
    function mint(address account, uint amount) external;

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: @openzeppelin/contracts/utils/Address.sol

pragma solidity 0.5.16;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing 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.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != 0x0 && codehash != accountHash);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @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://diligence.consensys.net/posts/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.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-call-value
        (bool success, ) = recipient.call.value(amount)("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol

pragma solidity 0.5.16;

/**
 * @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 ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    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'
        // solhint-disable-next-line max-line-length
        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));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @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.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

/**
 * Reward Amount Interface
 */
pragma solidity 0.5.16;

contract IRewardDistributionRecipient is Ownable {
    address rewardDistribution;

    function notifyRewardAmount(uint256 reward) external;

    modifier onlyRewardDistribution() {
        require(_msgSender() == rewardDistribution, "Caller is not reward distribution");
        _;
    }

    function setRewardDistribution(address _rewardDistribution)
        external
        onlyOwner
    {
        rewardDistribution = _rewardDistribution;
    }
}

 /**
  * Staking Token Wrapper
  */
pragma solidity 0.5.16;

contract GOFTokenWrapper {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    IERC20 public stakeToken = IERC20(0x2e93FE8d550a7B7E7b2e561cd45ceBccbAa79358);
    
    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    function stake(uint256 amount) public {
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        stakeToken.safeTransferFrom(msg.sender, address(this), amount);
    }

    function withdraw(uint256 amount) public {
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        stakeToken.safeTransfer(msg.sender, amount);
    }
}

/**
 * GXC Pool
 */
pragma solidity 0.5.16;

contract GOFGXCPool is GOFTokenWrapper, IRewardDistributionRecipient {
    
    IERC20 public gof = IERC20(0x488E0369f9BC5C40C002eA7c1fe4fd01A198801c);
    uint256 public constant DURATION = 7 days;

    uint256 public constant startTime = 1599652800; //utc+8 2020-09-09 20:00:00
    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored = 0;
    bool private open = true;
    uint256 private constant _gunit = 1e18;
    mapping(address => uint256) public userRewardPerTokenPaid; 
    mapping(address => uint256) public rewards; // Unclaimed rewards

    event RewardAdded(uint256 reward);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
    event SetOpen(bool _open);

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

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

    /**
     * Calculate the rewards for each token
     */
    function rewardPerToken() public view returns (uint256) {
        if (totalSupply() == 0) {
            return rewardPerTokenStored;
        }
        return
            rewardPerTokenStored.add(
                lastTimeRewardApplicable()
                    .sub(lastUpdateTime)
                    .mul(rewardRate)
                    .mul(_gunit)
                    .div(totalSupply())
            );
    }

    function earned(address account) public view returns (uint256) {
        return
            balanceOf(account)
                .mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
                .div(_gunit)
                .add(rewards[account]);
    }

    function stake(uint256 amount) public checkOpen checkStart updateReward(msg.sender){ 
        require(amount > 0, "Golff-GXC-POOL: Cannot stake 0");
        super.stake(amount);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount) public checkStart updateReward(msg.sender){
        require(amount > 0, "Golff-GXC-POOL: Cannot withdraw 0");
        super.withdraw(amount);
        emit Withdrawn(msg.sender, amount);
    }

    function exit() external {
        withdraw(balanceOf(msg.sender));
        getReward();
    }

    function getReward() public checkStart updateReward(msg.sender){
        uint256 reward = earned(msg.sender);
        if (reward > 0) {
            rewards[msg.sender] = 0;
            gof.safeTransfer(msg.sender, reward);
            emit RewardPaid(msg.sender, reward);
        }
    }

    modifier checkStart(){
        require(block.timestamp > startTime,"Golff-GXC-POOL: Not start");
        _;
    }

    modifier checkOpen() {
        require(open, "Golff-GXC-POOL: Pool is closed");
        _;
    }

    function getPeriodFinish() external view returns (uint256) {
        return periodFinish;
    }

    function isOpen() external view returns (bool) {
        return open;
    }

    function setOpen(bool _open) external onlyOwner {
        open = _open;
        emit SetOpen(_open);
    }

    function notifyRewardAmount(uint256 reward)
        external
        onlyRewardDistribution
        checkOpen
        updateReward(address(0)){
        if (block.timestamp > startTime){
            if (block.timestamp >= periodFinish) {
                uint256 period = block.timestamp.sub(startTime).div(DURATION).add(1);
                periodFinish = startTime.add(period.mul(DURATION));
                rewardRate = reward.div(periodFinish.sub(block.timestamp));
            } else {
                uint256 remaining = periodFinish.sub(block.timestamp);
                uint256 leftover = remaining.mul(rewardRate);
                rewardRate = reward.add(leftover).div(remaining);
            }
            lastUpdateTime = block.timestamp;
        }else {
          rewardRate = reward.div(DURATION);
          periodFinish = startTime.add(DURATION);
          lastUpdateTime = startTime;
        }

        gof.mint(address(this),reward);
        emit RewardAdded(reward);

        // avoid overflow to lock assets
        _checkRewardRate();
    }
    
    function _checkRewardRate() internal view returns (uint256) {
        return DURATION.mul(rewardRate).mul(_gunit);
    }
}

Contract Security Audit

Contract ABI

[{"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":"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":"bool","name":"_open","type":"bool"}],"name":"SetOpen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"constant":true,"inputs":[],"name":"DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getPeriodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"getReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"gof","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bool","name":"_open","type":"bool"}],"name":"setOpen","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rewardDistribution","type":"address"}],"name":"setRewardDistribution","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stakeToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

6080604052732e93fe8d550a7b7e7b2e561cd45cebccbaa793586000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073488e0369f9bc5c40c002ea7c1fe4fd01a198801c600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600655600060075560006009556001600a60006101000a81548160ff0219169083151502179055506100e56101a760201b60201c565b600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36101af565b600033905090565b612533806101be6000396000f3fe608060405234801561001057600080fd5b50600436106101c35760003560e01c80637b0a47ee116100f9578063c8f33c9111610097578063df136d6511610071578063df136d651461064c578063e9fad8ee1461066a578063ebe2b12b14610674578063f2fde38b14610692576101c3565b8063c8f33c91146105f2578063cb17d14f14610610578063cd3daf9d1461062e576101c3565b80638da5cb5b116100d35780638da5cb5b1461050e5780638f32d59b14610558578063a694fc3a1461057a578063c25904fd146105a8576101c3565b80637b0a47ee1461047a57806380faa57d146104985780638b876347146104b6576101c3565b80633d18b912116101665780636fdca5e0116101405780636fdca5e0146103ca57806370a08231146103fa578063715018a61461045257806378e979251461045c576101c3565b80633d18b9121461035457806347535d7b1461035e57806351ed6a3014610380576101c3565b806318160ddd116101a257806318160ddd146102bc5780631be05289146102da5780632e1a7d4d146102f85780633c6b16ab14610326576101c3565b80628cc262146101c85780630700037d146102205780630d68b76114610278575b600080fd5b61020a600480360360208110156101de57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506106d6565b6040518082815260200191505060405180910390f35b6102626004803603602081101561023657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107bd565b6040518082815260200191505060405180910390f35b6102ba6004803603602081101561028e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107d5565b005b6102c4610893565b6040518082815260200191505060405180910390f35b6102e261089d565b6040518082815260200191505060405180910390f35b6103246004803603602081101561030e57600080fd5b81019080803590602001909291905050506108a4565b005b6103526004803603602081101561033c57600080fd5b8101908080359060200190929190505050610ab5565b005b61035c610f3f565b005b610366611197565b604051808215151515815260200191505060405180910390f35b6103886111ae565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103f8600480360360208110156103e057600080fd5b810190808035151590602001909291905050506111d3565b005b61043c6004803603602081101561041057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506112a5565b6040518082815260200191505060405180910390f35b61045a6112ee565b005b610464611429565b6040518082815260200191505060405180910390f35b610482611431565b6040518082815260200191505060405180910390f35b6104a0611437565b6040518082815260200191505060405180910390f35b6104f8600480360360208110156104cc57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061144a565b6040518082815260200191505060405180910390f35b610516611462565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61056061148c565b604051808215151515815260200191505060405180910390f35b6105a66004803603602081101561059057600080fd5b81019080803590602001909291905050506114eb565b005b6105b061179b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105fa6117c1565b6040518082815260200191505060405180910390f35b6106186117c7565b6040518082815260200191505060405180910390f35b6106366117d1565b6040518082815260200191505060405180910390f35b610654611869565b6040518082815260200191505060405180910390f35b61067261186f565b005b61067c61188a565b6040518082815260200191505060405180910390f35b6106d4600480360360208110156106a857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611890565b005b60006107b6600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546107a8670de0b6b3a764000061079a610783600b60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546107756117d1565b61191690919063ffffffff16565b61078c886112a5565b61196090919063ffffffff16565b6119e690919063ffffffff16565b611a3090919063ffffffff16565b9050919050565b600c6020528060005260406000206000915090505481565b6107dd61148c565b61084f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600154905090565b62093a8081565b635f58c3c0421161091d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f476f6c66662d4758432d504f4f4c3a204e6f742073746172740000000000000081525060200191505060405180910390fd5b336109266117d1565b600981905550610934611437565b600881905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a0157610977816106d6565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600954600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008211610a5a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806124726021913960400191505060405180910390fd5b610a6382611ab8565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5836040518082815260200191505060405180910390a25050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610af6611bb7565b73ffffffffffffffffffffffffffffffffffffffff1614610b62576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806124b46021913960400191505060405180910390fd5b600a60009054906101000a900460ff16610be4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f476f6c66662d4758432d504f4f4c3a20506f6f6c20697320636c6f736564000081525060200191505060405180910390fd5b6000610bee6117d1565b600981905550610bfc611437565b600881905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cc957610c3f816106d6565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600954600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b635f58c3c0421115610df2576006544210610d86576000610d1f6001610d1162093a80610d03635f58c3c04261191690919063ffffffff16565b6119e690919063ffffffff16565b611a3090919063ffffffff16565b9050610d4d610d3a62093a808361196090919063ffffffff16565b635f58c3c0611a3090919063ffffffff16565b600681905550610d7a610d6b4260065461191690919063ffffffff16565b846119e690919063ffffffff16565b60078190555050610de6565b6000610d9d4260065461191690919063ffffffff16565b90506000610db66007548361196090919063ffffffff16565b9050610ddd82610dcf8387611a3090919063ffffffff16565b6119e690919063ffffffff16565b60078190555050505b42600881905550610e3a565b610e0862093a80836119e690919063ffffffff16565b600781905550610e2862093a80635f58c3c0611a3090919063ffffffff16565b600681905550635f58c3c06008819055505b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1930846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b158015610ee357600080fd5b505af1158015610ef7573d6000803e3d6000fd5b505050507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d826040518082815260200191505060405180910390a1610f3a611bbf565b505050565b635f58c3c04211610fb8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f476f6c66662d4758432d504f4f4c3a204e6f742073746172740000000000000081525060200191505060405180910390fd5b33610fc16117d1565b600981905550610fcf611437565b600881905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461109c57611012816106d6565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600954600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60006110a7336106d6565b90506000811115611193576000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506111443382600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611bf89092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b5050565b6000600a60009054906101000a900460ff16905090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6111db61148c565b61124d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600a60006101000a81548160ff0219169083151502179055507f294847065aeb5e8e788661acfc7dbcb26c7f0454406268fce96109d7136928af81604051808215151515815260200191505060405180910390a150565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6112f661148c565b611368576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b635f58c3c081565b60075481565b600061144542600654611cc9565b905090565b600b6020528060005260406000206000915090505481565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166114cf611bb7565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b600a60009054906101000a900460ff1661156d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f476f6c66662d4758432d504f4f4c3a20506f6f6c20697320636c6f736564000081525060200191505060405180910390fd5b635f58c3c042116115e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f476f6c66662d4758432d504f4f4c3a204e6f742073746172740000000000000081525060200191505060405180910390fd5b336115ef6117d1565b6009819055506115fd611437565b600881905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146116ca57611640816106d6565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600954600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008211611740576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f476f6c66662d4758432d504f4f4c3a2043616e6e6f74207374616b652030000081525060200191505060405180910390fd5b61174982611ce2565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d836040518082815260200191505060405180910390a25050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b6000600654905090565b6000806117dc610893565b14156117ec576009549050611866565b6118636118526117fa610893565b611844670de0b6b3a764000061183660075461182860085461181a611437565b61191690919063ffffffff16565b61196090919063ffffffff16565b61196090919063ffffffff16565b6119e690919063ffffffff16565b600954611a3090919063ffffffff16565b90505b90565b60095481565b61188061187b336112a5565b6108a4565b611888610f3f565b565b60065481565b61189861148c565b61190a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61191381611de3565b50565b600061195883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611f29565b905092915050565b60008083141561197357600090506119e0565b600082840290508284828161198457fe5b04146119db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806124936021913960400191505060405180910390fd5b809150505b92915050565b6000611a2883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611fe9565b905092915050565b600080828401905083811015611aae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b611acd8160015461191690919063ffffffff16565b600181905550611b2581600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461191690919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611bb433826000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611bf89092919063ffffffff16565b50565b600033905090565b6000611bf3670de0b6b3a7640000611be560075462093a8061196090919063ffffffff16565b61196090919063ffffffff16565b905090565b611cc4838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb905060e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506120af565b505050565b6000818310611cd85781611cda565b825b905092915050565b611cf781600154611a3090919063ffffffff16565b600181905550611d4f81600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a3090919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611de03330836000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166122fa909392919063ffffffff16565b50565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061244c6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000838311158290611fd6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611f9b578082015181840152602081019050611f80565b50505050905090810190601f168015611fc85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60008083118290612095576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561205a57808201518184015260208101905061203f565b50505050905090810190601f1680156120875780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816120a157fe5b049050809150509392505050565b6120ce8273ffffffffffffffffffffffffffffffffffffffff16612400565b612140576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e74726163740081525060200191505060405180910390fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b6020831061218f578051825260208201915060208101905060208303925061216c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146121f1576040519150601f19603f3d011682016040523d82523d6000602084013e6121f6565b606091505b50915091508161226e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525060200191505060405180910390fd5b6000815111156122f45780806020019051602081101561228d57600080fd5b81019080805190602001909291905050506122f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806124d5602a913960400191505060405180910390fd5b5b50505050565b6123fa848573ffffffffffffffffffffffffffffffffffffffff166323b872dd905060e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506120af565b50505050565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f91506000801b82141580156124425750808214155b9250505091905056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373476f6c66662d4758432d504f4f4c3a2043616e6e6f742077697468647261772030536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616c6c6572206973206e6f742072657761726420646973747269627574696f6e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a7231582039784d451d4420bea0671b326882798ce2a1c0cf23667ab3eb502ca77dd0167c64736f6c63430005100032

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c35760003560e01c80637b0a47ee116100f9578063c8f33c9111610097578063df136d6511610071578063df136d651461064c578063e9fad8ee1461066a578063ebe2b12b14610674578063f2fde38b14610692576101c3565b8063c8f33c91146105f2578063cb17d14f14610610578063cd3daf9d1461062e576101c3565b80638da5cb5b116100d35780638da5cb5b1461050e5780638f32d59b14610558578063a694fc3a1461057a578063c25904fd146105a8576101c3565b80637b0a47ee1461047a57806380faa57d146104985780638b876347146104b6576101c3565b80633d18b912116101665780636fdca5e0116101405780636fdca5e0146103ca57806370a08231146103fa578063715018a61461045257806378e979251461045c576101c3565b80633d18b9121461035457806347535d7b1461035e57806351ed6a3014610380576101c3565b806318160ddd116101a257806318160ddd146102bc5780631be05289146102da5780632e1a7d4d146102f85780633c6b16ab14610326576101c3565b80628cc262146101c85780630700037d146102205780630d68b76114610278575b600080fd5b61020a600480360360208110156101de57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506106d6565b6040518082815260200191505060405180910390f35b6102626004803603602081101561023657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107bd565b6040518082815260200191505060405180910390f35b6102ba6004803603602081101561028e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107d5565b005b6102c4610893565b6040518082815260200191505060405180910390f35b6102e261089d565b6040518082815260200191505060405180910390f35b6103246004803603602081101561030e57600080fd5b81019080803590602001909291905050506108a4565b005b6103526004803603602081101561033c57600080fd5b8101908080359060200190929190505050610ab5565b005b61035c610f3f565b005b610366611197565b604051808215151515815260200191505060405180910390f35b6103886111ae565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103f8600480360360208110156103e057600080fd5b810190808035151590602001909291905050506111d3565b005b61043c6004803603602081101561041057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506112a5565b6040518082815260200191505060405180910390f35b61045a6112ee565b005b610464611429565b6040518082815260200191505060405180910390f35b610482611431565b6040518082815260200191505060405180910390f35b6104a0611437565b6040518082815260200191505060405180910390f35b6104f8600480360360208110156104cc57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061144a565b6040518082815260200191505060405180910390f35b610516611462565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61056061148c565b604051808215151515815260200191505060405180910390f35b6105a66004803603602081101561059057600080fd5b81019080803590602001909291905050506114eb565b005b6105b061179b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105fa6117c1565b6040518082815260200191505060405180910390f35b6106186117c7565b6040518082815260200191505060405180910390f35b6106366117d1565b6040518082815260200191505060405180910390f35b610654611869565b6040518082815260200191505060405180910390f35b61067261186f565b005b61067c61188a565b6040518082815260200191505060405180910390f35b6106d4600480360360208110156106a857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611890565b005b60006107b6600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546107a8670de0b6b3a764000061079a610783600b60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546107756117d1565b61191690919063ffffffff16565b61078c886112a5565b61196090919063ffffffff16565b6119e690919063ffffffff16565b611a3090919063ffffffff16565b9050919050565b600c6020528060005260406000206000915090505481565b6107dd61148c565b61084f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600154905090565b62093a8081565b635f58c3c0421161091d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f476f6c66662d4758432d504f4f4c3a204e6f742073746172740000000000000081525060200191505060405180910390fd5b336109266117d1565b600981905550610934611437565b600881905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a0157610977816106d6565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600954600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008211610a5a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806124726021913960400191505060405180910390fd5b610a6382611ab8565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5836040518082815260200191505060405180910390a25050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610af6611bb7565b73ffffffffffffffffffffffffffffffffffffffff1614610b62576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806124b46021913960400191505060405180910390fd5b600a60009054906101000a900460ff16610be4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f476f6c66662d4758432d504f4f4c3a20506f6f6c20697320636c6f736564000081525060200191505060405180910390fd5b6000610bee6117d1565b600981905550610bfc611437565b600881905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cc957610c3f816106d6565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600954600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b635f58c3c0421115610df2576006544210610d86576000610d1f6001610d1162093a80610d03635f58c3c04261191690919063ffffffff16565b6119e690919063ffffffff16565b611a3090919063ffffffff16565b9050610d4d610d3a62093a808361196090919063ffffffff16565b635f58c3c0611a3090919063ffffffff16565b600681905550610d7a610d6b4260065461191690919063ffffffff16565b846119e690919063ffffffff16565b60078190555050610de6565b6000610d9d4260065461191690919063ffffffff16565b90506000610db66007548361196090919063ffffffff16565b9050610ddd82610dcf8387611a3090919063ffffffff16565b6119e690919063ffffffff16565b60078190555050505b42600881905550610e3a565b610e0862093a80836119e690919063ffffffff16565b600781905550610e2862093a80635f58c3c0611a3090919063ffffffff16565b600681905550635f58c3c06008819055505b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1930846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b158015610ee357600080fd5b505af1158015610ef7573d6000803e3d6000fd5b505050507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d826040518082815260200191505060405180910390a1610f3a611bbf565b505050565b635f58c3c04211610fb8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f476f6c66662d4758432d504f4f4c3a204e6f742073746172740000000000000081525060200191505060405180910390fd5b33610fc16117d1565b600981905550610fcf611437565b600881905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461109c57611012816106d6565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600954600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60006110a7336106d6565b90506000811115611193576000600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506111443382600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611bf89092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b5050565b6000600a60009054906101000a900460ff16905090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6111db61148c565b61124d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600a60006101000a81548160ff0219169083151502179055507f294847065aeb5e8e788661acfc7dbcb26c7f0454406268fce96109d7136928af81604051808215151515815260200191505060405180910390a150565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6112f661148c565b611368576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b635f58c3c081565b60075481565b600061144542600654611cc9565b905090565b600b6020528060005260406000206000915090505481565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166114cf611bb7565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b600a60009054906101000a900460ff1661156d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f476f6c66662d4758432d504f4f4c3a20506f6f6c20697320636c6f736564000081525060200191505060405180910390fd5b635f58c3c042116115e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f476f6c66662d4758432d504f4f4c3a204e6f742073746172740000000000000081525060200191505060405180910390fd5b336115ef6117d1565b6009819055506115fd611437565b600881905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146116ca57611640816106d6565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600954600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008211611740576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f476f6c66662d4758432d504f4f4c3a2043616e6e6f74207374616b652030000081525060200191505060405180910390fd5b61174982611ce2565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d836040518082815260200191505060405180910390a25050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b6000600654905090565b6000806117dc610893565b14156117ec576009549050611866565b6118636118526117fa610893565b611844670de0b6b3a764000061183660075461182860085461181a611437565b61191690919063ffffffff16565b61196090919063ffffffff16565b61196090919063ffffffff16565b6119e690919063ffffffff16565b600954611a3090919063ffffffff16565b90505b90565b60095481565b61188061187b336112a5565b6108a4565b611888610f3f565b565b60065481565b61189861148c565b61190a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61191381611de3565b50565b600061195883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611f29565b905092915050565b60008083141561197357600090506119e0565b600082840290508284828161198457fe5b04146119db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806124936021913960400191505060405180910390fd5b809150505b92915050565b6000611a2883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611fe9565b905092915050565b600080828401905083811015611aae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b611acd8160015461191690919063ffffffff16565b600181905550611b2581600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461191690919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611bb433826000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611bf89092919063ffffffff16565b50565b600033905090565b6000611bf3670de0b6b3a7640000611be560075462093a8061196090919063ffffffff16565b61196090919063ffffffff16565b905090565b611cc4838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb905060e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506120af565b505050565b6000818310611cd85781611cda565b825b905092915050565b611cf781600154611a3090919063ffffffff16565b600181905550611d4f81600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a3090919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611de03330836000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166122fa909392919063ffffffff16565b50565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061244c6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000838311158290611fd6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611f9b578082015181840152602081019050611f80565b50505050905090810190601f168015611fc85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60008083118290612095576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561205a57808201518184015260208101905061203f565b50505050905090810190601f1680156120875780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816120a157fe5b049050809150509392505050565b6120ce8273ffffffffffffffffffffffffffffffffffffffff16612400565b612140576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e74726163740081525060200191505060405180910390fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b6020831061218f578051825260208201915060208101905060208303925061216c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146121f1576040519150601f19603f3d011682016040523d82523d6000602084013e6121f6565b606091505b50915091508161226e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525060200191505060405180910390fd5b6000815111156122f45780806020019051602081101561228d57600080fd5b81019080805190602001909291905050506122f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806124d5602a913960400191505060405180910390fd5b5b50505050565b6123fa848573ffffffffffffffffffffffffffffffffffffffff166323b872dd905060e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506120af565b50505050565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f91506000801b82141580156124425750808214155b9250505091905056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373476f6c66662d4758432d504f4f4c3a2043616e6e6f742077697468647261772030536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616c6c6572206973206e6f742072657761726420646973747269627574696f6e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a7231582039784d451d4420bea0671b326882798ce2a1c0cf23667ab3eb502ca77dd0167c64736f6c63430005100032

Deployed Bytecode Sourcemap

21531:4794:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21531:4794:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23412:267;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23412:267:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22118:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22118:42:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20278:161;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;20278:161:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;20791:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21690:41;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23923:229;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23923:229:0;;;;;;;;;;;;;;;;;:::i;:::-;;25105:1083;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;25105:1083:0;;;;;;;;;;;;;;;;;:::i;:::-;;24265:294;;;:::i;:::-;;24903:77;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;20612;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;24988:109;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;24988:109:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;20890:110;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;20890:110:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;9279:140;;;:::i;:::-;;21740:46;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21859:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22780:131;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22053:57;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22053:57:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;8468:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;8834:94;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;23687:228;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23687:228:0;;;;;;;;;;;;;;;;;:::i;:::-;;21613:70;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;21895:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24798:97;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22982:422;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21931:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24160:97;;;:::i;:::-;;21821:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;9574:109;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;9574:109:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;23412:267;23466:7;23506:165;23654:7;:16;23662:7;23654:16;;;;;;;;;;;;;;;;23506:125;22042:4;23506:95;23547:53;23568:22;:31;23591:7;23568:31;;;;;;;;;;;;;;;;23547:16;:14;:16::i;:::-;:20;;:53;;;;:::i;:::-;23506:18;23516:7;23506:9;:18::i;:::-;:40;;:95;;;;:::i;:::-;:117;;:125;;;;:::i;:::-;:147;;:165;;;;:::i;:::-;23486:185;;23412:267;;;:::o;22118:42::-;;;;;;;;;;;;;;;;;:::o;20278:161::-;8680:9;:7;:9::i;:::-;8672:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20412:19;20391:18;;:40;;;;;;;;;;;;;;;;;;20278:161;:::o;20791:91::-;20835:7;20862:12;;20855:19;;20791:91;:::o;21690:41::-;21725:6;21690:41;:::o;23923:229::-;21776:10;24607:15;:27;24599:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23988:10;22515:16;:14;:16::i;:::-;22492:20;:39;;;;22559:26;:24;:26::i;:::-;22542:14;:43;;;;22619:1;22600:21;;:7;:21;;;22596:157;;22657:15;22664:7;22657:6;:15::i;:::-;22638:7;:16;22646:7;22638:16;;;;;;;;;;;;;;;:34;;;;22721:20;;22687:22;:31;22710:7;22687:31;;;;;;;;;;;;;;;:54;;;;22596:157;24027:1;24018:6;:10;24010:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24077:22;24092:6;24077:14;:22::i;:::-;24125:10;24115:29;;;24137:6;24115:29;;;;;;;;;;;;;;;;;;24674:1;23923:229;:::o;25105:1083::-;20194:18;;;;;;;;;;;20178:34;;:12;:10;:12::i;:::-;:34;;;20170:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24731:4;;;;;;;;;;;24723:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25248:1;22515:16;:14;:16::i;:::-;22492:20;:39;;;;22559:26;:24;:26::i;:::-;22542:14;:43;;;;22619:1;22600:21;;:7;:21;;;22596:157;;22657:15;22664:7;22657:6;:15::i;:::-;22638:7;:16;22646:7;22638:16;;;;;;;;;;;;;;;:34;;;;22721:20;;22687:22;:31;22710:7;22687:31;;;;;;;;;;;;;;;:54;;;;22596:157;21776:10;25266:15;:27;25262:768;;;25332:12;;25313:15;:31;25309:510;;25365:14;25382:51;25431:1;25382:44;21725:6;25382:30;21776:10;25382:15;:19;;:30;;;;:::i;:::-;:34;;:44;;;;:::i;:::-;:48;;:51;;;;:::i;:::-;25365:68;;25467:35;25481:20;21725:6;25481;:10;;:20;;;;:::i;:::-;21776:10;25467:13;;:35;;;;:::i;:::-;25452:12;:50;;;;25534:45;25545:33;25562:15;25545:12;;:16;;:33;;;;:::i;:::-;25534:6;:10;;:45;;;;:::i;:::-;25521:10;:58;;;;25309:510;;;;25620:17;25640:33;25657:15;25640:12;;:16;;:33;;;;:::i;:::-;25620:53;;25692:16;25711:25;25725:10;;25711:9;:13;;:25;;;;:::i;:::-;25692:44;;25768:35;25793:9;25768:20;25779:8;25768:6;:10;;:20;;;;:::i;:::-;:24;;:35;;;;:::i;:::-;25755:10;:48;;;;25309:510;;;25850:15;25833:14;:32;;;;25262:768;;;25908:20;21725:6;25908;:10;;:20;;;;:::i;:::-;25895:10;:33;;;;25956:23;21725:6;21776:10;25956:13;;:23;;;;:::i;:::-;25941:12;:38;;;;21776:10;25992:14;:26;;;;25262:768;26042:3;;;;;;;;;;;:8;;;26059:4;26065:6;26042:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26042:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26042:30:0;;;;26088:19;26100:6;26088:19;;;;;;;;;;;;;;;;;;26162:18;:16;:18::i;:::-;;24781:1;25105:1083;:::o;24265:294::-;21776:10;24607:15;:27;24599:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24317:10;22515:16;:14;:16::i;:::-;22492:20;:39;;;;22559:26;:24;:26::i;:::-;22542:14;:43;;;;22619:1;22600:21;;:7;:21;;;22596:157;;22657:15;22664:7;22657:6;:15::i;:::-;22638:7;:16;22646:7;22638:16;;;;;;;;;;;;;;;:34;;;;22721:20;;22687:22;:31;22710:7;22687:31;;;;;;;;;;;;;;;:54;;;;22596:157;24339:14;24356:18;24363:10;24356:6;:18::i;:::-;24339:35;;24398:1;24389:6;:10;24385:167;;;24438:1;24416:7;:19;24424:10;24416:19;;;;;;;;;;;;;;;:23;;;;24454:36;24471:10;24483:6;24454:3;;;;;;;;;;;:16;;;;:36;;;;;:::i;:::-;24521:10;24510:30;;;24533:6;24510:30;;;;;;;;;;;;;;;;;;24385:167;22763:1;24674;24265:294::o;24903:77::-;24944:4;24968;;;;;;;;;;;24961:11;;24903:77;:::o;20612:::-;;;;;;;;;;;;;:::o;24988:109::-;8680:9;:7;:9::i;:::-;8672:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25054:5;25047:4;;:12;;;;;;;;;;;;;;;;;;25075:14;25083:5;25075:14;;;;;;;;;;;;;;;;;;;;;;24988:109;:::o;20890:110::-;20947:7;20974:9;:18;20984:7;20974:18;;;;;;;;;;;;;;;;20967:25;;20890:110;;;:::o;9279:140::-;8680:9;:7;:9::i;:::-;8672:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9378:1;9341:40;;9362:6;;;;;;;;;;;9341:40;;;;;;;;;;;;9409:1;9392:6;;:19;;;;;;;;;;;;;;;;;;9279:140::o;21740:46::-;21776:10;21740:46;:::o;21859:29::-;;;;:::o;22780:131::-;22837:7;22864:39;22873:15;22890:12;;22864:8;:39::i;:::-;22857:46;;22780:131;:::o;22053:57::-;;;;;;;;;;;;;;;;;:::o;8468:79::-;8506:7;8533:6;;;;;;;;;;;8526:13;;8468:79;:::o;8834:94::-;8874:4;8914:6;;;;;;;;;;;8898:22;;:12;:10;:12::i;:::-;:22;;;8891:29;;8834:94;:::o;23687:228::-;24731:4;;;;;;;;;;;24723:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21776:10;24607:15;:27;24599:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23759:10;22515:16;:14;:16::i;:::-;22492:20;:39;;;;22559:26;:24;:26::i;:::-;22542:14;:43;;;;22619:1;22600:21;;:7;:21;;;22596:157;;22657:15;22664:7;22657:6;:15::i;:::-;22638:7;:16;22646:7;22638:16;;;;;;;;;;;;;;;:34;;;;22721:20;;22687:22;:31;22710:7;22687:31;;;;;;;;;;;;;;;:54;;;;22596:157;23799:1;23790:6;:10;23782:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23846:19;23858:6;23846:11;:19::i;:::-;23888:10;23881:26;;;23900:6;23881:26;;;;;;;;;;;;;;;;;;24674:1;23687:228;:::o;21613:70::-;;;;;;;;;;;;;:::o;21895:29::-;;;;:::o;24798:97::-;24848:7;24875:12;;24868:19;;24798:97;:::o;22982:422::-;23029:7;23070:1;23053:13;:11;:13::i;:::-;:18;23049:78;;;23095:20;;23088:27;;;;23049:78;23157:239;23200:181;23367:13;:11;:13::i;:::-;23200:140;22042:4;23200:106;23295:10;;23200:68;23253:14;;23200:26;:24;:26::i;:::-;:52;;:68;;;;:::i;:::-;:94;;:106;;;;:::i;:::-;:132;;:140;;;;:::i;:::-;:166;;:181;;;;:::i;:::-;23157:20;;:24;;:239;;;;:::i;:::-;23137:259;;22982:422;;:::o;21931:39::-;;;;:::o;24160:97::-;24196:31;24205:21;24215:10;24205:9;:21::i;:::-;24196:8;:31::i;:::-;24238:11;:9;:11::i;:::-;24160:97::o;21821:31::-;;;;:::o;9574:109::-;8680:9;:7;:9::i;:::-;8672:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9647:28;9666:8;9647:18;:28::i;:::-;9574:109;:::o;2218:136::-;2276:7;2303:43;2307:1;2310;2303:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;2296:50;;2218:136;;;;:::o;3134:471::-;3192:7;3442:1;3437;:6;3433:47;;;3467:1;3460:8;;;;3433:47;3492:9;3508:1;3504;:5;3492:17;;3537:1;3532;3528;:5;;;;;;:10;3520:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3596:1;3589:8;;;3134:471;;;;;:::o;4073:132::-;4131:7;4158:39;4162:1;4165;4158:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;4151:46;;4073:132;;;;:::o;1762:181::-;1820:7;1840:9;1856:1;1852;:5;1840:17;;1881:1;1876;:6;;1868:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1934:1;1927:8;;;1762:181;;;;:::o;21253:221::-;21320:24;21337:6;21320:12;;:16;;:24;;;;:::i;:::-;21305:12;:39;;;;21379:33;21405:6;21379:9;:21;21389:10;21379:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;21355:9;:21;21365:10;21355:21;;;;;;;;;;;;;;;:57;;;;21423:43;21447:10;21459:6;21423:10;;;;;;;;;;;:23;;;;:43;;;;;:::i;:::-;21253:221;:::o;7217:98::-;7262:15;7297:10;7290:17;;7217:98;:::o;26200:122::-;26251:7;26278:36;22042:4;26278:24;26291:10;;21725:6;26278:12;;:24;;;;:::i;:::-;:28;;:36;;;;:::i;:::-;26271:43;;26200:122;:::o;16748:176::-;16831:85;16850:5;16880;:14;;;:23;;;;16905:2;16909:5;16857:58;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;16857:58:0;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;16857:58:0;16831:18;:85::i;:::-;16748:176;;;:::o;424:106::-;482:7;513:1;509;:5;:13;;521:1;509:13;;;517:1;509:13;502:20;;424:106;;;;:::o;21008:237::-;21072:24;21089:6;21072:12;;:16;;:24;;;;:::i;:::-;21057:12;:39;;;;21131:33;21157:6;21131:9;:21;21141:10;21131:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;21107:9;:21;21117:10;21107:21;;;;;;;;;;;;;;;:57;;;;21175:62;21203:10;21223:4;21230:6;21175:10;;;;;;;;;;;:27;;;;:62;;;;;;:::i;:::-;21008:237;:::o;9789:229::-;9883:1;9863:22;;:8;:22;;;;9855:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9973:8;9944:38;;9965:6;;;;;;;;;;;9944:38;;;;;;;;;;;;10002:8;9993:6;;:17;;;;;;;;;;;;;;;;;;9789:229;:::o;2691:192::-;2777:7;2810:1;2805;:6;;2813:12;2797:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;2797:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2837:9;2853:1;2849;:5;2837:17;;2874:1;2867:8;;;2691:192;;;;;:::o;4735:345::-;4821:7;4920:1;4916;:5;4923:12;4908:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;4908:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4947:9;4963:1;4959;:5;;;;;;4947:17;;5071:1;5064:8;;;4735:345;;;;;:::o;18787:1114::-;19391:27;19399:5;19391:25;;;:27::i;:::-;19383:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19528:12;19542:23;19577:5;19569:19;;19589:4;19569:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;19569:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;19527:67:0;;;;19613:7;19605:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19694:1;19674:10;:17;:21;19670:224;;;19816:10;19805:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;19805:30:0;;;;;;;;;;;;;;;;19797:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19670:224;18787:1114;;;;:::o;16932:204::-;17033:95;17052:5;17082;:18;;;:27;;;;17111:4;17117:2;17121:5;17059:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;17059:68:0;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;17059:68:0;17033:18;:95::i;:::-;16932:204;;;;:::o;13592:810::-;13652:4;14105:16;14132:19;14154:66;14132:88;;;;14323:7;14311:20;14299:32;;14363:3;14351:15;;:8;:15;;:42;;;;;14382:11;14370:8;:23;;14351:42;14343:51;;;;13592:810;;;:::o

Swarm Source

bzzr://39784d451d4420bea0671b326882798ce2a1c0cf23667ab3eb502ca77dd0167c

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

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.