Contract Address Details

0xC39acC1B3FA595BBaF916A5D6aD222afc91EB079

Contract Name
DEP
Creator
0x668e8a–9ef418 at 0x091547–097fb4
Balance
0 Ether
Tokens
Fetching tokens...
Transactions
30,976,326 Transactions
Transfers
0 Transfers
Gas Used
1,270,874,416,685
Last Balance Update
16618957
Contract name:
DEP




Optimization enabled
true
Compiler version
v0.8.12+commit.f00d7308




Optimization runs
200
EVM Version
default




Verified at
2022-08-29T07:39:26.274654Z

Constructor Arguments

000000000000000000000000553d4a71c872dc55cd1925d77fa8974e186f307f

Arg [0] (address) : 0x553d4a71c872dc55cd1925d77fa8974e186f307f

              

Contract source code

//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

// -License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

// -License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// -License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via _msgSender() 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;
    }
}

// -License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol)
/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
    unchecked {
        _approve(owner, spender, currentAllowance - subtractedValue);
    }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
    unchecked {
        _balances[from] = fromBalance - amount;
    }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
    unchecked {
        _balances[account] = accountBalance - amount;
    }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
        unchecked {
            _approve(owner, spender, currentAllowance - amount);
        }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// -License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)
/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

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

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

    bool private _paused;

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

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

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

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

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

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

// -License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Pausable.sol)
/**
 * @dev ERC20 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC20Pausable is ERC20, Pausable {
    /**
     * @dev See {ERC20-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);

        require(!paused(), "ERC20Pausable: token transfer while paused");
    }
}

// -License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)
/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

// -License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)
/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

// -License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

// -License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// -License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// -License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)
/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, _msgSender()));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
            string(
                abi.encodePacked(
                    "AccessControl: account ",
                    Strings.toHexString(uint160(account), 20),
                    " is missing role ",
                    Strings.toHexString(uint256(role), 32)
                )
            )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

// -License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableSet.sol)
/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex;
                // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

// -License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)
/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

interface IEZC {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

    /**
     * @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 Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) external;

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */

    function burnFromMachine(address account, uint256 amount) external returns (uint256);
    function mint_ezc(address user, uint256 ezcMintAmount) external;

}

