Contract Address Details

0x388474FC9E8096D9D358566a8e8ed9B64F87c796

Contract Name
CosmicPools
Creator
0x141d48–dcbe44 at 0x94490d–22ba16
Balance
0 METIS
Tokens
Fetching tokens...
Transactions
0 Transactions
Transfers
0 Transfers
Gas Used
Fetching gas used...
Last Balance Update
4502503
Contract name:
CosmicPools




Optimization enabled
false
Compiler version
v0.8.16+commit.07a7930e




EVM Version
default




Verified at
2022-08-25T18:08:02.814400Z

Constructor Arguments

00000000000000000000000063d4efead90914b50e1a14858eb638f87312e79f

Arg [0] (address) : 0x63d4efead90914b50e1a14858eb638f87312e79f

              

Contract source code

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: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * 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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the 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 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: @openzeppelin/contracts/utils/Address.sol


// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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://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].
     */
    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 functionCall(target, data, "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");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason 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 {
            // 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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


// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

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


// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;



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

    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));
    }

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

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

    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");
            uint256 newAllowance = oldAllowance - value;
            _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. 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");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: contracts/masterchef.sol


pragma solidity ^0.8.4;




interface IERC20Ext is IERC20 {
    function decimals() external returns (uint);
}

// The goal of this farm is to allow a stake xTOKEN earn anything model
// In a flip of a traditional farm, this contract only accepts xTOKEN as the staking token
// Each new pool added is a new reward token, each with its own start times
// end times, and rewards per second.
contract CosmicPools is Ownable {
    using SafeERC20 for IERC20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;     // How many tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
    }

    // Info of each pool.
    struct PoolInfo {
        IERC20 RewardToken;       // Address of reward token contract.
        uint256 RewardPerSecond;   // reward token per second for this pool
        uint256 TokenPrecision; // The precision factor used for calculations, dependent on a tokens decimals
        uint256 xTokenStakedAmount; // # of xtoken allocated to this pool
        uint256 lastRewardTime;  // Last block time that reward distribution occurs.
        uint256 accRewardPerShare; // Accumulated reward per share, times the pools token precision. See below.
        uint256 endTime; // end time of pool
        uint256 startTime; // start time of pool
        address protocolOwnerAddress; // this address is the owner of the protocol corresponding to the reward token, used for emergency withdraw to them only
    }

    IERC20 public immutable xtoken;

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes tokens.
    mapping (uint256 => mapping (address => UserInfo)) public userInfo;

    event AdminTokenRecovery(address tokenRecovered, uint256 amount);
    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event SetRewardPerSecond(uint _pid, uint256 _gemsPerSecond);

    constructor(IERC20 _xtoken) {
        xtoken = _xtoken;
    }


    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to, PoolInfo memory pool) internal pure returns (uint256) {
        _from = _from > pool.startTime ? _from : pool.startTime;
        if (_from > pool.endTime || _to < pool.startTime) {
            return 0;
        }
        if (_to > pool.endTime) {
            return pool.endTime - _from;
        }
        return _to - _from;
    }

    // View function to see pending Token on frontend.
    function pendingReward(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo memory pool = poolInfo[_pid];
        UserInfo memory user = userInfo[_pid][_user];
        uint256 accRewardPerShare = pool.accRewardPerShare;
        
        if (block.timestamp > pool.lastRewardTime && pool.xTokenStakedAmount != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp, pool);
            uint256 reward = multiplier * pool.RewardPerSecond;
            accRewardPerShare += (reward * pool.TokenPrecision) / pool.xTokenStakedAmount;
        }
        return (user.amount * accRewardPerShare / pool.TokenPrecision) - user.rewardDebt;
    }

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) internal {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.timestamp <= pool.lastRewardTime) {
            return;
        }

        if (pool.xTokenStakedAmount == 0) {
            pool.lastRewardTime = block.timestamp;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp, pool);
        uint256 reward = multiplier * pool.RewardPerSecond;

        pool.accRewardPerShare += reward * pool.TokenPrecision / pool.xTokenStakedAmount;
        pool.lastRewardTime = block.timestamp;
    }

    // Deposit tokens.
    function deposit(uint256 _pid, uint256 _amount) external {

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        updatePool(_pid);

        uint256 pending = (user.amount * pool.accRewardPerShare / pool.TokenPrecision) - user.rewardDebt;

        user.amount += _amount;
        pool.xTokenStakedAmount += _amount;
        user.rewardDebt = user.amount * pool.accRewardPerShare / pool.TokenPrecision;

        if(pending > 0) {
            safeTransfer(pool.RewardToken, msg.sender, pending);
        }
        xtoken.safeTransferFrom(address(msg.sender), address(this), _amount);

        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw tokens.
    function withdraw(uint256 _pid, uint256 _amount) external {  
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        require(user.amount >= _amount, "withdraw: not good");

        updatePool(_pid);

        uint256 pending = (user.amount * pool.accRewardPerShare / pool.TokenPrecision) - user.rewardDebt;

        user.amount -= _amount;
        pool.xTokenStakedAmount -= _amount;
        user.rewardDebt = user.amount * pool.accRewardPerShare / pool.TokenPrecision;

        if(pending > 0) {
            safeTransfer(pool.RewardToken, msg.sender, pending);
        }

        safeTransfer(xtoken, address(msg.sender), _amount);
        
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) external {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        uint oldUserAmount = user.amount;
        pool.xTokenStakedAmount -= user.amount;
        user.amount = 0;
        user.rewardDebt = 0;

        xtoken.safeTransfer(address(msg.sender), oldUserAmount);
        emit EmergencyWithdraw(msg.sender, _pid, oldUserAmount);

    }

    // Safe erc20 transfer function, just in case if rounding error causes pool to not have enough reward tokens.
    function safeTransfer(IERC20 token, address _to, uint256 _amount) internal {
        uint256 bal = token.balanceOf(address(this));
        if (_amount > bal) {
            token.safeTransfer(_to, bal);
        } else {
            token.safeTransfer(_to, _amount);
        }
    }

    // Admin functions

    function changeEndTime(uint _pid, uint32 addSeconds) external onlyOwner {
        poolInfo[_pid].endTime += addSeconds;
    }

    function stopReward(uint _pid) external onlyOwner {
        poolInfo[_pid].endTime = block.number;
    }

    function checkForToken(IERC20 _Token) private view {
        uint256 length = poolInfo.length;
        for (uint256 _pid = 0; _pid < length; _pid++) {
            require(poolInfo[_pid].RewardToken != _Token, "checkForToken: reward token provided");
        }
    }

    function recoverWrongTokens(address _tokenAddress) external onlyOwner {
        require(_tokenAddress != address(xtoken), "recoverWrongTokens: Cannot be xtoken");
        checkForToken(IERC20(_tokenAddress));
        
        uint bal = IERC20(_tokenAddress).balanceOf(address(this));
        IERC20(_tokenAddress).safeTransfer(address(msg.sender), bal);

        emit AdminTokenRecovery(_tokenAddress, bal);
    }

    function emergencyRewardWithdraw(uint _pid, uint256 _amount) external onlyOwner {
        poolInfo[_pid].RewardToken.safeTransfer(poolInfo[_pid].protocolOwnerAddress, _amount);
    }

    // Add a new token to the pool. Can only be called by the owner.
    function add(uint _rewardPerSecond, IERC20Ext _Token, uint _startTime, uint _endTime, address _protocolOwner) external onlyOwner {

        checkForToken(_Token); // ensure you cant add duplicate pools

        uint lastRewardTime = block.timestamp > _startTime ? block.timestamp : _startTime;
        uint decimalsRewardToken = _Token.decimals();
        require(decimalsRewardToken < 30, "Token has way too many decimals");
        uint precision = 10**(30 - decimalsRewardToken);

        poolInfo.push(PoolInfo({
            RewardToken: _Token,
            RewardPerSecond: _rewardPerSecond,
            TokenPrecision: precision,
            xTokenStakedAmount: 0,
            startTime: _startTime,
            endTime: _endTime,
            lastRewardTime: lastRewardTime,
            accRewardPerShare: 0,
            protocolOwnerAddress: _protocolOwner
        }));
    }

    // Update the given pool's reward per second. Can only be called by the owner.
    function setRewardPerSecond(uint256 _pid, uint256 _rewardPerSecond) external onlyOwner {
        
        updatePool(_pid);

        poolInfo[_pid].RewardPerSecond = _rewardPerSecond;

        emit SetRewardPerSecond(_pid, _rewardPerSecond);
    }

}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_xtoken","internalType":"contract IERC20"}]},{"type":"event","name":"AdminTokenRecovery","inputs":[{"type":"address","name":"tokenRecovered","internalType":"address","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Deposit","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"EmergencyWithdraw","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SetRewardPerSecond","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256","indexed":false},{"type":"uint256","name":"_gemsPerSecond","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Withdraw","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"add","inputs":[{"type":"uint256","name":"_rewardPerSecond","internalType":"uint256"},{"type":"address","name":"_Token","internalType":"contract IERC20Ext"},{"type":"uint256","name":"_startTime","internalType":"uint256"},{"type":"uint256","name":"_endTime","internalType":"uint256"},{"type":"address","name":"_protocolOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"changeEndTime","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint32","name":"addSeconds","internalType":"uint32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deposit","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"emergencyRewardWithdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"emergencyWithdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"massUpdatePools","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"pendingReward","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"RewardToken","internalType":"contract IERC20"},{"type":"uint256","name":"RewardPerSecond","internalType":"uint256"},{"type":"uint256","name":"TokenPrecision","internalType":"uint256"},{"type":"uint256","name":"xTokenStakedAmount","internalType":"uint256"},{"type":"uint256","name":"lastRewardTime","internalType":"uint256"},{"type":"uint256","name":"accRewardPerShare","internalType":"uint256"},{"type":"uint256","name":"endTime","internalType":"uint256"},{"type":"uint256","name":"startTime","internalType":"uint256"},{"type":"address","name":"protocolOwnerAddress","internalType":"address"}],"name":"poolInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"poolLength","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"recoverWrongTokens","inputs":[{"type":"address","name":"_tokenAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRewardPerSecond","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_rewardPerSecond","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"stopReward","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"rewardDebt","internalType":"uint256"}],"name":"userInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"xtoken","inputs":[]}]
              

