false
false

Contract Address Details

0xf35d92b8158858812f3879ce2c4d39659bbfb8b5

Contract Name
KaleidoSwapRouter
Creator
0x92b7a5–4e8a34 at 0xc06b51–34eb88
Balance
0.007631163028206279 Xai ( )
Tokens
Fetching tokens...
Transactions
384 Transactions
Transfers
682 Transfers
Gas Used
54,913,708
Last Balance Update
41883885
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
KaleidoSwapRouter




Optimization enabled
true
Compiler version
v0.8.2+commit.661d1103




Optimization runs
1000
EVM Version
default




Verified at
2024-03-04T15:26:28.335917Z

Constructor Arguments

0x0000000000000000000000006858a6c3484b7b033b748261e550fc20c479b06300000000000000000000000036be1fd6ff2a6beb34b500a04f89103a524516d8

Arg [0] (address) : 0x6858a6c3484b7b033b748261e550fc20c479b063
Arg [1] (address) : 0x36be1fd6ff2a6beb34b500a04f89103a524516d8

              

Contract source code

// Sources flattened with hardhat v2.19.0 https://hardhat.org

// SPDX-License-Identifier: GPL-3.0-or-later AND MIT AND Unlicense

// File @openzeppelin/contracts/access/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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


// File @openzeppelin/contracts/utils/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}


// File @openzeppelin/contracts/utils/introspection/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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


// File @openzeppelin/contracts/utils/introspection/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

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


// File @openzeppelin/contracts/utils/math/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

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

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

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

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}


// File @openzeppelin/contracts/utils/math/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}


// File @openzeppelin/contracts/utils/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;


/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}


// File @openzeppelin/contracts/access/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;