contract DEP is AccessControlEnumerable {

    bytes32 public constant REWARD_CHECKER_ROLE = keccak256("REWARD_CHECKER_ROLE");
    bytes32 public constant UPDATER_ROLE = keccak256("UPDATER_ROLE");

    event StopTask(uint taskId);
    event DeleteImage(string url);
    event UpdateRunner(string version);
    event ResetRunners(address[] receivers);
    event RaceTask(address node, uint64 taskId);
    event CompleteTask(address node, uint256 taskProof);
    event AddImagePersistenceWhitelist(address sender, string url);
    event AddTaskDuration(address optionUser, uint64 taskId, uint64 maintainExtraBlocks);
    event TaskPublished(uint64 taskId, string url, string options, uint256 maxRunNum, address[] receivers, uint64 maintainBlocks);

    struct Task {
        uint64 currentRunNum;
        uint64 maxRunNum;
        uint64 startTime;
        uint64 currentRunningNum;
        uint64 maintainBlocks;
        uint256 taskProof;
        uint256 taskUintProof;
        address[] receivers;
        address publisher;
    }

    mapping(uint64 => Task) public taskInfo;
    mapping(address => bool) public addressWhitelist;
    mapping(address => string) public userSetWhiteImage;
    mapping(string => bool) public imageWhiteListStatus;
    mapping(uint64 => uint256) public dayTotalReward;
    mapping(address => uint64) public userSettledDay;
    mapping(address => uint64) public userRewardPoint;
    mapping(address => mapping(uint64 => bool)) public userTask;
    mapping(address => mapping(uint64 => bool)) public userTaskCompleted;
    mapping(address => mapping(uint64 => uint256)) public userDayReward;
    mapping(uint64 => bool) public isWithdrawFromOwner;

    //Initialization parameters
    uint64 public taskSum = 0;
    uint64 public initRunNum = 0;
    uint64 public startDay = 0;
    address public owner;
    address[] initReceivers;

    //Configuration parameters
    uint64 public creditThreshold  = 10;
    uint64 public blockUintPrice = 100;
    uint256 public proofUnit = 1 ether;
    uint64 public estimateRunNum = 1000;
    uint64 public raceTimeout = 20 minutes;
    uint64 public completeTimeout = 48 hours;
    address private constant DISPATCH = 0x0000000000000000000000000000000000000406;
    
    IEZC ezc;
    constructor(IEZC _ezc) {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(UPDATER_ROLE, _msgSender());
        _setupRole(REWARD_CHECKER_ROLE, _msgSender());

        owner = _msgSender();
        startDay = getCurrentDay();
        ezc = _ezc;
    }

    modifier onlyOwner {
        require(_msgSender() == owner, "not owner address");
        _;
    }

    modifier initTask(uint64 maxRunNum, address[] memory receivers, uint64 maintainBlocks) {
        uint256 taskTotalPrice = 0;
        uint64 blockPrice = 1;

        require(addressWhitelist[_msgSender()], "Unauthorized Address");

        if (maintainBlocks > 100) blockPrice = maintainBlocks / blockUintPrice;
        
        taskTotalPrice = proofUnit * maxRunNum * blockPrice;

        uint256 taskProof = ezc.burnFromMachine(_msgSender(), taskTotalPrice);
        _assemblyTask(taskProof, maxRunNum, receivers, maintainBlocks);
        _;
    }

    function updateRunner(string calldata version) external onlyRole(UPDATER_ROLE) {
        emit UpdateRunner(version);
    }

    function implementationVersion() external pure virtual returns (string memory) {
        return "1.0.5";
    }

    function setEZC(IEZC _ezc) external onlyOwner {
        ezc = _ezc;
    }

    function setProofUnit(uint256 _proofUnit) external onlyOwner {
        proofUnit = _proofUnit;
    }

    function setRaceTimeout(uint64 _raceTimeout) external onlyOwner {
        raceTimeout = _raceTimeout;
    }

    function setCompleteTimeout(uint64 _completeTimeout) external onlyOwner {
        completeTimeout = _completeTimeout;
    }

    function setBlockUnitPrice(uint64 _blockUnitPrice) external onlyOwner {
        blockUintPrice = _blockUnitPrice;
    }

    function setCreditThreshold(uint64 _creditThreshold) external onlyOwner {
        creditThreshold  = _creditThreshold;
    }

    function setAddressWhitelist(address _permissionAddress, bool _authorization) external onlyOwner {
        addressWhitelist[_permissionAddress] = _authorization;
    }

    function updateRewardPoint(address _user, uint64 _day) external onlyRole(UPDATER_ROLE) {
        userRewardPoint[_user] = _day;
    }

    function withdrawEZC(uint64 taskId) external onlyOwner{
        require(taskSum >= taskId, "Invalid taskId");
        require(taskInfo[taskId].startTime + completeTimeout <= getCurrenTime(), "Task race has been expired");
        require(!isWithdrawFromOwner[taskId], "Already withdraw");
        uint256 usage = taskInfo[taskId].currentRunNum * taskInfo[taskId].taskUintProof;
        require(taskInfo[taskId].taskProof > usage, "Invalid withdraw");
        uint256 remaining = taskInfo[taskId].taskProof - usage;
        ezc.mint_ezc(taskInfo[taskId].publisher, remaining);
        isWithdrawFromOwner[taskId] = true;
    }

    function nNodeUnSpecifiedAddressTask(
        string calldata url, 
        string calldata options, 
        uint64 maxRunNum, 
        uint64 maintainBlocks
    ) external initTask(maxRunNum, initReceivers, maintainBlocks) {
        emit TaskPublished(taskSum, url, options, maxRunNum, initReceivers, maintainBlocks);
    }

    function nNodespecifiedAddressTask(
        string calldata url, 
        string calldata options, 
        uint64 maxRunNum, 
        address[] memory receivers, 
        uint64 maintainBlocks
    ) external initTask(maxRunNum, receivers, maintainBlocks) {
        emit TaskPublished(taskSum, url, options, maxRunNum, receivers, maintainBlocks);
    }

    function addImagePersistenceWhitelist(string calldata url) external {
        require(addressWhitelist[_msgSender()], "Unauthorized Address");
        imageWhiteListStatus[userSetWhiteImage[_msgSender()]] = false;
        userSetWhiteImage[_msgSender()] = url;
        imageWhiteListStatus[url] = true;
        emit AddImagePersistenceWhitelist(_msgSender(), url);
    }

    function _assemblyTask(uint256 taskProof, uint64 maxRunNum, address[] memory receivers, uint64 maintainBlocks) private returns(bool) {
        uint64 index = ++taskSum;
        dayTotalReward[getCurrentDay()] += taskProof;
        taskInfo[index].publisher = _msgSender();
        taskInfo[index].maxRunNum = maxRunNum;
        taskInfo[index].currentRunNum = 0;
        taskInfo[index].currentRunningNum = 0;
        taskInfo[index].taskProof = taskProof;
        taskInfo[index].taskUintProof = _getTaskUnitProof(index);
        taskInfo[index].startTime = getCurrenTime();
        taskInfo[index].receivers = receivers;
        taskInfo[index].maintainBlocks = maintainBlocks;
        return true;
    }

    function _getTaskUnitProof(uint64 taskId) private view returns(uint256) {
        return taskInfo[taskId].taskProof / taskInfo[taskId].maxRunNum;
    }

    function _toUint64(bytes memory _bytes) private pure returns (uint64 value)
    {
        assembly {
            value := mload(add(_bytes, 0x20))
        }
    }

    function increaseTaskDuration(uint64 taskId, uint64 maintainExtraBlocks) external {
        uint256 taskExtraPrice = 0;
        uint64 maxRunNum = taskInfo[taskId].maxRunNum;
        uint64 blockPrice = 1;
        if (maintainExtraBlocks > 100) blockPrice = maintainExtraBlocks / blockUintPrice;
        
        taskExtraPrice = proofUnit * maxRunNum * blockPrice;
        uint256 taskExtraProof = ezc.burnFromMachine(_msgSender(), taskExtraPrice);
        taskInfo[taskId].taskProof += taskExtraProof;
        taskInfo[taskId].taskUintProof = _getTaskUnitProof(taskId);
        taskInfo[taskId].maintainBlocks += maintainExtraBlocks;

        emit AddTaskDuration(_msgSender(), taskId, maintainExtraBlocks);
    }

    function resetRunners(address[] calldata receivers) external {
        emit ResetRunners(receivers);
    }

    function stopTask(uint64 taskId) external {
        emit StopTask(taskId);
    }

    function deleteImage(string calldata imageHash) external onlyOwner {
        emit DeleteImage(imageHash);
    } 

    function raceSubIndexForTask(uint64 taskId) external {
        require(taskSum >= taskId, "Invalid taskId");
        require(taskInfo[taskId].maxRunNum >= taskInfo[taskId].currentRunNum + 1, "Task has been filled");
        require(taskInfo[taskId].startTime + raceTimeout >= getCurrenTime(), "Task race has been expired");

        (bool success, bytes memory x) = DISPATCH.call(
            abi.encodeWithSignature("get_credit_score(address)", _msgSender())
        );
        require(success, "get_credit_score not ok");
        require(_toUint64(x) >= creditThreshold, "Low credit score, no right to enforce");

        uint len = taskInfo[taskId].receivers.length;
        if (len > 0) {
            bool exists = false;
            
            for (uint i = 0; i < len; ++i) {
                if (taskInfo[taskId].receivers[i] == _msgSender()) {
                    exists = true;
                    break;
                }
            }
            require(exists, "Invalid task receiver");
        }

        require(!getSubIndexForTask(taskId), "Address already used");

        userTask[_msgSender()][taskId] = true;
        taskInfo[taskId].currentRunNum = taskInfo[taskId].currentRunNum + 1;
        taskInfo[taskId].currentRunningNum = taskInfo[taskId].currentRunningNum + 1;

        emit RaceTask(_msgSender(), taskId);
    }

    function completeSubIndexForTask(uint64 taskId) external {
        require(taskSum >= taskId, "Invalid taskId");
        require(userTask[_msgSender()][taskId], "Invalid taskId or task not raced");
        require(!userTaskCompleted[_msgSender()][taskId], "Sub task has been completed");
        require(taskInfo[taskId].startTime + completeTimeout >= getCurrenTime(), "Task has been expired");

        userTaskCompleted[_msgSender()][taskId] = true;
        
        userDayReward[_msgSender()][getCurrentDay()] += taskInfo[taskId].taskUintProof;
        taskInfo[taskId].currentRunningNum--;

        emit CompleteTask(_msgSender(), taskInfo[taskId].taskUintProof);
    }

    function getCurrentDay() public view returns (uint64) {
        return uint64(block.timestamp / 1 days);
    }

    function getCurrenTime() public view returns (uint64) {
        return uint64(block.timestamp);
    }

    function getUserRewardPointer(address _user) external view returns (uint64) {
        return userRewardPoint[_user];
    }

    function getUserRewardForDay(address user, uint64 theDay) external view returns (uint256) {
        return userDayReward[user][theDay];
    }

    function getUserRewardForCurrentDay(address user) external view returns (uint256) {
        return userDayReward[user][getCurrentDay()];
    }

    function getTotalRewardForDay(uint64 theDay) external view returns (uint256){
        return dayTotalReward[theDay];
    }

    function getSubIndexForTask(uint64 taskId) public view returns (bool) {
        return userTask[_msgSender()][taskId];
    }

    function getTaskRemainingTime(uint64 taskId) public view returns (uint64) {
        return getCurrenTime() - (taskInfo[taskId].startTime + taskInfo[taskId].maintainBlocks * 5);
    }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_ezc","internalType":"contract IEZC"}]},{"type":"event","name":"AddImagePersistenceWhitelist","inputs":[{"type":"address","name":"sender","internalType":"address","indexed":false},{"type":"string","name":"url","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"AddTaskDuration","inputs":[{"type":"address","name":"optionUser","internalType":"address","indexed":false},{"type":"uint64","name":"taskId","internalType":"uint64","indexed":false},{"type":"uint64","name":"maintainExtraBlocks","internalType":"uint64","indexed":false}],"anonymous":false},{"type":"event","name":"CompleteTask","inputs":[{"type":"address","name":"node","internalType":"address","indexed":false},{"type":"uint256","name":"taskProof","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"DeleteImage","inputs":[{"type":"string","name":"url","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"RaceTask","inputs":[{"type":"address","name":"node","internalType":"address","indexed":false},{"type":"uint64","name":"taskId","internalType":"uint64","indexed":false}],"anonymous":false},{"type":"event","name":"ResetRunners","inputs":[{"type":"address[]","name":"receivers","internalType":"address[]","indexed":false}],"anonymous":false},{"type":"event","name":"RoleAdminChanged","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"previousAdminRole","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"newAdminRole","internalType":"bytes32","indexed":true}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"StopTask","inputs":[{"type":"uint256","name":"taskId","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"TaskPublished","inputs":[{"type":"uint64","name":"taskId","internalType":"uint64","indexed":false},{"type":"string","name":"url","internalType":"string","indexed":false},{"type":"string","name":"options","internalType":"string","indexed":false},{"type":"uint256","name":"maxRunNum","internalType":"uint256","indexed":false},{"type":"address[]","name":"receivers","internalType":"address[]","indexed":false},{"type":"uint64","name":"maintainBlocks","internalType":"uint64","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateRunner","inputs":[{"type":"string","name":"version","internalType":"string","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DEFAULT_ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"REWARD_CHECKER_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"UPDATER_ROLE","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addImagePersistenceWhitelist","inputs":[{"type":"string","name":"url","internalType":"string"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"addressWhitelist","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"blockUintPrice","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"completeSubIndexForTask","inputs":[{"type":"uint64","name":"taskId","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"completeTimeout","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"creditThreshold","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"dayTotalReward","inputs":[{"type":"uint64","name":"","internalType":"uint64"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deleteImage","inputs":[{"type":"string","name":"imageHash","internalType":"string"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"estimateRunNum","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"getCurrenTime","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"getCurrentDay","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getRoleAdmin","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getRoleMember","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getRoleMemberCount","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"getSubIndexForTask","inputs":[{"type":"uint64","name":"taskId","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"getTaskRemainingTime","inputs":[{"type":"uint64","name":"taskId","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getTotalRewardForDay","inputs":[{"type":"uint64","name":"theDay","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getUserRewardForCurrentDay","inputs":[{"type":"address","name":"user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getUserRewardForDay","inputs":[{"type":"address","name":"user","internalType":"address"},{"type":"uint64","name":"theDay","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"getUserRewardPointer","inputs":[{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"grantRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"imageWhiteListStatus","inputs":[{"type":"string","name":"","internalType":"string"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"implementationVersion","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"increaseTaskDuration","inputs":[{"type":"uint64","name":"taskId","internalType":"uint64"},{"type":"uint64","name":"maintainExtraBlocks","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"initRunNum","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isWithdrawFromOwner","inputs":[{"type":"uint64","name":"","internalType":"uint64"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"nNodeUnSpecifiedAddressTask","inputs":[{"type":"string","name":"url","internalType":"string"},{"type":"string","name":"options","internalType":"string"},{"type":"uint64","name":"maxRunNum","internalType":"uint64"},{"type":"uint64","name":"maintainBlocks","internalType":"uint64"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"nNodespecifiedAddressTask","inputs":[{"type":"string","name":"url","internalType":"string"},{"type":"string","name":"options","internalType":"string"},{"type":"uint64","name":"maxRunNum","internalType":"uint64"},{"type":"address[]","name":"receivers","internalType":"address[]"},{"type":"uint64","name":"maintainBlocks","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"proofUnit","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"raceSubIndexForTask","inputs":[{"type":"uint64","name":"taskId","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"raceTimeout","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"resetRunners","inputs":[{"type":"address[]","name":"receivers","internalType":"address[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"revokeRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setAddressWhitelist","inputs":[{"type":"address","name":"_permissionAddress","internalType":"address"},{"type":"bool","name":"_authorization","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBlockUnitPrice","inputs":[{"type":"uint64","name":"_blockUnitPrice","internalType":"uint64"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setCompleteTimeout","inputs":[{"type":"uint64","name":"_completeTimeout","internalType":"uint64"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setCreditThreshold","inputs":[{"type":"uint64","name":"_creditThreshold","internalType":"uint64"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setEZC","inputs":[{"type":"address","name":"_ezc","internalType":"contract IEZC"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setProofUnit","inputs":[{"type":"uint256","name":"_proofUnit","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRaceTimeout","inputs":[{"type":"uint64","name":"_raceTimeout","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"startDay","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"stopTask","inputs":[{"type":"uint64","name":"taskId","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"currentRunNum","internalType":"uint64"},{"type":"uint64","name":"maxRunNum","internalType":"uint64"},{"type":"uint64","name":"startTime","internalType":"uint64"},{"type":"uint64","name":"currentRunningNum","internalType":"uint64"},{"type":"uint64","name":"maintainBlocks","internalType":"uint64"},{"type":"uint256","name":"taskProof","internalType":"uint256"},{"type":"uint256","name":"taskUintProof","internalType":"uint256"},{"type":"address","name":"publisher","internalType":"address"}],"name":"taskInfo","inputs":[{"type":"uint64","name":"","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"taskSum","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateRewardPoint","inputs":[{"type":"address","name":"_user","internalType":"address"},{"type":"uint64","name":"_day","internalType":"uint64"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateRunner","inputs":[{"type":"string","name":"version","internalType":"string"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"userDayReward","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint64","name":"","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"userRewardPoint","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"userSetWhiteImage","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint64","name":"","internalType":"uint64"}],"name":"userSettledDay","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"userTask","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint64","name":"","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"userTaskCompleted","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint64","name":"","internalType":"uint64"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdrawEZC","inputs":[{"type":"uint64","name":"taskId","internalType":"uint64"}]}]
            

Contract Creation Code

0x6080604052600d80546001600160c01b0319908116909155601080546001600160801b0319166864000000000000000a179055670de0b6b3a7640000601155601280549091167202a30000000000000004b000000000000003e81790553480156200006957600080fd5b5060405162003948380380620039488339810160408190526200008c91620002da565b620000996000336200015f565b620000c57f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab336200015f565b620000f17f5cfccc5cc851dc42a746f6d4e4151343447b223893e5048d972de8601c01febd336200015f565b600e80546001600160a01b031916331790556200010d6200016f565b600d80546001600160401b0392909216600160801b02600160801b600160c01b0319909216919091179055601380546001600160a01b039092166001600160a01b03199092169190911790556200032f565b6200016b828262000185565b5050565b60006200018062015180426200030c565b905090565b6200019c8282620001c860201b620022bf1760201c565b6000828152600160209081526040909120620001c39183906200234362000268821b17901c565b505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166200016b576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620002243390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006200027f836001600160a01b03841662000288565b90505b92915050565b6000818152600183016020526040812054620002d15750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000282565b50600062000282565b600060208284031215620002ed57600080fd5b81516001600160a01b03811681146200030557600080fd5b9392505050565b6000826200032a57634e487b7160e01b600052601260045260246000fd5b500490565b613609806200033f6000396000f3fe608060405234801561001057600080fd5b50600436106103a45760003560e01c80637d2bf697116101e9578063ae5ab5f01161010f578063d547741f116100ad578063eb8278aa1161007c578063eb8278aa14610a6e578063eeb5178b14610a81578063f0c8042514610a94578063fa32d16214610aa757600080fd5b8063d547741f14610a12578063dd8afde514610a25578063e359e80214610a38578063ea44879e14610a5b57600080fd5b8063c02b393b116100e9578063c02b393b14610990578063c2e343ca146109be578063ca15c873146109d1578063cad9c2b8146109e457600080fd5b8063ae5ab5f014610964578063af4c14ee1461096a578063b13c27de1461097d57600080fd5b8063987186c111610187578063a69de6f911610156578063a69de6f9146108f2578063a9d77ee41461092b578063aa5480cf1461093e578063ab981f831461095157600080fd5b8063987186c11461089957806398cbb4e1146108c4578063a217fddf146108d7578063a4f0138a146108df57600080fd5b80638da5cb5b116101c35780638da5cb5b1461083f5780639010d07c1461086a57806391d148541461087d578063924b84751461089057600080fd5b80637d2bf697146107e757806382295d9b146107fa578063849857a51461082c57600080fd5b806332cf5d41116102ce57806347e633801161026c57806366a15c7e1161023b57806366a15c7e1461078557806369fd198f146107ae5780636f922e80146107c1578063730348ac146107d457600080fd5b806347e63380146107035780634fb0b1691461072a5780635b037eda146107515780635dad822e1461076b57600080fd5b806339189c9f116102a857806339189c9f146106975780633cdd372a146106ba5780633d56699b146106e85780633e6968b6146106fb57600080fd5b806332cf5d411461065e57806336568abe14610671578063386ae32d1461068457600080fd5b806318593a67116103465780631e42bb44116103155780631e42bb44146105ec578063248a9ca3146106155780632f2ff15d146106385780632faba90b1461064b57600080fd5b806318593a67146104d25780631998750a1461059d5780631ab43a07146105bd5780631e2de337146105d757600080fd5b80630a538325116103825780630a5383251461042d5780630f9321551461044057806313fe7d99146104695780631460790c1461048357600080fd5b806301ffc9a7146103a95780630539272a146103d157806306bfcec614610403575b600080fd5b6103bc6103b7366004612a8f565b610aba565b60405190151581526020015b60405180910390f35b600d546103eb90600160801b90046001600160401b031681565b6040516001600160401b0390911681526020016103c8565b604080518082019091526005815264312e302e3560d81b60208201525b6040516103c89190612ae9565b6103eb61043b366004612b38565b610ae5565b6103eb61044e366004612b68565b6007602052600090815260409020546001600160401b031681565b6012546103eb90600160401b90046001600160401b031681565b6104c4610491366004612b85565b6001600160a01b0382166000908152600b602090815260408083206001600160401b038516845290915290205492915050565b6040519081526020016103c8565b6105426104e0366004612b38565b6002602081905260009182526040909120805460018201549282015460038301546005909301546001600160401b0380841695600160401b8504821695600160801b8604831695600160c01b900483169492909116926001600160a01b031688565b604080516001600160401b03998a16815297891660208901529588169587019590955292861660608601529416608084015260a083019390935260c08201929092526001600160a01b0390911660e0820152610100016103c8565b6104c46105ab366004612b38565b60066020526000908152604090205481565b6012546103eb90600160801b90046001600160401b031681565b6105ea6105e5366004612c02565b610b47565b005b6104c46105fa366004612b38565b6001600160401b031660009081526006602052604090205490565b6104c4610623366004612c43565b60009081526020819052604090206001015490565b6105ea610646366004612c5c565b610bc0565b6012546103eb906001600160401b031681565b6105ea61066c366004612b38565b610bea565b6105ea61067f366004612c5c565b6110f3565b6105ea610692366004612c8c565b611171565b6103bc6106a5366004612b68565b60036020526000908152604090205460ff1681565b6103bc6106c8366004612cee565b805160208183018101805160058252928201919093012091525460ff1681565b6104206106f6366004612b68565b611381565b6103eb61141b565b6104c47f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab81565b6104c47f5cfccc5cc851dc42a746f6d4e4151343447b223893e5048d972de8601c01febd81565b600d546103eb90600160401b90046001600160401b031681565b6010546103eb90600160401b90046001600160401b031681565b6103eb610793366004612b68565b6008602052600090815260409020546001600160401b031681565b6104c46107bc366004612b68565b61142f565b6105ea6107cf366004612c43565b611470565b6105ea6107e2366004612b38565b6114a8565b600d546103eb906001600160401b031681565b6103eb610808366004612b68565b6001600160a01b03166000908152600860205260409020546001600160401b031690565b6105ea61083a366004612b38565b611756565b600e54610852906001600160a01b031681565b6040516001600160a01b0390911681526020016103c8565b610852610878366004612d82565b611796565b6103bc61088b366004612c5c565b6117b5565b6104c460115481565b6104c46108a7366004612b85565b600b60209081526000928352604080842090915290825290205481565b6105ea6108d2366004612b85565b6117de565b6104c4600081565b6105ea6108ed366004612b38565b611843565b6103bc610900366004612b38565b3360009081526009602090815260408083206001600160401b03949094168352929052205460ff1690565b6105ea610939366004612b38565b6118a3565b6010546103eb906001600160401b031681565b6105ea61095f366004612c02565b611b78565b426103eb565b6105ea610978366004612da4565b611be0565b6105ea61098b366004612dd7565b611c3e565b6103bc61099e366004612b85565b600960209081526000928352604080842090915290825290205460ff1681565b6105ea6109cc366004612e4b565b611c6f565b6104c46109df366004612c43565b611e06565b6103bc6109f2366004612b85565b600a60209081526000928352604080842090915290825290205460ff1681565b6105ea610a20366004612c5c565b611e1d565b6105ea610a33366004612b68565b611e42565b6103bc610a46366004612b38565b600c6020526000908152604090205460ff1681565b6105ea610a69366004612f71565b611e97565b6105ea610a7c366004612c02565b61209d565b6105ea610a8f366004612b38565b6121a9565b6105ea610aa2366004612b38565b612209565b6105ea610ab5366004612b38565b612269565b60006001600160e01b03198216635a05180f60e01b1480610adf5750610adf82612358565b92915050565b6001600160401b038082166000908152600260205260408120600101549091610b1091166005613016565b6001600160401b03808416600090815260026020526040902054610b3d9291600160801b90910416613045565b610adf9042613070565b600e546001600160a01b0316336001600160a01b031614610b835760405162461bcd60e51b8152600401610b7a90613098565b60405180910390fd5b7f31283fb7329b678b2472f38fb46b06fbac1b79912e57c7308fd0f5433783d2e98282604051610bb49291906130ec565b60405180910390a15050565b600082815260208190526040902060010154610bdb8161238d565b610be5838361239a565b505050565b600d546001600160401b0380831691161015610c185760405162461bcd60e51b8152600401610b7a90613108565b6001600160401b03808216600090815260026020526040902054610c3e91166001613045565b6001600160401b03828116600090815260026020526040902054918116600160401b909204161015610ca95760405162461bcd60e51b815260206004820152601460248201527315185cdac81a185cc81899595b88199a5b1b195960621b6044820152606401610b7a565b6012546001600160401b0382811660009081526002602052604090205442821692610ce692600160401b909104811691600160801b900416613045565b6001600160401b03161015610d3d5760405162461bcd60e51b815260206004820152601a60248201527f5461736b207261636520686173206265656e20657870697265640000000000006044820152606401610b7a565b600080610406336040516001600160a01b03909116602482015260440160408051601f198184030181529181526020820180516001600160e01b03166387135d7d60e01b17905251610d8f9190613130565b6000604051808303816000865af19150503d8060008114610dcc576040519150601f19603f3d011682016040523d82523d6000602084013e610dd1565b606091505b509150915081610e235760405162461bcd60e51b815260206004820152601760248201527f6765745f6372656469745f73636f7265206e6f74206f6b0000000000000000006044820152606401610b7a565b6010546001600160401b0316610e3a826020015190565b6001600160401b03161015610e9f5760405162461bcd60e51b815260206004820152602560248201527f4c6f77206372656469742073636f72652c206e6f20726967687420746f20656e604482015264666f72636560d81b6064820152608401610b7a565b6001600160401b0383166000908152600260205260409020600401548015610f79576000805b82811015610f31576001600160401b0386166000908152600260205260409020600401805433919083908110610efd57610efd61314c565b6000918252602090912001546001600160a01b03161415610f215760019150610f31565b610f2a81613162565b9050610ec5565b5080610f775760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b2103a30b9b5903932b1b2b4bb32b960591b6044820152606401610b7a565b505b3360009081526009602090815260408083206001600160401b038816845290915290205460ff1615610fe45760405162461bcd60e51b81526020600482015260146024820152731059191c995cdcc8185b1c9958591e481d5cd95960621b6044820152606401610b7a565b3360009081526009602090815260408083206001600160401b038881168552908352818420805460ff19166001908117909155600290935292205461102a921690613045565b6001600160401b038581166000908152600260205260409020805467ffffffffffffffff1916928216929092179182905561106e91600160c01b9004166001613045565b6001600160401b03858116600090815260026020526040902080546001600160c01b0316600160c01b93909216929092021790557fceb0243e97addff106657c64cb387f732ee431757d06e8a052e5cbd03c57458a33604080516001600160a01b0390921682526001600160401b03871660208301520160405180910390a150505050565b6001600160a01b03811633146111635760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b7a565b61116d82826123bc565b5050565b6001600160401b038083166000908152600260205260408120549091600160401b909104811690600190606490851611156111c6576010546111c390600160401b90046001600160401b031685613193565b90505b806001600160401b0316826001600160401b03166011546111e791906131b9565b6111f191906131b9565b6013549093506000906001600160a01b03166360a0e3e4336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018790526044016020604051808303816000875af1158015611256573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127a91906131d8565b90508060026000886001600160401b03166001600160401b0316815260200190815260200160002060020160008282546112b491906131f1565b909155506112c39050866123de565b6001600160401b038088166000908152600260205260408120600381019390935560019092018054889391926112fb91859116613045565b92506101000a8154816001600160401b0302191690836001600160401b031602179055507f81cfdf16c11eb4d89e27aecf0d19eb6b350366de7d889d853ce10280a3902c586113473390565b604080516001600160a01b0390921682526001600160401b03808a16602084015288169082015260600160405180910390a1505050505050565b6004602052600090815260409020805461139a90613209565b80601f01602080910402602001604051908101604052809291908181526020018280546113c690613209565b80156114135780601f106113e857610100808354040283529160200191611413565b820191906000526020600020905b8154815290600101906020018083116113f657829003601f168201915b505050505081565b600061142a6201518042613244565b905090565b6001600160a01b0381166000908152600b602052604081208161145061141b565b6001600160401b0316815260208101919091526040016000205492915050565b600e546001600160a01b0316336001600160a01b0316146114a35760405162461bcd60e51b8152600401610b7a90613098565b601155565b600e546001600160a01b0316336001600160a01b0316146114db5760405162461bcd60e51b8152600401610b7a90613098565b600d546001600160401b03808316911610156115095760405162461bcd60e51b8152600401610b7a90613108565b426012546001600160401b038381166000908152600260205260409020549281169261154392600160801b90819004831692910416613045565b6001600160401b0316111561159a5760405162461bcd60e51b815260206004820152601a60248201527f5461736b207261636520686173206265656e20657870697265640000000000006044820152606401610b7a565b6001600160401b0381166000908152600c602052604090205460ff16156115f65760405162461bcd60e51b815260206004820152601060248201526f416c726561647920776974686472617760801b6044820152606401610b7a565b6001600160401b03808216600090815260026020526040812060038101549054919261162292166131b9565b6001600160401b0383166000908152600260208190526040909120015490915081106116835760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420776974686472617760801b6044820152606401610b7a565b6001600160401b0382166000908152600260208190526040822001546116aa908390613258565b6013546001600160401b0385166000908152600260205260409081902060050154905163cb4e6e5b60e01b81526001600160a01b03918216600482015260248101849052929350169063cb4e6e5b90604401600060405180830381600087803b15801561171657600080fd5b505af115801561172a573d6000803e3d6000fd5b5050506001600160401b039093166000908152600c60205260409020805460ff19166001179055505050565b6040516001600160401b03821681527fdf1d75f75572efdf87b54990a0e9f71f879110993e526c581038365667b45025906020015b60405180910390a150565b60008281526001602052604081206117ae9083612413565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab6118088161238d565b506001600160a01b03919091166000908152600860205260409020805467ffffffffffffffff19166001600160401b03909216919091179055565b600e546001600160a01b0316336001600160a01b0316146118765760405162461bcd60e51b8152600401610b7a90613098565b601080546001600160401b03909216600160401b0267ffffffffffffffff60401b19909216919091179055565b600d546001600160401b03808316911610156118d15760405162461bcd60e51b8152600401610b7a90613108565b3360009081526009602090815260408083206001600160401b038516845290915290205460ff166119445760405162461bcd60e51b815260206004820181905260248201527f496e76616c6964207461736b4964206f72207461736b206e6f742072616365646044820152606401610b7a565b336000908152600a602090815260408083206001600160401b038516845290915290205460ff16156119b85760405162461bcd60e51b815260206004820152601b60248201527f537562207461736b20686173206265656e20636f6d706c6574656400000000006044820152606401610b7a565b426012546001600160401b03838116600090815260026020526040902054928116926119f292600160801b90819004831692910416613045565b6001600160401b03161015611a415760405162461bcd60e51b815260206004820152601560248201527415185cdac81a185cc81899595b88195e1c1a5c9959605a1b6044820152606401610b7a565b336000818152600a602090815260408083206001600160401b03861684528252808320805460ff191660011790556002825280832060030154938352600b909152812090611a8d61141b565b6001600160401b03166001600160401b031681526020019081526020016000206000828254611abc91906131f1565b90915550506001600160401b0380821660009081526002602052604090208054600160c01b9004909116906018611af28361326f565b91906101000a8154816001600160401b0302191690836001600160401b03160217905550507f8db4b00ff8d67a0fc0faa3f7710b55a9098bfd22683a3fe794c78b94c401b0d8611b3f3390565b6001600160401b0383166000908152600260209081526040918290206003015482516001600160a01b039094168452908301520161178b565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab611ba28161238d565b7fe13879ace13f585826687ae3cf9bced3c4114635aa4bf3340d6b213367d3a13b8383604051611bd39291906130ec565b60405180910390a1505050565b600e546001600160a01b0316336001600160a01b031614611c135760405162461bcd60e51b8152600401610b7a90613098565b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b7f57369ea4f8672a97e2a13971a457274c430d5c5a7e50803990778eb152ea84e68282604051610bb4929190613292565b336000908152600360205260408120548491849184919060019060ff16611ca85760405162461bcd60e51b8152600401610b7a906132e0565b6064836001600160401b03161115611cda57601054611cd790600160401b90046001600160401b031684613193565b90505b806001600160401b0316856001600160401b0316601154611cfb91906131b9565b611d0591906131b9565b6013549092506000906001600160a01b03166360a0e3e4336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018690526044016020604051808303816000875af1158015611d6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d8e91906131d8565b9050611d9c8187878761241f565b507fd8bc1d2d85b22f4b41b2ccdd26182586e607c6c6fbb149c22dc45cd4fdd8515d600d60009054906101000a90046001600160401b03168e8e8e8e8e8e8e604051611def98979695949392919061330e565b60405180910390a150505050505050505050505050565b6000818152600160205260408120610adf906125b2565b600082815260208190526040902060010154611e388161238d565b610be583836123bc565b600e546001600160a01b0316336001600160a01b031614611e755760405162461bcd60e51b8152600401610b7a90613098565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b81600f805480602002602001604051908101604052809291908181526020018280548015611eee57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611ed0575b5050505050826000806001905060036000611f063390565b6001600160a01b0316815260208101919091526040016000205460ff16611f3f5760405162461bcd60e51b8152600401610b7a906132e0565b6064836001600160401b03161115611f7157601054611f6e90600160401b90046001600160401b031684613193565b90505b806001600160401b0316856001600160401b0316601154611f9291906131b9565b611f9c91906131b9565b6013549092506000906001600160a01b03166360a0e3e4336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018690526044016020604051808303816000875af1158015612001573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061202591906131d8565b90506120338187878761241f565b507fd8bc1d2d85b22f4b41b2ccdd26182586e607c6c6fbb149c22dc45cd4fdd8515d600d60009054906101000a90046001600160401b03168d8d8d8d8d600f8e6040516120879897969594939291906133ae565b60405180910390a1505050505050505050505050565b3360009081526003602052604090205460ff166120cc5760405162461bcd60e51b8152600401610b7a906132e0565b3360009081526004602052604080822090516005916120ea91613430565b908152604051908190036020019020805491151560ff199092169190911790558181600460006121173390565b6001600160a01b03168152602081019190915260400160002061213b9290916129a1565b506001600583836040516121509291906134cc565b908152604051908190036020019020805491151560ff199092169190911790557f0b197dc0a4db3615dba3dc4f5e889ba00fe8308772a6f3235a20ad22883fe3876121983390565b8383604051610bb4939291906134dc565b600e546001600160a01b0316336001600160a01b0316146121dc5760405162461bcd60e51b8152600401610b7a90613098565b601280546001600160401b03909216600160801b0267ffffffffffffffff60801b19909216919091179055565b600e546001600160a01b0316336001600160a01b03161461223c5760405162461bcd60e51b8152600401610b7a90613098565b601280546001600160401b03909216600160401b0267ffffffffffffffff60401b19909216919091179055565b600e546001600160a01b0316336001600160a01b03161461229c5760405162461bcd60e51b8152600401610b7a90613098565b6010805467ffffffffffffffff19166001600160401b0392909216919091179055565b6122c982826117b5565b61116d576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556122ff3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006117ae836001600160a01b0384166125bc565b60006001600160e01b03198216637965db0b60e01b1480610adf57506301ffc9a760e01b6001600160e01b0319831614610adf565b612397813361260b565b50565b6123a482826122bf565b6000828152600160205260409020610be59082612343565b6123c6828261266f565b6000828152600160205260409020610be590826126d4565b6001600160401b038082166000908152600260208190526040822080549101549192610adf92600160401b9092041690613244565b60006117ae83836126e9565b600d80546000918291829061243c906001600160401b031661350a565b91906101000a8154816001600160401b0302191690836001600160401b0316021790559050856006600061246e61141b565b6001600160401b03166001600160401b03168152602001908152602001600020600082825461249d91906131f1565b90915550506001600160401b0381811660009081526002602081905260409091206005810180546001600160a01b03191633179055805477ffffffffffffffffffffffffffffffff0000000000000000938916600160401b029390931667ffffffffffffffff60801b9093169290921782550186905561251c816123de565b6001600160401b0382811660009081526002602090815260409091206003810193909355825442909216600160801b0267ffffffffffffffff60801b1990921691909117825585516125749260040191870190612a25565b506001600160401b0390811660009081526002602052604090206001908101805467ffffffffffffffff191694909216939093179055509392505050565b6000610adf825490565b600081815260018301602052604081205461260357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610adf565b506000610adf565b61261582826117b5565b61116d5761262d816001600160a01b03166014612713565b612638836020612713565b604051602001612649929190613531565b60408051601f198184030181529082905262461bcd60e51b8252610b7a91600401612ae9565b61267982826117b5565b1561116d576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006117ae836001600160a01b0384166128ae565b60008260000182815481106127005761270061314c565b9060005260206000200154905092915050565b606060006127228360026131b9565b61272d9060026131f1565b6001600160401b0381111561274457612744612ca8565b6040519080825280601f01601f19166020018201604052801561276e576020820181803683370190505b509050600360fc1b816000815181106127895761278961314c565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106127b8576127b861314c565b60200101906001600160f81b031916908160001a90535060006127dc8460026131b9565b6127e79060016131f1565b90505b600181111561285f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061281b5761281b61314c565b1a60f81b8282815181106128315761283161314c565b60200101906001600160f81b031916908160001a90535060049490941c93612858816135a6565b90506127ea565b5083156117ae5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b7a565b600081815260018301602052604081205480156129975760006128d2600183613258565b85549091506000906128e690600190613258565b905081811461294b5760008660000182815481106129065761290661314c565b90600052602060002001549050808760000184815481106129295761292961314c565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061295c5761295c6135bd565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610adf565b6000915050610adf565b8280546129ad90613209565b90600052602060002090601f0160209004810192826129cf5760008555612a15565b82601f106129e85782800160ff19823516178555612a15565b82800160010185558215612a15579182015b82811115612a155782358255916020019190600101906129fa565b50612a21929150612a7a565b5090565b828054828255906000526020600020908101928215612a15579160200282015b82811115612a1557825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190612a45565b5b80821115612a215760008155600101612a7b565b600060208284031215612aa157600080fd5b81356001600160e01b0319811681146117ae57600080fd5b60005b83811015612ad4578181015183820152602001612abc565b83811115612ae3576000848401525b50505050565b6020815260008251806020840152612b08816040850160208701612ab9565b601f01601f19169190910160400192915050565b80356001600160401b0381168114612b3357600080fd5b919050565b600060208284031215612b4a57600080fd5b6117ae82612b1c565b6001600160a01b038116811461239757600080fd5b600060208284031215612b7a57600080fd5b81356117ae81612b53565b60008060408385031215612b9857600080fd5b8235612ba381612b53565b9150612bb160208401612b1c565b90509250929050565b60008083601f840112612bcc57600080fd5b5081356001600160401b03811115612be357600080fd5b602083019150836020828501011115612bfb57600080fd5b9250929050565b60008060208385031215612c1557600080fd5b82356001600160401b03811115612c2b57600080fd5b612c3785828601612bba565b90969095509350505050565b600060208284031215612c5557600080fd5b5035919050565b60008060408385031215612c6f57600080fd5b823591506020830135612c8181612b53565b809150509250929050565b60008060408385031215612c9f57600080fd5b612ba383612b1c565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612ce657612ce6612ca8565b604052919050565b60006020808385031215612d0157600080fd5b82356001600160401b0380821115612d1857600080fd5b818501915085601f830112612d2c57600080fd5b813581811115612d3e57612d3e612ca8565b612d50601f8201601f19168501612cbe565b91508082528684828501011115612d6657600080fd5b8084840185840137600090820190930192909252509392505050565b60008060408385031215612d9557600080fd5b50508035926020909101359150565b60008060408385031215612db757600080fd5b8235612dc281612b53565b915060208301358015158114612c8157600080fd5b60008060208385031215612dea57600080fd5b82356001600160401b0380821115612e0157600080fd5b818501915085601f830112612e1557600080fd5b813581811115612e2457600080fd5b8660208260051b8501011115612e3957600080fd5b60209290920196919550909350505050565b600080600080600080600060a0888a031215612e6657600080fd5b87356001600160401b0380821115612e7d57600080fd5b612e898b838c01612bba565b9099509750602091508982013581811115612ea357600080fd5b612eaf8c828d01612bba565b9098509650612ec2905060408b01612b1c565b945060608a013581811115612ed657600080fd5b8a01601f81018c13612ee757600080fd5b803582811115612ef957612ef9612ca8565b8060051b9250612f0a848401612cbe565b818152928201840192848101908e851115612f2457600080fd5b928501925b84841015612f4e5783359250612f3e83612b53565b8282529285019290850190612f29565b809750505050505050612f6360808901612b1c565b905092959891949750929550565b60008060008060008060808789031215612f8a57600080fd5b86356001600160401b0380821115612fa157600080fd5b612fad8a838b01612bba565b90985096506020890135915080821115612fc657600080fd5b50612fd389828a01612bba565b9095509350612fe6905060408801612b1c565b9150612ff460608801612b1c565b90509295509295509295565b634e487b7160e01b600052601160045260246000fd5b60006001600160401b038083168185168183048111821515161561303c5761303c613000565b02949350505050565b60006001600160401b0380831681851680830382111561306757613067613000565b01949350505050565b60006001600160401b038381169083168181101561309057613090613000565b039392505050565b6020808252601190820152706e6f74206f776e6572206164647265737360781b604082015260600190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006131006020830184866130c3565b949350505050565b6020808252600e908201526d125b9d985b1a59081d185cdad25960921b604082015260600190565b60008251613142818460208701612ab9565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b600060001982141561317657613176613000565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60006001600160401b03808416806131ad576131ad61317d565b92169190910492915050565b60008160001904831182151516156131d3576131d3613000565b500290565b6000602082840312156131ea57600080fd5b5051919050565b6000821982111561320457613204613000565b500190565b600181811c9082168061321d57607f821691505b6020821081141561323e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000826132535761325361317d565b500490565b60008282101561326a5761326a613000565b500390565b60006001600160401b0382168061328857613288613000565b6000190192915050565b60208082528181018390526000908460408401835b868110156132d55782356132ba81612b53565b6001600160a01b0316825291830191908301906001016132a7565b509695505050505050565b602080825260149082015273556e617574686f72697a6564204164647265737360601b604082015260600190565b60006001600160401b03808b168352602060c08185015261333360c085018b8d6130c3565b8481036040860152613346818a8c6130c3565b92881660608601525083820360808501528551808352918101918187019060005b8181101561338c5782516001600160a01b031685529383019391830191600101613367565b5050506001600160401b03851660a08501525090509998505050505050505050565b60006001600160401b03808b168352602060c0818501526133d360c085018b8d6130c3565b84810360408601526133e6818a8c6130c3565b9288166060860152508382036080850152855480835260008781528281209383019391905b8181101561338c5782546001600160a01b03168552938301936001928301920161340b565b600080835481600182811c91508083168061344c57607f831692505b602080841082141561346c57634e487b7160e01b86526022600452602486fd5b8180156134805760018114613491576134be565b60ff198616895284890196506134be565b60008a81526020902060005b868110156134b65781548b82015290850190830161349d565b505084890196505b509498975050505050505050565b8183823760009101908152919050565b6001600160a01b038416815260406020820181905260009061350190830184866130c3565b95945050505050565b60006001600160401b038083168181141561352757613527613000565b6001019392505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613569816017850160208801612ab9565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161359a816028840160208801612ab9565b01602801949350505050565b6000816135b5576135b5613000565b506000190190565b634e487b7160e01b600052603160045260246000fdfea26469706673582212206d8cc6d8c4ef1370d6924ba8055528a49eda994748b43fcea8915f3ce0dd00aa64736f6c634300080c0033000000000000000000000000553d4a71c872dc55cd1925d77fa8974e186f307f

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106103a45760003560e01c80637d2bf697116101e9578063ae5ab5f01161010f578063d547741f116100ad578063eb8278aa1161007c578063eb8278aa14610a6e578063eeb5178b14610a81578063f0c8042514610a94578063fa32d16214610aa757600080fd5b8063d547741f14610a12578063dd8afde514610a25578063e359e80214610a38578063ea44879e14610a5b57600080fd5b8063c02b393b116100e9578063c02b393b14610990578063c2e343ca146109be578063ca15c873146109d1578063cad9c2b8146109e457600080fd5b8063ae5ab5f014610964578063af4c14ee1461096a578063b13c27de1461097d57600080fd5b8063987186c111610187578063a69de6f911610156578063a69de6f9146108f2578063a9d77ee41461092b578063aa5480cf1461093e578063ab981f831461095157600080fd5b8063987186c11461089957806398cbb4e1146108c4578063a217fddf146108d7578063a4f0138a146108df57600080fd5b80638da5cb5b116101c35780638da5cb5b1461083f5780639010d07c1461086a57806391d148541461087d578063924b84751461089057600080fd5b80637d2bf697146107e757806382295d9b146107fa578063849857a51461082c57600080fd5b806332cf5d41116102ce57806347e633801161026c57806366a15c7e1161023b57806366a15c7e1461078557806369fd198f146107ae5780636f922e80146107c1578063730348ac146107d457600080fd5b806347e63380146107035780634fb0b1691461072a5780635b037eda146107515780635dad822e1461076b57600080fd5b806339189c9f116102a857806339189c9f146106975780633cdd372a146106ba5780633d56699b146106e85780633e6968b6146106fb57600080fd5b806332cf5d411461065e57806336568abe14610671578063386ae32d1461068457600080fd5b806318593a67116103465780631e42bb44116103155780631e42bb44146105ec578063248a9ca3146106155780632f2ff15d146106385780632faba90b1461064b57600080fd5b806318593a67146104d25780631998750a1461059d5780631ab43a07146105bd5780631e2de337146105d757600080fd5b80630a538325116103825780630a5383251461042d5780630f9321551461044057806313fe7d99146104695780631460790c1461048357600080fd5b806301ffc9a7146103a95780630539272a146103d157806306bfcec614610403575b600080fd5b6103bc6103b7366004612a8f565b610aba565b60405190151581526020015b60405180910390f35b600d546103eb90600160801b90046001600160401b031681565b6040516001600160401b0390911681526020016103c8565b604080518082019091526005815264312e302e3560d81b60208201525b6040516103c89190612ae9565b6103eb61043b366004612b38565b610ae5565b6103eb61044e366004612b68565b6007602052600090815260409020546001600160401b031681565b6012546103eb90600160401b90046001600160401b031681565b6104c4610491366004612b85565b6001600160a01b0382166000908152600b602090815260408083206001600160401b038516845290915290205492915050565b6040519081526020016103c8565b6105426104e0366004612b38565b6002602081905260009182526040909120805460018201549282015460038301546005909301546001600160401b0380841695600160401b8504821695600160801b8604831695600160c01b900483169492909116926001600160a01b031688565b604080516001600160401b03998a16815297891660208901529588169587019590955292861660608601529416608084015260a083019390935260c08201929092526001600160a01b0390911660e0820152610100016103c8565b6104c46105ab366004612b38565b60066020526000908152604090205481565b6012546103eb90600160801b90046001600160401b031681565b6105ea6105e5366004612c02565b610b47565b005b6104c46105fa366004612b38565b6001600160401b031660009081526006602052604090205490565b6104c4610623366004612c43565b60009081526020819052604090206001015490565b6105ea610646366004612c5c565b610bc0565b6012546103eb906001600160401b031681565b6105ea61066c366004612b38565b610bea565b6105ea61067f366004612c5c565b6110f3565b6105ea610692366004612c8c565b611171565b6103bc6106a5366004612b68565b60036020526000908152604090205460ff1681565b6103bc6106c8366004612cee565b805160208183018101805160058252928201919093012091525460ff1681565b6104206106f6366004612b68565b611381565b6103eb61141b565b6104c47f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab81565b6104c47f5cfccc5cc851dc42a746f6d4e4151343447b223893e5048d972de8601c01febd81565b600d546103eb90600160401b90046001600160401b031681565b6010546103eb90600160401b90046001600160401b031681565b6103eb610793366004612b68565b6008602052600090815260409020546001600160401b031681565b6104c46107bc366004612b68565b61142f565b6105ea6107cf366004612c43565b611470565b6105ea6107e2366004612b38565b6114a8565b600d546103eb906001600160401b031681565b6103eb610808366004612b68565b6001600160a01b03166000908152600860205260409020546001600160401b031690565b6105ea61083a366004612b38565b611756565b600e54610852906001600160a01b031681565b6040516001600160a01b0390911681526020016103c8565b610852610878366004612d82565b611796565b6103bc61088b366004612c5c565b6117b5565b6104c460115481565b6104c46108a7366004612b85565b600b60209081526000928352604080842090915290825290205481565b6105ea6108d2366004612b85565b6117de565b6104c4600081565b6105ea6108ed366004612b38565b611843565b6103bc610900366004612b38565b3360009081526009602090815260408083206001600160401b03949094168352929052205460ff1690565b6105ea610939366004612b38565b6118a3565b6010546103eb906001600160401b031681565b6105ea61095f366004612c02565b611b78565b426103eb565b6105ea610978366004612da4565b611be0565b6105ea61098b366004612dd7565b611c3e565b6103bc61099e366004612b85565b600960209081526000928352604080842090915290825290205460ff1681565b6105ea6109cc366004612e4b565b611c6f565b6104c46109df366004612c43565b611e06565b6103bc6109f2366004612b85565b600a60209081526000928352604080842090915290825290205460ff1681565b6105ea610a20366004612c5c565b611e1d565b6105ea610a33366004612b68565b611e42565b6103bc610a46366004612b38565b600c6020526000908152604090205460ff1681565b6105ea610a69366004612f71565b611e97565b6105ea610a7c366004612c02565b61209d565b6105ea610a8f366004612b38565b6121a9565b6105ea610aa2366004612b38565b612209565b6105ea610ab5366004612b38565b612269565b60006001600160e01b03198216635a05180f60e01b1480610adf5750610adf82612358565b92915050565b6001600160401b038082166000908152600260205260408120600101549091610b1091166005613016565b6001600160401b03808416600090815260026020526040902054610b3d9291600160801b90910416613045565b610adf9042613070565b600e546001600160a01b0316336001600160a01b031614610b835760405162461bcd60e51b8152600401610b7a90613098565b60405180910390fd5b7f31283fb7329b678b2472f38fb46b06fbac1b79912e57c7308fd0f5433783d2e98282604051610bb49291906130ec565b60405180910390a15050565b600082815260208190526040902060010154610bdb8161238d565b610be5838361239a565b505050565b600d546001600160401b0380831691161015610c185760405162461bcd60e51b8152600401610b7a90613108565b6001600160401b03808216600090815260026020526040902054610c3e91166001613045565b6001600160401b03828116600090815260026020526040902054918116600160401b909204161015610ca95760405162461bcd60e51b815260206004820152601460248201527315185cdac81a185cc81899595b88199a5b1b195960621b6044820152606401610b7a565b6012546001600160401b0382811660009081526002602052604090205442821692610ce692600160401b909104811691600160801b900416613045565b6001600160401b03161015610d3d5760405162461bcd60e51b815260206004820152601a60248201527f5461736b207261636520686173206265656e20657870697265640000000000006044820152606401610b7a565b600080610406336040516001600160a01b03909116602482015260440160408051601f198184030181529181526020820180516001600160e01b03166387135d7d60e01b17905251610d8f9190613130565b6000604051808303816000865af19150503d8060008114610dcc576040519150601f19603f3d011682016040523d82523d6000602084013e610dd1565b606091505b509150915081610e235760405162461bcd60e51b815260206004820152601760248201527f6765745f6372656469745f73636f7265206e6f74206f6b0000000000000000006044820152606401610b7a565b6010546001600160401b0316610e3a826020015190565b6001600160401b03161015610e9f5760405162461bcd60e51b815260206004820152602560248201527f4c6f77206372656469742073636f72652c206e6f20726967687420746f20656e604482015264666f72636560d81b6064820152608401610b7a565b6001600160401b0383166000908152600260205260409020600401548015610f79576000805b82811015610f31576001600160401b0386166000908152600260205260409020600401805433919083908110610efd57610efd61314c565b6000918252602090912001546001600160a01b03161415610f215760019150610f31565b610f2a81613162565b9050610ec5565b5080610f775760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b2103a30b9b5903932b1b2b4bb32b960591b6044820152606401610b7a565b505b3360009081526009602090815260408083206001600160401b038816845290915290205460ff1615610fe45760405162461bcd60e51b81526020600482015260146024820152731059191c995cdcc8185b1c9958591e481d5cd95960621b6044820152606401610b7a565b3360009081526009602090815260408083206001600160401b038881168552908352818420805460ff19166001908117909155600290935292205461102a921690613045565b6001600160401b038581166000908152600260205260409020805467ffffffffffffffff1916928216929092179182905561106e91600160c01b9004166001613045565b6001600160401b03858116600090815260026020526040902080546001600160c01b0316600160c01b93909216929092021790557fceb0243e97addff106657c64cb387f732ee431757d06e8a052e5cbd03c57458a33604080516001600160a01b0390921682526001600160401b03871660208301520160405180910390a150505050565b6001600160a01b03811633146111635760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b7a565b61116d82826123bc565b5050565b6001600160401b038083166000908152600260205260408120549091600160401b909104811690600190606490851611156111c6576010546111c390600160401b90046001600160401b031685613193565b90505b806001600160401b0316826001600160401b03166011546111e791906131b9565b6111f191906131b9565b6013549093506000906001600160a01b03166360a0e3e4336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018790526044016020604051808303816000875af1158015611256573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127a91906131d8565b90508060026000886001600160401b03166001600160401b0316815260200190815260200160002060020160008282546112b491906131f1565b909155506112c39050866123de565b6001600160401b038088166000908152600260205260408120600381019390935560019092018054889391926112fb91859116613045565b92506101000a8154816001600160401b0302191690836001600160401b031602179055507f81cfdf16c11eb4d89e27aecf0d19eb6b350366de7d889d853ce10280a3902c586113473390565b604080516001600160a01b0390921682526001600160401b03808a16602084015288169082015260600160405180910390a1505050505050565b6004602052600090815260409020805461139a90613209565b80601f01602080910402602001604051908101604052809291908181526020018280546113c690613209565b80156114135780601f106113e857610100808354040283529160200191611413565b820191906000526020600020905b8154815290600101906020018083116113f657829003601f168201915b505050505081565b600061142a6201518042613244565b905090565b6001600160a01b0381166000908152600b602052604081208161145061141b565b6001600160401b0316815260208101919091526040016000205492915050565b600e546001600160a01b0316336001600160a01b0316146114a35760405162461bcd60e51b8152600401610b7a90613098565b601155565b600e546001600160a01b0316336001600160a01b0316146114db5760405162461bcd60e51b8152600401610b7a90613098565b600d546001600160401b03808316911610156115095760405162461bcd60e51b8152600401610b7a90613108565b426012546001600160401b038381166000908152600260205260409020549281169261154392600160801b90819004831692910416613045565b6001600160401b0316111561159a5760405162461bcd60e51b815260206004820152601a60248201527f5461736b207261636520686173206265656e20657870697265640000000000006044820152606401610b7a565b6001600160401b0381166000908152600c602052604090205460ff16156115f65760405162461bcd60e51b815260206004820152601060248201526f416c726561647920776974686472617760801b6044820152606401610b7a565b6001600160401b03808216600090815260026020526040812060038101549054919261162292166131b9565b6001600160401b0383166000908152600260208190526040909120015490915081106116835760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420776974686472617760801b6044820152606401610b7a565b6001600160401b0382166000908152600260208190526040822001546116aa908390613258565b6013546001600160401b0385166000908152600260205260409081902060050154905163cb4e6e5b60e01b81526001600160a01b03918216600482015260248101849052929350169063cb4e6e5b90604401600060405180830381600087803b15801561171657600080fd5b505af115801561172a573d6000803e3d6000fd5b5050506001600160401b039093166000908152600c60205260409020805460ff19166001179055505050565b6040516001600160401b03821681527fdf1d75f75572efdf87b54990a0e9f71f879110993e526c581038365667b45025906020015b60405180910390a150565b60008281526001602052604081206117ae9083612413565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab6118088161238d565b506001600160a01b03919091166000908152600860205260409020805467ffffffffffffffff19166001600160401b03909216919091179055565b600e546001600160a01b0316336001600160a01b0316146118765760405162461bcd60e51b8152600401610b7a90613098565b601080546001600160401b03909216600160401b0267ffffffffffffffff60401b19909216919091179055565b600d546001600160401b03808316911610156118d15760405162461bcd60e51b8152600401610b7a90613108565b3360009081526009602090815260408083206001600160401b038516845290915290205460ff166119445760405162461bcd60e51b815260206004820181905260248201527f496e76616c6964207461736b4964206f72207461736b206e6f742072616365646044820152606401610b7a565b336000908152600a602090815260408083206001600160401b038516845290915290205460ff16156119b85760405162461bcd60e51b815260206004820152601b60248201527f537562207461736b20686173206265656e20636f6d706c6574656400000000006044820152606401610b7a565b426012546001600160401b03838116600090815260026020526040902054928116926119f292600160801b90819004831692910416613045565b6001600160401b03161015611a415760405162461bcd60e51b815260206004820152601560248201527415185cdac81a185cc81899595b88195e1c1a5c9959605a1b6044820152606401610b7a565b336000818152600a602090815260408083206001600160401b03861684528252808320805460ff191660011790556002825280832060030154938352600b909152812090611a8d61141b565b6001600160401b03166001600160401b031681526020019081526020016000206000828254611abc91906131f1565b90915550506001600160401b0380821660009081526002602052604090208054600160c01b9004909116906018611af28361326f565b91906101000a8154816001600160401b0302191690836001600160401b03160217905550507f8db4b00ff8d67a0fc0faa3f7710b55a9098bfd22683a3fe794c78b94c401b0d8611b3f3390565b6001600160401b0383166000908152600260209081526040918290206003015482516001600160a01b039094168452908301520161178b565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab611ba28161238d565b7fe13879ace13f585826687ae3cf9bced3c4114635aa4bf3340d6b213367d3a13b8383604051611bd39291906130ec565b60405180910390a1505050565b600e546001600160a01b0316336001600160a01b031614611c135760405162461bcd60e51b8152600401610b7a90613098565b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b7f57369ea4f8672a97e2a13971a457274c430d5c5a7e50803990778eb152ea84e68282604051610bb4929190613292565b336000908152600360205260408120548491849184919060019060ff16611ca85760405162461bcd60e51b8152600401610b7a906132e0565b6064836001600160401b03161115611cda57601054611cd790600160401b90046001600160401b031684613193565b90505b806001600160401b0316856001600160401b0316601154611cfb91906131b9565b611d0591906131b9565b6013549092506000906001600160a01b03166360a0e3e4336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018690526044016020604051808303816000875af1158015611d6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d8e91906131d8565b9050611d9c8187878761241f565b507fd8bc1d2d85b22f4b41b2ccdd26182586e607c6c6fbb149c22dc45cd4fdd8515d600d60009054906101000a90046001600160401b03168e8e8e8e8e8e8e604051611def98979695949392919061330e565b60405180910390a150505050505050505050505050565b6000818152600160205260408120610adf906125b2565b600082815260208190526040902060010154611e388161238d565b610be583836123bc565b600e546001600160a01b0316336001600160a01b031614611e755760405162461bcd60e51b8152600401610b7a90613098565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b81600f805480602002602001604051908101604052809291908181526020018280548015611eee57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611ed0575b5050505050826000806001905060036000611f063390565b6001600160a01b0316815260208101919091526040016000205460ff16611f3f5760405162461bcd60e51b8152600401610b7a906132e0565b6064836001600160401b03161115611f7157601054611f6e90600160401b90046001600160401b031684613193565b90505b806001600160401b0316856001600160401b0316601154611f9291906131b9565b611f9c91906131b9565b6013549092506000906001600160a01b03166360a0e3e4336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018690526044016020604051808303816000875af1158015612001573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061202591906131d8565b90506120338187878761241f565b507fd8bc1d2d85b22f4b41b2ccdd26182586e607c6c6fbb149c22dc45cd4fdd8515d600d60009054906101000a90046001600160401b03168d8d8d8d8d600f8e6040516120879897969594939291906133ae565b60405180910390a1505050505050505050505050565b3360009081526003602052604090205460ff166120cc5760405162461bcd60e51b8152600401610b7a906132e0565b3360009081526004602052604080822090516005916120ea91613430565b908152604051908190036020019020805491151560ff199092169190911790558181600460006121173390565b6001600160a01b03168152602081019190915260400160002061213b9290916129a1565b506001600583836040516121509291906134cc565b908152604051908190036020019020805491151560ff199092169190911790557f0b197dc0a4db3615dba3dc4f5e889ba00fe8308772a6f3235a20ad22883fe3876121983390565b8383604051610bb4939291906134dc565b600e546001600160a01b0316336001600160a01b0316146121dc5760405162461bcd60e51b8152600401610b7a90613098565b601280546001600160401b03909216600160801b0267ffffffffffffffff60801b19909216919091179055565b600e546001600160a01b0316336001600160a01b03161461223c5760405162461bcd60e51b8152600401610b7a90613098565b601280546001600160401b03909216600160401b0267ffffffffffffffff60401b19909216919091179055565b600e546001600160a01b0316336001600160a01b03161461229c5760405162461bcd60e51b8152600401610b7a90613098565b6010805467ffffffffffffffff19166001600160401b0392909216919091179055565b6122c982826117b5565b61116d576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556122ff3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006117ae836001600160a01b0384166125bc565b60006001600160e01b03198216637965db0b60e01b1480610adf57506301ffc9a760e01b6001600160e01b0319831614610adf565b612397813361260b565b50565b6123a482826122bf565b6000828152600160205260409020610be59082612343565b6123c6828261266f565b6000828152600160205260409020610be590826126d4565b6001600160401b038082166000908152600260208190526040822080549101549192610adf92600160401b9092041690613244565b60006117ae83836126e9565b600d80546000918291829061243c906001600160401b031661350a565b91906101000a8154816001600160401b0302191690836001600160401b0316021790559050856006600061246e61141b565b6001600160401b03166001600160401b03168152602001908152602001600020600082825461249d91906131f1565b90915550506001600160401b0381811660009081526002602081905260409091206005810180546001600160a01b03191633179055805477ffffffffffffffffffffffffffffffff0000000000000000938916600160401b029390931667ffffffffffffffff60801b9093169290921782550186905561251c816123de565b6001600160401b0382811660009081526002602090815260409091206003810193909355825442909216600160801b0267ffffffffffffffff60801b1990921691909117825585516125749260040191870190612a25565b506001600160401b0390811660009081526002602052604090206001908101805467ffffffffffffffff191694909216939093179055509392505050565b6000610adf825490565b600081815260018301602052604081205461260357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610adf565b506000610adf565b61261582826117b5565b61116d5761262d816001600160a01b03166014612713565b612638836020612713565b604051602001612649929190613531565b60408051601f198184030181529082905262461bcd60e51b8252610b7a91600401612ae9565b61267982826117b5565b1561116d576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006117ae836001600160a01b0384166128ae565b60008260000182815481106127005761270061314c565b9060005260206000200154905092915050565b606060006127228360026131b9565b61272d9060026131f1565b6001600160401b0381111561274457612744612ca8565b6040519080825280601f01601f19166020018201604052801561276e576020820181803683370190505b509050600360fc1b816000815181106127895761278961314c565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106127b8576127b861314c565b60200101906001600160f81b031916908160001a90535060006127dc8460026131b9565b6127e79060016131f1565b90505b600181111561285f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061281b5761281b61314c565b1a60f81b8282815181106128315761283161314c565b60200101906001600160f81b031916908160001a90535060049490941c93612858816135a6565b90506127ea565b5083156117ae5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b7a565b600081815260018301602052604081205480156129975760006128d2600183613258565b85549091506000906128e690600190613258565b905081811461294b5760008660000182815481106129065761290661314c565b90600052602060002001549050808760000184815481106129295761292961314c565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061295c5761295c6135bd565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610adf565b6000915050610adf565b8280546129ad90613209565b90600052602060002090601f0160209004810192826129cf5760008555612a15565b82601f106129e85782800160ff19823516178555612a15565b82800160010185558215612a15579182015b82811115612a155782358255916020019190600101906129fa565b50612a21929150612a7a565b5090565b828054828255906000526020600020908101928215612a15579160200282015b82811115612a1557825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190612a45565b5b80821115612a215760008155600101612a7b565b600060208284031215612aa157600080fd5b81356001600160e01b0319811681146117ae57600080fd5b60005b83811015612ad4578181015183820152602001612abc565b83811115612ae3576000848401525b50505050565b6020815260008251806020840152612b08816040850160208701612ab9565b601f01601f19169190910160400192915050565b80356001600160401b0381168114612b3357600080fd5b919050565b600060208284031215612b4a57600080fd5b6117ae82612b1c565b6001600160a01b038116811461239757600080fd5b600060208284031215612b7a57600080fd5b81356117ae81612b53565b60008060408385031215612b9857600080fd5b8235612ba381612b53565b9150612bb160208401612b1c565b90509250929050565b60008083601f840112612bcc57600080fd5b5081356001600160401b03811115612be357600080fd5b602083019150836020828501011115612bfb57600080fd5b9250929050565b60008060208385031215612c1557600080fd5b82356001600160401b03811115612c2b57600080fd5b612c3785828601612bba565b90969095509350505050565b600060208284031215612c5557600080fd5b5035919050565b60008060408385031215612c6f57600080fd5b823591506020830135612c8181612b53565b809150509250929050565b60008060408385031215612c9f57600080fd5b612ba383612b1c565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612ce657612ce6612ca8565b604052919050565b60006020808385031215612d0157600080fd5b82356001600160401b0380821115612d1857600080fd5b818501915085601f830112612d2c57600080fd5b813581811115612d3e57612d3e612ca8565b612d50601f8201601f19168501612cbe565b91508082528684828501011115612d6657600080fd5b8084840185840137600090820190930192909252509392505050565b60008060408385031215612d9557600080fd5b50508035926020909101359150565b60008060408385031215612db757600080fd5b8235612dc281612b53565b915060208301358015158114612c8157600080fd5b60008060208385031215612dea57600080fd5b82356001600160401b0380821115612e0157600080fd5b818501915085601f830112612e1557600080fd5b813581811115612e2457600080fd5b8660208260051b8501011115612e3957600080fd5b60209290920196919550909350505050565b600080600080600080600060a0888a031215612e6657600080fd5b87356001600160401b0380821115612e7d57600080fd5b612e898b838c01612bba565b9099509750602091508982013581811115612ea357600080fd5b612eaf8c828d01612bba565b9098509650612ec2905060408b01612b1c565b945060608a013581811115612ed657600080fd5b8a01601f81018c13612ee757600080fd5b803582811115612ef957612ef9612ca8565b8060051b9250612f0a848401612cbe565b818152928201840192848101908e851115612f2457600080fd5b928501925b84841015612f4e5783359250612f3e83612b53565b8282529285019290850190612f29565b809750505050505050612f6360808901612b1c565b905092959891949750929550565b60008060008060008060808789031215612f8a57600080fd5b86356001600160401b0380821115612fa157600080fd5b612fad8a838b01612bba565b90985096506020890135915080821115612fc657600080fd5b50612fd389828a01612bba565b9095509350612fe6905060408801612b1c565b9150612ff460608801612b1c565b90509295509295509295565b634e487b7160e01b600052601160045260246000fd5b60006001600160401b038083168185168183048111821515161561303c5761303c613000565b02949350505050565b60006001600160401b0380831681851680830382111561306757613067613000565b01949350505050565b60006001600160401b038381169083168181101561309057613090613000565b039392505050565b6020808252601190820152706e6f74206f776e6572206164647265737360781b604082015260600190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006131006020830184866130c3565b949350505050565b6020808252600e908201526d125b9d985b1a59081d185cdad25960921b604082015260600190565b60008251613142818460208701612ab9565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b600060001982141561317657613176613000565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60006001600160401b03808416806131ad576131ad61317d565b92169190910492915050565b60008160001904831182151516156131d3576131d3613000565b500290565b6000602082840312156131ea57600080fd5b5051919050565b6000821982111561320457613204613000565b500190565b600181811c9082168061321d57607f821691505b6020821081141561323e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000826132535761325361317d565b500490565b60008282101561326a5761326a613000565b500390565b60006001600160401b0382168061328857613288613000565b6000190192915050565b60208082528181018390526000908460408401835b868110156132d55782356132ba81612b53565b6001600160a01b0316825291830191908301906001016132a7565b509695505050505050565b602080825260149082015273556e617574686f72697a6564204164647265737360601b604082015260600190565b60006001600160401b03808b168352602060c08185015261333360c085018b8d6130c3565b8481036040860152613346818a8c6130c3565b92881660608601525083820360808501528551808352918101918187019060005b8181101561338c5782516001600160a01b031685529383019391830191600101613367565b5050506001600160401b03851660a08501525090509998505050505050505050565b60006001600160401b03808b168352602060c0818501526133d360c085018b8d6130c3565b84810360408601526133e6818a8c6130c3565b9288166060860152508382036080850152855480835260008781528281209383019391905b8181101561338c5782546001600160a01b03168552938301936001928301920161340b565b600080835481600182811c91508083168061344c57607f831692505b602080841082141561346c57634e487b7160e01b86526022600452602486fd5b8180156134805760018114613491576134be565b60ff198616895284890196506134be565b60008a81526020902060005b868110156134b65781548b82015290850190830161349d565b505084890196505b509498975050505050505050565b8183823760009101908152919050565b6001600160a01b038416815260406020820181905260009061350190830184866130c3565b95945050505050565b60006001600160401b038083168181141561352757613527613000565b6001019392505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613569816017850160208801612ab9565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161359a816028840160208801612ab9565b01602801949350505050565b6000816135b5576135b5613000565b506000190190565b634e487b7160e01b600052603160045260246000fdfea26469706673582212206d8cc6d8c4ef1370d6924ba8055528a49eda994748b43fcea8915f3ce0dd00aa64736f6c634300080c0033