Contract Creation Code

0x60a06040523480156200001157600080fd5b5060405162002f0b38038062002f0b8339818101604052810190620000379190620001dc565b620000576200004b6200009260201b60201c565b6200009a60201b60201c565b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050506200020e565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001908262000163565b9050919050565b6000620001a48262000183565b9050919050565b620001b68162000197565b8114620001c257600080fd5b50565b600081519050620001d681620001ab565b92915050565b600060208284031215620001f557620001f46200015e565b5b60006200020584828501620001c5565b91505092915050565b608051612cc562000246600039600081816104a90152818161079f015281816108d801528181610aaa01526114a30152612cc56000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063746268cc116100a257806398969e821161007157806398969e821461029a578063b5f578fc146102ca578063cc43d9c4146102e6578063e2bbb15814610302578063f2fde38b1461031e57610116565b8063746268cc14610213578063773000891461022f5780638da5cb5b1461024b57806393f1a40b1461026957610116565b80632c636645116100e95780632c636645146101ab578063441a3e70146101c75780635312ea8e146101e3578063630b5ba1146101ff578063715018a61461020957610116565b8063081e3eda1461011b578063084f8604146101395780631526fe27146101555780631718a68f1461018d575b600080fd5b61012361033a565b6040516101309190611e95565b60405180910390f35b610153600480360381019061014e9190611f1d565b610347565b005b61016f600480360381019061016a9190611f5d565b610409565b6040516101849998979695949392919061202a565b60405180910390f35b6101956104a7565b6040516101a291906120b7565b60405180910390f35b6101c560048036038101906101c091906120d2565b6104cb565b005b6101e160048036038101906101dc91906120d2565b610600565b005b6101fd60048036038101906101f89190611f5d565b61081b565b005b610207610971565b005b6102116109a4565b005b61022d6004803603810190610228919061213e565b610a2c565b005b61024960048036038101906102449190611f5d565b610c25565b005b610253610cce565b604051610260919061216b565b60405180910390f35b610283600480360381019061027e9190612186565b610cf7565b6040516102919291906121c6565b60405180910390f35b6102b460048036038101906102af9190612186565b610d28565b6040516102c19190611e95565b60405180910390f35b6102e460048036038101906102df91906120d2565b610f75565b005b61030060048036038101906102fb919061222d565b611061565b005b61031c600480360381019061031791906120d2565b611348565b005b6103386004803603810190610333919061213e565b61153e565b005b6000600180549050905090565b61034f611635565b73ffffffffffffffffffffffffffffffffffffffff1661036d610cce565b73ffffffffffffffffffffffffffffffffffffffff16146103c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103ba90612305565b60405180910390fd5b8063ffffffff16600183815481106103de576103dd612325565b5b906000526020600020906009020160060160008282546103fe9190612383565b925050819055505050565b6001818154811061041957600080fd5b90600052602060002090600902016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040154908060050154908060060154908060070154908060080160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905089565b7f000000000000000000000000000000000000000000000000000000000000000081565b6104d3611635565b73ffffffffffffffffffffffffffffffffffffffff166104f1610cce565b73ffffffffffffffffffffffffffffffffffffffff1614610547576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053e90612305565b60405180910390fd5b6105fc6001838154811061055e5761055d612325565b5b906000526020600020906009020160080160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600185815481106105a5576105a4612325565b5b906000526020600020906009020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661163d9092919063ffffffff16565b5050565b60006001838154811061061657610615612325565b5b9060005260206000209060090201905060006002600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905082816000015410156106c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b890612403565b60405180910390fd5b6106ca846116c3565b600081600101548360020154846005015484600001546106ea9190612423565b6106f491906124ac565b6106fe91906124dd565b90508382600001600082825461071491906124dd565b925050819055508383600301600082825461072f91906124dd565b9250508190555082600201548360050154836000015461074f9190612423565b61075991906124ac565b8260010181905550600081111561079a576107998360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff163383611883565b5b6107c57f00000000000000000000000000000000000000000000000000000000000000003386611883565b843373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5688660405161080c9190611e95565b60405180910390a35050505050565b60006001828154811061083157610830612325565b5b9060005260206000209060090201905060006002600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905081600001548360030160008282546108b691906124dd565b92505081905550600082600001819055506000826001018190555061091c33827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661163d9092919063ffffffff16565b833373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040516109639190611e95565b60405180910390a350505050565b6000600180549050905060005b818110156109a05761098f816116c3565b8061099990612511565b905061097e565b5050565b6109ac611635565b73ffffffffffffffffffffffffffffffffffffffff166109ca610cce565b73ffffffffffffffffffffffffffffffffffffffff1614610a20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1790612305565b60405180910390fd5b610a2a600061196b565b565b610a34611635565b73ffffffffffffffffffffffffffffffffffffffff16610a52610cce565b73ffffffffffffffffffffffffffffffffffffffff1614610aa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9f90612305565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2d906125cb565b60405180910390fd5b610b3f81611a2f565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b7a919061216b565b602060405180830381865afa158015610b97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bbb9190612600565b9050610be833828473ffffffffffffffffffffffffffffffffffffffff1661163d9092919063ffffffff16565b7f74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab781298282604051610c1992919061262d565b60405180910390a15050565b610c2d611635565b73ffffffffffffffffffffffffffffffffffffffff16610c4b610cce565b73ffffffffffffffffffffffffffffffffffffffff1614610ca1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9890612305565b60405180910390fd5b4360018281548110610cb657610cb5612325565b5b90600052602060002090600902016006018190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6002602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b60008060018481548110610d3f57610d3e612325565b5b9060005260206000209060090201604051806101200160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152602001600782015481526020016008820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905060006002600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180604001604052908160008201548152602001600182015481525050905060008260a001519050826080015142118015610ee157506000836060015114155b15610f3c576000610ef784608001514286611b0f565b90506000846020015182610f0b9190612423565b90508460600151856040015182610f229190612423565b610f2c91906124ac565b83610f379190612383565b925050505b81602001518360400151828460000151610f569190612423565b610f6091906124ac565b610f6a91906124dd565b935050505092915050565b610f7d611635565b73ffffffffffffffffffffffffffffffffffffffff16610f9b610cce565b73ffffffffffffffffffffffffffffffffffffffff1614610ff1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe890612305565b60405180910390fd5b610ffa826116c3565b806001838154811061100f5761100e612325565b5b9060005260206000209060090201600101819055507fcf46b21c204617ffb815b827463db479e0f3cdc9586e33690d10ced9541fcda082826040516110559291906121c6565b60405180910390a15050565b611069611635565b73ffffffffffffffffffffffffffffffffffffffff16611087610cce565b73ffffffffffffffffffffffffffffffffffffffff16146110dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d490612305565b60405180910390fd5b6110e684611a2f565b60008342116110f557836110f7565b425b905060008573ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611148573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061116c9190612600565b9050601e81106111b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a8906126a2565b60405180910390fd5b600081601e6111c091906124dd565b600a6111cc91906127f5565b905060016040518061012001604052808973ffffffffffffffffffffffffffffffffffffffff1681526020018a815260200183815260200160008152602001858152602001600081526020018781526020018881526020018673ffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003906000526020600020906009020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e082015181600701556101008201518160080160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050505050505050565b60006001838154811061135e5761135d612325565b5b9060005260206000209060090201905060006002600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506113cb846116c3565b600081600101548360020154846005015484600001546113eb9190612423565b6113f591906124ac565b6113ff91906124dd565b9050838260000160008282546114159190612383565b92505081905550838360030160008282546114309190612383565b925050819055508260020154836005015483600001546114509190612423565b61145a91906124ac565b8260010181905550600081111561149b5761149a8360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff163383611883565b5b6114e83330867f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611b86909392919063ffffffff16565b843373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a158660405161152f9190611e95565b60405180910390a35050505050565b611546611635565b73ffffffffffffffffffffffffffffffffffffffff16611564610cce565b73ffffffffffffffffffffffffffffffffffffffff16146115ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b190612305565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611629576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611620906128b2565b60405180910390fd5b6116328161196b565b50565b600033905090565b6116be8363a9059cbb60e01b848460405160240161165c92919061262d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611c0f565b505050565b6000600182815481106116d9576116d8612325565b5b90600052602060002090600902019050806004015442116116fa5750611880565b60008160030154036117155742816004018190555050611880565b600061182482600401544284604051806101200160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152602001600782015481526020016008820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050611b0f565b905060008260010154826118389190612423565b9050826003015483600201548261184f9190612423565b61185991906124ac565b83600501600082825461186c9190612383565b925050819055504283600401819055505050505b50565b60008373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016118be919061216b565b602060405180830381865afa1580156118db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ff9190612600565b9050808211156119395761193483828673ffffffffffffffffffffffffffffffffffffffff1661163d9092919063ffffffff16565b611965565b61196483838673ffffffffffffffffffffffffffffffffffffffff1661163d9092919063ffffffff16565b5b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600180549050905060005b81811015611b0a578273ffffffffffffffffffffffffffffffffffffffff1660018281548110611a6f57611a6e612325565b5b906000526020600020906009020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611af7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aee90612944565b60405180910390fd5b8080611b0290612511565b915050611a3c565b505050565b60008160e001518411611b26578160e00151611b28565b835b93508160c00151841180611b3f57508160e0015183105b15611b4d5760009050611b7f565b8160c00151831115611b7057838260c00151611b6991906124dd565b9050611b7f565b8383611b7c91906124dd565b90505b9392505050565b611c09846323b872dd60e01b858585604051602401611ba793929190612964565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611c0f565b50505050565b6000611c71826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611cd69092919063ffffffff16565b9050600081511115611cd15780806020019051810190611c9191906129d3565b611cd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc790612a72565b60405180910390fd5b5b505050565b6060611ce58484600085611cee565b90509392505050565b606082471015611d33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2a90612b04565b60405180910390fd5b611d3c85611e02565b611d7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7290612b70565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611da49190612c01565b60006040518083038185875af1925050503d8060008114611de1576040519150601f19603f3d011682016040523d82523d6000602084013e611de6565b606091505b5091509150611df6828286611e15565b92505050949350505050565b600080823b905060008111915050919050565b60608315611e2557829050611e75565b600083511115611e385782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6c9190612c6d565b60405180910390fd5b9392505050565b6000819050919050565b611e8f81611e7c565b82525050565b6000602082019050611eaa6000830184611e86565b92915050565b600080fd5b611ebe81611e7c565b8114611ec957600080fd5b50565b600081359050611edb81611eb5565b92915050565b600063ffffffff82169050919050565b611efa81611ee1565b8114611f0557600080fd5b50565b600081359050611f1781611ef1565b92915050565b60008060408385031215611f3457611f33611eb0565b5b6000611f4285828601611ecc565b9250506020611f5385828601611f08565b9150509250929050565b600060208284031215611f7357611f72611eb0565b5b6000611f8184828501611ecc565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000611fcf611fca611fc584611f8a565b611faa565b611f8a565b9050919050565b6000611fe182611fb4565b9050919050565b6000611ff382611fd6565b9050919050565b61200381611fe8565b82525050565b600061201482611f8a565b9050919050565b61202481612009565b82525050565b600061012082019050612040600083018c611ffa565b61204d602083018b611e86565b61205a604083018a611e86565b6120676060830189611e86565b6120746080830188611e86565b61208160a0830187611e86565b61208e60c0830186611e86565b61209b60e0830185611e86565b6120a961010083018461201b565b9a9950505050505050505050565b60006020820190506120cc6000830184611ffa565b92915050565b600080604083850312156120e9576120e8611eb0565b5b60006120f785828601611ecc565b925050602061210885828601611ecc565b9150509250929050565b61211b81612009565b811461212657600080fd5b50565b60008135905061213881612112565b92915050565b60006020828403121561215457612153611eb0565b5b600061216284828501612129565b91505092915050565b6000602082019050612180600083018461201b565b92915050565b6000806040838503121561219d5761219c611eb0565b5b60006121ab85828601611ecc565b92505060206121bc85828601612129565b9150509250929050565b60006040820190506121db6000830185611e86565b6121e86020830184611e86565b9392505050565b60006121fa82612009565b9050919050565b61220a816121ef565b811461221557600080fd5b50565b60008135905061222781612201565b92915050565b600080600080600060a0868803121561224957612248611eb0565b5b600061225788828901611ecc565b955050602061226888828901612218565b945050604061227988828901611ecc565b935050606061228a88828901611ecc565b925050608061229b88828901612129565b9150509295509295909350565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006122ef6020836122a8565b91506122fa826122b9565b602082019050919050565b6000602082019050818103600083015261231e816122e2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061238e82611e7c565b915061239983611e7c565b92508282019050808211156123b1576123b0612354565b5b92915050565b7f77697468647261773a206e6f7420676f6f640000000000000000000000000000600082015250565b60006123ed6012836122a8565b91506123f8826123b7565b602082019050919050565b6000602082019050818103600083015261241c816123e0565b9050919050565b600061242e82611e7c565b915061243983611e7c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561247257612471612354565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006124b782611e7c565b91506124c283611e7c565b9250826124d2576124d161247d565b5b828204905092915050565b60006124e882611e7c565b91506124f383611e7c565b925082820390508181111561250b5761250a612354565b5b92915050565b600061251c82611e7c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361254e5761254d612354565b5b600182019050919050565b7f7265636f76657257726f6e67546f6b656e733a2043616e6e6f7420626520787460008201527f6f6b656e00000000000000000000000000000000000000000000000000000000602082015250565b60006125b56024836122a8565b91506125c082612559565b604082019050919050565b600060208201905081810360008301526125e4816125a8565b9050919050565b6000815190506125fa81611eb5565b92915050565b60006020828403121561261657612615611eb0565b5b6000612624848285016125eb565b91505092915050565b6000604082019050612642600083018561201b565b61264f6020830184611e86565b9392505050565b7f546f6b656e206861732077617920746f6f206d616e7920646563696d616c7300600082015250565b600061268c601f836122a8565b915061269782612656565b602082019050919050565b600060208201905081810360008301526126bb8161267f565b9050919050565b60008160011c9050919050565b6000808291508390505b6001851115612719578086048111156126f5576126f4612354565b5b60018516156127045780820291505b8081029050612712856126c2565b94506126d9565b94509492505050565b60008261273257600190506127ee565b8161274057600090506127ee565b816001811461275657600281146127605761278f565b60019150506127ee565b60ff84111561277257612771612354565b5b8360020a91508482111561278957612788612354565b5b506127ee565b5060208310610133831016604e8410600b84101617156127c45782820a9050838111156127bf576127be612354565b5b6127ee565b6127d184848460016126cf565b925090508184048111156127e8576127e7612354565b5b81810290505b9392505050565b600061280082611e7c565b915061280b83611e7c565b92506128387fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484612722565b905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061289c6026836122a8565b91506128a782612840565b604082019050919050565b600060208201905081810360008301526128cb8161288f565b9050919050565b7f636865636b466f72546f6b656e3a2072657761726420746f6b656e2070726f7660008201527f6964656400000000000000000000000000000000000000000000000000000000602082015250565b600061292e6024836122a8565b9150612939826128d2565b604082019050919050565b6000602082019050818103600083015261295d81612921565b9050919050565b6000606082019050612979600083018661201b565b612986602083018561201b565b6129936040830184611e86565b949350505050565b60008115159050919050565b6129b08161299b565b81146129bb57600080fd5b50565b6000815190506129cd816129a7565b92915050565b6000602082840312156129e9576129e8611eb0565b5b60006129f7848285016129be565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000612a5c602a836122a8565b9150612a6782612a00565b604082019050919050565b60006020820190508181036000830152612a8b81612a4f565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000612aee6026836122a8565b9150612af982612a92565b604082019050919050565b60006020820190508181036000830152612b1d81612ae1565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612b5a601d836122a8565b9150612b6582612b24565b602082019050919050565b60006020820190508181036000830152612b8981612b4d565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015612bc4578082015181840152602081019050612ba9565b60008484015250505050565b6000612bdb82612b90565b612be58185612b9b565b9350612bf5818560208601612ba6565b80840191505092915050565b6000612c0d8284612bd0565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b6000612c3f82612c18565b612c4981856122a8565b9350612c59818560208601612ba6565b612c6281612c23565b840191505092915050565b60006020820190508181036000830152612c878184612c34565b90509291505056fea26469706673582212202e0580f8b3733a5e1c02786b8373d9bde10f511dea3cc2a63c5dae054146187864736f6c6343000810003300000000000000000000000063d4efead90914b50e1a14858eb638f87312e79f

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063746268cc116100a257806398969e821161007157806398969e821461029a578063b5f578fc146102ca578063cc43d9c4146102e6578063e2bbb15814610302578063f2fde38b1461031e57610116565b8063746268cc14610213578063773000891461022f5780638da5cb5b1461024b57806393f1a40b1461026957610116565b80632c636645116100e95780632c636645146101ab578063441a3e70146101c75780635312ea8e146101e3578063630b5ba1146101ff578063715018a61461020957610116565b8063081e3eda1461011b578063084f8604146101395780631526fe27146101555780631718a68f1461018d575b600080fd5b61012361033a565b6040516101309190611e95565b60405180910390f35b610153600480360381019061014e9190611f1d565b610347565b005b61016f600480360381019061016a9190611f5d565b610409565b6040516101849998979695949392919061202a565b60405180910390f35b6101956104a7565b6040516101a291906120b7565b60405180910390f35b6101c560048036038101906101c091906120d2565b6104cb565b005b6101e160048036038101906101dc91906120d2565b610600565b005b6101fd60048036038101906101f89190611f5d565b61081b565b005b610207610971565b005b6102116109a4565b005b61022d6004803603810190610228919061213e565b610a2c565b005b61024960048036038101906102449190611f5d565b610c25565b005b610253610cce565b604051610260919061216b565b60405180910390f35b610283600480360381019061027e9190612186565b610cf7565b6040516102919291906121c6565b60405180910390f35b6102b460048036038101906102af9190612186565b610d28565b6040516102c19190611e95565b60405180910390f35b6102e460048036038101906102df91906120d2565b610f75565b005b61030060048036038101906102fb919061222d565b611061565b005b61031c600480360381019061031791906120d2565b611348565b005b6103386004803603810190610333919061213e565b61153e565b005b6000600180549050905090565b61034f611635565b73ffffffffffffffffffffffffffffffffffffffff1661036d610cce565b73ffffffffffffffffffffffffffffffffffffffff16146103c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103ba90612305565b60405180910390fd5b8063ffffffff16600183815481106103de576103dd612325565b5b906000526020600020906009020160060160008282546103fe9190612383565b925050819055505050565b6001818154811061041957600080fd5b90600052602060002090600902016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040154908060050154908060060154908060070154908060080160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905089565b7f00000000000000000000000063d4efead90914b50e1a14858eb638f87312e79f81565b6104d3611635565b73ffffffffffffffffffffffffffffffffffffffff166104f1610cce565b73ffffffffffffffffffffffffffffffffffffffff1614610547576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053e90612305565b60405180910390fd5b6105fc6001838154811061055e5761055d612325565b5b906000526020600020906009020160080160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600185815481106105a5576105a4612325565b5b906000526020600020906009020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661163d9092919063ffffffff16565b5050565b60006001838154811061061657610615612325565b5b9060005260206000209060090201905060006002600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905082816000015410156106c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b890612403565b60405180910390fd5b6106ca846116c3565b600081600101548360020154846005015484600001546106ea9190612423565b6106f491906124ac565b6106fe91906124dd565b90508382600001600082825461071491906124dd565b925050819055508383600301600082825461072f91906124dd565b9250508190555082600201548360050154836000015461074f9190612423565b61075991906124ac565b8260010181905550600081111561079a576107998360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff163383611883565b5b6107c57f00000000000000000000000063d4efead90914b50e1a14858eb638f87312e79f3386611883565b843373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5688660405161080c9190611e95565b60405180910390a35050505050565b60006001828154811061083157610830612325565b5b9060005260206000209060090201905060006002600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905081600001548360030160008282546108b691906124dd565b92505081905550600082600001819055506000826001018190555061091c33827f00000000000000000000000063d4efead90914b50e1a14858eb638f87312e79f73ffffffffffffffffffffffffffffffffffffffff1661163d9092919063ffffffff16565b833373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040516109639190611e95565b60405180910390a350505050565b6000600180549050905060005b818110156109a05761098f816116c3565b8061099990612511565b905061097e565b5050565b6109ac611635565b73ffffffffffffffffffffffffffffffffffffffff166109ca610cce565b73ffffffffffffffffffffffffffffffffffffffff1614610a20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1790612305565b60405180910390fd5b610a2a600061196b565b565b610a34611635565b73ffffffffffffffffffffffffffffffffffffffff16610a52610cce565b73ffffffffffffffffffffffffffffffffffffffff1614610aa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9f90612305565b60405180910390fd5b7f00000000000000000000000063d4efead90914b50e1a14858eb638f87312e79f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2d906125cb565b60405180910390fd5b610b3f81611a2f565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b7a919061216b565b602060405180830381865afa158015610b97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bbb9190612600565b9050610be833828473ffffffffffffffffffffffffffffffffffffffff1661163d9092919063ffffffff16565b7f74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab781298282604051610c1992919061262d565b60405180910390a15050565b610c2d611635565b73ffffffffffffffffffffffffffffffffffffffff16610c4b610cce565b73ffffffffffffffffffffffffffffffffffffffff1614610ca1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9890612305565b60405180910390fd5b4360018281548110610cb657610cb5612325565b5b90600052602060002090600902016006018190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6002602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b60008060018481548110610d3f57610d3e612325565b5b9060005260206000209060090201604051806101200160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152602001600782015481526020016008820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905060006002600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180604001604052908160008201548152602001600182015481525050905060008260a001519050826080015142118015610ee157506000836060015114155b15610f3c576000610ef784608001514286611b0f565b90506000846020015182610f0b9190612423565b90508460600151856040015182610f229190612423565b610f2c91906124ac565b83610f379190612383565b925050505b81602001518360400151828460000151610f569190612423565b610f6091906124ac565b610f6a91906124dd565b935050505092915050565b610f7d611635565b73ffffffffffffffffffffffffffffffffffffffff16610f9b610cce565b73ffffffffffffffffffffffffffffffffffffffff1614610ff1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe890612305565b60405180910390fd5b610ffa826116c3565b806001838154811061100f5761100e612325565b5b9060005260206000209060090201600101819055507fcf46b21c204617ffb815b827463db479e0f3cdc9586e33690d10ced9541fcda082826040516110559291906121c6565b60405180910390a15050565b611069611635565b73ffffffffffffffffffffffffffffffffffffffff16611087610cce565b73ffffffffffffffffffffffffffffffffffffffff16146110dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d490612305565b60405180910390fd5b6110e684611a2f565b60008342116110f557836110f7565b425b905060008573ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611148573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061116c9190612600565b9050601e81106111b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a8906126a2565b60405180910390fd5b600081601e6111c091906124dd565b600a6111cc91906127f5565b905060016040518061012001604052808973ffffffffffffffffffffffffffffffffffffffff1681526020018a815260200183815260200160008152602001858152602001600081526020018781526020018881526020018673ffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003906000526020600020906009020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e082015181600701556101008201518160080160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050505050505050565b60006001838154811061135e5761135d612325565b5b9060005260206000209060090201905060006002600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506113cb846116c3565b600081600101548360020154846005015484600001546113eb9190612423565b6113f591906124ac565b6113ff91906124dd565b9050838260000160008282546114159190612383565b92505081905550838360030160008282546114309190612383565b925050819055508260020154836005015483600001546114509190612423565b61145a91906124ac565b8260010181905550600081111561149b5761149a8360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff163383611883565b5b6114e83330867f00000000000000000000000063d4efead90914b50e1a14858eb638f87312e79f73ffffffffffffffffffffffffffffffffffffffff16611b86909392919063ffffffff16565b843373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a158660405161152f9190611e95565b60405180910390a35050505050565b611546611635565b73ffffffffffffffffffffffffffffffffffffffff16611564610cce565b73ffffffffffffffffffffffffffffffffffffffff16146115ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b190612305565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611629576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611620906128b2565b60405180910390fd5b6116328161196b565b50565b600033905090565b6116be8363a9059cbb60e01b848460405160240161165c92919061262d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611c0f565b505050565b6000600182815481106116d9576116d8612325565b5b90600052602060002090600902019050806004015442116116fa5750611880565b60008160030154036117155742816004018190555050611880565b600061182482600401544284604051806101200160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152602001600782015481526020016008820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050611b0f565b905060008260010154826118389190612423565b9050826003015483600201548261184f9190612423565b61185991906124ac565b83600501600082825461186c9190612383565b925050819055504283600401819055505050505b50565b60008373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016118be919061216b565b602060405180830381865afa1580156118db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ff9190612600565b9050808211156119395761193483828673ffffffffffffffffffffffffffffffffffffffff1661163d9092919063ffffffff16565b611965565b61196483838673ffffffffffffffffffffffffffffffffffffffff1661163d9092919063ffffffff16565b5b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600180549050905060005b81811015611b0a578273ffffffffffffffffffffffffffffffffffffffff1660018281548110611a6f57611a6e612325565b5b906000526020600020906009020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611af7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aee90612944565b60405180910390fd5b8080611b0290612511565b915050611a3c565b505050565b60008160e001518411611b26578160e00151611b28565b835b93508160c00151841180611b3f57508160e0015183105b15611b4d5760009050611b7f565b8160c00151831115611b7057838260c00151611b6991906124dd565b9050611b7f565b8383611b7c91906124dd565b90505b9392505050565b611c09846323b872dd60e01b858585604051602401611ba793929190612964565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611c0f565b50505050565b6000611c71826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611cd69092919063ffffffff16565b9050600081511115611cd15780806020019051810190611c9191906129d3565b611cd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc790612a72565b60405180910390fd5b5b505050565b6060611ce58484600085611cee565b90509392505050565b606082471015611d33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2a90612b04565b60405180910390fd5b611d3c85611e02565b611d7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7290612b70565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611da49190612c01565b60006040518083038185875af1925050503d8060008114611de1576040519150601f19603f3d011682016040523d82523d6000602084013e611de6565b606091505b5091509150611df6828286611e15565b92505050949350505050565b600080823b905060008111915050919050565b60608315611e2557829050611e75565b600083511115611e385782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6c9190612c6d565b60405180910390fd5b9392505050565b6000819050919050565b611e8f81611e7c565b82525050565b6000602082019050611eaa6000830184611e86565b92915050565b600080fd5b611ebe81611e7c565b8114611ec957600080fd5b50565b600081359050611edb81611eb5565b92915050565b600063ffffffff82169050919050565b611efa81611ee1565b8114611f0557600080fd5b50565b600081359050611f1781611ef1565b92915050565b60008060408385031215611f3457611f33611eb0565b5b6000611f4285828601611ecc565b9250506020611f5385828601611f08565b9150509250929050565b600060208284031215611f7357611f72611eb0565b5b6000611f8184828501611ecc565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000611fcf611fca611fc584611f8a565b611faa565b611f8a565b9050919050565b6000611fe182611fb4565b9050919050565b6000611ff382611fd6565b9050919050565b61200381611fe8565b82525050565b600061201482611f8a565b9050919050565b61202481612009565b82525050565b600061012082019050612040600083018c611ffa565b61204d602083018b611e86565b61205a604083018a611e86565b6120676060830189611e86565b6120746080830188611e86565b61208160a0830187611e86565b61208e60c0830186611e86565b61209b60e0830185611e86565b6120a961010083018461201b565b9a9950505050505050505050565b60006020820190506120cc6000830184611ffa565b92915050565b600080604083850312156120e9576120e8611eb0565b5b60006120f785828601611ecc565b925050602061210885828601611ecc565b9150509250929050565b61211b81612009565b811461212657600080fd5b50565b60008135905061213881612112565b92915050565b60006020828403121561215457612153611eb0565b5b600061216284828501612129565b91505092915050565b6000602082019050612180600083018461201b565b92915050565b6000806040838503121561219d5761219c611eb0565b5b60006121ab85828601611ecc565b92505060206121bc85828601612129565b9150509250929050565b60006040820190506121db6000830185611e86565b6121e86020830184611e86565b9392505050565b60006121fa82612009565b9050919050565b61220a816121ef565b811461221557600080fd5b50565b60008135905061222781612201565b92915050565b600080600080600060a0868803121561224957612248611eb0565b5b600061225788828901611ecc565b955050602061226888828901612218565b945050604061227988828901611ecc565b935050606061228a88828901611ecc565b925050608061229b88828901612129565b9150509295509295909350565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006122ef6020836122a8565b91506122fa826122b9565b602082019050919050565b6000602082019050818103600083015261231e816122e2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061238e82611e7c565b915061239983611e7c565b92508282019050808211156123b1576123b0612354565b5b92915050565b7f77697468647261773a206e6f7420676f6f640000000000000000000000000000600082015250565b60006123ed6012836122a8565b91506123f8826123b7565b602082019050919050565b6000602082019050818103600083015261241c816123e0565b9050919050565b600061242e82611e7c565b915061243983611e7c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561247257612471612354565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006124b782611e7c565b91506124c283611e7c565b9250826124d2576124d161247d565b5b828204905092915050565b60006124e882611e7c565b91506124f383611e7c565b925082820390508181111561250b5761250a612354565b5b92915050565b600061251c82611e7c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361254e5761254d612354565b5b600182019050919050565b7f7265636f76657257726f6e67546f6b656e733a2043616e6e6f7420626520787460008201527f6f6b656e00000000000000000000000000000000000000000000000000000000602082015250565b60006125b56024836122a8565b91506125c082612559565b604082019050919050565b600060208201905081810360008301526125e4816125a8565b9050919050565b6000815190506125fa81611eb5565b92915050565b60006020828403121561261657612615611eb0565b5b6000612624848285016125eb565b91505092915050565b6000604082019050612642600083018561201b565b61264f6020830184611e86565b9392505050565b7f546f6b656e206861732077617920746f6f206d616e7920646563696d616c7300600082015250565b600061268c601f836122a8565b915061269782612656565b602082019050919050565b600060208201905081810360008301526126bb8161267f565b9050919050565b60008160011c9050919050565b6000808291508390505b6001851115612719578086048111156126f5576126f4612354565b5b60018516156127045780820291505b8081029050612712856126c2565b94506126d9565b94509492505050565b60008261273257600190506127ee565b8161274057600090506127ee565b816001811461275657600281146127605761278f565b60019150506127ee565b60ff84111561277257612771612354565b5b8360020a91508482111561278957612788612354565b5b506127ee565b5060208310610133831016604e8410600b84101617156127c45782820a9050838111156127bf576127be612354565b5b6127ee565b6127d184848460016126cf565b925090508184048111156127e8576127e7612354565b5b81810290505b9392505050565b600061280082611e7c565b915061280b83611e7c565b92506128387fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484612722565b905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061289c6026836122a8565b91506128a782612840565b604082019050919050565b600060208201905081810360008301526128cb8161288f565b9050919050565b7f636865636b466f72546f6b656e3a2072657761726420746f6b656e2070726f7660008201527f6964656400000000000000000000000000000000000000000000000000000000602082015250565b600061292e6024836122a8565b9150612939826128d2565b604082019050919050565b6000602082019050818103600083015261295d81612921565b9050919050565b6000606082019050612979600083018661201b565b612986602083018561201b565b6129936040830184611e86565b949350505050565b60008115159050919050565b6129b08161299b565b81146129bb57600080fd5b50565b6000815190506129cd816129a7565b92915050565b6000602082840312156129e9576129e8611eb0565b5b60006129f7848285016129be565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000612a5c602a836122a8565b9150612a6782612a00565b604082019050919050565b60006020820190508181036000830152612a8b81612a4f565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000612aee6026836122a8565b9150612af982612a92565b604082019050919050565b60006020820190508181036000830152612b1d81612ae1565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612b5a601d836122a8565b9150612b6582612b24565b602082019050919050565b60006020820190508181036000830152612b8981612b4d565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015612bc4578082015181840152602081019050612ba9565b60008484015250505050565b6000612bdb82612b90565b612be58185612b9b565b9350612bf5818560208601612ba6565b80840191505092915050565b6000612c0d8284612bd0565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b6000612c3f82612c18565b612c4981856122a8565b9350612c59818560208601612ba6565b612c6281612c23565b840191505092915050565b60006020820190508181036000830152612c878184612c34565b90509291505056fea26469706673582212202e0580f8b3733a5e1c02786b8373d9bde10f511dea3cc2a63c5dae054146187864736f6c63430008100033