/**
 * @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:
 *
 * ```solidity
 * 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}:
 *
 * ```solidity
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * 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. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
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(account),
                        " 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.
     *
     * May emit a {RoleGranted} event.
     */
    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.
     *
     * May emit a {RoleRevoked} event.
     */
    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`.
     *
     * May emit a {RoleRevoked} event.
     */
    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.
     *
     * May emit a {RoleGranted} event.
     *
     * [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.
     *
     * May emit a {RoleGranted} event.
     */
    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.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}


// File @openzeppelin/contracts/security/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

    bool private _paused;

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

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

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

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

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

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

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

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


// File @openzeppelin/contracts/token/ERC20/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

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

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

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

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

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

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


// File contracts/KaleidoSwap/interfaces/IKaleidoSwapPair.sol

// Original license: SPDX_License_Identifier: Unlicense
pragma solidity ^0.8.2;

interface IKaleidoSwapPair is IERC20 {
    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);

    function mint(address to) external returns (uint liquidity);

    function burn(address to) external returns (uint amount0, uint amount1);

    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}


// File @openzeppelin/contracts/utils/math/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// File @uniswap/lib/contracts/libraries/[email protected]

// Original license: SPDX_License_Identifier: GPL-3.0-or-later

pragma solidity >=0.6.0;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::safeApprove: approve failed'
        );
    }

    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::safeTransfer: transfer failed'
        );
    }

    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::transferFrom: transferFrom failed'
        );
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'TransferHelper::safeTransferETH: ETH transfer failed');
    }
}


// File contracts/KaleidoSwap/interfaces/IKaleidoSwapFactory.sol

// Original license: SPDX_License_Identifier: Unlicense
pragma solidity ^0.8.2;

interface IKaleidoSwapFactory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
}


// File contracts/KaleidoSwap/interfaces/IKaleidoSwapRouter.sol

// Original license: SPDX_License_Identifier: Unlicense
pragma solidity ^0.8.2;

interface IKaleidoSwapRouter {
    function factory() external view returns (address);

    function WXAI() external view returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);

    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);

    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint amountA, uint amountB);

    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint amountToken, uint amountETH);

    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);

    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);

    function swapExactETHForTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable returns (uint[] memory amounts);

    function swapTokensForExactETH(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);

    function swapExactTokensForETH(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);

    function swapETHForExactTokens(
        uint amountOut,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);

    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);

    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);

    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);

    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);

    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);

    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}


// File contracts/KaleidoSwap/interfaces/IWXAI.sol

// Original license: SPDX_License_Identifier: Unlicense
pragma solidity ^0.8.2;

interface IWXAI {
    function deposit() external payable;

    function transfer(address to, uint value) external returns (bool);

    function withdraw(uint) external;
}


// File contracts/KaleidoSwap/libraries/KaleidoSwapLibrary.sol

// Original license: SPDX_License_Identifier: Unlicense
pragma solidity ^0.8.2;


library KaleidoSwapLibrary {
    using SafeMath for uint;

    // returns sorted token addresses, used to handle return values from pairs sorted in this order
    function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
        require(tokenA != tokenB, "KaleidoSwapLibrary: IDENTICAL_ADDRESSES");
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), "KaleidoSwapLibrary: ZERO_ADDRESS");
    }

    // calculates the CREATE2 address for a pair without making any external calls
    function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) {
        (address token0, address token1) = sortTokens(tokenA, tokenB);
        pair = address(
            uint160(
                uint(
                    keccak256(
                        abi.encodePacked(
                            hex"ff",
                            factory,
                            keccak256(abi.encodePacked(token0, token1)),
                            hex"7ee72bf2f94f8e661c787966094fee4a4c0baa28c4df634df718fac87fd1d599" // init code hash
                        )
                    )
                )
            )
        );
    }

    // fetches and sorts the reserves for a pair
    function getReserves(
        address factory,
        address tokenA,
        address tokenB
    ) internal view returns (uint reserveA, uint reserveB) {
        (address token0, ) = sortTokens(tokenA, tokenB);
        (uint reserve0, uint reserve1, ) = IKaleidoSwapPair(pairFor(factory, tokenA, tokenB)).getReserves();
        (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
    }

    // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset
    function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) {
        require(amountA > 0, "KaleidoSwapLibrary: INSUFFICIENT_AMOUNT");
        require(reserveA > 0 && reserveB > 0, "KaleidoSwapLibrary: INSUFFICIENT_LIQUIDITY");
        amountB = amountA.mul(reserveB) / reserveA;
    }

    // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) {
        require(amountIn > 0, "KaleidoSwapLibrary: INSUFFICIENT_INPUT_AMOUNT");
        require(reserveIn > 0 && reserveOut > 0, "KaleidoSwapLibrary: INSUFFICIENT_LIQUIDITY");
        uint amountInWithFee = amountIn.mul(997);
        uint numerator = amountInWithFee.mul(reserveOut);
        uint denominator = reserveIn.mul(1000).add(amountInWithFee);
        amountOut = numerator / denominator;
    }

    // given an output amount of an asset and pair reserves, returns a required input amount of the other asset
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) {
        require(amountOut > 0, "KaleidoSwapLibrary: INSUFFICIENT_OUTPUT_AMOUNT");
        require(reserveIn > 0 && reserveOut > 0, "KaleidoSwapLibrary: INSUFFICIENT_LIQUIDITY");
        uint numerator = reserveIn.mul(amountOut).mul(1000);
        uint denominator = reserveOut.sub(amountOut).mul(997);
        amountIn = (numerator / denominator).add(1);
    }

    // performs chained getAmountOut calculations on any number of pairs
    function getAmountsOut(
        address factory,
        uint amountIn,
        address[] memory path
    ) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, "KaleidoSwapLibrary: INVALID_PATH");
        amounts = new uint[](path.length);
        amounts[0] = amountIn;
        for (uint i; i < path.length - 1; i++) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1]);
            amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut);
        }
    }

    // performs chained getAmountIn calculations on any number of pairs
    function getAmountsIn(
        address factory,
        uint amountOut,
        address[] memory path
    ) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, "KaleidoSwapLibrary: INVALID_PATH");
        amounts = new uint[](path.length);
        amounts[amounts.length - 1] = amountOut;
        for (uint i = path.length - 1; i > 0; i--) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]);
            amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut);
        }
    }
}


// File contracts/KaleidoSwap/KaleidoSwapRouter.sol

// Original license: SPDX_License_Identifier: Unlicense
pragma solidity ^0.8.2;









contract KaleidoSwapRouter is IKaleidoSwapRouter, Pausable, AccessControl {
    bytes32 private constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
    using SafeMath for uint;

    address public override factory;
    address public override WXAI;

    modifier ensure(uint deadline) {
        require(deadline >= block.timestamp, "KaleidoSwapRouter: EXPIRED");
        _;
    }

    constructor(address _factory, address _WXAI) {
        address sender = _msgSender();
        _setupRole(DEFAULT_ADMIN_ROLE, sender);
        _setupRole(ADMIN_ROLE, sender);

        factory = _factory;
        WXAI = _WXAI;
    }

    receive() external payable {
        assert(msg.sender == WXAI); // only accept ETH via fallback from the WXAI contract
    }

    // **** ADD LIQUIDITY ****
    function _addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin
    ) internal virtual returns (uint amountA, uint amountB) {
        // create the pair if it doesn't exist yet
        if (IKaleidoSwapFactory(factory).getPair(tokenA, tokenB) == address(0)) {
            IKaleidoSwapFactory(factory).createPair(tokenA, tokenB);
        }
        (uint reserveA, uint reserveB) = KaleidoSwapLibrary.getReserves(factory, tokenA, tokenB);
        if (reserveA == 0 && reserveB == 0) {
            (amountA, amountB) = (amountADesired, amountBDesired);
        } else {
            uint amountBOptimal = KaleidoSwapLibrary.quote(amountADesired, reserveA, reserveB);
            if (amountBOptimal <= amountBDesired) {
                require(amountBOptimal >= amountBMin, "KaleidoSwapRouter: INSUFFICIENT_B_AMOUNT");
                (amountA, amountB) = (amountADesired, amountBOptimal);
            } else {
                uint amountAOptimal = KaleidoSwapLibrary.quote(amountBDesired, reserveB, reserveA);
                assert(amountAOptimal <= amountADesired);
                require(amountAOptimal >= amountAMin, "KaleidoSwapRouter: INSUFFICIENT_A_AMOUNT");
                (amountA, amountB) = (amountAOptimal, amountBDesired);
            }
        }
    }

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external virtual override whenNotPaused ensure(deadline) returns (uint amountA, uint amountB, uint liquidity) {
        (amountA, amountB) = _addLiquidity(tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin);
        address pair = KaleidoSwapLibrary.pairFor(factory, tokenA, tokenB);
        TransferHelper.safeTransferFrom(tokenA, msg.sender, pair, amountA);
        TransferHelper.safeTransferFrom(tokenB, msg.sender, pair, amountB);
        liquidity = IKaleidoSwapPair(pair).mint(to);
    }

    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    )
        external
        payable
        virtual
        override
        whenNotPaused
        ensure(deadline)
        returns (uint amountToken, uint amountETH, uint liquidity)
    {
        (amountToken, amountETH) = _addLiquidity(
            token,
            WXAI,
            amountTokenDesired,
            msg.value,
            amountTokenMin,
            amountETHMin
        );
        address pair = KaleidoSwapLibrary.pairFor(factory, token, WXAI);
        TransferHelper.safeTransferFrom(token, msg.sender, pair, amountToken);
        IWXAI(WXAI).deposit{value: amountETH}();
        assert(IWXAI(WXAI).transfer(pair, amountETH));
        liquidity = IKaleidoSwapPair(pair).mint(to);
        // refund dust eth, if any
        if (msg.value > amountETH) TransferHelper.safeTransferETH(msg.sender, msg.value - amountETH);
    }

    // **** REMOVE LIQUIDITY ****
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) public virtual override whenNotPaused ensure(deadline) returns (uint amountA, uint amountB) {
        address pair = KaleidoSwapLibrary.pairFor(factory, tokenA, tokenB);
        IKaleidoSwapPair(pair).transferFrom(msg.sender, pair, liquidity); // send liquidity to pair
        (uint amount0, uint amount1) = IKaleidoSwapPair(pair).burn(to);
        (address token0, ) = KaleidoSwapLibrary.sortTokens(tokenA, tokenB);
        (amountA, amountB) = tokenA == token0 ? (amount0, amount1) : (amount1, amount0);
        require(amountA >= amountAMin, "KaleidoSwapRouter: INSUFFICIENT_A_AMOUNT");
        require(amountB >= amountBMin, "KaleidoSwapRouter: INSUFFICIENT_B_AMOUNT");
    }

    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) public virtual override whenNotPaused ensure(deadline) returns (uint amountToken, uint amountETH) {
        (amountToken, amountETH) = removeLiquidity(
            token,
            WXAI,
            liquidity,
            amountTokenMin,
            amountETHMin,
            address(this),
            deadline
        );
        TransferHelper.safeTransfer(token, to, amountToken);
        IWXAI(WXAI).withdraw(amountETH);
        TransferHelper.safeTransferETH(to, amountETH);
    }

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external virtual override whenNotPaused returns (uint amountA, uint amountB) {
        address pair = KaleidoSwapLibrary.pairFor(factory, tokenA, tokenB);
        uint value = approveMax ? type(uint256).max : liquidity;
        IKaleidoSwapPair(pair).permit(msg.sender, address(this), value, deadline, v, r, s);
        (amountA, amountB) = removeLiquidity(tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline);
    }

    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external virtual override whenNotPaused returns (uint amountToken, uint amountETH) {
        address pair = KaleidoSwapLibrary.pairFor(factory, token, WXAI);
        uint value = approveMax ? type(uint256).max : liquidity;
        IKaleidoSwapPair(pair).permit(msg.sender, address(this), value, deadline, v, r, s);
        (amountToken, amountETH) = removeLiquidityETH(token, liquidity, amountTokenMin, amountETHMin, to, deadline);
    }

    // **** REMOVE LIQUIDITY (supporting fee-on-transfer tokens) ****
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) public virtual override whenNotPaused ensure(deadline) returns (uint amountETH) {
        (, amountETH) = removeLiquidity(token, WXAI, liquidity, amountTokenMin, amountETHMin, address(this), deadline);
        TransferHelper.safeTransfer(token, to, IERC20(token).balanceOf(address(this)));
        IWXAI(WXAI).withdraw(amountETH);
        TransferHelper.safeTransferETH(to, amountETH);
    }

    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external virtual override whenNotPaused returns (uint amountETH) {
        address pair = KaleidoSwapLibrary.pairFor(factory, token, WXAI);
        uint value = approveMax ? type(uint256).max : liquidity;
        IKaleidoSwapPair(pair).permit(msg.sender, address(this), value, deadline, v, r, s);
        amountETH = removeLiquidityETHSupportingFeeOnTransferTokens(
            token,
            liquidity,
            amountTokenMin,
            amountETHMin,
            to,
            deadline
        );
    }

    // **** SWAP ****
    // requires the initial amount to have already been sent to the first pair
    function _swap(uint[] memory amounts, address[] memory path, address _to) internal virtual {
        for (uint i; i < path.length - 1; i++) {
            (address input, address output) = (path[i], path[i + 1]);
            (address token0, ) = KaleidoSwapLibrary.sortTokens(input, output);
            uint amountOut = amounts[i + 1];
            (uint amount0Out, uint amount1Out) = input == token0 ? (uint(0), amountOut) : (amountOut, uint(0));
            address to = i < path.length - 2 ? KaleidoSwapLibrary.pairFor(factory, output, path[i + 2]) : _to;
            IKaleidoSwapPair(KaleidoSwapLibrary.pairFor(factory, input, output)).swap(
                amount0Out,
                amount1Out,
                to,
                new bytes(0)
            );
        }
    }

    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external virtual override whenNotPaused ensure(deadline) returns (uint[] memory amounts) {
        amounts = KaleidoSwapLibrary.getAmountsOut(factory, amountIn, path);
        require(amounts[amounts.length - 1] >= amountOutMin, "KaleidoSwapRouter: INSUFFICIENT_OUTPUT_AMOUNT");
        TransferHelper.safeTransferFrom(
            path[0],
            msg.sender,
            KaleidoSwapLibrary.pairFor(factory, path[0], path[1]),
            amounts[0]
        );
        _swap(amounts, path, to);
    }

    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external virtual override whenNotPaused ensure(deadline) returns (uint[] memory amounts) {
        amounts = KaleidoSwapLibrary.getAmountsIn(factory, amountOut, path);
        require(amounts[0] <= amountInMax, "KaleidoSwapRouter: EXCESSIVE_INPUT_AMOUNT");
        TransferHelper.safeTransferFrom(
            path[0],
            msg.sender,
            KaleidoSwapLibrary.pairFor(factory, path[0], path[1]),
            amounts[0]
        );
        _swap(amounts, path, to);
    }

    function swapExactETHForTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable virtual override whenNotPaused ensure(deadline) returns (uint[] memory amounts) {
        require(path[0] == WXAI, "KaleidoSwapRouter: INVALID_PATH");
        amounts = KaleidoSwapLibrary.getAmountsOut(factory, msg.value, path);
        require(amounts[amounts.length - 1] >= amountOutMin, "KaleidoSwapRouter: INSUFFICIENT_OUTPUT_AMOUNT");
        IWXAI(WXAI).deposit{value: amounts[0]}();
        assert(IWXAI(WXAI).transfer(KaleidoSwapLibrary.pairFor(factory, path[0], path[1]), amounts[0]));
        _swap(amounts, path, to);
    }

    function swapTokensForExactETH(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external virtual override whenNotPaused ensure(deadline) returns (uint[] memory amounts) {
        require(path[path.length - 1] == WXAI, "KaleidoSwapRouter: INVALID_PATH");
        amounts = KaleidoSwapLibrary.getAmountsIn(factory, amountOut, path);
        require(amounts[0] <= amountInMax, "KaleidoSwapRouter: EXCESSIVE_INPUT_AMOUNT");
        TransferHelper.safeTransferFrom(
            path[0],
            msg.sender,
            KaleidoSwapLibrary.pairFor(factory, path[0], path[1]),
            amounts[0]
        );
        _swap(amounts, path, address(this));
        IWXAI(WXAI).withdraw(amounts[amounts.length - 1]);
        TransferHelper.safeTransferETH(to, amounts[amounts.length - 1]);
    }

    function swapExactTokensForETH(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external virtual override whenNotPaused ensure(deadline) returns (uint[] memory amounts) {
        require(path[path.length - 1] == WXAI, "KaleidoSwapRouter: INVALID_PATH");
        amounts = KaleidoSwapLibrary.getAmountsOut(factory, amountIn, path);
        require(amounts[amounts.length - 1] >= amountOutMin, "KaleidoSwapRouter: INSUFFICIENT_OUTPUT_AMOUNT");
        TransferHelper.safeTransferFrom(
            path[0],
            msg.sender,
            KaleidoSwapLibrary.pairFor(factory, path[0], path[1]),
            amounts[0]
        );
        _swap(amounts, path, address(this));
        IWXAI(WXAI).withdraw(amounts[amounts.length - 1]);
        TransferHelper.safeTransferETH(to, amounts[amounts.length - 1]);
    }

    function swapETHForExactTokens(
        uint amountOut,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable virtual override whenNotPaused ensure(deadline) returns (uint[] memory amounts) {
        require(path[0] == WXAI, "KaleidoSwapRouter: INVALID_PATH");
        amounts = KaleidoSwapLibrary.getAmountsIn(factory, amountOut, path);
        require(amounts[0] <= msg.value, "KaleidoSwapRouter: EXCESSIVE_INPUT_AMOUNT");
        IWXAI(WXAI).deposit{value: amounts[0]}();
        assert(IWXAI(WXAI).transfer(KaleidoSwapLibrary.pairFor(factory, path[0], path[1]), amounts[0]));
        _swap(amounts, path, to);
        // refund dust eth, if any
        if (msg.value > amounts[0]) TransferHelper.safeTransferETH(msg.sender, msg.value - amounts[0]);
    }

    // **** SWAP (supporting fee-on-transfer tokens) ****
    // requires the initial amount to have already been sent to the first pair
    function _swapSupportingFeeOnTransferTokens(address[] memory path, address _to) internal virtual {
        for (uint i; i < path.length - 1; i++) {
            (address input, address output) = (path[i], path[i + 1]);
            (address token0, ) = KaleidoSwapLibrary.sortTokens(input, output);
            IKaleidoSwapPair pair = IKaleidoSwapPair(KaleidoSwapLibrary.pairFor(factory, input, output));
            uint amountInput;
            uint amountOutput;
            {
                // scope to avoid stack too deep errors
                (uint reserve0, uint reserve1, ) = pair.getReserves();
                (uint reserveInput, uint reserveOutput) = input == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
                amountInput = IERC20(input).balanceOf(address(pair)).sub(reserveInput);
                amountOutput = KaleidoSwapLibrary.getAmountOut(amountInput, reserveInput, reserveOutput);
            }
            (uint amount0Out, uint amount1Out) = input == token0 ? (uint(0), amountOutput) : (amountOutput, uint(0));
            address to = i < path.length - 2 ? KaleidoSwapLibrary.pairFor(factory, output, path[i + 2]) : _to;
            pair.swap(amount0Out, amount1Out, to, new bytes(0));
        }
    }

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external virtual override whenNotPaused ensure(deadline) {
        TransferHelper.safeTransferFrom(
            path[0],
            msg.sender,
            KaleidoSwapLibrary.pairFor(factory, path[0], path[1]),
            amountIn
        );
        uint balanceBefore = IERC20(path[path.length - 1]).balanceOf(to);
        _swapSupportingFeeOnTransferTokens(path, to);
        require(
            IERC20(path[path.length - 1]).balanceOf(to).sub(balanceBefore) >= amountOutMin,
            "KaleidoSwapRouter: INSUFFICIENT_OUTPUT_AMOUNT"
        );
    }

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable virtual override whenNotPaused ensure(deadline) {
        require(path[0] == WXAI, "KaleidoSwapRouter: INVALID_PATH");
        uint amountIn = msg.value;
        IWXAI(WXAI).deposit{value: amountIn}();
        assert(IWXAI(WXAI).transfer(KaleidoSwapLibrary.pairFor(factory, path[0], path[1]), amountIn));
        uint balanceBefore = IERC20(path[path.length - 1]).balanceOf(to);
        _swapSupportingFeeOnTransferTokens(path, to);
        require(
            IERC20(path[path.length - 1]).balanceOf(to).sub(balanceBefore) >= amountOutMin,
            "KaleidoSwapRouter: INSUFFICIENT_OUTPUT_AMOUNT"
        );
    }

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external virtual override whenNotPaused ensure(deadline) {
        require(path[path.length - 1] == WXAI, "KaleidoSwapRouter: INVALID_PATH");
        TransferHelper.safeTransferFrom(
            path[0],
            msg.sender,
            KaleidoSwapLibrary.pairFor(factory, path[0], path[1]),
            amountIn
        );
        _swapSupportingFeeOnTransferTokens(path, address(this));
        uint amountOut = IERC20(WXAI).balanceOf(address(this));
        require(amountOut >= amountOutMin, "KaleidoSwapRouter: INSUFFICIENT_OUTPUT_AMOUNT");
        IWXAI(WXAI).withdraw(amountOut);
        TransferHelper.safeTransferETH(to, amountOut);
    }

    // **** LIBRARY FUNCTIONS ****
    function quote(uint amountA, uint reserveA, uint reserveB) public pure virtual override returns (uint amountB) {
        return KaleidoSwapLibrary.quote(amountA, reserveA, reserveB);
    }

    function getAmountOut(
        uint amountIn,
        uint reserveIn,
        uint reserveOut
    ) public pure virtual override returns (uint amountOut) {
        return KaleidoSwapLibrary.getAmountOut(amountIn, reserveIn, reserveOut);
    }

    function getAmountIn(
        uint amountOut,
        uint reserveIn,
        uint reserveOut
    ) public pure virtual override returns (uint amountIn) {
        return KaleidoSwapLibrary.getAmountIn(amountOut, reserveIn, reserveOut);
    }

    function getAmountsOut(
        uint amountIn,
        address[] memory path
    ) public view virtual override returns (uint[] memory amounts) {
        return KaleidoSwapLibrary.getAmountsOut(factory, amountIn, path);
    }

    function getAmountsIn(
        uint amountOut,
        address[] memory path
    ) public view virtual override returns (uint[] memory amounts) {
        return KaleidoSwapLibrary.getAmountsIn(factory, amountOut, path);
    }

    /**
     * @dev called by the owner to pause, triggers stopped state
     */
    function pause() external onlyRole(ADMIN_ROLE) whenNotPaused {
        _pause();
    }

    /**
     * @dev called by the owner to unpause, returns to normal state
     */
    function unpause() external onlyRole(ADMIN_ROLE) whenPaused {
        _unpause();
    }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_factory","internalType":"address"},{"type":"address","name":"_WXAI","internalType":"address"}]},{"type":"event","name":"Paused","inputs":[{"type":"address","name":"account","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":"Unpaused","inputs":[{"type":"address","name":"account","internalType":"address","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":"address","name":"","internalType":"address"}],"name":"WXAI","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountA","internalType":"uint256"},{"type":"uint256","name":"amountB","internalType":"uint256"},{"type":"uint256","name":"liquidity","internalType":"uint256"}],"name":"addLiquidity","inputs":[{"type":"address","name":"tokenA","internalType":"address"},{"type":"address","name":"tokenB","internalType":"address"},{"type":"uint256","name":"amountADesired","internalType":"uint256"},{"type":"uint256","name":"amountBDesired","internalType":"uint256"},{"type":"uint256","name":"amountAMin","internalType":"uint256"},{"type":"uint256","name":"amountBMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[{"type":"uint256","name":"amountToken","internalType":"uint256"},{"type":"uint256","name":"amountETH","internalType":"uint256"},{"type":"uint256","name":"liquidity","internalType":"uint256"}],"name":"addLiquidityETH","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"amountTokenDesired","internalType":"uint256"},{"type":"uint256","name":"amountTokenMin","internalType":"uint256"},{"type":"uint256","name":"amountETHMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"factory","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"}],"name":"getAmountIn","inputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"},{"type":"uint256","name":"reserveIn","internalType":"uint256"},{"type":"uint256","name":"reserveOut","internalType":"uint256"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"}],"name":"getAmountOut","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"uint256","name":"reserveIn","internalType":"uint256"},{"type":"uint256","name":"reserveOut","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"getAmountsIn","inputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"getAmountsOut","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getRoleAdmin","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"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":"nonpayable","outputs":[],"name":"pause","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"paused","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"amountB","internalType":"uint256"}],"name":"quote","inputs":[{"type":"uint256","name":"amountA","internalType":"uint256"},{"type":"uint256","name":"reserveA","internalType":"uint256"},{"type":"uint256","name":"reserveB","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountA","internalType":"uint256"},{"type":"uint256","name":"amountB","internalType":"uint256"}],"name":"removeLiquidity","inputs":[{"type":"address","name":"tokenA","internalType":"address"},{"type":"address","name":"tokenB","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountAMin","internalType":"uint256"},{"type":"uint256","name":"amountBMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountToken","internalType":"uint256"},{"type":"uint256","name":"amountETH","internalType":"uint256"}],"name":"removeLiquidityETH","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountTokenMin","internalType":"uint256"},{"type":"uint256","name":"amountETHMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountETH","internalType":"uint256"}],"name":"removeLiquidityETHSupportingFeeOnTransferTokens","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountTokenMin","internalType":"uint256"},{"type":"uint256","name":"amountETHMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountToken","internalType":"uint256"},{"type":"uint256","name":"amountETH","internalType":"uint256"}],"name":"removeLiquidityETHWithPermit","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountTokenMin","internalType":"uint256"},{"type":"uint256","name":"amountETHMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"},{"type":"bool","name":"approveMax","internalType":"bool"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountETH","internalType":"uint256"}],"name":"removeLiquidityETHWithPermitSupportingFeeOnTransferTokens","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountTokenMin","internalType":"uint256"},{"type":"uint256","name":"amountETHMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"},{"type":"bool","name":"approveMax","internalType":"bool"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountA","internalType":"uint256"},{"type":"uint256","name":"amountB","internalType":"uint256"}],"name":"removeLiquidityWithPermit","inputs":[{"type":"address","name":"tokenA","internalType":"address"},{"type":"address","name":"tokenB","internalType":"address"},{"type":"uint256","name":"liquidity","internalType":"uint256"},{"type":"uint256","name":"amountAMin","internalType":"uint256"},{"type":"uint256","name":"amountBMin","internalType":"uint256"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"},{"type":"bool","name":"approveMax","internalType":"bool"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"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":"revokeRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"payable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"swapETHForExactTokens","inputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"swapExactETHForTokens","inputs":[{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"swapExactETHForTokensSupportingFeeOnTransferTokens","inputs":[{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"swapExactTokensForETH","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"swapExactTokensForETHSupportingFeeOnTransferTokens","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"swapExactTokensForTokens","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"swapExactTokensForTokensSupportingFeeOnTransferTokens","inputs":[{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"swapTokensForExactETH","inputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"},{"type":"uint256","name":"amountInMax","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256[]","name":"amounts","internalType":"uint256[]"}],"name":"swapTokensForExactTokens","inputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"},{"type":"uint256","name":"amountInMax","internalType":"uint256"},{"type":"address[]","name":"path","internalType":"address[]"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"deadline","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unpause","inputs":[]},{"type":"receive","stateMutability":"payable"}]
              

Contract Creation Code

Verify & Publish
0x60806040523480156200001157600080fd5b50604051620051ff380380620051ff833981016040819052620000349162000160565b6000805460ff1916815533906200004c9082620000ab565b620000787fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177582620000ab565b50600280546001600160a01b039384166001600160a01b0319918216179091556003805492909316911617905562000197565b620000b78282620000bb565b5050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16620000b75760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b80516001600160a01b03811681146200015b57600080fd5b919050565b6000806040838503121562000173578182fd5b6200017e8362000143565b91506200018e6020840162000143565b90509250929050565b61505880620001a76000396000f3fe60806040526004361061021d5760003560e01c80638155c74d1161011d578063b6f9de95116100b0578063d547741f1161007f578063e8e3370011610064578063e8e3370014610682578063f305d719146106bd578063fb3bdb41146106d05761024c565b8063d547741f14610642578063ded9382a146106625761024c565b8063b6f9de95146105cf578063baa2abde146105e2578063c45a015514610602578063d06ca61f146106225761024c565b806391d14854116100ec57806391d1485414610534578063a217fddf1461057a578063ad615dec1461058f578063af2979eb146105af5761024c565b80638155c74d146104a75780638456cb59146104df57806385f8c259146104f45780638803dbee146105145761024c565b806336568abe116101b05780635b0d59841161017f5780635c975abb116101645780635c975abb1461045c578063791ac947146104745780637ff36ab5146104945761024c565b80635b0d59841461041c5780635c11d7951461043c5761024c565b806336568abe146103a757806338ed1739146103c75780633f4ba83a146103e75780634a25d94a146103fc5761024c565b80631f00ca74116101ec5780631f00ca74146103165780632195995c14610336578063248a9ca3146103565780632f2ff15d146103875761024c565b806301ffc9a71461025157806302751cec14610286578063054d50d4146102bb57806318cbafe5146102e95761024c565b3661024c576003546001600160a01b0316331461024a57634e487b7160e01b600052600160045260246000fd5b005b600080fd5b34801561025d57600080fd5b5061027161026c366004614b15565b6106e3565b60405190151581526020015b60405180910390f35b34801561029257600080fd5b506102a66102a13660046149c0565b61074e565b6040805192835260208301919091520161027d565b3480156102c757600080fd5b506102db6102d6366004614d6e565b61083d565b60405190815260200161027d565b3480156102f557600080fd5b50610309610304366004614cfd565b610852565b60405161027d9190614e62565b34801561032257600080fd5b50610309610331366004614c08565b610c2d565b34801561034257600080fd5b506102a661035136600461489c565b610c4e565b34801561036257600080fd5b506102db610371366004614ace565b6000908152600160208190526040909120015490565b34801561039357600080fd5b5061024a6103a2366004614ae6565b610d36565b3480156103b357600080fd5b5061024a6103c2366004614ae6565b610d61565b3480156103d357600080fd5b506103096103e2366004614cfd565b610ded565b3480156103f357600080fd5b5061024a610f7f565b34801561040857600080fd5b50610309610417366004614cfd565b610fbc565b34801561042857600080fd5b506102db610437366004614a1d565b61117c565b34801561044857600080fd5b5061024a610457366004614cfd565b611260565b34801561046857600080fd5b5060005460ff16610271565b34801561048057600080fd5b5061024a61048f366004614cfd565b61157d565b6103096104a2366004614ba3565b611813565b3480156104b357600080fd5b506003546104c7906001600160a01b031681565b6040516001600160a01b03909116815260200161027d565b3480156104eb57600080fd5b5061024a611ba5565b34801561050057600080fd5b506102db61050f366004614d6e565b611bdf565b34801561052057600080fd5b5061030961052f366004614cfd565b611bec565b34801561054057600080fd5b5061027161054f366004614ae6565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561058657600080fd5b506102db600081565b34801561059b57600080fd5b506102db6105aa366004614d6e565b611d0b565b3480156105bb57600080fd5b506102db6105ca3660046149c0565b611d18565b61024a6105dd366004614ba3565b611e6d565b3480156105ee57600080fd5b506102a66105fd36600461482b565b61220a565b34801561060e57600080fd5b506002546104c7906001600160a01b031681565b34801561062e57600080fd5b5061030961063d366004614c08565b61249e565b34801561064e57600080fd5b5061024a61065d366004614ae6565b6124b8565b34801561066e57600080fd5b506102a661067d366004614a1d565b6124de565b34801561068e57600080fd5b506106a261069d366004614945565b6125dd565b6040805193845260208401929092529082015260600161027d565b6106a26106cb3660046149c0565b6126fd565b6103096106de366004614ba3565b612949565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061074657507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b90505b919050565b600080610759612d29565b824281101561079d5760405162461bcd60e51b815260206004820152601a602482015260008051602061500383398151915260448201526064015b60405180910390fd5b6003546107b9908a906001600160a01b03168a8a8a308a61220a565b90935091506107c9898685612d7e565b600354604051632e1a7d4d60e01b8152600481018490526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561080f57600080fd5b505af1158015610823573d6000803e3d6000fd5b505050506108318583612ed4565b50965096945050505050565b600061084a848484612fb7565b949350505050565b606061085c612d29565b814281101561089b5760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b6003546001600160a01b031686866108b4600182614f3e565b8181106108d157634e487b7160e01b600052603260045260246000fd5b90506020020160208101906108e691906147f3565b6001600160a01b03161461093c5760405162461bcd60e51b815260206004820152601f60248201527f4b616c6569646f53776170526f757465723a20494e56414c49445f50415448006044820152606401610794565b6002546040805160208089028281018201909352888252610986936001600160a01b0316928c92918b918b918291908501908490808284376000920191909152506130ea92505050565b91508682600184516109989190614f3e565b815181106109b657634e487b7160e01b600052603260045260246000fd5b60200260200101511015610a225760405162461bcd60e51b815260206004820152602d60248201527f4b616c6569646f53776170526f757465723a20494e53554646494349454e545f60448201526c13d55514155517d05353d55395609a1b6064820152608401610794565b610b0a86866000818110610a4657634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610a5b91906147f3565b6002543390610adc906001600160a01b03168a8a600081610a8c57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610aa191906147f3565b8b8b6001818110610ac257634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610ad791906147f3565b6132c9565b85600081518110610afd57634e487b7160e01b600052603260045260246000fd5b60200260200101516133ba565b610b4982878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250613519915050565b60035482516001600160a01b0390911690632e1a7d4d908490610b6e90600190614f3e565b81518110610b8c57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401610bb291815260200190565b600060405180830381600087803b158015610bcc57600080fd5b505af1158015610be0573d6000803e3d6000fd5b50505050610c22848360018551610bf79190614f3e565b81518110610c1557634e487b7160e01b600052603260045260246000fd5b6020026020010151612ed4565b509695505050505050565b600254606090610c47906001600160a01b03168484613738565b9392505050565b600080610c59612d29565b600254600090610c73906001600160a01b03168f8f6132c9565b9050600087610c82578c610c86565b6000195b60405163d505accf60e01b815233600482015230602482015260448101829052606481018b905260ff8916608482015260a4810188905260c481018790529091506001600160a01b0383169063d505accf9060e401600060405180830381600087803b158015610cf557600080fd5b505af1158015610d09573d6000803e3d6000fd5b50505050610d1c8f8f8f8f8f8f8f61220a565b809450819550505050509b509b9950505050505050505050565b60008281526001602081905260409091200154610d528161390d565b610d5c8383613917565b505050565b6001600160a01b0381163314610ddf5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610794565b610de9828261399e565b5050565b6060610df7612d29565b8142811015610e365760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b6002546040805160208089028281018201909352888252610e80936001600160a01b0316928c92918b918b918291908501908490808284376000920191909152506130ea92505050565b9150868260018451610e929190614f3e565b81518110610eb057634e487b7160e01b600052603260045260246000fd5b60200260200101511015610f1c5760405162461bcd60e51b815260206004820152602d60248201527f4b616c6569646f53776170526f757465723a20494e53554646494349454e545f60448201526c13d55514155517d05353d55395609a1b6064820152608401610794565b610f4086866000818110610a4657634e487b7160e01b600052603260045260246000fd5b610c2282878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613519915050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610fa98161390d565b610fb1613a21565b610fb9613a73565b50565b6060610fc6612d29565b81428110156110055760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b6003546001600160a01b0316868661101e600182614f3e565b81811061103b57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061105091906147f3565b6001600160a01b0316146110a65760405162461bcd60e51b815260206004820152601f60248201527f4b616c6569646f53776170526f757465723a20494e56414c49445f50415448006044820152606401610794565b60025460408051602080890282810182019093528882526110f0936001600160a01b0316928c92918b918b9182919085019084908082843760009201919091525061373892505050565b9150868260008151811061111457634e487b7160e01b600052603260045260246000fd5b60200260200101511115610a225760405162461bcd60e51b815260206004820152602960248201527f4b616c6569646f53776170526f757465723a204558434553534956455f494e50604482015268155517d05353d5539560ba1b6064820152608401610794565b6000611186612d29565b6002546003546000916111a7916001600160a01b03918216918f91166132c9565b90506000866111b6578b6111ba565b6000195b60405163d505accf60e01b815233600482015230602482015260448101829052606481018a905260ff8816608482015260a4810187905260c481018690529091506001600160a01b0383169063d505accf9060e401600060405180830381600087803b15801561122957600080fd5b505af115801561123d573d6000803e3d6000fd5b5050505061124f8d8d8d8d8d8d611d18565b9d9c50505050505050505050505050565b611268612d29565b80428110156112a75760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b61134d858560008181106112cb57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906112e091906147f3565b6002543390611347906001600160a01b0316898960008161131157634e487b7160e01b600052603260045260246000fd5b905060200201602081019061132691906147f3565b8a8a6001818110610ac257634e487b7160e01b600052603260045260246000fd5b8a6133ba565b6000858561135c600182614f3e565b81811061137957634e487b7160e01b600052603260045260246000fd5b905060200201602081019061138e91906147f3565b6040516370a0823160e01b81526001600160a01b03868116600483015291909116906370a082319060240160206040518083038186803b1580156113d157600080fd5b505afa1580156113e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114099190614b8b565b9050611449868680806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250889250613ac5915050565b8661150f82888861145b600182614f3e565b81811061147857634e487b7160e01b600052603260045260246000fd5b905060200201602081019061148d91906147f3565b6040516370a0823160e01b81526001600160a01b03898116600483015291909116906370a08231906024015b60206040518083038186803b1580156114d157600080fd5b505afa1580156114e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115099190614b8b565b90613d90565b10156115735760405162461bcd60e51b815260206004820152602d60248201527f4b616c6569646f53776170526f757465723a20494e53554646494349454e545f60448201526c13d55514155517d05353d55395609a1b6064820152608401610794565b5050505050505050565b611585612d29565b80428110156115c45760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b6003546001600160a01b031685856115dd600182614f3e565b8181106115fa57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061160f91906147f3565b6001600160a01b0316146116655760405162461bcd60e51b815260206004820152601f60248201527f4b616c6569646f53776170526f757465723a20494e56414c49445f50415448006044820152606401610794565b611689858560008181106112cb57634e487b7160e01b600052603260045260246000fd5b6116c7858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250613ac5915050565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561170b57600080fd5b505afa15801561171f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117439190614b8b565b9050868110156117ab5760405162461bcd60e51b815260206004820152602d60248201527f4b616c6569646f53776170526f757465723a20494e53554646494349454e545f60448201526c13d55514155517d05353d55395609a1b6064820152608401610794565b600354604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b1580156117f157600080fd5b505af1158015611805573d6000803e3d6000fd5b505050506115738482612ed4565b606061181d612d29565b814281101561185c5760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b6003546001600160a01b0316868660008161188757634e487b7160e01b600052603260045260246000fd5b905060200201602081019061189c91906147f3565b6001600160a01b0316146118f25760405162461bcd60e51b815260206004820152601f60248201527f4b616c6569646f53776170526f757465723a20494e56414c49445f50415448006044820152606401610794565b600254604080516020808902828101820190935288825261193c936001600160a01b0316923492918b918b918291908501908490808284376000920191909152506130ea92505050565b915086826001845161194e9190614f3e565b8151811061196c57634e487b7160e01b600052603260045260246000fd5b602002602001015110156119d85760405162461bcd60e51b815260206004820152602d60248201527f4b616c6569646f53776170526f757465723a20494e53554646494349454e545f60448201526c13d55514155517d05353d55395609a1b6064820152608401610794565b60035482516001600160a01b039091169063d0e30db0908490600090611a0e57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015611a4157600080fd5b505af1158015611a55573d6000803e3d6000fd5b50506003546002546001600160a01b03918216945063a9059cbb9350611a96925016898960008161131157634e487b7160e01b600052603260045260246000fd5b84600081518110611ab757634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b8152600401611af09291906001600160a01b03929092168252602082015260400190565b602060405180830381600087803b158015611b0a57600080fd5b505af1158015611b1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b429190614ab2565b611b5c57634e487b7160e01b600052600160045260246000fd5b611b9b82878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613519915050565b5095945050505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611bcf8161390d565b611bd7612d29565b610fb9613d9c565b600061084a848484613dd9565b6060611bf6612d29565b8142811015611c355760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b6002546040805160208089028281018201909352888252611c7f936001600160a01b0316928c92918b918b9182919085019084908082843760009201919091525061373892505050565b91508682600081518110611ca357634e487b7160e01b600052603260045260246000fd5b60200260200101511115610f1c5760405162461bcd60e51b815260206004820152602960248201527f4b616c6569646f53776170526f757465723a204558434553534956455f494e50604482015268155517d05353d5539560ba1b6064820152608401610794565b600061084a848484613f06565b6000611d22612d29565b8142811015611d615760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b600354611d7d9089906001600160a01b0316898989308961220a565b6040516370a0823160e01b8152306004820152909350611e059150899086906001600160a01b038316906370a082319060240160206040518083038186803b158015611dc857600080fd5b505afa158015611ddc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e009190614b8b565b612d7e565b600354604051632e1a7d4d60e01b8152600481018490526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b158015611e4b57600080fd5b505af1158015611e5f573d6000803e3d6000fd5b50505050610c228483612ed4565b611e75612d29565b8042811015611eb45760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b6003546001600160a01b03168585600081611edf57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611ef491906147f3565b6001600160a01b031614611f4a5760405162461bcd60e51b815260206004820152601f60248201527f4b616c6569646f53776170526f757465723a20494e56414c49445f50415448006044820152606401610794565b600354604080517fd0e30db0000000000000000000000000000000000000000000000000000000008152905134926001600160a01b03169163d0e30db091849160048082019260009290919082900301818588803b158015611fab57600080fd5b505af1158015611fbf573d6000803e3d6000fd5b50506003546002546001600160a01b03918216945063a9059cbb9350612000925016898960008161131157634e487b7160e01b600052603260045260246000fd5b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b15801561204857600080fd5b505af115801561205c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120809190614ab2565b61209a57634e487b7160e01b600052600160045260246000fd5b600086866120a9600182614f3e565b8181106120c657634e487b7160e01b600052603260045260246000fd5b90506020020160208101906120db91906147f3565b6040516370a0823160e01b81526001600160a01b03878116600483015291909116906370a082319060240160206040518083038186803b15801561211e57600080fd5b505afa158015612132573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121569190614b8b565b9050612196878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613ac5915050565b8761150f8289896121a8600182614f3e565b8181106121c557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906121da91906147f3565b6040516370a0823160e01b81526001600160a01b038a8116600483015291909116906370a08231906024016114b9565b600080612215612d29565b82428110156122545760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b60025460009061226e906001600160a01b03168c8c6132c9565b6040516323b872dd60e01b81523360048201526001600160a01b03821660248201819052604482018c90529192506323b872dd90606401602060405180830381600087803b1580156122bf57600080fd5b505af11580156122d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122f79190614ab2565b506040517f89afcb440000000000000000000000000000000000000000000000000000000081526001600160a01b03878116600483015260009182918416906389afcb44906024016040805180830381600087803b15801561235857600080fd5b505af115801561236c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123909190614cda565b9150915060006123a08e8e614001565b509050806001600160a01b03168e6001600160a01b0316146123c35781836123c6565b82825b90975095508a87101561242c5760405162461bcd60e51b815260206004820152602860248201527f4b616c6569646f53776170526f757465723a20494e53554646494349454e545f6044820152671057d05353d5539560c21b6064820152608401610794565b8986101561248d5760405162461bcd60e51b815260206004820152602860248201527f4b616c6569646f53776170526f757465723a20494e53554646494349454e545f6044820152671097d05353d5539560c21b6064820152608401610794565b505050505097509795505050505050565b600254606090610c47906001600160a01b031684846130ea565b600082815260016020819052604090912001546124d48161390d565b610d5c838361399e565b6000806124e9612d29565b6000612520600260009054906101000a90046001600160a01b03168e600360009054906101000a90046001600160a01b03166132c9565b905060008761252f578c612533565b6000195b60405163d505accf60e01b815233600482015230602482015260448101829052606481018b905260ff8916608482015260a4810188905260c481018790529091506001600160a01b0383169063d505accf9060e401600060405180830381600087803b1580156125a257600080fd5b505af11580156125b6573d6000803e3d6000fd5b505050506125c88e8e8e8e8e8e61074e565b909f909e509c50505050505050505050505050565b60008060006125ea612d29565b83428110156126295760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b6126378c8c8c8c8c8c614111565b6002549195509350600090612656906001600160a01b03168e8e6132c9565b90506126648d3383886133ba565b6126708c3383876133ba565b6040516335313c2160e11b81526001600160a01b038881166004830152821690636a62784290602401602060405180830381600087803b1580156126b357600080fd5b505af11580156126c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126eb9190614b8b565b92505050985098509895505050505050565b600080600061270a612d29565b83428110156127495760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b600354612764908b906001600160a01b03168b348c8c614111565b60025460035492965090945060009161278b916001600160a01b03908116918e91166132c9565b90506127998b3383886133ba565b600360009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b1580156127e957600080fd5b505af11580156127fd573d6000803e3d6000fd5b505060035460405163a9059cbb60e01b81526001600160a01b038681166004830152602482018a9052909116935063a9059cbb92506044019050602060405180830381600087803b15801561285157600080fd5b505af1158015612865573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128899190614ab2565b6128a357634e487b7160e01b600052600160045260246000fd5b6040516335313c2160e11b81526001600160a01b038881166004830152821690636a62784290602401602060405180830381600087803b1580156128e657600080fd5b505af11580156128fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061291e9190614b8b565b92508334111561293b5761293b336129368634614f3e565b612ed4565b505096509650969350505050565b6060612953612d29565b81428110156129925760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b6003546001600160a01b031686866000816129bd57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906129d291906147f3565b6001600160a01b031614612a285760405162461bcd60e51b815260206004820152601f60248201527f4b616c6569646f53776170526f757465723a20494e56414c49445f50415448006044820152606401610794565b6002546040805160208089028281018201909352888252612a72936001600160a01b0316928b92918b918b9182919085019084908082843760009201919091525061373892505050565b91503482600081518110612a9657634e487b7160e01b600052603260045260246000fd5b60200260200101511115612afe5760405162461bcd60e51b815260206004820152602960248201527f4b616c6569646f53776170526f757465723a204558434553534956455f494e50604482015268155517d05353d5539560ba1b6064820152608401610794565b60035482516001600160a01b039091169063d0e30db0908490600090612b3457634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015612b6757600080fd5b505af1158015612b7b573d6000803e3d6000fd5b50506003546002546001600160a01b03918216945063a9059cbb9350612bbc925016898960008161131157634e487b7160e01b600052603260045260246000fd5b84600081518110612bdd57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b8152600401612c169291906001600160a01b03929092168252602082015260400190565b602060405180830381600087803b158015612c3057600080fd5b505af1158015612c44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c689190614ab2565b612c8257634e487b7160e01b600052600160045260246000fd5b612cc182878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613519915050565b81600081518110612ce257634e487b7160e01b600052603260045260246000fd5b6020026020010151341115611b9b57611b9b3383600081518110612d1657634e487b7160e01b600052603260045260246000fd5b6020026020010151346129369190614f3e565b60005460ff1615612d7c5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610794565b565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b1790529151600092839290871691612def9190614dc5565b6000604051808303816000865af19150503d8060008114612e2c576040519150601f19603f3d011682016040523d82523d6000602084013e612e31565b606091505b5091509150818015612e5b575080511580612e5b575080806020019051810190612e5b9190614ab2565b612ecd5760405162461bcd60e51b815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201527f616e73666572206661696c6564000000000000000000000000000000000000006064820152608401610794565b5050505050565b604080516000808252602082019092526001600160a01b038416908390604051612efe9190614dc5565b60006040518083038185875af1925050503d8060008114612f3b576040519150601f19603f3d011682016040523d82523d6000602084013e612f40565b606091505b5050905080610d5c5760405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527f20455448207472616e73666572206661696c65640000000000000000000000006064820152608401610794565b600080841161302e5760405162461bcd60e51b815260206004820152602d60248201527f4b616c6569646f537761704c6962726172793a20494e53554646494349454e5460448201527f5f494e5055545f414d4f554e54000000000000000000000000000000000000006064820152608401610794565b60008311801561303e5750600082115b61309d5760405162461bcd60e51b815260206004820152602a60248201527f4b616c6569646f537761704c6962726172793a20494e53554646494349454e546044820152695f4c495155494449545960b01b6064820152608401610794565b60006130ab856103e56143ca565b905060006130b982856143ca565b905060006130d3836130cd886103e86143ca565b906143d6565b90506130df8183614eff565b979650505050505050565b606060028251101561313e5760405162461bcd60e51b815260206004820181905260248201527f4b616c6569646f537761704c6962726172793a20494e56414c49445f504154486044820152606401610794565b815167ffffffffffffffff81111561316657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561318f578160200160208202803683370190505b50905082816000815181106131b457634e487b7160e01b600052603260045260246000fd5b60200260200101818152505060005b600183516131d19190614f3e565b8110156132c157600080613240878685815181106131ff57634e487b7160e01b600052603260045260246000fd5b6020026020010151878660016132159190614ee7565b8151811061323357634e487b7160e01b600052603260045260246000fd5b60200260200101516143e2565b9150915061327684848151811061326757634e487b7160e01b600052603260045260246000fd5b60200260200101518383612fb7565b84613282856001614ee7565b815181106132a057634e487b7160e01b600052603260045260246000fd5b602002602001018181525050505080806132b990614f98565b9150506131c3565b509392505050565b60008060006132d88585614001565b6040516bffffffffffffffffffffffff19606084811b8216602084015283901b16603482015291935091508690604801604051602081830303815290604052805190602001206040516020016133989291907fff00000000000000000000000000000000000000000000000000000000000000815260609290921b6bffffffffffffffffffffffff1916600183015260158201527f7ee72bf2f94f8e661c787966094fee4a4c0baa28c4df634df718fac87fd1d599603582015260550190565b60408051601f1981840301815291905280516020909101209695505050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b17905291516000928392908816916134339190614dc5565b6000604051808303816000865af19150503d8060008114613470576040519150601f19603f3d011682016040523d82523d6000602084013e613475565b606091505b509150915081801561349f57508051158061349f57508080602001905181019061349f9190614ab2565b6135115760405162461bcd60e51b815260206004820152603160248201527f5472616e7366657248656c7065723a3a7472616e7366657246726f6d3a20747260448201527f616e7366657246726f6d206661696c65640000000000000000000000000000006064820152608401610794565b505050505050565b60005b6001835161352a9190614f3e565b8110156137325760008084838151811061355457634e487b7160e01b600052603260045260246000fd5b60200260200101518584600161356a9190614ee7565b8151811061358857634e487b7160e01b600052603260045260246000fd5b60200260200101519150915060006135a08383614001565b5090506000876135b1866001614ee7565b815181106135cf57634e487b7160e01b600052603260045260246000fd5b60200260200101519050600080836001600160a01b0316866001600160a01b0316146135fd57826000613601565b6000835b91509150600060028a516136159190614f3e565b8810613621578861366f565b6002805461366f916001600160a01b039091169088908d90613644908d90614ee7565b8151811061366257634e487b7160e01b600052603260045260246000fd5b60200260200101516132c9565b600254909150613689906001600160a01b031688886132c9565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f1916602001820160405280156136c6576020820181803683370190505b506040518563ffffffff1660e01b81526004016136e69493929190614eb9565b600060405180830381600087803b15801561370057600080fd5b505af1158015613714573d6000803e3d6000fd5b5050505050505050505050808061372a90614f98565b91505061351c565b50505050565b606060028251101561378c5760405162461bcd60e51b815260206004820181905260248201527f4b616c6569646f537761704c6962726172793a20494e56414c49445f504154486044820152606401610794565b815167ffffffffffffffff8111156137b457634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156137dd578160200160208202803683370190505b5090508281600183516137f09190614f3e565b8151811061380e57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505060006001835161382a9190614f3e565b90505b80156132c15760008061388c8786613846600187614f3e565b8151811061386457634e487b7160e01b600052603260045260246000fd5b602002602001015187868151811061323357634e487b7160e01b600052603260045260246000fd5b915091506138c28484815181106138b357634e487b7160e01b600052603260045260246000fd5b60200260200101518383613dd9565b846138ce600186614f3e565b815181106138ec57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505050808061390590614f81565b91505061382d565b610fb981336144c9565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16610de95760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff1615610de95760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60005460ff16612d7c5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610794565b613a7b613a21565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60005b60018351613ad69190614f3e565b811015610d5c57600080848381518110613b0057634e487b7160e01b600052603260045260246000fd5b602002602001015185846001613b169190614ee7565b81518110613b3457634e487b7160e01b600052603260045260246000fd5b6020026020010151915091506000613b4c8383614001565b50600254909150600090613b6a906001600160a01b031685856132c9565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015613bab57600080fd5b505afa158015613bbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613be39190614b3d565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff169150600080876001600160a01b03168a6001600160a01b031614613c2b578284613c2e565b83835b6040516370a0823160e01b81526001600160a01b038a81166004830152929450909250613c69918491908d16906370a08231906024016114b9565b9550613c76868383612fb7565b945050505050600080856001600160a01b0316886001600160a01b031614613ca057826000613ca4565b6000835b91509150600060028c51613cb89190614f3e565b8a10613cc4578a613ce7565b60028054613ce7916001600160a01b03909116908a908f90613644908f90614ee7565b604080516000815260208101918290527f022c0d9f000000000000000000000000000000000000000000000000000000009091529091506001600160a01b0387169063022c0d9f90613d429086908690869060248101614eb9565b600060405180830381600087803b158015613d5c57600080fd5b505af1158015613d70573d6000803e3d6000fd5b505050505050505050505050508080613d8890614f98565b915050613ac8565b6000610c478284614f3e565b613da4612d29565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613aa83390565b6000808411613e505760405162461bcd60e51b815260206004820152602e60248201527f4b616c6569646f537761704c6962726172793a20494e53554646494349454e5460448201527f5f4f55545055545f414d4f554e540000000000000000000000000000000000006064820152608401610794565b600083118015613e605750600082115b613ebf5760405162461bcd60e51b815260206004820152602a60248201527f4b616c6569646f537761704c6962726172793a20494e53554646494349454e546044820152695f4c495155494449545960b01b6064820152608401610794565b6000613ed76103e8613ed186886143ca565b906143ca565b90506000613eeb6103e5613ed18689613d90565b9050613efc60016130cd8385614eff565b9695505050505050565b6000808411613f7d5760405162461bcd60e51b815260206004820152602760248201527f4b616c6569646f537761704c6962726172793a20494e53554646494349454e5460448201527f5f414d4f554e54000000000000000000000000000000000000000000000000006064820152608401610794565b600083118015613f8d5750600082115b613fec5760405162461bcd60e51b815260206004820152602a60248201527f4b616c6569646f537761704c6962726172793a20494e53554646494349454e546044820152695f4c495155494449545960b01b6064820152608401610794565b82613ff785846143ca565b61084a9190614eff565b600080826001600160a01b0316846001600160a01b0316141561408c5760405162461bcd60e51b815260206004820152602760248201527f4b616c6569646f537761704c6962726172793a204944454e544943414c5f414460448201527f44524553534553000000000000000000000000000000000000000000000000006064820152608401610794565b826001600160a01b0316846001600160a01b0316106140ac5782846140af565b83835b90925090506001600160a01b03821661410a5760405162461bcd60e51b815260206004820181905260248201527f4b616c6569646f537761704c6962726172793a205a45524f5f414444524553536044820152606401610794565b9250929050565b6002546040517fe6a439050000000000000000000000000000000000000000000000000000000081526001600160a01b0388811660048301528781166024830152600092839283929091169063e6a439059060440160206040518083038186803b15801561417e57600080fd5b505afa158015614192573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141b6919061480f565b6001600160a01b03161415614267576002546040517fc9c653960000000000000000000000000000000000000000000000000000000081526001600160a01b038a8116600483015289811660248301529091169063c9c6539690604401602060405180830381600087803b15801561422d57600080fd5b505af1158015614241573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614265919061480f565b505b6002546000908190614283906001600160a01b03168b8b6143e2565b91509150816000148015614295575080155b156142a5578793508692506143bd565b60006142b2898484613f06565b9050878111614327578581101561431c5760405162461bcd60e51b815260206004820152602860248201527f4b616c6569646f53776170526f757465723a20494e53554646494349454e545f6044820152671097d05353d5539560c21b6064820152608401610794565b8894509250826143bb565b6000614334898486613f06565b90508981111561435457634e487b7160e01b600052600160045260246000fd5b878110156143b55760405162461bcd60e51b815260206004820152602860248201527f4b616c6569646f53776170526f757465723a20494e53554646494349454e545f6044820152671057d05353d5539560c21b6064820152608401610794565b94508793505b505b5050965096945050505050565b6000610c478284614f1f565b6000610c478284614ee7565b60008060006143f18585614001565b5090506000806144028888886132c9565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561443a57600080fd5b505afa15801561444e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144729190614b3d565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff169150826001600160a01b0316876001600160a01b0316146144b75780826144ba565b81815b90999098509650505050505050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16610de9576144fc8161453e565b614507836020614550565b604051602001614518929190614de1565b60408051601f198184030181529082905262461bcd60e51b825261079491600401614ea6565b60606107466001600160a01b03831660145b6060600061455f836002614f1f565b61456a906002614ee7565b67ffffffffffffffff81111561459057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156145ba576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106145ff57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061465857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061467c846002614f1f565b614687906001614ee7565b90505b6001811115614728577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106146d657634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106146fa57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361472181614f81565b905061468a565b508315610c475760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610794565b803561074981614fdf565b60008083601f840112614793578081fd5b50813567ffffffffffffffff8111156147aa578182fd5b602083019150836020808302850101111561410a57600080fd5b80516dffffffffffffffffffffffffffff8116811461074957600080fd5b803560ff8116811461074957600080fd5b600060208284031215614804578081fd5b8135610c4781614fdf565b600060208284031215614820578081fd5b8151610c4781614fdf565b600080600080600080600060e0888a031215614845578283fd5b873561485081614fdf565b9650602088013561486081614fdf565b955060408801359450606088013593506080880135925060a088013561488581614fdf565b8092505060c0880135905092959891949750929550565b60008060008060008060008060008060006101608c8e0312156148bd578384fd5b8b356148c881614fdf565b9a5060208c01356148d881614fdf565b995060408c0135985060608c0135975060808c0135965060a08c01356148fd81614fdf565b955060c08c0135945060e08c013561491481614ff4565b93506149236101008d016147e2565b92506101208c013591506101408c013590509295989b509295989b9093969950565b600080600080600080600080610100898b031215614961578384fd5b883561496c81614fdf565b9750602089013561497c81614fdf565b965060408901359550606089013594506080890135935060a0890135925060c08901356149a881614fdf565b8092505060e089013590509295985092959890939650565b60008060008060008060c087890312156149d8578182fd5b86356149e381614fdf565b95506020870135945060408701359350606087013592506080870135614a0881614fdf565b8092505060a087013590509295509295509295565b6000806000806000806000806000806101408b8d031215614a3c578384fd5b8a35614a4781614fdf565b995060208b0135985060408b0135975060608b0135965060808b0135614a6c81614fdf565b955060a08b0135945060c08b0135614a8381614ff4565b9350614a9160e08c016147e2565b92506101008b013591506101208b013590509295989b9194979a5092959850565b600060208284031215614ac3578081fd5b8151610c4781614ff4565b600060208284031215614adf578081fd5b5035919050565b60008060408385031215614af8578182fd5b823591506020830135614b0a81614fdf565b809150509250929050565b600060208284031215614b26578081fd5b81356001600160e01b031981168114610c47578182fd5b600080600060608486031215614b51578081fd5b614b5a846147c4565b9250614b68602085016147c4565b9150604084015163ffffffff81168114614b80578182fd5b809150509250925092565b600060208284031215614b9c578081fd5b5051919050565b600080600080600060808688031215614bba578283fd5b85359450602086013567ffffffffffffffff811115614bd7578384fd5b614be388828901614782565b9095509350506040860135614bf781614fdf565b949793965091946060013592915050565b60008060408385031215614c1a578182fd5b8235915060208084013567ffffffffffffffff80821115614c39578384fd5b818601915086601f830112614c4c578384fd5b813581811115614c5e57614c5e614fc9565b838102604051601f19603f83011681018181108582111715614c8257614c82614fc9565b604052828152858101935084860182860187018b1015614ca0578788fd5b8795505b83861015614cc957614cb581614777565b855260019590950194938601938601614ca4565b508096505050505050509250929050565b60008060408385031215614cec578182fd5b505080516020909101519092909150565b60008060008060008060a08789031215614d15578384fd5b8635955060208701359450604087013567ffffffffffffffff811115614d39578485fd5b614d4589828a01614782565b9095509350506060870135614d5981614fdf565b80925050608087013590509295509295509295565b600080600060608486031215614d82578081fd5b505081359360208301359350604090920135919050565b60008151808452614db1816020860160208601614f55565b601f01601f19169290920160200192915050565b60008251614dd7818460208701614f55565b9190910192915050565b60007f416363657373436f6e74726f6c3a206163636f756e742000000000000000000082528351614e19816017850160208801614f55565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351614e56816028840160208801614f55565b01602801949350505050565b6020808252825182820181905260009190848201906040850190845b81811015614e9a57835183529284019291840191600101614e7e565b50909695505050505050565b600060208252610c476020830184614d99565b60008582528460208301526001600160a01b038416604083015260806060830152613efc6080830184614d99565b60008219821115614efa57614efa614fb3565b500190565b600082614f1a57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615614f3957614f39614fb3565b500290565b600082821015614f5057614f50614fb3565b500390565b60005b83811015614f70578181015183820152602001614f58565b838111156137325750506000910152565b600081614f9057614f90614fb3565b506000190190565b6000600019821415614fac57614fac614fb3565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610fb957600080fd5b8015158114610fb957600080fdfe4b616c6569646f53776170526f757465723a2045585049524544000000000000a2646970667358221220a9ee4e535b57cb52f083b49b6a90a6a9511a15574fdfda5c53bfd68bd416a7b964736f6c634300080200330000000000000000000000006858a6c3484b7b033b748261e550fc20c479b06300000000000000000000000036be1fd6ff2a6beb34b500a04f89103a524516d8

Deployed ByteCode

0x60806040526004361061021d5760003560e01c80638155c74d1161011d578063b6f9de95116100b0578063d547741f1161007f578063e8e3370011610064578063e8e3370014610682578063f305d719146106bd578063fb3bdb41146106d05761024c565b8063d547741f14610642578063ded9382a146106625761024c565b8063b6f9de95146105cf578063baa2abde146105e2578063c45a015514610602578063d06ca61f146106225761024c565b806391d14854116100ec57806391d1485414610534578063a217fddf1461057a578063ad615dec1461058f578063af2979eb146105af5761024c565b80638155c74d146104a75780638456cb59146104df57806385f8c259146104f45780638803dbee146105145761024c565b806336568abe116101b05780635b0d59841161017f5780635c975abb116101645780635c975abb1461045c578063791ac947146104745780637ff36ab5146104945761024c565b80635b0d59841461041c5780635c11d7951461043c5761024c565b806336568abe146103a757806338ed1739146103c75780633f4ba83a146103e75780634a25d94a146103fc5761024c565b80631f00ca74116101ec5780631f00ca74146103165780632195995c14610336578063248a9ca3146103565780632f2ff15d146103875761024c565b806301ffc9a71461025157806302751cec14610286578063054d50d4146102bb57806318cbafe5146102e95761024c565b3661024c576003546001600160a01b0316331461024a57634e487b7160e01b600052600160045260246000fd5b005b600080fd5b34801561025d57600080fd5b5061027161026c366004614b15565b6106e3565b60405190151581526020015b60405180910390f35b34801561029257600080fd5b506102a66102a13660046149c0565b61074e565b6040805192835260208301919091520161027d565b3480156102c757600080fd5b506102db6102d6366004614d6e565b61083d565b60405190815260200161027d565b3480156102f557600080fd5b50610309610304366004614cfd565b610852565b60405161027d9190614e62565b34801561032257600080fd5b50610309610331366004614c08565b610c2d565b34801561034257600080fd5b506102a661035136600461489c565b610c4e565b34801561036257600080fd5b506102db610371366004614ace565b6000908152600160208190526040909120015490565b34801561039357600080fd5b5061024a6103a2366004614ae6565b610d36565b3480156103b357600080fd5b5061024a6103c2366004614ae6565b610d61565b3480156103d357600080fd5b506103096103e2366004614cfd565b610ded565b3480156103f357600080fd5b5061024a610f7f565b34801561040857600080fd5b50610309610417366004614cfd565b610fbc565b34801561042857600080fd5b506102db610437366004614a1d565b61117c565b34801561044857600080fd5b5061024a610457366004614cfd565b611260565b34801561046857600080fd5b5060005460ff16610271565b34801561048057600080fd5b5061024a61048f366004614cfd565b61157d565b6103096104a2366004614ba3565b611813565b3480156104b357600080fd5b506003546104c7906001600160a01b031681565b6040516001600160a01b03909116815260200161027d565b3480156104eb57600080fd5b5061024a611ba5565b34801561050057600080fd5b506102db61050f366004614d6e565b611bdf565b34801561052057600080fd5b5061030961052f366004614cfd565b611bec565b34801561054057600080fd5b5061027161054f366004614ae6565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561058657600080fd5b506102db600081565b34801561059b57600080fd5b506102db6105aa366004614d6e565b611d0b565b3480156105bb57600080fd5b506102db6105ca3660046149c0565b611d18565b61024a6105dd366004614ba3565b611e6d565b3480156105ee57600080fd5b506102a66105fd36600461482b565b61220a565b34801561060e57600080fd5b506002546104c7906001600160a01b031681565b34801561062e57600080fd5b5061030961063d366004614c08565b61249e565b34801561064e57600080fd5b5061024a61065d366004614ae6565b6124b8565b34801561066e57600080fd5b506102a661067d366004614a1d565b6124de565b34801561068e57600080fd5b506106a261069d366004614945565b6125dd565b6040805193845260208401929092529082015260600161027d565b6106a26106cb3660046149c0565b6126fd565b6103096106de366004614ba3565b612949565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061074657507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b90505b919050565b600080610759612d29565b824281101561079d5760405162461bcd60e51b815260206004820152601a602482015260008051602061500383398151915260448201526064015b60405180910390fd5b6003546107b9908a906001600160a01b03168a8a8a308a61220a565b90935091506107c9898685612d7e565b600354604051632e1a7d4d60e01b8152600481018490526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561080f57600080fd5b505af1158015610823573d6000803e3d6000fd5b505050506108318583612ed4565b50965096945050505050565b600061084a848484612fb7565b949350505050565b606061085c612d29565b814281101561089b5760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b6003546001600160a01b031686866108b4600182614f3e565b8181106108d157634e487b7160e01b600052603260045260246000fd5b90506020020160208101906108e691906147f3565b6001600160a01b03161461093c5760405162461bcd60e51b815260206004820152601f60248201527f4b616c6569646f53776170526f757465723a20494e56414c49445f50415448006044820152606401610794565b6002546040805160208089028281018201909352888252610986936001600160a01b0316928c92918b918b918291908501908490808284376000920191909152506130ea92505050565b91508682600184516109989190614f3e565b815181106109b657634e487b7160e01b600052603260045260246000fd5b60200260200101511015610a225760405162461bcd60e51b815260206004820152602d60248201527f4b616c6569646f53776170526f757465723a20494e53554646494349454e545f60448201526c13d55514155517d05353d55395609a1b6064820152608401610794565b610b0a86866000818110610a4657634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610a5b91906147f3565b6002543390610adc906001600160a01b03168a8a600081610a8c57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610aa191906147f3565b8b8b6001818110610ac257634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610ad791906147f3565b6132c9565b85600081518110610afd57634e487b7160e01b600052603260045260246000fd5b60200260200101516133ba565b610b4982878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250613519915050565b60035482516001600160a01b0390911690632e1a7d4d908490610b6e90600190614f3e565b81518110610b8c57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401610bb291815260200190565b600060405180830381600087803b158015610bcc57600080fd5b505af1158015610be0573d6000803e3d6000fd5b50505050610c22848360018551610bf79190614f3e565b81518110610c1557634e487b7160e01b600052603260045260246000fd5b6020026020010151612ed4565b509695505050505050565b600254606090610c47906001600160a01b03168484613738565b9392505050565b600080610c59612d29565b600254600090610c73906001600160a01b03168f8f6132c9565b9050600087610c82578c610c86565b6000195b60405163d505accf60e01b815233600482015230602482015260448101829052606481018b905260ff8916608482015260a4810188905260c481018790529091506001600160a01b0383169063d505accf9060e401600060405180830381600087803b158015610cf557600080fd5b505af1158015610d09573d6000803e3d6000fd5b50505050610d1c8f8f8f8f8f8f8f61220a565b809450819550505050509b509b9950505050505050505050565b60008281526001602081905260409091200154610d528161390d565b610d5c8383613917565b505050565b6001600160a01b0381163314610ddf5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610794565b610de9828261399e565b5050565b6060610df7612d29565b8142811015610e365760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b6002546040805160208089028281018201909352888252610e80936001600160a01b0316928c92918b918b918291908501908490808284376000920191909152506130ea92505050565b9150868260018451610e929190614f3e565b81518110610eb057634e487b7160e01b600052603260045260246000fd5b60200260200101511015610f1c5760405162461bcd60e51b815260206004820152602d60248201527f4b616c6569646f53776170526f757465723a20494e53554646494349454e545f60448201526c13d55514155517d05353d55395609a1b6064820152608401610794565b610f4086866000818110610a4657634e487b7160e01b600052603260045260246000fd5b610c2282878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613519915050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610fa98161390d565b610fb1613a21565b610fb9613a73565b50565b6060610fc6612d29565b81428110156110055760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b6003546001600160a01b0316868661101e600182614f3e565b81811061103b57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061105091906147f3565b6001600160a01b0316146110a65760405162461bcd60e51b815260206004820152601f60248201527f4b616c6569646f53776170526f757465723a20494e56414c49445f50415448006044820152606401610794565b60025460408051602080890282810182019093528882526110f0936001600160a01b0316928c92918b918b9182919085019084908082843760009201919091525061373892505050565b9150868260008151811061111457634e487b7160e01b600052603260045260246000fd5b60200260200101511115610a225760405162461bcd60e51b815260206004820152602960248201527f4b616c6569646f53776170526f757465723a204558434553534956455f494e50604482015268155517d05353d5539560ba1b6064820152608401610794565b6000611186612d29565b6002546003546000916111a7916001600160a01b03918216918f91166132c9565b90506000866111b6578b6111ba565b6000195b60405163d505accf60e01b815233600482015230602482015260448101829052606481018a905260ff8816608482015260a4810187905260c481018690529091506001600160a01b0383169063d505accf9060e401600060405180830381600087803b15801561122957600080fd5b505af115801561123d573d6000803e3d6000fd5b5050505061124f8d8d8d8d8d8d611d18565b9d9c50505050505050505050505050565b611268612d29565b80428110156112a75760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b61134d858560008181106112cb57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906112e091906147f3565b6002543390611347906001600160a01b0316898960008161131157634e487b7160e01b600052603260045260246000fd5b905060200201602081019061132691906147f3565b8a8a6001818110610ac257634e487b7160e01b600052603260045260246000fd5b8a6133ba565b6000858561135c600182614f3e565b81811061137957634e487b7160e01b600052603260045260246000fd5b905060200201602081019061138e91906147f3565b6040516370a0823160e01b81526001600160a01b03868116600483015291909116906370a082319060240160206040518083038186803b1580156113d157600080fd5b505afa1580156113e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114099190614b8b565b9050611449868680806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250889250613ac5915050565b8661150f82888861145b600182614f3e565b81811061147857634e487b7160e01b600052603260045260246000fd5b905060200201602081019061148d91906147f3565b6040516370a0823160e01b81526001600160a01b03898116600483015291909116906370a08231906024015b60206040518083038186803b1580156114d157600080fd5b505afa1580156114e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115099190614b8b565b90613d90565b10156115735760405162461bcd60e51b815260206004820152602d60248201527f4b616c6569646f53776170526f757465723a20494e53554646494349454e545f60448201526c13d55514155517d05353d55395609a1b6064820152608401610794565b5050505050505050565b611585612d29565b80428110156115c45760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b6003546001600160a01b031685856115dd600182614f3e565b8181106115fa57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061160f91906147f3565b6001600160a01b0316146116655760405162461bcd60e51b815260206004820152601f60248201527f4b616c6569646f53776170526f757465723a20494e56414c49445f50415448006044820152606401610794565b611689858560008181106112cb57634e487b7160e01b600052603260045260246000fd5b6116c7858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250613ac5915050565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561170b57600080fd5b505afa15801561171f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117439190614b8b565b9050868110156117ab5760405162461bcd60e51b815260206004820152602d60248201527f4b616c6569646f53776170526f757465723a20494e53554646494349454e545f60448201526c13d55514155517d05353d55395609a1b6064820152608401610794565b600354604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b1580156117f157600080fd5b505af1158015611805573d6000803e3d6000fd5b505050506115738482612ed4565b606061181d612d29565b814281101561185c5760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b6003546001600160a01b0316868660008161188757634e487b7160e01b600052603260045260246000fd5b905060200201602081019061189c91906147f3565b6001600160a01b0316146118f25760405162461bcd60e51b815260206004820152601f60248201527f4b616c6569646f53776170526f757465723a20494e56414c49445f50415448006044820152606401610794565b600254604080516020808902828101820190935288825261193c936001600160a01b0316923492918b918b918291908501908490808284376000920191909152506130ea92505050565b915086826001845161194e9190614f3e565b8151811061196c57634e487b7160e01b600052603260045260246000fd5b602002602001015110156119d85760405162461bcd60e51b815260206004820152602d60248201527f4b616c6569646f53776170526f757465723a20494e53554646494349454e545f60448201526c13d55514155517d05353d55395609a1b6064820152608401610794565b60035482516001600160a01b039091169063d0e30db0908490600090611a0e57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015611a4157600080fd5b505af1158015611a55573d6000803e3d6000fd5b50506003546002546001600160a01b03918216945063a9059cbb9350611a96925016898960008161131157634e487b7160e01b600052603260045260246000fd5b84600081518110611ab757634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b8152600401611af09291906001600160a01b03929092168252602082015260400190565b602060405180830381600087803b158015611b0a57600080fd5b505af1158015611b1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b429190614ab2565b611b5c57634e487b7160e01b600052600160045260246000fd5b611b9b82878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613519915050565b5095945050505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611bcf8161390d565b611bd7612d29565b610fb9613d9c565b600061084a848484613dd9565b6060611bf6612d29565b8142811015611c355760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b6002546040805160208089028281018201909352888252611c7f936001600160a01b0316928c92918b918b9182919085019084908082843760009201919091525061373892505050565b91508682600081518110611ca357634e487b7160e01b600052603260045260246000fd5b60200260200101511115610f1c5760405162461bcd60e51b815260206004820152602960248201527f4b616c6569646f53776170526f757465723a204558434553534956455f494e50604482015268155517d05353d5539560ba1b6064820152608401610794565b600061084a848484613f06565b6000611d22612d29565b8142811015611d615760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b600354611d7d9089906001600160a01b0316898989308961220a565b6040516370a0823160e01b8152306004820152909350611e059150899086906001600160a01b038316906370a082319060240160206040518083038186803b158015611dc857600080fd5b505afa158015611ddc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e009190614b8b565b612d7e565b600354604051632e1a7d4d60e01b8152600481018490526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b158015611e4b57600080fd5b505af1158015611e5f573d6000803e3d6000fd5b50505050610c228483612ed4565b611e75612d29565b8042811015611eb45760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b6003546001600160a01b03168585600081611edf57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611ef491906147f3565b6001600160a01b031614611f4a5760405162461bcd60e51b815260206004820152601f60248201527f4b616c6569646f53776170526f757465723a20494e56414c49445f50415448006044820152606401610794565b600354604080517fd0e30db0000000000000000000000000000000000000000000000000000000008152905134926001600160a01b03169163d0e30db091849160048082019260009290919082900301818588803b158015611fab57600080fd5b505af1158015611fbf573d6000803e3d6000fd5b50506003546002546001600160a01b03918216945063a9059cbb9350612000925016898960008161131157634e487b7160e01b600052603260045260246000fd5b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b15801561204857600080fd5b505af115801561205c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120809190614ab2565b61209a57634e487b7160e01b600052600160045260246000fd5b600086866120a9600182614f3e565b8181106120c657634e487b7160e01b600052603260045260246000fd5b90506020020160208101906120db91906147f3565b6040516370a0823160e01b81526001600160a01b03878116600483015291909116906370a082319060240160206040518083038186803b15801561211e57600080fd5b505afa158015612132573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121569190614b8b565b9050612196878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613ac5915050565b8761150f8289896121a8600182614f3e565b8181106121c557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906121da91906147f3565b6040516370a0823160e01b81526001600160a01b038a8116600483015291909116906370a08231906024016114b9565b600080612215612d29565b82428110156122545760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b60025460009061226e906001600160a01b03168c8c6132c9565b6040516323b872dd60e01b81523360048201526001600160a01b03821660248201819052604482018c90529192506323b872dd90606401602060405180830381600087803b1580156122bf57600080fd5b505af11580156122d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122f79190614ab2565b506040517f89afcb440000000000000000000000000000000000000000000000000000000081526001600160a01b03878116600483015260009182918416906389afcb44906024016040805180830381600087803b15801561235857600080fd5b505af115801561236c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123909190614cda565b9150915060006123a08e8e614001565b509050806001600160a01b03168e6001600160a01b0316146123c35781836123c6565b82825b90975095508a87101561242c5760405162461bcd60e51b815260206004820152602860248201527f4b616c6569646f53776170526f757465723a20494e53554646494349454e545f6044820152671057d05353d5539560c21b6064820152608401610794565b8986101561248d5760405162461bcd60e51b815260206004820152602860248201527f4b616c6569646f53776170526f757465723a20494e53554646494349454e545f6044820152671097d05353d5539560c21b6064820152608401610794565b505050505097509795505050505050565b600254606090610c47906001600160a01b031684846130ea565b600082815260016020819052604090912001546124d48161390d565b610d5c838361399e565b6000806124e9612d29565b6000612520600260009054906101000a90046001600160a01b03168e600360009054906101000a90046001600160a01b03166132c9565b905060008761252f578c612533565b6000195b60405163d505accf60e01b815233600482015230602482015260448101829052606481018b905260ff8916608482015260a4810188905260c481018790529091506001600160a01b0383169063d505accf9060e401600060405180830381600087803b1580156125a257600080fd5b505af11580156125b6573d6000803e3d6000fd5b505050506125c88e8e8e8e8e8e61074e565b909f909e509c50505050505050505050505050565b60008060006125ea612d29565b83428110156126295760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b6126378c8c8c8c8c8c614111565b6002549195509350600090612656906001600160a01b03168e8e6132c9565b90506126648d3383886133ba565b6126708c3383876133ba565b6040516335313c2160e11b81526001600160a01b038881166004830152821690636a62784290602401602060405180830381600087803b1580156126b357600080fd5b505af11580156126c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126eb9190614b8b565b92505050985098509895505050505050565b600080600061270a612d29565b83428110156127495760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b600354612764908b906001600160a01b03168b348c8c614111565b60025460035492965090945060009161278b916001600160a01b03908116918e91166132c9565b90506127998b3383886133ba565b600360009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b1580156127e957600080fd5b505af11580156127fd573d6000803e3d6000fd5b505060035460405163a9059cbb60e01b81526001600160a01b038681166004830152602482018a9052909116935063a9059cbb92506044019050602060405180830381600087803b15801561285157600080fd5b505af1158015612865573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128899190614ab2565b6128a357634e487b7160e01b600052600160045260246000fd5b6040516335313c2160e11b81526001600160a01b038881166004830152821690636a62784290602401602060405180830381600087803b1580156128e657600080fd5b505af11580156128fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061291e9190614b8b565b92508334111561293b5761293b336129368634614f3e565b612ed4565b505096509650969350505050565b6060612953612d29565b81428110156129925760405162461bcd60e51b815260206004820152601a60248201526000805160206150038339815191526044820152606401610794565b6003546001600160a01b031686866000816129bd57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906129d291906147f3565b6001600160a01b031614612a285760405162461bcd60e51b815260206004820152601f60248201527f4b616c6569646f53776170526f757465723a20494e56414c49445f50415448006044820152606401610794565b6002546040805160208089028281018201909352888252612a72936001600160a01b0316928b92918b918b9182919085019084908082843760009201919091525061373892505050565b91503482600081518110612a9657634e487b7160e01b600052603260045260246000fd5b60200260200101511115612afe5760405162461bcd60e51b815260206004820152602960248201527f4b616c6569646f53776170526f757465723a204558434553534956455f494e50604482015268155517d05353d5539560ba1b6064820152608401610794565b60035482516001600160a01b039091169063d0e30db0908490600090612b3457634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b158015612b6757600080fd5b505af1158015612b7b573d6000803e3d6000fd5b50506003546002546001600160a01b03918216945063a9059cbb9350612bbc925016898960008161131157634e487b7160e01b600052603260045260246000fd5b84600081518110612bdd57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b8152600401612c169291906001600160a01b03929092168252602082015260400190565b602060405180830381600087803b158015612c3057600080fd5b505af1158015612c44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c689190614ab2565b612c8257634e487b7160e01b600052600160045260246000fd5b612cc182878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613519915050565b81600081518110612ce257634e487b7160e01b600052603260045260246000fd5b6020026020010151341115611b9b57611b9b3383600081518110612d1657634e487b7160e01b600052603260045260246000fd5b6020026020010151346129369190614f3e565b60005460ff1615612d7c5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610794565b565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b1790529151600092839290871691612def9190614dc5565b6000604051808303816000865af19150503d8060008114612e2c576040519150601f19603f3d011682016040523d82523d6000602084013e612e31565b606091505b5091509150818015612e5b575080511580612e5b575080806020019051810190612e5b9190614ab2565b612ecd5760405162461bcd60e51b815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201527f616e73666572206661696c6564000000000000000000000000000000000000006064820152608401610794565b5050505050565b604080516000808252602082019092526001600160a01b038416908390604051612efe9190614dc5565b60006040518083038185875af1925050503d8060008114612f3b576040519150601f19603f3d011682016040523d82523d6000602084013e612f40565b606091505b5050905080610d5c5760405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527f20455448207472616e73666572206661696c65640000000000000000000000006064820152608401610794565b600080841161302e5760405162461bcd60e51b815260206004820152602d60248201527f4b616c6569646f537761704c6962726172793a20494e53554646494349454e5460448201527f5f494e5055545f414d4f554e54000000000000000000000000000000000000006064820152608401610794565b60008311801561303e5750600082115b61309d5760405162461bcd60e51b815260206004820152602a60248201527f4b616c6569646f537761704c6962726172793a20494e53554646494349454e546044820152695f4c495155494449545960b01b6064820152608401610794565b60006130ab856103e56143ca565b905060006130b982856143ca565b905060006130d3836130cd886103e86143ca565b906143d6565b90506130df8183614eff565b979650505050505050565b606060028251101561313e5760405162461bcd60e51b815260206004820181905260248201527f4b616c6569646f537761704c6962726172793a20494e56414c49445f504154486044820152606401610794565b815167ffffffffffffffff81111561316657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561318f578160200160208202803683370190505b50905082816000815181106131b457634e487b7160e01b600052603260045260246000fd5b60200260200101818152505060005b600183516131d19190614f3e565b8110156132c157600080613240878685815181106131ff57634e487b7160e01b600052603260045260246000fd5b6020026020010151878660016132159190614ee7565b8151811061323357634e487b7160e01b600052603260045260246000fd5b60200260200101516143e2565b9150915061327684848151811061326757634e487b7160e01b600052603260045260246000fd5b60200260200101518383612fb7565b84613282856001614ee7565b815181106132a057634e487b7160e01b600052603260045260246000fd5b602002602001018181525050505080806132b990614f98565b9150506131c3565b509392505050565b60008060006132d88585614001565b6040516bffffffffffffffffffffffff19606084811b8216602084015283901b16603482015291935091508690604801604051602081830303815290604052805190602001206040516020016133989291907fff00000000000000000000000000000000000000000000000000000000000000815260609290921b6bffffffffffffffffffffffff1916600183015260158201527f7ee72bf2f94f8e661c787966094fee4a4c0baa28c4df634df718fac87fd1d599603582015260550190565b60408051601f1981840301815291905280516020909101209695505050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b17905291516000928392908816916134339190614dc5565b6000604051808303816000865af19150503d8060008114613470576040519150601f19603f3d011682016040523d82523d6000602084013e613475565b606091505b509150915081801561349f57508051158061349f57508080602001905181019061349f9190614ab2565b6135115760405162461bcd60e51b815260206004820152603160248201527f5472616e7366657248656c7065723a3a7472616e7366657246726f6d3a20747260448201527f616e7366657246726f6d206661696c65640000000000000000000000000000006064820152608401610794565b505050505050565b60005b6001835161352a9190614f3e565b8110156137325760008084838151811061355457634e487b7160e01b600052603260045260246000fd5b60200260200101518584600161356a9190614ee7565b8151811061358857634e487b7160e01b600052603260045260246000fd5b60200260200101519150915060006135a08383614001565b5090506000876135b1866001614ee7565b815181106135cf57634e487b7160e01b600052603260045260246000fd5b60200260200101519050600080836001600160a01b0316866001600160a01b0316146135fd57826000613601565b6000835b91509150600060028a516136159190614f3e565b8810613621578861366f565b6002805461366f916001600160a01b039091169088908d90613644908d90614ee7565b8151811061366257634e487b7160e01b600052603260045260246000fd5b60200260200101516132c9565b600254909150613689906001600160a01b031688886132c9565b6001600160a01b031663022c0d9f84848460006040519080825280601f01601f1916602001820160405280156136c6576020820181803683370190505b506040518563ffffffff1660e01b81526004016136e69493929190614eb9565b600060405180830381600087803b15801561370057600080fd5b505af1158015613714573d6000803e3d6000fd5b5050505050505050505050808061372a90614f98565b91505061351c565b50505050565b606060028251101561378c5760405162461bcd60e51b815260206004820181905260248201527f4b616c6569646f537761704c6962726172793a20494e56414c49445f504154486044820152606401610794565b815167ffffffffffffffff8111156137b457634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156137dd578160200160208202803683370190505b5090508281600183516137f09190614f3e565b8151811061380e57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505060006001835161382a9190614f3e565b90505b80156132c15760008061388c8786613846600187614f3e565b8151811061386457634e487b7160e01b600052603260045260246000fd5b602002602001015187868151811061323357634e487b7160e01b600052603260045260246000fd5b915091506138c28484815181106138b357634e487b7160e01b600052603260045260246000fd5b60200260200101518383613dd9565b846138ce600186614f3e565b815181106138ec57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505050808061390590614f81565b91505061382d565b610fb981336144c9565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16610de95760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff1615610de95760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60005460ff16612d7c5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610794565b613a7b613a21565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60005b60018351613ad69190614f3e565b811015610d5c57600080848381518110613b0057634e487b7160e01b600052603260045260246000fd5b602002602001015185846001613b169190614ee7565b81518110613b3457634e487b7160e01b600052603260045260246000fd5b6020026020010151915091506000613b4c8383614001565b50600254909150600090613b6a906001600160a01b031685856132c9565b9050600080600080846001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015613bab57600080fd5b505afa158015613bbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613be39190614b3d565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff169150600080876001600160a01b03168a6001600160a01b031614613c2b578284613c2e565b83835b6040516370a0823160e01b81526001600160a01b038a81166004830152929450909250613c69918491908d16906370a08231906024016114b9565b9550613c76868383612fb7565b945050505050600080856001600160a01b0316886001600160a01b031614613ca057826000613ca4565b6000835b91509150600060028c51613cb89190614f3e565b8a10613cc4578a613ce7565b60028054613ce7916001600160a01b03909116908a908f90613644908f90614ee7565b604080516000815260208101918290527f022c0d9f000000000000000000000000000000000000000000000000000000009091529091506001600160a01b0387169063022c0d9f90613d429086908690869060248101614eb9565b600060405180830381600087803b158015613d5c57600080fd5b505af1158015613d70573d6000803e3d6000fd5b505050505050505050505050508080613d8890614f98565b915050613ac8565b6000610c478284614f3e565b613da4612d29565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613aa83390565b6000808411613e505760405162461bcd60e51b815260206004820152602e60248201527f4b616c6569646f537761704c6962726172793a20494e53554646494349454e5460448201527f5f4f55545055545f414d4f554e540000000000000000000000000000000000006064820152608401610794565b600083118015613e605750600082115b613ebf5760405162461bcd60e51b815260206004820152602a60248201527f4b616c6569646f537761704c6962726172793a20494e53554646494349454e546044820152695f4c495155494449545960b01b6064820152608401610794565b6000613ed76103e8613ed186886143ca565b906143ca565b90506000613eeb6103e5613ed18689613d90565b9050613efc60016130cd8385614eff565b9695505050505050565b6000808411613f7d5760405162461bcd60e51b815260206004820152602760248201527f4b616c6569646f537761704c6962726172793a20494e53554646494349454e5460448201527f5f414d4f554e54000000000000000000000000000000000000000000000000006064820152608401610794565b600083118015613f8d5750600082115b613fec5760405162461bcd60e51b815260206004820152602a60248201527f4b616c6569646f537761704c6962726172793a20494e53554646494349454e546044820152695f4c495155494449545960b01b6064820152608401610794565b82613ff785846143ca565b61084a9190614eff565b600080826001600160a01b0316846001600160a01b0316141561408c5760405162461bcd60e51b815260206004820152602760248201527f4b616c6569646f537761704c6962726172793a204944454e544943414c5f414460448201527f44524553534553000000000000000000000000000000000000000000000000006064820152608401610794565b826001600160a01b0316846001600160a01b0316106140ac5782846140af565b83835b90925090506001600160a01b03821661410a5760405162461bcd60e51b815260206004820181905260248201527f4b616c6569646f537761704c6962726172793a205a45524f5f414444524553536044820152606401610794565b9250929050565b6002546040517fe6a439050000000000000000000000000000000000000000000000000000000081526001600160a01b0388811660048301528781166024830152600092839283929091169063e6a439059060440160206040518083038186803b15801561417e57600080fd5b505afa158015614192573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141b6919061480f565b6001600160a01b03161415614267576002546040517fc9c653960000000000000000000000000000000000000000000000000000000081526001600160a01b038a8116600483015289811660248301529091169063c9c6539690604401602060405180830381600087803b15801561422d57600080fd5b505af1158015614241573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614265919061480f565b505b6002546000908190614283906001600160a01b03168b8b6143e2565b91509150816000148015614295575080155b156142a5578793508692506143bd565b60006142b2898484613f06565b9050878111614327578581101561431c5760405162461bcd60e51b815260206004820152602860248201527f4b616c6569646f53776170526f757465723a20494e53554646494349454e545f6044820152671097d05353d5539560c21b6064820152608401610794565b8894509250826143bb565b6000614334898486613f06565b90508981111561435457634e487b7160e01b600052600160045260246000fd5b878110156143b55760405162461bcd60e51b815260206004820152602860248201527f4b616c6569646f53776170526f757465723a20494e53554646494349454e545f6044820152671057d05353d5539560c21b6064820152608401610794565b94508793505b505b5050965096945050505050565b6000610c478284614f1f565b6000610c478284614ee7565b60008060006143f18585614001565b5090506000806144028888886132c9565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561443a57600080fd5b505afa15801561444e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144729190614b3d565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff169150826001600160a01b0316876001600160a01b0316146144b75780826144ba565b81815b90999098509650505050505050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16610de9576144fc8161453e565b614507836020614550565b604051602001614518929190614de1565b60408051601f198184030181529082905262461bcd60e51b825261079491600401614ea6565b60606107466001600160a01b03831660145b6060600061455f836002614f1f565b61456a906002614ee7565b67ffffffffffffffff81111561459057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156145ba576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106145ff57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061465857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061467c846002614f1f565b614687906001614ee7565b90505b6001811115614728577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106146d657634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106146fa57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361472181614f81565b905061468a565b508315610c475760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610794565b803561074981614fdf565b60008083601f840112614793578081fd5b50813567ffffffffffffffff8111156147aa578182fd5b602083019150836020808302850101111561410a57600080fd5b80516dffffffffffffffffffffffffffff8116811461074957600080fd5b803560ff8116811461074957600080fd5b600060208284031215614804578081fd5b8135610c4781614fdf565b600060208284031215614820578081fd5b8151610c4781614fdf565b600080600080600080600060e0888a031215614845578283fd5b873561485081614fdf565b9650602088013561486081614fdf565b955060408801359450606088013593506080880135925060a088013561488581614fdf565b8092505060c0880135905092959891949750929550565b60008060008060008060008060008060006101608c8e0312156148bd578384fd5b8b356148c881614fdf565b9a5060208c01356148d881614fdf565b995060408c0135985060608c0135975060808c0135965060a08c01356148fd81614fdf565b955060c08c0135945060e08c013561491481614ff4565b93506149236101008d016147e2565b92506101208c013591506101408c013590509295989b509295989b9093969950565b600080600080600080600080610100898b031215614961578384fd5b883561496c81614fdf565b9750602089013561497c81614fdf565b965060408901359550606089013594506080890135935060a0890135925060c08901356149a881614fdf565b8092505060e089013590509295985092959890939650565b60008060008060008060c087890312156149d8578182fd5b86356149e381614fdf565b95506020870135945060408701359350606087013592506080870135614a0881614fdf565b8092505060a087013590509295509295509295565b6000806000806000806000806000806101408b8d031215614a3c578384fd5b8a35614a4781614fdf565b995060208b0135985060408b0135975060608b0135965060808b0135614a6c81614fdf565b955060a08b0135945060c08b0135614a8381614ff4565b9350614a9160e08c016147e2565b92506101008b013591506101208b013590509295989b9194979a5092959850565b600060208284031215614ac3578081fd5b8151610c4781614ff4565b600060208284031215614adf578081fd5b5035919050565b60008060408385031215614af8578182fd5b823591506020830135614b0a81614fdf565b809150509250929050565b600060208284031215614b26578081fd5b81356001600160e01b031981168114610c47578182fd5b600080600060608486031215614b51578081fd5b614b5a846147c4565b9250614b68602085016147c4565b9150604084015163ffffffff81168114614b80578182fd5b809150509250925092565b600060208284031215614b9c578081fd5b5051919050565b600080600080600060808688031215614bba578283fd5b85359450602086013567ffffffffffffffff811115614bd7578384fd5b614be388828901614782565b9095509350506040860135614bf781614fdf565b949793965091946060013592915050565b60008060408385031215614c1a578182fd5b8235915060208084013567ffffffffffffffff80821115614c39578384fd5b818601915086601f830112614c4c578384fd5b813581811115614c5e57614c5e614fc9565b838102604051601f19603f83011681018181108582111715614c8257614c82614fc9565b604052828152858101935084860182860187018b1015614ca0578788fd5b8795505b83861015614cc957614cb581614777565b855260019590950194938601938601614ca4565b508096505050505050509250929050565b60008060408385031215614cec578182fd5b505080516020909101519092909150565b60008060008060008060a08789031215614d15578384fd5b8635955060208701359450604087013567ffffffffffffffff811115614d39578485fd5b614d4589828a01614782565b9095509350506060870135614d5981614fdf565b80925050608087013590509295509295509295565b600080600060608486031215614d82578081fd5b505081359360208301359350604090920135919050565b60008151808452614db1816020860160208601614f55565b601f01601f19169290920160200192915050565b60008251614dd7818460208701614f55565b9190910192915050565b60007f416363657373436f6e74726f6c3a206163636f756e742000000000000000000082528351614e19816017850160208801614f55565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351614e56816028840160208801614f55565b01602801949350505050565b6020808252825182820181905260009190848201906040850190845b81811015614e9a57835183529284019291840191600101614e7e565b50909695505050505050565b600060208252610c476020830184614d99565b60008582528460208301526001600160a01b038416604083015260806060830152613efc6080830184614d99565b60008219821115614efa57614efa614fb3565b500190565b600082614f1a57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615614f3957614f39614fb3565b500290565b600082821015614f5057614f50614fb3565b500390565b60005b83811015614f70578181015183820152602001614f58565b838111156137325750506000910152565b600081614f9057614f90614fb3565b506000190190565b6000600019821415614fac57614fac614fb3565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610fb957600080fd5b8015158114610fb957600080fdfe4b616c6569646f53776170526f757465723a2045585049524544000000000000a2646970667358221220a9ee4e535b57cb52f083b49b6a90a6a9511a15574fdfda5c53bfd68bd416a7b964736f6c63430008020033