More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 186,564 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Multicall | 13492943 | 20 mins ago | IN | 0.00129517 ETH | 0.00009469 | ||||
Multicall | 13492758 | 26 mins ago | IN | 0 ETH | 0.00002959 | ||||
Multicall | 13492469 | 36 mins ago | IN | 0 ETH | 0.0000764 | ||||
Multicall | 13492181 | 46 mins ago | IN | 0 ETH | 0.00001332 | ||||
Multicall | 13491452 | 1 hr ago | IN | 0 ETH | 0.00001355 | ||||
Multicall | 13491437 | 1 hr ago | IN | 0 ETH | 0.00005228 | ||||
Multicall | 13491354 | 1 hr ago | IN | 0.00019935 ETH | 0.00008571 | ||||
Multicall | 13491185 | 1 hr ago | IN | 0.06182152 ETH | 0.00001902 | ||||
Multicall | 13490500 | 1 hr ago | IN | 0 ETH | 0.00005612 | ||||
Multicall | 13490338 | 1 hr ago | IN | 0 ETH | 0.00005721 | ||||
Multicall | 13487737 | 3 hrs ago | IN | 0 ETH | 0.00007106 | ||||
Burn | 13487689 | 3 hrs ago | IN | 0 ETH | 0.00002491 | ||||
Burn | 13475033 | 10 hrs ago | IN | 0 ETH | 0.00001602 | ||||
Burn | 13475027 | 10 hrs ago | IN | 0 ETH | 0.00001723 | ||||
Mint | 13475006 | 10 hrs ago | IN | 0 ETH | 0.00009086 | ||||
Multicall | 13474900 | 10 hrs ago | IN | 0 ETH | 0.0000579 | ||||
Multicall | 13473208 | 11 hrs ago | IN | 0 ETH | 0.00004481 | ||||
Set Approval For... | 13471493 | 12 hrs ago | IN | 0 ETH | 0.00000678 | ||||
Multicall | 13470989 | 12 hrs ago | IN | 0.00787682 ETH | 0.00010709 | ||||
Multicall | 13470212 | 13 hrs ago | IN | 0 ETH | 0.00001052 | ||||
Multicall | 13469917 | 13 hrs ago | IN | 0.00474017 ETH | 0.00009483 | ||||
Multicall | 13469815 | 13 hrs ago | IN | 0.000052 ETH | 0.00009263 | ||||
Multicall | 13469323 | 13 hrs ago | IN | 0 ETH | 0.00001905 | ||||
Multicall | 13468955 | 13 hrs ago | IN | 0.00599957 ETH | 0.00007595 | ||||
Multicall | 13468917 | 13 hrs ago | IN | 0 ETH | 0.00005011 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
13493476 | 2 mins ago | 0 ETH | ||||
13493476 | 2 mins ago | 0 ETH | ||||
13493476 | 2 mins ago | 0 ETH | ||||
13493476 | 2 mins ago | 0 ETH | ||||
13493476 | 2 mins ago | 0 ETH | ||||
13493476 | 2 mins ago | 0 ETH | ||||
13493418 | 4 mins ago | 0 ETH | ||||
13493418 | 4 mins ago | 0 ETH | ||||
13493418 | 4 mins ago | 0 ETH | ||||
13493418 | 4 mins ago | 0 ETH | ||||
13493416 | 4 mins ago | 0 ETH | ||||
13493416 | 4 mins ago | 0 ETH | ||||
13493416 | 4 mins ago | 0 ETH | ||||
13493416 | 4 mins ago | 0 ETH | ||||
13493416 | 4 mins ago | 0 ETH | ||||
13493416 | 4 mins ago | 0 ETH | ||||
13493416 | 4 mins ago | 0 ETH | ||||
13493416 | 4 mins ago | 0 ETH | ||||
13493416 | 4 mins ago | 0 ETH | ||||
13493416 | 4 mins ago | 0 ETH | ||||
13493416 | 4 mins ago | 0 ETH | ||||
13493416 | 4 mins ago | 0 ETH | ||||
13493416 | 4 mins ago | 0 ETH | ||||
13493416 | 4 mins ago | 0 ETH | ||||
13493416 | 4 mins ago | 0 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
LiquidityManager
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/** *Submitted for verification at lineascan.build/ on 2023-11-01 */ // SPDX-License-Identifier: BUSL-1.1 // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/utils/introspection/[email protected] // 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/token/ERC721/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File @openzeppelin/contracts/token/ERC721/[email protected] // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File @openzeppelin/contracts/utils/introspection/[email protected] // 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] // 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] // 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] // 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/token/ERC721/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev See {ERC721-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual override { super._beforeTokenTransfer(from, to, firstTokenId, batchSize); if (batchSize > 1) { // Will only trigger during construction. Batch transferring (minting) is not available afterwards. revert("ERC721Enumerable: consecutive transfers not supported"); } uint256 tokenId = firstTokenId; if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } // File @openzeppelin/contracts/token/ERC20/[email protected] // 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/core/interfaces/IiZiSwapFactory.sol pragma solidity ^0.8.4; interface IiZiSwapFactory { /// @notice emit when successfuly create a new pool (calling iZiSwapFactory#newPool) /// @param tokenX address of erc-20 tokenX /// @param tokenY address of erc-20 tokenY /// @param fee fee amount of swap (3000 means 0.3%) /// @param pointDelta minimum number of distance between initialized or limitorder points /// @param pool address of swap pool event NewPool( address indexed tokenX, address indexed tokenY, uint24 indexed fee, uint24 pointDelta, address pool ); /// @notice module to support swap from tokenX to tokenY /// @return swapX2YModule address function swapX2YModule() external returns (address); /// @notice module to support swap from tokenY to tokenX /// @return swapY2XModule address function swapY2XModule() external returns (address); /// @notice module to support mint/burn/collect function of pool /// @return liquidityModule address function liquidityModule() external returns (address); /// @notice address of module for user to manage limit orders /// @return limitOrderModule address function limitOrderModule() external returns (address); /// @notice address of module for flash loan /// @return flashModule address function flashModule() external returns (address); /// @notice default fee rate from miner's fee gain /// @return defaultFeeChargePercent default fee rate * 100 function defaultFeeChargePercent() external returns (uint24); /// @notice Enables a fee amount with the given pointDelta /// @dev Fee amounts may never be removed once enabled /// @param fee fee amount (3000 means 0.3%) /// @param pointDelta The spacing between points to be enforced for all pools created with the given fee amount function enableFeeAmount(uint24 fee, uint24 pointDelta) external; /// @notice Create a new pool which not exists. /// @param tokenX address of tokenX /// @param tokenY address of tokenY /// @param fee fee amount /// @param currentPoint initial point (log 1.0001 of price) /// @return address of newly created pool function newPool( address tokenX, address tokenY, uint24 fee, int24 currentPoint ) external returns (address); /// @notice Charge receiver of all pools. /// @return address of charge receiver function chargeReceiver() external view returns(address); /// @notice Get pool of (tokenX, tokenY, fee), address(0) for not exists. /// @param tokenX address of tokenX /// @param tokenY address of tokenY /// @param fee fee amount /// @return address of pool function pool( address tokenX, address tokenY, uint24 fee ) external view returns(address); /// @notice Get point delta of a given fee amount. /// @param fee fee amount /// @return pointDelta the point delta function fee2pointDelta(uint24 fee) external view returns (int24 pointDelta); /// @notice Change charge receiver, only owner of factory can call. /// @param _chargeReceiver address of new receiver function modifyChargeReceiver(address _chargeReceiver) external; /// @notice Change defaultFeeChargePercent /// @param _defaultFeeChargePercent new charge percent function modifyDefaultFeeChargePercent(uint24 _defaultFeeChargePercent) external; function deployPoolParams() external view returns( address tokenX, address tokenY, uint24 fee, int24 currentPoint, int24 pointDelta, uint24 feeChargePercent ); } // File contracts/base/base.sol pragma solidity ^0.8.4; /// @title Interface for WETH9 interface IWETH9 is IERC20 { /// @notice Deposit ether to get wrapped ether function deposit() external payable; /// @notice Withdraw wrapped ether to get ether function withdraw(uint256) external; } abstract contract Base { /// @notice address of iZiSwapFactory address public immutable factory; /// @notice address of weth9 token address public immutable WETH9; modifier checkDeadline(uint256 deadline) { require(block.timestamp <= deadline, 'Out of time'); _; } receive() external payable {} /// @notice Constructor of base. /// @param _factory address of iZiSwapFactory /// @param _WETH9 address of weth9 token constructor(address _factory, address _WETH9) { factory = _factory; WETH9 = _WETH9; } /// @notice Make multiple function calls in this contract in a single transaction /// and return the data for each function call, revert if any function call fails /// @param data The encoded function data for each function call /// @return results result of each function call function multicall(bytes[] calldata data) external payable returns (bytes[] memory results) { results = new bytes[](data.length); for (uint256 i = 0; i < data.length; i++) { (bool success, bytes memory result) = address(this).delegatecall(data[i]); if (!success) { if (result.length < 68) revert(); assembly { result := add(result, 0x04) } revert(abi.decode(result, (string))); } results[i] = result; } } /// @notice Transfer tokens from the targeted address to the given destination /// @notice Errors with 'STF' if transfer fails /// @param token The contract address of the token to be transferred /// @param from The originating address from which the tokens will be transferred /// @param to The destination address of the transfer /// @param value The amount to be transferred function safeTransferFrom( address token, address from, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'STF'); } /// @notice Transfer tokens from msg.sender to a recipient /// @dev Errors with ST if transfer fails /// @param token The contract address of the token which will be transferred /// @param to The recipient of the transfer /// @param value The value of the transfer function safeTransfer( address token, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'ST'); } /// @notice Approve the stipulated contract to spend the given allowance in the given token /// @dev Errors with 'SA' if transfer fails /// @param token The contract address of the token to be approved /// @param to The target of the approval /// @param value The amount of the given token the target will be allowed to spend function safeApprove( address token, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.approve.selector, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'SA'); } /// @notice Transfer ETH to the recipient address /// @dev Fails with `STE` /// @param to The destination of the transfer /// @param value The value to be transferred function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, 'STE'); } /// @notice Withdraw all weth9 token of this contract and send the withdrawed eth to recipient /// usually used in multicall when mint/swap/update limitorder with eth /// normally this contract has no any erc20 token or eth after or before a transaction /// we donot need to worry that some one can steal eth from this contract /// @param minAmount The minimum amount of WETH9 to withdraw /// @param recipient The address to receive all withdrawed eth from this contract function unwrapWETH9(uint256 minAmount, address recipient) external payable { uint256 all = IWETH9(WETH9).balanceOf(address(this)); require(all >= minAmount, 'WETH9 Not Enough'); if (all > 0) { IWETH9(WETH9).withdraw(all); safeTransferETH(recipient, all); } } /// @notice Send all balance of specified token in this contract to recipient /// usually used in multicall when mint/swap/update limitorder with eth /// normally this contract has no any erc20 token or eth after or before a transaction /// we donot need to worry that some one can steal some token from this contract /// @param token address of the token /// @param minAmount balance should >= minAmount /// @param recipient the address to receive specified token from this contract function sweepToken( address token, uint256 minAmount, address recipient ) external payable { uint256 all = IERC20(token).balanceOf(address(this)); require(all >= minAmount, 'WETH9 Not Enough'); if (all > 0) { safeTransfer(token, recipient, all); } } /// @notice Send all balance of eth in this contract to msg.sender /// usually used in multicall when mint/swap/update limitorder with eth /// normally this contract has no any erc20 token or eth after or before a transaction /// we donot need to worry that some one can steal some token from this contract function refundETH() external payable { if (address(this).balance > 0) safeTransferETH(msg.sender, address(this).balance); } /// @param token The token to pay /// @param payer The entity that must pay /// @param recipient The entity that will receive payment /// @param value The amount to pay function pay( address token, address payer, address recipient, uint256 value ) internal { if (token == WETH9 && address(this).balance >= value) { // pay with WETH9 IWETH9(WETH9).deposit{value: value}(); // wrap only what is needed to pay IWETH9(WETH9).transfer(recipient, value); } else if (payer == address(this)) { // pay with tokens already in the contract (for the exact input multihop case) safeTransfer(token, recipient, value); } else { // pull payment safeTransferFrom(token, payer, recipient, value); } } /// @notice Query pool address from factory by (tokenX, tokenY, fee). /// @param tokenX tokenX of swap pool /// @param tokenY tokenY of swap pool /// @param fee fee amount of swap pool function pool(address tokenX, address tokenY, uint24 fee) public view returns(address) { return IiZiSwapFactory(factory).pool(tokenX, tokenY, fee); } function verify(address tokenX, address tokenY, uint24 fee) internal view { require (msg.sender == pool(tokenX, tokenY, fee), "sp"); } } // File contracts/libraries/LogPowMath.sol pragma solidity ^0.8.4; library LogPowMath { int24 internal constant MIN_POINT = -887272; int24 internal constant MAX_POINT = -MIN_POINT; uint160 internal constant MIN_SQRT_PRICE = 4295128739; uint160 internal constant MAX_SQRT_PRICE = 1461446703485210103287273052203988822378723970342; /// @notice sqrt(1.0001^point) in form oy 96-bit fix point num function getSqrtPrice(int24 point) internal pure returns (uint160 sqrtPrice_96) { uint256 absIdx = point < 0 ? uint256(-int256(point)) : uint256(int256(point)); require(absIdx <= uint256(int256(MAX_POINT)), 'T'); uint256 value = absIdx & 0x1 != 0 ? 0xfffcb933bd6fad37aa2d162d1a594001 : 0x100000000000000000000000000000000; if (absIdx & 0x2 != 0) value = (value * 0xfff97272373d413259a46990580e213a) >> 128; if (absIdx & 0x4 != 0) value = (value * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128; if (absIdx & 0x8 != 0) value = (value * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128; if (absIdx & 0x10 != 0) value = (value * 0xffcb9843d60f6159c9db58835c926644) >> 128; if (absIdx & 0x20 != 0) value = (value * 0xff973b41fa98c081472e6896dfb254c0) >> 128; if (absIdx & 0x40 != 0) value = (value * 0xff2ea16466c96a3843ec78b326b52861) >> 128; if (absIdx & 0x80 != 0) value = (value * 0xfe5dee046a99a2a811c461f1969c3053) >> 128; if (absIdx & 0x100 != 0) value = (value * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128; if (absIdx & 0x200 != 0) value = (value * 0xf987a7253ac413176f2b074cf7815e54) >> 128; if (absIdx & 0x400 != 0) value = (value * 0xf3392b0822b70005940c7a398e4b70f3) >> 128; if (absIdx & 0x800 != 0) value = (value * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128; if (absIdx & 0x1000 != 0) value = (value * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128; if (absIdx & 0x2000 != 0) value = (value * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128; if (absIdx & 0x4000 != 0) value = (value * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128; if (absIdx & 0x8000 != 0) value = (value * 0x31be135f97d08fd981231505542fcfa6) >> 128; if (absIdx & 0x10000 != 0) value = (value * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128; if (absIdx & 0x20000 != 0) value = (value * 0x5d6af8dedb81196699c329225ee604) >> 128; if (absIdx & 0x40000 != 0) value = (value * 0x2216e584f5fa1ea926041bedfe98) >> 128; if (absIdx & 0x80000 != 0) value = (value * 0x48a170391f7dc42444e8fa2) >> 128; if (point > 0) value = type(uint256).max / value; sqrtPrice_96 = uint160((value >> 32) + (value % (1 << 32) == 0 ? 0 : 1)); } // floor(log1.0001(sqrtPrice_96)) function getLogSqrtPriceFloor(uint160 sqrtPrice_96) internal pure returns (int24 logValue) { // second inequality must be < because the price can nevex reach the price at the max tick require(sqrtPrice_96 >= MIN_SQRT_PRICE && sqrtPrice_96 < MAX_SQRT_PRICE, 'R'); uint256 sqrtPrice_128 = uint256(sqrtPrice_96) << 32; uint256 x = sqrtPrice_128; uint256 m = 0; assembly { let y := shl(7, gt(x, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF)) m := or(m, y) x := shr(y, x) } assembly { let y := shl(6, gt(x, 0xFFFFFFFFFFFFFFFF)) m := or(m, y) x := shr(y, x) } assembly { let y := shl(5, gt(x, 0xFFFFFFFF)) m := or(m, y) x := shr(y, x) } assembly { let y := shl(4, gt(x, 0xFFFF)) m := or(m, y) x := shr(y, x) } assembly { let y := shl(3, gt(x, 0xFF)) m := or(m, y) x := shr(y, x) } assembly { let y := shl(2, gt(x, 0xF)) m := or(m, y) x := shr(y, x) } assembly { let y := shl(1, gt(x, 0x3)) m := or(m, y) x := shr(y, x) } assembly { let y := gt(x, 0x1) m := or(m, y) } if (m >= 128) x = sqrtPrice_128 >> (m - 127); else x = sqrtPrice_128 << (127 - m); int256 l2 = (int256(m) - 128) << 64; assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(63, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(62, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(61, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(60, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(59, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(58, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(57, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(56, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(55, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(54, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(53, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(52, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(51, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(50, y)) } int256 ls10001 = l2 * 255738958999603826347141; int24 logFloor = int24((ls10001 - 3402992956809132418596140100660247210) >> 128); int24 logUpper = int24((ls10001 + 291339464771989622907027621153398088495) >> 128); logValue = logFloor == logUpper ? logFloor : getSqrtPrice(logUpper) <= sqrtPrice_96 ? logUpper : logFloor; } function getLogSqrtPriceFU(uint160 sqrtPrice_96) internal pure returns (int24 logFloor, int24 logUpper) { // second inequality must be < because the price can nevex reach the price at the max tick require(sqrtPrice_96 >= MIN_SQRT_PRICE && sqrtPrice_96 < MAX_SQRT_PRICE, 'R'); uint256 sqrtPrice_128 = uint256(sqrtPrice_96) << 32; uint256 x = sqrtPrice_128; uint256 m = 0; assembly { let y := shl(7, gt(x, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF)) m := or(m, y) x := shr(y, x) } assembly { let y := shl(6, gt(x, 0xFFFFFFFFFFFFFFFF)) m := or(m, y) x := shr(y, x) } assembly { let y := shl(5, gt(x, 0xFFFFFFFF)) m := or(m, y) x := shr(y, x) } assembly { let y := shl(4, gt(x, 0xFFFF)) m := or(m, y) x := shr(y, x) } assembly { let y := shl(3, gt(x, 0xFF)) m := or(m, y) x := shr(y, x) } assembly { let y := shl(2, gt(x, 0xF)) m := or(m, y) x := shr(y, x) } assembly { let y := shl(1, gt(x, 0x3)) m := or(m, y) x := shr(y, x) } assembly { let y := gt(x, 0x1) m := or(m, y) } if (m >= 128) x = sqrtPrice_128 >> (m - 127); else x = sqrtPrice_128 << (127 - m); int256 l2 = (int256(m) - 128) << 64; assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(63, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(62, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(61, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(60, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(59, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(58, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(57, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(56, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(55, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(54, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(53, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(52, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(51, y)) x := shr(y, x) } assembly { x := shr(127, mul(x, x)) let y := shr(128, x) l2 := or(l2, shl(50, y)) } int256 ls10001 = l2 * 255738958999603826347141; logFloor = int24((ls10001 - 3402992956809132418596140100660247210) >> 128); logUpper = int24((ls10001 + 291339464771989622907027621153398088495) >> 128); } } // File contracts/libraries/MulDivMath.sol pragma solidity ^0.8.4; library MulDivMath { // compute res = floor(a * b / c), assuming res < 2^256 function mulDivFloor( uint256 a, uint256 b, uint256 c ) internal pure returns (uint256 res) { // let prodMod2_256 = a * b % 2^256 uint256 prodMod2_256; // let prodDiv2_256 = a * b / 2^256 uint256 prodDiv2_256; assembly { let prodModM1 := mulmod(a, b, not(0)) prodMod2_256 := mul(a, b) prodDiv2_256 := sub(sub(prodModM1, prodMod2_256), lt(prodModM1, prodMod2_256)) } if (prodDiv2_256 == 0) { require(c > 0); assembly { res := div(prodMod2_256, c) } return res; } // we should ensure that a * b /c < 2^256 before calling require(c > prodDiv2_256); uint256 resMod; assembly { resMod := mulmod(a, b, c) // a * b - resMod prodDiv2_256 := sub(prodDiv2_256, gt(resMod, prodMod2_256)) prodMod2_256 := sub(prodMod2_256, resMod) // compute lowbit of c let lowbit := not(c) lowbit := add(lowbit, 1) lowbit := and(lowbit, c) // c / lowbit c := div(c, lowbit) // a * b / lowbit prodMod2_256 := div(prodMod2_256, lowbit) lowbit := add(div(sub(0, lowbit), lowbit), 1) prodDiv2_256 := mul(prodDiv2_256, lowbit) prodMod2_256 := or(prodMod2_256, prodDiv2_256) // get inv of c // cInv * c = 1 (mod 2^4) let cInv := xor(mul(3, c), 2) cInv := mul(cInv, sub(2, mul(c, cInv))) // shift to 2^8 cInv := mul(cInv, sub(2, mul(c, cInv))) // shift to 2^16 cInv := mul(cInv, sub(2, mul(c, cInv))) // shift to 2^32 cInv := mul(cInv, sub(2, mul(c, cInv))) // shift to 2^64 cInv := mul(cInv, sub(2, mul(c, cInv))) // shift to 2^128 cInv := mul(cInv, sub(2, mul(c, cInv))) // shift to 2^256 // a * b / c = prodMod2_256 * cInv (mod 2^256) res := mul(prodMod2_256, cInv) } } // compute res = ceil(a * b / c), assuming res < 2^256 function mulDivCeil( uint256 a, uint256 b, uint256 c ) internal pure returns (uint256 res) { res = mulDivFloor(a, b, c); if (mulmod(a, b, c) > 0) { require(res < type(uint256).max); res++; } } } // File contracts/libraries/TwoPower.sol pragma solidity ^0.8.4; /// @title FixedPoint128 /// @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format) library TwoPower { uint256 internal constant pow96 = 0x1000000000000000000000000; uint256 internal constant pow128 = 0x100000000000000000000000000000000; uint8 internal constant RESOLUTION = 96; } // File contracts/libraries/AmountMath.sol pragma solidity ^0.8.4; library AmountMath { function getAmountYUnitLiquidity_96( uint160 sqrtPriceL_96, uint160 sqrtPriceR_96, uint160 sqrtRate_96 ) internal pure returns (uint256 amount_96) { uint160 numerator = sqrtPriceR_96 - sqrtPriceL_96; uint160 denominator = sqrtRate_96 - uint160(TwoPower.pow96); amount_96 = MulDivMath.mulDivCeil(TwoPower.pow96, numerator, denominator); } function getAmountXUnitLiquidity_96( int24 leftPt, int24 rightPt, uint160 sqrtPriceR_96, uint160 sqrtRate_96 ) internal pure returns (uint256 amount_96) { // rightPt - (leftPt - 1), pc = leftPt - 1 uint160 sqrtPricePrPc_96 = LogPowMath.getSqrtPrice(rightPt - leftPt + 1); uint160 sqrtPricePrPd_96 = LogPowMath.getSqrtPrice(rightPt + 1); uint160 numerator = sqrtPricePrPc_96 - sqrtRate_96; uint160 denominator = sqrtPricePrPd_96 - sqrtPriceR_96; amount_96 = MulDivMath.mulDivCeil(TwoPower.pow96, numerator, denominator); } } // File contracts/libraries/MintMath.sol pragma solidity ^0.8.4; library MintMath { struct MintMathParam { int24 pl; int24 pr; uint128 xLim; uint128 yLim; } /// @dev [pl, pr) function _computeDepositXYPerUnit( int24 pl, int24 pr, int24 pc, uint160 sqrtPrice_96, uint160 sqrtRate_96 ) private pure returns (uint256 x, uint256 y) { x = 0; y = 0; uint160 sqrtPriceR_96 = LogPowMath.getSqrtPrice(pr); if (pl < pc) { uint160 sqrtPriceL_96 = LogPowMath.getSqrtPrice(pl); if (pr < pc) { y += AmountMath.getAmountYUnitLiquidity_96(sqrtPriceL_96, sqrtPriceR_96, sqrtRate_96); } else { y += AmountMath.getAmountYUnitLiquidity_96(sqrtPriceL_96, sqrtPrice_96, sqrtRate_96); } } if (pr > pc) { // we need compute XR int24 xrLeft = (pl > pc) ? pl : pc + 1; x = AmountMath.getAmountXUnitLiquidity_96( xrLeft, pr, sqrtPriceR_96, sqrtRate_96 ); } if (pl <= pc && pr > pc) { // we nned compute yc at point of current price y += sqrtPrice_96; } } function computeLiquidity( MintMathParam memory mp, int24 currPt, uint160 sqrtPrice_96, uint160 sqrtRate_96 ) internal pure returns(uint128 liquidity) { liquidity = type(uint128).max / 2; (uint256 x, uint256 y) = _computeDepositXYPerUnit(mp.pl, mp.pr, currPt, sqrtPrice_96, sqrtRate_96); if (x > 0) { uint256 xl = uint256(mp.xLim) * TwoPower.pow96 / x; if (liquidity > xl) { liquidity = uint128(xl); } } if (y > 0) { // we take yLim - 1, because in the core, the amountY to deposit is // calculated by range [left, pc) and point at pc respectively uint256 yl = uint256(mp.yLim - 1) * TwoPower.pow96 / y; if (liquidity > yl) { liquidity = uint128(yl); } } } } // File contracts/core/interfaces/IiZiSwapCallback.sol pragma solidity ^0.8.4; interface IiZiSwapMintCallback { /// @notice Called to msg.sender in iZiSwapPool#mint call /// @param x Amount of tokenX need to pay from miner /// @param y Amount of tokenY need to pay from miner /// @param data Any data passed through by the msg.sender via the iZiSwapPool#mint call function mintDepositCallback( uint256 x, uint256 y, bytes calldata data ) external; } interface IiZiSwapCallback { /// @notice Called to msg.sender in iZiSwapPool#swapY2X(DesireX) call /// @param x Amount of tokenX trader will acquire /// @param y Amount of tokenY trader will pay /// @param data Any dadta passed though by the msg.sender via the iZiSwapPool#swapY2X(DesireX) call function swapY2XCallback( uint256 x, uint256 y, bytes calldata data ) external; /// @notice Called to msg.sender in iZiSwapPool#swapX2Y(DesireY) call /// @param x Amount of tokenX trader will pay /// @param y Amount of tokenY trader will require /// @param data Any dadta passed though by the msg.sender via the iZiSwapPool#swapX2Y(DesireY) call function swapX2YCallback( uint256 x, uint256 y, bytes calldata data ) external; } interface IiZiSwapAddLimOrderCallback { /// @notice Called to msg.sender in iZiSwapPool#addLimOrderWithX(Y) call /// @param x Amount of tokenX seller will pay /// @param y Amount of tokenY seller will pay /// @param data Any dadta passed though by the msg.sender via the iZiSwapPool#addLimOrderWithX(Y) call function payCallback( uint256 x, uint256 y, bytes calldata data ) external; } // File contracts/core/interfaces/IiZiSwapPool.sol pragma solidity ^0.8.4; interface IiZiSwapPool { /// @notice Emitted when miner successfully add liquidity (mint). /// @param sender the address that minted the liquidity /// @param owner the owner who will benefit from this liquidity /// @param leftPoint left endpoint of the liquidity /// @param rightPoint right endpoint of the liquidity /// @param liquidity the amount of liquidity minted to the range [leftPoint, rightPoint) /// @param amountX amount of tokenX deposit /// @param amountY amount of tokenY deposit event Mint( address sender, address indexed owner, int24 indexed leftPoint, int24 indexed rightPoint, uint128 liquidity, uint256 amountX, uint256 amountY ); /// @notice Emitted when miner successfully decrease liquidity (withdraw). /// @param owner owner address of liquidity /// @param leftPoint left endpoint of liquidity /// @param rightPoint right endpoint of liquidity /// @param liquidity amount of liquidity decreased /// @param amountX amount of tokenX withdrawed /// @param amountY amount of tokenY withdrawed event Burn( address indexed owner, int24 indexed leftPoint, int24 indexed rightPoint, uint128 liquidity, uint256 amountX, uint256 amountY ); /// @notice Emitted when fees and withdrawed liquidity are collected /// @param owner The owner of the Liquidity /// @param recipient recipient of those token /// @param leftPoint The left point of the liquidity /// @param rightPoint The right point of the liquidity /// @param amountX The amount of tokenX (fees and withdrawed tokenX from liquidity) /// @param amountY The amount of tokenY (fees and withdrawed tokenY from liquidity) event CollectLiquidity( address indexed owner, address recipient, int24 indexed leftPoint, int24 indexed rightPoint, uint256 amountX, uint256 amountY ); /// @notice Emitted when a trader successfully exchange. /// @param tokenX tokenX of pool /// @param tokenY tokenY of pool /// @param fee fee amount of pool /// @param sellXEarnY true for selling tokenX, false for buying tokenX /// @param amountX amount of tokenX in this exchange /// @param amountY amount of tokenY in this exchange event Swap( address indexed tokenX, address indexed tokenY, uint24 indexed fee, bool sellXEarnY, uint256 amountX, uint256 amountY ); /// @notice Emitted by the pool for any flashes of tokenX/tokenY. /// @param sender the address that initiated the swap call, and that received the callback /// @param recipient the address that received the tokens from flash /// @param amountX the amount of tokenX that was flashed /// @param amountY the amount of tokenY that was flashed /// @param paidX the amount of tokenX paid for the flash, which can exceed the amountX plus the fee /// @param paidY the amount of tokenY paid for the flash, which can exceed the amountY plus the fee event Flash( address indexed sender, address indexed recipient, uint256 amountX, uint256 amountY, uint256 paidX, uint256 paidY ); /// @notice Emitted when a seller successfully add a limit order. /// @param owner owner of limit order /// @param addAmount amount of token to sell the seller added /// @param acquireAmount amount of earn-token acquired, if there exists some opposite order before /// @param point point of limit order /// @param claimSold claimed sold sell-token, if this owner has order with same direction on this point before /// @param claimEarn claimed earned earn-token, if this owner has order with same direction on this point before /// @param sellXEarnY direction of limit order, etc. sell tokenX or sell tokenY event AddLimitOrder( address indexed owner, uint128 addAmount, uint128 acquireAmount, int24 indexed point, uint128 claimSold, uint128 claimEarn, bool sellXEarnY ); /// @notice Emitted when a seller successfully decrease a limit order. /// @param owner owner of limit order /// @param decreaseAmount amount of token to sell the seller decreased /// @param point point of limit order /// @param claimSold claimed sold sell-token /// @param claimEarn claimed earned earn-token /// @param sellXEarnY direction of limit order, etc. sell tokenX or sell tokenY event DecLimitOrder( address indexed owner, uint128 decreaseAmount, int24 indexed point, uint128 claimSold, uint128 claimEarn, bool sellXEarnY ); /// @notice Emitted when collect from a limit order /// @param owner The owner of the Liquidity /// @param recipient recipient of those token /// @param point The point of the limit order /// @param collectDec The amount of decreased sell token collected /// @param collectEarn The amount of earn token collected /// @param sellXEarnY direction of limit order, etc. sell tokenX or sell tokenY event CollectLimitOrder( address indexed owner, address recipient, int24 indexed point, uint128 collectDec, uint128 collectEarn, bool sellXEarnY ); /// @notice Returns the information about a liquidity by the liquidity's key. /// @param key the liquidity's key is a hash of a preimage composed by the miner(owner), pointLeft and pointRight /// @return liquidity the amount of liquidity, /// @return lastFeeScaleX_128 fee growth of tokenX inside the range as of the last mint/burn/collect, /// @return lastFeeScaleY_128 fee growth of tokenY inside the range as of the last mint/burn/collect, /// @return tokenOwedX the computed amount of tokenX miner can collect as of the last mint/burn/collect, /// @return tokenOwedY the computed amount of tokenY miner can collect as of the last mint/burn/collect function liquidity(bytes32 key) external view returns ( uint128 liquidity, uint256 lastFeeScaleX_128, uint256 lastFeeScaleY_128, uint256 tokenOwedX, uint256 tokenOwedY ); /// @notice Returns the information about a user's limit order (sell tokenY and earn tokenX). /// @param key the limit order's key is a hash of a preimage composed by the seller, point /// @return lastAccEarn total amount of tokenX earned by all users at this point as of the last add/dec/collect /// @return sellingRemain amount of tokenY not selled in this limit order /// @return sellingDec amount of tokenY decreased by seller from this limit order /// @return earn amount of unlegacy earned tokenX in this limit order not assigned /// @return legacyEarn amount of legacy earned tokenX in this limit order not assgined /// @return earnAssign assigned amount of tokenX earned (both legacy and unlegacy) in this limit order function userEarnX(bytes32 key) external view returns ( uint256 lastAccEarn, uint128 sellingRemain, uint128 sellingDec, uint128 earn, uint128 legacyEarn, uint128 earnAssign ); /// @notice Returns the information about a user's limit order (sell tokenX and earn tokenY). /// @param key the limit order's key is a hash of a preimage composed by the seller, point /// @return lastAccEarn total amount of tokenY earned by all users at this point as of the last add/dec/collect /// @return sellingRemain amount of tokenX not selled in this limit order /// @return sellingDec amount of tokenX decreased by seller from this limit order /// @return earn amount of unlegacy earned tokenY in this limit order not assigned /// @return legacyEarn amount of legacy earned tokenY in this limit order not assgined /// @return earnAssign assigned amount of tokenY earned (both legacy and unlegacy) in this limit order function userEarnY(bytes32 key) external view returns ( uint256 lastAccEarn, uint128 sellingRemain, uint128 sellingDec, uint128 earn, uint128 legacyEarn, uint128 earnAssign ); /// @notice Mark a given amount of tokenY in a limitorder(sellx and earn y) as assigned. /// @param point point (log Price) of seller's limit order,be sure to be times of pointDelta /// @param assignY max amount of tokenY to mark assigned /// @param fromLegacy true for assigning earned token from legacyEarnY /// @return actualAssignY actual amount of tokenY marked function assignLimOrderEarnY( int24 point, uint128 assignY, bool fromLegacy ) external returns(uint128 actualAssignY); /// @notice Mark a given amount of tokenX in a limitorder(selly and earn x) as assigned. /// @param point point (log Price) of seller's limit order,be sure to be times of pointDelta /// @param assignX max amount of tokenX to mark assigned /// @param fromLegacy true for assigning earned token from legacyEarnX /// @return actualAssignX actual amount of tokenX marked function assignLimOrderEarnX( int24 point, uint128 assignX, bool fromLegacy ) external returns(uint128 actualAssignX); /// @notice Decrease limitorder of selling X. /// @param point point of seller's limit order, be sure to be times of pointDelta /// @param deltaX max amount of tokenX seller wants to decrease /// @return actualDeltaX actual amount of tokenX decreased /// @return legacyAccEarn legacyAccEarnY of pointOrder at point when calling this interface function decLimOrderWithX( int24 point, uint128 deltaX ) external returns (uint128 actualDeltaX, uint256 legacyAccEarn); /// @notice Decrease limitorder of selling Y. /// @param point point of seller's limit order, be sure to be times of pointDelta /// @param deltaY max amount of tokenY seller wants to decrease /// @return actualDeltaY actual amount of tokenY decreased /// @return legacyAccEarn legacyAccEarnX of pointOrder at point when calling this interface function decLimOrderWithY( int24 point, uint128 deltaY ) external returns (uint128 actualDeltaY, uint256 legacyAccEarn); /// @notice Add a limit order (selling x) in the pool. /// @param recipient owner of the limit order /// @param point point of the order, be sure to be times of pointDelta /// @param amountX amount of tokenX to sell /// @param data any data that should be passed through to the callback /// @return orderX actual added amount of tokenX /// @return acquireY amount of tokenY acquired if there is a limit order to sell y before adding function addLimOrderWithX( address recipient, int24 point, uint128 amountX, bytes calldata data ) external returns (uint128 orderX, uint128 acquireY); /// @notice Add a limit order (selling y) in the pool. /// @param recipient owner of the limit order /// @param point point of the order, be sure to be times of pointDelta /// @param amountY amount of tokenY to sell /// @param data any data that should be passed through to the callback /// @return orderY actual added amount of tokenY /// @return acquireX amount of tokenX acquired if there exists a limit order to sell x before adding function addLimOrderWithY( address recipient, int24 point, uint128 amountY, bytes calldata data ) external returns (uint128 orderY, uint128 acquireX); /// @notice Collect earned or decreased token from limit order. /// @param recipient address to benefit /// @param point point of limit order, be sure to be times of pointDelta /// @param collectDec max amount of decreased selling token to collect /// @param collectEarn max amount of earned token to collect /// @param isEarnY direction of this limit order, true for sell y, false for sell x /// @return actualCollectDec actual amount of decresed selling token collected /// @return actualCollectEarn actual amount of earned token collected function collectLimOrder( address recipient, int24 point, uint128 collectDec, uint128 collectEarn, bool isEarnY ) external returns(uint128 actualCollectDec, uint128 actualCollectEarn); /// @notice Add liquidity to the pool. /// @param recipient newly created liquidity will belong to this address /// @param leftPt left endpoint of the liquidity, be sure to be times of pointDelta /// @param rightPt right endpoint of the liquidity, be sure to be times of pointDelta /// @param liquidDelta amount of liquidity to add /// @param data any data that should be passed through to the callback /// @return amountX The amount of tokenX that was paid for the liquidity. Matches the value in the callback /// @return amountY The amount of tokenY that was paid for the liquidity. Matches the value in the callback function mint( address recipient, int24 leftPt, int24 rightPt, uint128 liquidDelta, bytes calldata data ) external returns (uint256 amountX, uint256 amountY); /// @notice Decrease a given amount of liquidity from msg.sender's liquidities. /// @param leftPt left endpoint of the liquidity /// @param rightPt right endpoint of the liquidity /// @param liquidDelta amount of liquidity to burn /// @return amountX The amount of tokenX should be refund after burn /// @return amountY The amount of tokenY should be refund after burn function burn( int24 leftPt, int24 rightPt, uint128 liquidDelta ) external returns (uint256 amountX, uint256 amountY); /// @notice Collect tokens (fee or refunded after burn) from a liquidity. /// @param recipient the address which should receive the collected tokens /// @param leftPt left endpoint of the liquidity /// @param rightPt right endpoint of the liquidity /// @param amountXLim max amount of tokenX the owner wants to collect /// @param amountYLim max amount of tokenY the owner wants to collect /// @return actualAmountX the amount tokenX collected /// @return actualAmountY the amount tokenY collected function collect( address recipient, int24 leftPt, int24 rightPt, uint256 amountXLim, uint256 amountYLim ) external returns (uint256 actualAmountX, uint256 actualAmountY); /// @notice Swap tokenY for tokenX, given max amount of tokenY user willing to pay. /// @param recipient the address to receive tokenX /// @param amount the max amount of tokenY user willing to pay /// @param highPt the highest point(price) of x/y during swap /// @param data any data to be passed through to the callback /// @return amountX amount of tokenX payed /// @return amountY amount of tokenY acquired function swapY2X( address recipient, uint128 amount, int24 highPt, bytes calldata data ) external returns (uint256 amountX, uint256 amountY); /// @notice Swap tokenY for tokenX, given amount of tokenX user desires. /// @param recipient the address to receive tokenX /// @param desireX the amount of tokenX user desires /// @param highPt the highest point(price) of x/y during swap /// @param data any data to be passed through to the callback /// @return amountX amount of tokenX payed /// @return amountY amount of tokenY acquired function swapY2XDesireX( address recipient, uint128 desireX, int24 highPt, bytes calldata data ) external returns (uint256 amountX, uint256 amountY); /// @notice Swap tokenX for tokenY, given max amount of tokenX user willing to pay. /// @param recipient the address to receive tokenY /// @param amount the max amount of tokenX user willing to pay /// @param lowPt the lowest point(price) of x/y during swap /// @param data any data to be passed through to the callback /// @return amountX amount of tokenX acquired /// @return amountY amount of tokenY payed function swapX2Y( address recipient, uint128 amount, int24 lowPt, bytes calldata data ) external returns (uint256 amountX, uint256 amountY); /// @notice Swap tokenX for tokenY, given amount of tokenY user desires. /// @param recipient the address to receive tokenY /// @param desireY the amount of tokenY user desires /// @param lowPt the lowest point(price) of x/y during swap /// @param data any data to be passed through to the callback /// @return amountX amount of tokenX acquired /// @return amountY amount of tokenY payed function swapX2YDesireY( address recipient, uint128 desireY, int24 lowPt, bytes calldata data ) external returns (uint256 amountX, uint256 amountY); /// @notice Returns sqrt(1.0001), in 96 bit fixpoint number. function sqrtRate_96() external view returns(uint160); /// @notice State values of pool. /// @return sqrtPrice_96 a 96 fixpoing number describe the sqrt value of current price(tokenX/tokenY) /// @return currentPoint the current point of the pool, 1.0001 ^ currentPoint = price /// @return observationCurrentIndex the index of the last oracle observation that was written, /// @return observationQueueLen the current maximum number of observations stored in the pool, /// @return observationNextQueueLen the next maximum number of observations, to be updated when the observation. /// @return locked whether the pool is locked (only used for checking reentrance) /// @return liquidity liquidity on the currentPoint (currX * sqrtPrice + currY / sqrtPrice) /// @return liquidityX liquidity of tokenX function state() external view returns( uint160 sqrtPrice_96, int24 currentPoint, uint16 observationCurrentIndex, uint16 observationQueueLen, uint16 observationNextQueueLen, bool locked, uint128 liquidity, uint128 liquidityX ); /// @notice LimitOrder info on a given point. /// @param point the given point /// @return sellingX total amount of tokenX selling on the point /// @return earnY total amount of unclaimed earned tokenY for unlegacy sellingX /// @return accEarnY total amount of earned tokenY(via selling tokenX) by all users at this point as of the last swap /// @return legacyAccEarnY latest recorded 'accEarnY' value when sellingX is clear (legacy) /// @return legacyEarnY total amount of unclaimed earned tokenY for legacy (cleared during swap) sellingX /// @return sellingY total amount of tokenYselling on the point /// @return earnX total amount of unclaimed earned tokenX for unlegacy sellingY /// @return legacyEarnX total amount of unclaimed earned tokenX for legacy (cleared during swap) sellingY /// @return accEarnX total amount of earned tokenX(via selling tokenY) by all users at this point as of the last swap /// @return legacyAccEarnX latest recorded 'accEarnX' value when sellingY is clear (legacy) function limitOrderData(int24 point) external view returns( uint128 sellingX, uint128 earnY, uint256 accEarnY, uint256 legacyAccEarnY, uint128 legacyEarnY, uint128 sellingY, uint128 earnX, uint128 legacyEarnX, uint256 accEarnX, uint256 legacyAccEarnX ); /// @notice Query infomation about a point whether has limit order or is an liquidity's endpoint. /// @param point point to query /// @return val endpoint for val&1>0 and has limit order for val&2 > 0 function orderOrEndpoint(int24 point) external returns(int24 val); /// @notice Returns observation data about a specific index. /// @param index the index of observation array /// @return timestamp the timestamp of the observation, /// @return accPoint the point multiplied by seconds elapsed for the life of the pool as of the observation timestamp, /// @return init whether the observation has been initialized and the above values are safe to use function observations(uint256 index) external view returns ( uint32 timestamp, int56 accPoint, bool init ); /// @notice Point status in the pool. /// @param point the point /// @return liquidSum the total amount of liquidity that uses the point either as left endpoint or right endpoint /// @return liquidDelta how much liquidity changes when the pool price crosses the point from left to right /// @return accFeeXOut_128 the fee growth on the other side of the point from the current point in tokenX /// @return accFeeYOut_128 the fee growth on the other side of the point from the current point in tokenY /// @return isEndpt whether the point is an endpoint of a some miner's liquidity, true if liquidSum > 0 function points(int24 point) external view returns ( uint128 liquidSum, int128 liquidDelta, uint256 accFeeXOut_128, uint256 accFeeYOut_128, bool isEndpt ); /// @notice Returns 256 packed point (statusVal>0) boolean values. See PointBitmap for more information. function pointBitmap(int16 wordPosition) external view returns (uint256); /// @notice Returns the integral value of point(time) and integral value of 1/liquidity(time) /// at some target timestamps (block.timestamp - secondsAgo[i]) /// @dev Reverts if target timestamp is early than oldest observation in the queue /// @dev If you call this method with secondsAgos = [3600, 0]. the average point of this pool during recent hour is /// (accPoints[1] - accPoints[0]) / 3600 /// @param secondsAgos describe the target timestamp , targetTimestimp[i] = block.timestamp - secondsAgo[i] /// @return accPoints integral value of point(time) from 0 to each target timestamp function observe(uint32[] calldata secondsAgos) external view returns (int56[] memory accPoints); /// @notice Expand max-length of observation queue. /// @param newNextQueueLen new value of observationNextQueueLen, which should be greater than current observationNextQueueLen function expandObservationQueue(uint16 newNextQueueLen) external; /// @notice Borrow tokenX and/or tokenY and pay it back within a block. /// @dev The caller needs to implement a IiZiSwapPool#flashCallback callback function /// @param recipient the address which will receive the tokenY and/or tokenX /// @param amountX the amount of tokenX to borrow /// @param amountY the amount of tokenY to borrow /// @param data Any data to be passed through to the callback function flash( address recipient, uint256 amountX, uint256 amountY, bytes calldata data ) external; /// @notice Returns a snapshot infomation of Liquidity in [leftPoint, rightPoint). /// @param leftPoint left endpoint of range, should be times of pointDelta /// @param rightPoint right endpoint of range, should be times of pointDelta /// @return deltaLiquidities an array of delta liquidity for points in the range /// note 1. delta liquidity here is amount of liquidity changed when cross a point from left to right /// note 2. deltaLiquidities only contains points which are times of pointDelta /// note 3. this function may cost a ENORMOUS amount of gas, be careful to call function liquiditySnapshot(int24 leftPoint, int24 rightPoint) external view returns(int128[] memory deltaLiquidities); struct LimitOrderStruct { uint128 sellingX; uint128 earnY; uint256 accEarnY; uint128 sellingY; uint128 earnX; uint256 accEarnX; } /// @notice Returns a snapshot infomation of Limit Order in [leftPoint, rightPoint). /// @param leftPoint left endpoint of range, should be times of pointDelta /// @param rightPoint right endpoint of range, should be times of pointDelta /// @return limitOrders an array of Limit Orders for points in the range /// note 1. this function may cost a HUGE amount of gas, be careful to call function limitOrderSnapshot(int24 leftPoint, int24 rightPoint) external view returns(LimitOrderStruct[] memory limitOrders); /// @notice Amount of charged fee on tokenX. function totalFeeXCharged() external view returns(uint256); /// @notice Amount of charged fee on tokenY. function totalFeeYCharged() external view returns(uint256); /// @notice Percent to charge from miner's fee. function feeChargePercent() external view returns(uint24); /// @notice Collect charged fee, only factory's chargeReceiver can call. function collectFeeCharged() external; /// @notice modify 'feeChargePercent', only owner has authority. /// @param newFeeChargePercent new value of feeChargePercent, a nature number range in [0, 100], function modifyFeeChargePercent(uint24 newFeeChargePercent) external; } // File contracts/LiquidityManager.sol pragma solidity ^0.8.4; contract LiquidityManager is Ownable, Base, ERC721Enumerable, IiZiSwapMintCallback { /// @notice Emitted when miner successfully add liquidity on an existing liquidity-nft /// @param nftId id of minted liquidity nft /// @param pool address of swap pool /// @param liquidityDelta the amount of liquidity added /// @param amountX amount of tokenX deposit /// @param amountY amount of tokenY deposit event AddLiquidity( uint256 indexed nftId, address pool, uint128 liquidityDelta, uint256 amountX, uint256 amountY ); /// @notice Emitted when miner successfully add decrease liquidity on an existing liquidity-nft /// @param nftId id of minted liquidity nft /// @param pool address of swap pool /// @param liquidityDelta the amount of liquidity decreased /// @param amountX amount of tokenX withdrawed /// @param amountY amount of tokenY withdrawed event DecLiquidity( uint256 indexed nftId, address pool, uint128 liquidityDelta, uint256 amountX, uint256 amountY ); // callback data passed through iZiSwapPool#mint to the callback struct MintCallbackData { // tokenX of swap address tokenX; // tokenY of swap address tokenY; // fee amount of swap uint24 fee; // address to pay tokenX and tokenY to iZiSwapPool address payer; } // max-poolId in poolIds, poolId starts from 1 uint128 private maxPoolId = 1; // infomation of liquidity provided by miner struct Liquidity { // left point of liquidity-token, the range is [leftPt, rightPt) int24 leftPt; // right point of liquidity-token, the range is [leftPt, rightPt) int24 rightPt; // amount of liquidity on each point in [leftPt, rightPt) uint128 liquidity; // a 128-fixpoint number, as integral of { fee(pt, t)/L(pt, t) }. // here fee(pt, t) denotes fee generated on point pt at time t // L(pt, t) denotes liquidity on point pt at time t // pt varies in [leftPt, rightPt) // t moves from pool created until miner last modify this liquidity-token (mint/addLiquidity/decreaseLiquidity/create) uint256 lastFeeScaleX_128; uint256 lastFeeScaleY_128; // remained tokenX miner can collect, including fee and withdrawed token uint256 remainTokenX; uint256 remainTokenY; // id of pool in which this liquidity is added uint128 poolId; } /// @notice mapping from nftId to Liquidity info mapping(uint256 =>Liquidity) public liquidities; /// @notice num of liquidity token uint256 public liquidityNum = 0; struct PoolMeta { // tokenX of pool address tokenX; // tokenY of pool address tokenY; // fee amount of pool uint24 fee; } /// @notice mapping from poolId to meta info of pool mapping(uint128 =>PoolMeta) public poolMetas; /// @notice mapping from address to poolId within this contract mapping(address =>uint128) public poolIds; modifier checkAuth(uint256 lid) { require(_isApprovedOrOwner(msg.sender, lid), 'Not approved'); _; } string public baseURI; function _baseURI() internal view override returns (string memory) { return baseURI; } function setBaseURI(string calldata newBaseURI) external onlyOwner { baseURI = newBaseURI; } /// @notice Constructor to create this contract. /// @param factory address of iZiSwapFactory /// @param weth address of WETH token constructor( address factory, address weth ) ERC721("iZiSwap Liquidity NFT", "IZISWAP-LIQUIDITY-NFT") Base(factory, weth) { } /// @notice Callback for mining, in order to deposit tokens. /// @param x amount of tokenX pay from miner /// @param y amount of tokenY pay from miner /// @param data encoded MintCallbackData function mintDepositCallback( uint256 x, uint256 y, bytes calldata data ) external override { MintCallbackData memory dt = abi.decode(data, (MintCallbackData)); verify(dt.tokenX, dt.tokenY, dt.fee); if (x > 0) { pay(dt.tokenX, dt.payer, msg.sender, x); } if (y > 0) { pay(dt.tokenY, dt.payer, msg.sender, y); } } /// @notice Get or create a pool for (tokenX/tokenY/fee) if not exists. /// @param tokenX tokenX of swap pool /// @param tokenY tokenY of swap pool /// @param fee fee amount of swap pool /// @param initialPoint initial point if need to create a new pool /// @return corresponding pool address function createPool(address tokenX, address tokenY, uint24 fee, int24 initialPoint) external returns (address) { require(tokenX < tokenY, "x<y"); address pool = IiZiSwapFactory(factory).pool(tokenX, tokenY, fee); if (pool == address(0)) { pool = IiZiSwapFactory(factory).newPool(tokenX, tokenY, fee, initialPoint); return pool; } return pool; } function liquidityKey(address miner, int24 pl, int24 pr) internal pure returns(bytes32) { return keccak256(abi.encodePacked(miner, pl, pr)); } function cachePoolKey(address pool, PoolMeta memory meta) private returns (uint128 poolId) { poolId = poolIds[pool]; if (poolId == 0) { poolIds[pool] = (poolId = maxPoolId++); poolMetas[poolId] = meta; } } function getLastFeeScale(address pool, bytes32 key) private view returns(uint256, uint256) { (, uint256 lastFeeScaleX_128, uint256 lastFeeScaleY_128, , ) = IiZiSwapPool(pool).liquidity( key ); return (lastFeeScaleX_128, lastFeeScaleY_128); } function getPoolPrice(address pool) private view returns (uint160, int24) { ( uint160 sqrtPrice_96, int24 currPt, , , , , , ) = IiZiSwapPool(pool).state(); return (sqrtPrice_96, currPt); } /// parameters when calling mint, grouped together to avoid stake too deep struct MintParam { // miner address address miner; // tokenX of swap pool address tokenX; // tokenY of swap pool address tokenY; // fee amount of swap pool uint24 fee; // left point of added liquidity int24 pl; // right point of added liquidity int24 pr; // amount limit of tokenX miner willing to deposit uint128 xLim; // amount limit tokenY miner willing to deposit uint128 yLim; // minimum amount of tokenX miner willing to deposit uint128 amountXMin; // minimum amount of tokenY miner willing to deposit uint128 amountYMin; uint256 deadline; } function _addLiquidity(MintParam memory mp) private returns( uint128 liquidity, uint256 amountX, uint256 amountY, address pool ) { int24 currPt; uint160 sqrtPrice_96; pool = IiZiSwapFactory(factory).pool(mp.tokenX, mp.tokenY, mp.fee); uint160 sqrtRate_96 = IiZiSwapPool(pool).sqrtRate_96(); require(pool != address(0), "P0"); (sqrtPrice_96, currPt) = getPoolPrice(pool); liquidity = MintMath.computeLiquidity( MintMath.MintMathParam({ pl: mp.pl, pr: mp.pr, xLim: mp.xLim, yLim: mp.yLim }), currPt, sqrtPrice_96, sqrtRate_96 ); (amountX, amountY) = IiZiSwapPool(pool).mint(address(this), mp.pl, mp.pr, liquidity, abi.encode(MintCallbackData({tokenX: mp.tokenX, tokenY: mp.tokenY, fee: mp.fee, payer: msg.sender}))); } /// @notice Add a new liquidity and generate a nft. /// @param mintParam params, see MintParam for more /// @return lid id of nft /// @return liquidity amount of liquidity added /// @return amountX amount of tokenX deposited /// @return amountY amount of tokenY depsoited function mint(MintParam calldata mintParam) external payable checkDeadline(mintParam.deadline) returns( uint256 lid, uint128 liquidity, uint256 amountX, uint256 amountY ) { require(mintParam.tokenX < mintParam.tokenY, "x<y"); address pool; (liquidity, amountX, amountY, pool) = _addLiquidity(mintParam); require(amountX >= mintParam.amountXMin, "XMIN"); require(amountY >= mintParam.amountYMin, "YMIN"); lid = liquidityNum ++; (uint256 lastFeeScaleX_128, uint256 lastFeeScaleY_128) = getLastFeeScale( pool, liquidityKey(address(this), mintParam.pl, mintParam.pr) ); uint128 poolId = cachePoolKey(pool, PoolMeta({tokenX: mintParam.tokenX, tokenY: mintParam.tokenY, fee: mintParam.fee})); liquidities[lid] = Liquidity({ leftPt: mintParam.pl, rightPt: mintParam.pr, liquidity: liquidity, lastFeeScaleX_128: lastFeeScaleX_128, lastFeeScaleY_128: lastFeeScaleY_128, remainTokenX: 0, remainTokenY: 0, poolId: poolId }); _mint(mintParam.miner, lid); emit AddLiquidity(lid, pool, liquidity, amountX, amountY); } /// @notice Burn a generated nft. /// @param lid nft (liquidity) id /// @return success successfully burn or not function burn(uint256 lid) external checkAuth(lid) returns (bool success) { Liquidity storage liquid = liquidities[lid]; require(liquid.liquidity == 0 && liquid.remainTokenX == 0 && liquid.remainTokenY == 0, 'NC'); delete liquidities[lid]; _burn(lid); return true; } /// parameters when calling addLiquidity, grouped together to avoid stake too deep struct AddLiquidityParam { // id of nft uint256 lid; // amount limit of tokenX user willing to deposit uint128 xLim; // amount limit of tokenY user willing to deposit uint128 yLim; // min amount of tokenX user willing to deposit uint128 amountXMin; // min amount of tokenY user willing to deposit uint128 amountYMin; uint256 deadline; } function updateLiquidity( Liquidity storage liquid, address pool, uint128 newLiquidity, uint256 amountX, uint256 amountY ) private { (uint256 lastFeeScaleX_128, uint256 lastFeeScaleY_128) = getLastFeeScale( pool, liquidityKey(address(this), liquid.leftPt, liquid.rightPt) ); (uint256 deltaScaleX, uint256 deltaScaleY) = (liquid.lastFeeScaleX_128, liquid.lastFeeScaleY_128); assembly { deltaScaleX := sub(lastFeeScaleX_128, deltaScaleX) deltaScaleY := sub(lastFeeScaleY_128, deltaScaleY) } liquid.remainTokenX += amountX + MulDivMath.mulDivFloor(deltaScaleX, liquid.liquidity, TwoPower.pow128); liquid.remainTokenY += amountY + MulDivMath.mulDivFloor(deltaScaleY, liquid.liquidity, TwoPower.pow128); liquid.lastFeeScaleX_128 = lastFeeScaleX_128; liquid.lastFeeScaleY_128 = lastFeeScaleY_128; liquid.liquidity = newLiquidity; } /// @notice Add liquidity to a existing nft. /// @param addLiquidityParam see AddLiquidityParam for more /// @return liquidityDelta amount of added liquidity /// @return amountX amount of tokenX deposited /// @return amountY amonut of tokenY deposited function addLiquidity( AddLiquidityParam calldata addLiquidityParam ) external payable checkAuth(addLiquidityParam.lid) checkDeadline(addLiquidityParam.deadline) returns ( uint128 liquidityDelta, uint256 amountX, uint256 amountY ) { require(addLiquidityParam.lid < liquidityNum, "LN"); Liquidity storage liquid = liquidities[addLiquidityParam.lid]; PoolMeta memory poolMeta = poolMetas[liquid.poolId]; int24 currPt; uint160 sqrtPrice_96; address pool = IiZiSwapFactory(factory).pool(poolMeta.tokenX, poolMeta.tokenY, poolMeta.fee); // uint160 sqrtRate_96 = IiZiSwapPool(pool).sqrtRate_96(); require(pool != address(0), "P0"); (sqrtPrice_96, currPt) = getPoolPrice(pool); liquidityDelta = MintMath.computeLiquidity( MintMath.MintMathParam({ pl: liquid.leftPt, pr: liquid.rightPt, xLim: addLiquidityParam.xLim, yLim: addLiquidityParam.yLim }), currPt, sqrtPrice_96, // sqrtRate_96 IiZiSwapPool(pool).sqrtRate_96() ); require(int128(liquid.liquidity) == int256(uint256(liquid.liquidity)), "LO"); uint128 newLiquidity = liquidityDelta + liquid.liquidity; (amountX, amountY) = IiZiSwapPool(pool).mint(address(this), liquid.leftPt, liquid.rightPt, liquidityDelta, abi.encode(MintCallbackData({tokenX: poolMeta.tokenX, tokenY: poolMeta.tokenY, fee: poolMeta.fee, payer: msg.sender}))); require(amountX >= addLiquidityParam.amountXMin, "XMIN"); require(amountY >= addLiquidityParam.amountYMin, "YMIN"); updateLiquidity(liquid, pool, newLiquidity, 0, 0); emit AddLiquidity(addLiquidityParam.lid, pool, liquidityDelta, amountX, amountY); } /// @notice Decrease liquidity from a nft. /// @param lid id of nft /// @param liquidDelta amount of liqudity to decrease /// @param amountXMin min amount of tokenX user want to withdraw /// @param amountYMin min amount of tokenY user want to withdraw /// @param deadline deadline timestamp of transaction /// @return amountX amount of tokenX refund to user /// @return amountY amount of tokenY refund to user function decLiquidity( uint256 lid, uint128 liquidDelta, uint256 amountXMin, uint256 amountYMin, uint256 deadline ) external checkAuth(lid) checkDeadline(deadline) returns ( uint256 amountX, uint256 amountY ) { require(lid < liquidityNum, "LN"); Liquidity storage liquidity = liquidities[lid]; if (liquidity.liquidity == 0) { // no need to call core to update fee return (0, 0); } if (liquidDelta > liquidity.liquidity) { liquidDelta = liquidity.liquidity; } PoolMeta memory poolMeta = poolMetas[liquidity.poolId]; address pool = IiZiSwapFactory(factory).pool(poolMeta.tokenX, poolMeta.tokenY, poolMeta.fee); require(pool != address(0), "P0"); uint128 newLiquidity = liquidity.liquidity - liquidDelta; (amountX, amountY) = IiZiSwapPool(pool).burn(liquidity.leftPt, liquidity.rightPt, liquidDelta); require(amountX >= amountXMin, "XMIN"); require(amountY >= amountYMin, "YMIN"); updateLiquidity(liquidity, pool, newLiquidity, amountX, amountY); emit DecLiquidity(lid, pool, liquidDelta, amountX, amountY); } /// @notice Collect fee gained of token withdrawed from nft. /// @param recipient address to receive token /// @param lid id of nft /// @param amountXLim amount limit of tokenX to collect /// @param amountYLim amount limit of tokenY to collect /// @return amountX amount of tokenX actually collect /// @return amountY amount of tokenY actually collect function collect( address recipient, uint256 lid, uint128 amountXLim, uint128 amountYLim ) external payable checkAuth(lid) returns ( uint256 amountX, uint256 amountY ) { if (recipient == address(0)) { recipient = address(this); } require(lid < liquidityNum, "LN"); Liquidity storage liquidity = liquidities[lid]; PoolMeta memory poolMeta = poolMetas[liquidity.poolId]; address pool = IiZiSwapFactory(factory).pool(poolMeta.tokenX, poolMeta.tokenY, poolMeta.fee); require(pool != address(0), "P0"); if (liquidity.liquidity > 0) { IiZiSwapPool(pool).burn(liquidity.leftPt, liquidity.rightPt, 0); updateLiquidity(liquidity, pool, liquidity.liquidity, 0, 0); } if (amountXLim > liquidity.remainTokenX) { amountXLim = uint128(liquidity.remainTokenX); } if (amountYLim > liquidity.remainTokenY) { amountYLim = uint128(liquidity.remainTokenY); } (amountX, amountY) = IiZiSwapPool(pool).collect(recipient, liquidity.leftPt, liquidity.rightPt, amountXLim, amountYLim); // amountX(Y)Lim may be a little greater than actual value liquidity.remainTokenX -= amountXLim; liquidity.remainTokenY -= amountYLim; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"factory","type":"address"},{"internalType":"address","name":"weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nftId","type":"uint256"},{"indexed":false,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"uint128","name":"liquidityDelta","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amountX","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountY","type":"uint256"}],"name":"AddLiquidity","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nftId","type":"uint256"},{"indexed":false,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"uint128","name":"liquidityDelta","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amountX","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountY","type":"uint256"}],"name":"DecLiquidity","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"WETH9","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"lid","type":"uint256"},{"internalType":"uint128","name":"xLim","type":"uint128"},{"internalType":"uint128","name":"yLim","type":"uint128"},{"internalType":"uint128","name":"amountXMin","type":"uint128"},{"internalType":"uint128","name":"amountYMin","type":"uint128"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct LiquidityManager.AddLiquidityParam","name":"addLiquidityParam","type":"tuple"}],"name":"addLiquidity","outputs":[{"internalType":"uint128","name":"liquidityDelta","type":"uint128"},{"internalType":"uint256","name":"amountX","type":"uint256"},{"internalType":"uint256","name":"amountY","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"lid","type":"uint256"}],"name":"burn","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"lid","type":"uint256"},{"internalType":"uint128","name":"amountXLim","type":"uint128"},{"internalType":"uint128","name":"amountYLim","type":"uint128"}],"name":"collect","outputs":[{"internalType":"uint256","name":"amountX","type":"uint256"},{"internalType":"uint256","name":"amountY","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenX","type":"address"},{"internalType":"address","name":"tokenY","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"initialPoint","type":"int24"}],"name":"createPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lid","type":"uint256"},{"internalType":"uint128","name":"liquidDelta","type":"uint128"},{"internalType":"uint256","name":"amountXMin","type":"uint256"},{"internalType":"uint256","name":"amountYMin","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"decLiquidity","outputs":[{"internalType":"uint256","name":"amountX","type":"uint256"},{"internalType":"uint256","name":"amountY","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"liquidities","outputs":[{"internalType":"int24","name":"leftPt","type":"int24"},{"internalType":"int24","name":"rightPt","type":"int24"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"lastFeeScaleX_128","type":"uint256"},{"internalType":"uint256","name":"lastFeeScaleY_128","type":"uint256"},{"internalType":"uint256","name":"remainTokenX","type":"uint256"},{"internalType":"uint256","name":"remainTokenY","type":"uint256"},{"internalType":"uint128","name":"poolId","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityNum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"miner","type":"address"},{"internalType":"address","name":"tokenX","type":"address"},{"internalType":"address","name":"tokenY","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"pl","type":"int24"},{"internalType":"int24","name":"pr","type":"int24"},{"internalType":"uint128","name":"xLim","type":"uint128"},{"internalType":"uint128","name":"yLim","type":"uint128"},{"internalType":"uint128","name":"amountXMin","type":"uint128"},{"internalType":"uint128","name":"amountYMin","type":"uint128"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct LiquidityManager.MintParam","name":"mintParam","type":"tuple"}],"name":"mint","outputs":[{"internalType":"uint256","name":"lid","type":"uint256"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"amountX","type":"uint256"},{"internalType":"uint256","name":"amountY","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"x","type":"uint256"},{"internalType":"uint256","name":"y","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintDepositCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenX","type":"address"},{"internalType":"address","name":"tokenY","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"}],"name":"pool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"poolIds","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"","type":"uint128"}],"name":"poolMetas","outputs":[{"internalType":"address","name":"tokenX","type":"address"},{"internalType":"address","name":"tokenY","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refundETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"minAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"sweepToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"unwrapWETH9","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c0604052600b80546001600160801b03191660011790556000600d553480156200002957600080fd5b506040516200584f3803806200584f8339810160408190526200004c916200023a565b6040518060400160405280601581526020017f695a6953776170204c6971756964697479204e465400000000000000000000008152506040518060400160405280601581526020017f495a49535741502d4c49515549444954592d4e465400000000000000000000008152508383620000d4620000ce6200012360201b60201c565b62000127565b6001600160601b0319606092831b8116608052911b1660a05281516200010290600190602085019062000177565b5080516200011890600290602084019062000177565b5050505050620002ae565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001859062000271565b90600052602060002090601f016020900481019282620001a95760008555620001f4565b82601f10620001c457805160ff1916838001178555620001f4565b82800160010185558215620001f4579182015b82811115620001f4578251825591602001919060010190620001d7565b506200020292915062000206565b5090565b5b8082111562000202576000815560010162000207565b80516001600160a01b03811681146200023557600080fd5b919050565b600080604083850312156200024d578182fd5b62000258836200021d565b915062000268602084016200021d565b90509250929050565b600181811c908216806200028657607f821691505b60208210811415620002a857634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c60a05160601c6155216200032e6000396000818161049601528181610f960152818161105901528181612b2f01528181612b750152612c0a01526000818161069501528181610b8d015281816117b501528181611c5d01528181611e44015281816123f7015281816124cc0152612cc801526155216000f3fe6080604052600436106102245760003560e01c8063715018a61161012e578063c45a0155116100ab578063df2ab5bb1161006f578063df2ab5bb14610773578063e985e9c514610786578063f2fde38b146107a6578063f425a3ce146107c6578063f655dbc1146107e657600080fd5b8063c45a015514610683578063c87b56dd146106b7578063cbd89416146106d7578063d4175be21461070f578063dca87bec1461075d57600080fd5b8063a0e4eb3c116100f2578063a0e4eb3c146105f0578063a22cb46514610603578063ac9650d814610623578063b88d4fde14610643578063becbcc6a1461066357600080fd5b8063715018a61461054d57806384fe2b3d146105625780638da5cb5b1461058257806395d89b41146105a057806396f639ed146105b557600080fd5b80632f745c59116101bc5780634f6ccce7116101805780634f6ccce7146104b857806355f804b3146104d85780636352211e146104f85780636c0360eb1461051857806370a082311461052d57600080fd5b80632f745c591461041157806342842e0e1461043157806342966c681461045157806349404b7c146104715780634aa4a4fc1461048457600080fd5b806301ffc9a71461023057806306fdde03146102655780630713051d14610287578063081812fc14610346578063095ea7b31461037357806312210e8a1461039557806315feae511461039d57806318160ddd146103d257806323b872dd146103f157600080fd5b3661022b57005b600080fd5b34801561023c57600080fd5b5061025061024b3660046147b2565b610844565b60405190151581526020015b60405180910390f35b34801561027157600080fd5b5061027a61086f565b60405161025c9190614e53565b34801561029357600080fd5b506102f56102a2366004614b49565b600c602052600090815260409020805460018201546002808401546003850154600486015460059096015485840b966301000000870490940b956001600160801b03600160301b90910481169594911688565b604080516002998a0b81529790980b60208801526001600160801b03958616978701979097526060860193909352608085019190915260a084015260c083015290911660e08201526101000161025c565b34801561035257600080fd5b50610366610361366004614b49565b610901565b60405161025c9190614cde565b34801561037f57600080fd5b5061039361038e366004614674565b610928565b005b610393610a43565b3480156103a957600080fd5b506103bd6103b8366004614b9d565b610a55565b6040805192835260208301919091520161025c565b3480156103de57600080fd5b506009545b60405190815260200161025c565b3480156103fd57600080fd5b5061039361040c366004614561565b610da4565b34801561041d57600080fd5b506103e361042c366004614674565b610dd5565b34801561043d57600080fd5b5061039361044c366004614561565b610e6b565b34801561045d57600080fd5b5061025061046c366004614b49565b610e86565b61039361047f366004614b79565b610f7c565b34801561049057600080fd5b506103667f000000000000000000000000000000000000000000000000000000000000000081565b3480156104c457600080fd5b506103e36104d3366004614b49565b6110c7565b3480156104e457600080fd5b506103936104f3366004614806565b611168565b34801561050457600080fd5b50610366610513366004614b49565b61117c565b34801561052457600080fd5b5061027a6111b1565b34801561053957600080fd5b506103e3610548366004614452565b61123f565b34801561055957600080fd5b506103936112c5565b34801561056e57600080fd5b5061039361057d366004614c07565b6112d7565b34801561058e57600080fd5b506000546001600160a01b0316610366565b3480156105ac57600080fd5b5061027a611339565b6105c86105c3366004614940565b611348565b604080519485526001600160801b03909316602085015291830152606082015260800161025c565b6103bd6105fe3660046146e0565b6116e3565b34801561060f57600080fd5b5061039361061e366004614647565b611a7b565b610636610631366004614727565b611a8a565b60405161025c9190614dcc565b34801561064f57600080fd5b5061039361065e3660046145a1565b611c0b565b34801561066f57600080fd5b5061036661067e3660046144c2565b611c43565b34801561068f57600080fd5b506103667f000000000000000000000000000000000000000000000000000000000000000081565b3480156106c357600080fd5b5061027a6106d2366004614b49565b611cf0565b6106ea6106e53660046148ae565b611d56565b604080516001600160801b03909416845260208401929092529082015260600161025c565b34801561071b57600080fd5b5061074561072a366004614452565b600f602052600090815260409020546001600160801b031681565b6040516001600160801b03909116815260200161025c565b34801561076957600080fd5b506103e3600d5481565b61039361078136600461469f565b612251565b34801561079257600080fd5b506102506107a136600461448a565b612303565b3480156107b257600080fd5b506103936107c1366004614452565b612331565b3480156107d257600080fd5b506103666107e1366004614508565b6123aa565b3480156107f257600080fd5b50610835610801366004614a26565b600e60205260009081526040902080546001909101546001600160a01b0391821691811690600160a01b900462ffffff1683565b60405161025c93929190614cf2565b60006001600160e01b0319821663780e9d6360e01b148061086957506108698261255c565b92915050565b60606001805461087e90615366565b80601f01602080910402602001604051908101604052809291908181526020018280546108aa90615366565b80156108f75780601f106108cc576101008083540402835291602001916108f7565b820191906000526020600020905b8154815290600101906020018083116108da57829003601f168201915b5050505050905090565b600061090c826125ac565b506000908152600560205260409020546001600160a01b031690565b60006109338261117c565b9050806001600160a01b0316836001600160a01b031614156109a65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806109c257506109c28133612303565b610a345760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260840161099d565b610a3e83836125d1565b505050565b4715610a5357610a53334761263f565b565b60008086610a6333826126e2565b610a7f5760405162461bcd60e51b815260040161099d90614ff4565b8380421115610aa05760405162461bcd60e51b815260040161099d90615094565b600d548910610ac15760405162461bcd60e51b815260040161099d90614f22565b6000898152600c602052604090208054600160301b90046001600160801b0316610af2576000809450945050610d98565b80546001600160801b03600160301b9091048116908a161115610b24578054600160301b90046001600160801b031698505b60058101546001600160801b03166000908152600e60209081526040808320815160608101835281546001600160a01b03908116808352600190930154808216958301869052600160a01b900462ffffff168285018190529351635f65e63560e11b81529195947f00000000000000000000000000000000000000000000000000000000000000009091169363becbcc6a93610bc69390929190600401614cf2565b60206040518083038186803b158015610bde57600080fd5b505afa158015610bf2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c16919061446e565b90506001600160a01b038116610c3e5760405162461bcd60e51b815260040161099d90614fd8565b8254600090610c5e908d90600160301b90046001600160801b03166152db565b9050816001600160a01b031663a34123a78560000160009054906101000a900460020b8660000160039054906101000a900460020b8f6040518463ffffffff1660e01b8152600401610cb293929190614e2d565b6040805180830381600087803b158015610ccb57600080fd5b505af1158015610cdf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d039190614be4565b90985096508a881015610d285760405162461bcd60e51b815260040161099d90615044565b89871015610d485760405162461bcd60e51b815260040161099d90614fba565b610d558483838b8b612740565b8c7f24f4b91fa7871755148bc2a9e01f85d6fd73ec2a0e6bd9a5717c0d7f5be8c2c3838e8b8b604051610d8b9493929190614d9d565b60405180910390a2505050505b50509550959350505050565b610dae33826126e2565b610dca5760405162461bcd60e51b815260040161099d90614e83565b610a3e838383612843565b6000610de08361123f565b8210610e425760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161099d565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b610a3e83838360405180602001604052806000815250611c0b565b600081610e9333826126e2565b610eaf5760405162461bcd60e51b815260040161099d90614ff4565b6000838152600c602052604090208054600160301b90046001600160801b0316158015610ede57506003810154155b8015610eec57506004810154155b610f1d5760405162461bcd60e51b81526020600482015260026024820152614e4360f01b604482015260640161099d565b6000848152600c6020526040812080546001600160b01b0319168155600181018290556002810182905560038101829055600481019190915560050180546001600160801b0319169055610f70846129a2565b60019250505b50919050565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610fcb903090600401614cde565b60206040518083038186803b158015610fe357600080fd5b505afa158015610ff7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101b9190614b61565b90508281101561103d5760405162461bcd60e51b815260040161099d9061501a565b8015610a3e57604051632e1a7d4d60e01b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b1580156110a557600080fd5b505af11580156110b9573d6000803e3d6000fd5b50505050610a3e828261263f565b60006110d260095490565b82106111355760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161099d565b6009828154811061115657634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b611170612a33565b610a3e6010838361432f565b6000818152600360205260408120546001600160a01b0316806108695760405162461bcd60e51b815260040161099d90615062565b601080546111be90615366565b80601f01602080910402602001604051908101604052809291908181526020018280546111ea90615366565b80156112375780601f1061120c57610100808354040283529160200191611237565b820191906000526020600020905b81548152906001019060200180831161121a57829003601f168201915b505050505081565b60006001600160a01b0382166112a95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161099d565b506001600160a01b031660009081526004602052604090205490565b6112cd612a33565b610a536000612a8d565b60006112e5828401846148bf565b90506112fe816000015182602001518360400151612add565b841561131857611318816000015182606001513388612b2d565b831561133257611332816020015182606001513387612b2d565b5050505050565b60606002805461087e90615366565b600080600080846101400135804211156113745760405162461bcd60e51b815260040161099d90615094565b6113846060870160408801614452565b6001600160a01b031661139d6040880160208901614452565b6001600160a01b0316106113c35760405162461bcd60e51b815260040161099d90614e66565b60006113dc6113d736899003890189614952565b612cbd565b929750909550935090506113f861012088016101008901614a26565b6001600160801b03168410156114205760405162461bcd60e51b815260040161099d90615044565b61143261014088016101208901614a26565b6001600160801b031683101561145a5760405162461bcd60e51b815260040161099d90614fba565b600d805490600061146a836153c2565b9091555095506000806114a8836114a33061148b60a08e0160808f016147ea565b8d60a001602081019061149e91906147ea565b612f7e565b612fd4565b91509150600061151e8460405180606001604052808d60200160208101906114d09190614452565b6001600160a01b031681526020018d60400160208101906114f19190614452565b6001600160a01b031681526020018d60600160208101906115129190614b2f565b62ffffff16905261306a565b90506040518061010001604052808b608001602081019061153f91906147ea565b60020b815260200161155760c08d0160a08e016147ea565b60020b8152602001896001600160801b031681526020018481526020018381526020016000815260200160008152602001826001600160801b0316815250600c60008b815260200190815260200160002060008201518160000160006101000a81548162ffffff021916908360020b62ffffff16021790555060208201518160000160036101000a81548162ffffff021916908360020b62ffffff16021790555060408201518160000160066101000a8154816001600160801b0302191690836001600160801b03160217905550606082015181600101556080820151816002015560a0820151816003015560c0820151816004015560e08201518160050160006101000a8154816001600160801b0302191690836001600160801b031602179055509050506116998a60000160208101906116939190614452565b8a613157565b887ff565fdd70b3936f0ae8efc41c2e0822f9de5ecb4dc162b153b129ec4bb9cd93c858a8a8a6040516116cf9493929190614d9d565b60405180910390a250505050509193509193565b600080846116f133826126e2565b61170d5760405162461bcd60e51b815260040161099d90614ff4565b6001600160a01b03871661171f573096505b600d5486106117405760405162461bcd60e51b815260040161099d90614f22565b6000868152600c6020908152604080832060058101546001600160801b03168452600e8352818420825160608101845281546001600160a01b03908116808352600190930154808216968301879052600160a01b900462ffffff168286018190529451635f65e63560e11b81529396919591947f00000000000000000000000000000000000000000000000000000000000000009091169363becbcc6a936117ee9390929091600401614cf2565b60206040518083038186803b15801561180657600080fd5b505afa15801561181a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061183e919061446e565b90506001600160a01b0381166118665760405162461bcd60e51b815260040161099d90614fd8565b8254600160301b90046001600160801b03161561193257825460405163a34123a760e01b81526001600160a01b0383169163a34123a7916118bd91600281810b926301000000909204900b90600090600401614e2d565b6040805180830381600087803b1580156118d657600080fd5b505af11580156118ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061190e9190614be4565b505082546119329084908390600160301b90046001600160801b0316600080612740565b8260030154886001600160801b0316111561194f57826003015497505b8260040154876001600160801b0316111561196c57826004015496505b825460405163872d1f1560e01b81526001600160a01b038c81166004830152600283810b810b60248401526301000000909304830b90920b60448201526001600160801b03808b166064830152891660848201529082169063872d1f159060a4016040805180830381600087803b1580156119e657600080fd5b505af11580156119fa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1e9190614be4565b8096508197505050876001600160801b0316836003016000828254611a439190615323565b92505081905550866001600160801b0316836004016000828254611a679190615323565b925050819055505050505094509492505050565b611a86338383613260565b5050565b6060816001600160401b03811115611ab257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611ae557816020015b6060815260200190600190039081611ad05790505b50905060005b82811015611c045760008030868685818110611b1757634e487b7160e01b600052603260045260246000fd5b9050602002810190611b2991906150f7565b604051611b37929190614c83565b600060405180830381855af49150503d8060008114611b72576040519150601f19603f3d011682016040523d82523d6000602084013e611b77565b606091505b509150915081611bc357604481511015611b9057600080fd5b60048101905080806020019051810190611baa9190614845565b60405162461bcd60e51b815260040161099d9190614e53565b80848481518110611be457634e487b7160e01b600052603260045260246000fd5b602002602001018190525050508080611bfc906153c2565b915050611aeb565b5092915050565b611c1533836126e2565b611c315760405162461bcd60e51b815260040161099d90614e83565b611c3d8484848461332b565b50505050565b604051635f65e63560e11b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063becbcc6a90611c9690879087908790600401614cf2565b60206040518083038186803b158015611cae57600080fd5b505afa158015611cc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce6919061446e565b90505b9392505050565b6060611cfb826125ac565b6000611d0561335e565b90506000815111611d255760405180602001604052806000815250611ce9565b80611d2f8461336d565b604051602001611d40929190614caf565b6040516020818303038152906040529392505050565b600080808335611d6633826126e2565b611d825760405162461bcd60e51b815260040161099d90614ff4565b8460a0013580421115611da75760405162461bcd60e51b815260040161099d90615094565b600d54863510611dc95760405162461bcd60e51b815260040161099d90614f22565b85356000908152600c6020908152604080832060058101546001600160801b03168452600e8352818420825160608101845281546001600160a01b03908116808352600190930154808216968301879052600160a01b900462ffffff168286018190529451635f65e63560e11b8152939691959194859485947f00000000000000000000000000000000000000000000000000000000000000009093169363becbcc6a93611e7b939092600401614cf2565b60206040518083038186803b158015611e9357600080fd5b505afa158015611ea7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ecb919061446e565b90506001600160a01b038116611ef35760405162461bcd60e51b815260040161099d90614fd8565b611efc81613417565b8094508193505050611ffe60405180608001604052808760000160009054906101000a900460020b60020b81526020018760000160039054906101000a900460020b60020b81526020018d6020016020810190611f599190614a26565b6001600160801b031681526020018d6040016020810190611f7a9190614a26565b6001600160801b03168152508484846001600160a01b03166309beabc16040518163ffffffff1660e01b815260040160206040518083038186803b158015611fc157600080fd5b505afa158015611fd5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ff9919061446e565b6134a2565b8554909a50600160301b90046001600160801b0316600f81900b1461204a5760405162461bcd60e51b81526020600482015260026024820152614c4f60f01b604482015260640161099d565b845460009061206990600160301b90046001600160801b03168c615201565b9050816001600160a01b0316633c8a7d8d308860000160009054906101000a900460020b8960000160039054906101000a900460020b8f60405180608001604052808c600001516001600160a01b031681526020018c602001516001600160a01b031681526020018c6040015162ffffff168152602001336001600160a01b03168152506040516020016120fd91906150b9565b6040516020818303038152906040526040518663ffffffff1660e01b815260040161212c959493929190614d4d565b6040805180830381600087803b15801561214557600080fd5b505af1158015612159573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061217d9190614be4565b909a50985061219260808d0160608e01614a26565b6001600160801b03168a10156121ba5760405162461bcd60e51b815260040161099d90615044565b6121ca60a08d0160808e01614a26565b6001600160801b03168910156121f25760405162461bcd60e51b815260040161099d90614fba565b612200868383600080612740565b8b600001357ff565fdd70b3936f0ae8efc41c2e0822f9de5ecb4dc162b153b129ec4bb9cd93c838d8d8d60405161223a9493929190614d9d565b60405180910390a250505050505050509193909250565b6040516370a0823160e01b81526000906001600160a01b038516906370a0823190612280903090600401614cde565b60206040518083038186803b15801561229857600080fd5b505afa1580156122ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d09190614b61565b9050828110156122f25760405162461bcd60e51b815260040161099d9061501a565b8015611c3d57611c3d84838361357d565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b612339612a33565b6001600160a01b03811661239e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161099d565b6123a781612a8d565b50565b6000836001600160a01b0316856001600160a01b0316106123dd5760405162461bcd60e51b815260040161099d90614e66565b604051635f65e63560e11b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063becbcc6a9061243090899089908990600401614cf2565b60206040518083038186803b15801561244857600080fd5b505afa15801561245c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612480919061446e565b90506001600160a01b038116612551576040516378eda67b60e01b81526001600160a01b038781166004830152868116602483015262ffffff86166044830152600285900b60648301527f000000000000000000000000000000000000000000000000000000000000000016906378eda67b90608401602060405180830381600087803b15801561251057600080fd5b505af1158015612524573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612548919061446e565b91506125549050565b90505b949350505050565b60006001600160e01b031982166380ac58cd60e01b148061258d57506001600160e01b03198216635b5e139f60e01b145b8061086957506301ffc9a760e01b6001600160e01b0319831614610869565b6125b581613676565b6123a75760405162461bcd60e51b815260040161099d90615062565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906126068261117c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b604080516000808252602082019092526001600160a01b0384169083906040516126699190614c93565b60006040518083038185875af1925050503d80600081146126a6576040519150601f19603f3d011682016040523d82523d6000602084013e6126ab565b606091505b5050905080610a3e5760405162461bcd60e51b815260206004820152600360248201526253544560e81b604482015260640161099d565b6000806126ee8361117c565b9050806001600160a01b0316846001600160a01b0316148061271557506127158185612303565b806125545750836001600160a01b031661272e84610901565b6001600160a01b031614949350505050565b845460009081906127679087906114a3903090600281810b9163010000009004900b612f7e565b600189015460028a01548a54939550919350840391908303906127a0908390600160301b90046001600160801b0316600160801b613693565b6127aa9087615223565b8960030160008282546127bd9190615223565b909155505088546127e4908290600160301b90046001600160801b0316600160801b613693565b6127ee9086615223565b8960040160008282546128019190615223565b9091555050505060018701919091556002860155505082546001600160801b03909116600160301b026601000000000000600160b01b03199091161790915550565b826001600160a01b03166128568261117c565b6001600160a01b03161461287c5760405162461bcd60e51b815260040161099d90614f3e565b6001600160a01b0382166128de5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161099d565b6128eb8383836001613740565b826001600160a01b03166128fe8261117c565b6001600160a01b0316146129245760405162461bcd60e51b815260040161099d90614f3e565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184936000805160206154cc83398151915291a4505050565b60006129ad8261117c565b90506129bd816000846001613740565b6129c68261117c565b600083815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526004845282852080546000190190558785526003909352818420805490911690555192935084926000805160206154cc833981519152908390a45050565b6000546001600160a01b03163314610a535760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161099d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612ae8838383611c43565b6001600160a01b0316336001600160a01b031614610a3e5760405162461bcd60e51b8152602060048201526002602482015261073760f41b604482015260640161099d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b0316148015612b6e5750804710155b15612c90577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015612bce57600080fd5b505af1158015612be2573d6000803e3d6000fd5b505060405163a9059cbb60e01b81526001600160a01b038681166004830152602482018690527f000000000000000000000000000000000000000000000000000000000000000016935063a9059cbb92506044019050602060405180830381600087803b158015612c5257600080fd5b505af1158015612c66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8a9190614796565b50611c3d565b6001600160a01b038316301415612cb157612cac84838361357d565b611c3d565b611c3d8484848461386d565b6000806000806000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663becbcc6a886020015189604001518a606001516040518463ffffffff1660e01b8152600401612d2293929190614cf2565b60206040518083038186803b158015612d3a57600080fd5b505afa158015612d4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d72919061446e565b92506000836001600160a01b03166309beabc16040518163ffffffff1660e01b815260040160206040518083038186803b158015612daf57600080fd5b505afa158015612dc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612de7919061446e565b90506001600160a01b038416612e0f5760405162461bcd60e51b815260040161099d90614fd8565b612e1884613417565b8094508193505050612e7460405180608001604052808a6080015160020b81526020018a60a0015160020b81526020018a60c001516001600160801b031681526020018a60e001516001600160801b03168152508484846134a2565b9650836001600160a01b0316633c8a7d8d308a608001518b60a001518b60405180608001604052808f602001516001600160a01b031681526020018f604001516001600160a01b031681526020018f6060015162ffffff168152602001336001600160a01b0316815250604051602001612eee91906150b9565b6040516020818303038152906040526040518663ffffffff1660e01b8152600401612f1d959493929190614d4d565b6040805180830381600087803b158015612f3657600080fd5b505af1158015612f4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f6e9190614be4565b9799909850939550929350505050565b6040805160609490941b6bffffffffffffffffffffffff1916602080860191909152600293840b60e890811b60348701529290930b90911b60378401528051601a818503018152603a9093019052815191012090565b600080600080856001600160a01b031663b0f59257866040518263ffffffff1660e01b815260040161300891815260200190565b60a06040518083038186803b15801561302057600080fd5b505afa158015613034573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130589190614a42565b509196509450505050505b9250929050565b6001600160a01b0382166000908152600f60205260409020546001600160801b03168061086957600b80546001600160801b03169060006130aa8361539b565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b039485166000908152600f6020908152604080832080546001600160801b0319169486169485179055928252600e815290829020855181546001600160a01b031916908816178155908501516001919091018054959092015195166001600160b81b031990941693909317600160a01b62ffffff90951694909402939093179091555090565b6001600160a01b0382166131ad5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161099d565b6131b681613676565b156131d35760405162461bcd60e51b815260040161099d90614f83565b6131e1600083836001613740565b6131ea81613676565b156132075760405162461bcd60e51b815260040161099d90614f83565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291906000805160206154cc833981519152908290a45050565b816001600160a01b0316836001600160a01b031614156132be5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015260640161099d565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613336848484612843565b61334284848484613977565b611c3d5760405162461bcd60e51b815260040161099d90614ed0565b60606010805461087e90615366565b6060600061337a83613a81565b60010190506000816001600160401b038111156133a757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156133d1576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461340a5761340f565b6133db565b509392505050565b600080600080846001600160a01b031663c19d93fb6040518163ffffffff1660e01b81526004016101006040518083038186803b15801561345757600080fd5b505afa15801561346b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061348f9190614a8a565b50959b949a509398505050505050505050565b60006134b660026001600160801b0361523b565b90506000806134d087600001518860200151888888613b59565b9092509050811561351e57600082600160601b89604001516001600160801b03166134fb9190615275565b6135059190615261565b905080846001600160801b0316111561351c578093505b505b801561357357600081600160601b60018a6060015161353d91906152db565b6001600160801b03166135509190615275565b61355a9190615261565b905080846001600160801b03161115613571578093505b505b5050949350505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17905291516000928392908716916135d99190614c93565b6000604051808303816000865af19150503d8060008114613616576040519150601f19603f3d011682016040523d82523d6000602084013e61361b565b606091505b50915091508180156136455750805115806136455750808060200190518101906136459190614796565b6113325760405162461bcd60e51b815260206004820152600260248201526114d560f21b604482015260640161099d565b6000908152600360205260409020546001600160a01b0316151590565b6000808060001985870985870292508281108382030391505080600014156136cd57600084116136c257600080fd5b508290049050611ce9565b8084116136d957600080fd5b6000848688096001861981018716968790046003810260029081188083028203028083028203028083028203028083028203028083028203029182029003026000889003889004909101858311909403939093029303949094049190911702949350505050565b60018111156137af5760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b606482015260840161099d565b816001600160a01b03851661380b5761380681600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b61382e565b836001600160a01b0316856001600160a01b03161461382e5761382e8582613c49565b6001600160a01b03841661384a5761384581613ce6565b611332565b846001600160a01b0316846001600160a01b031614611332576113328482613dbf565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17905291516000928392908816916138d19190614c93565b6000604051808303816000865af19150503d806000811461390e576040519150601f19603f3d011682016040523d82523d6000602084013e613913565b606091505b509150915081801561393d57508051158061393d57508080602001905181019061393d9190614796565b61396f5760405162461bcd60e51b815260206004820152600360248201526229aa2360e91b604482015260640161099d565b505050505050565b60006001600160a01b0384163b15613a7957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906139bb903390899088908890600401614d1a565b602060405180830381600087803b1580156139d557600080fd5b505af1925050508015613a05575060408051601f3d908101601f19168201909252613a02918101906147ce565b60015b613a5f573d808015613a33576040519150601f19603f3d011682016040523d82523d6000602084013e613a38565b606091505b508051613a575760405162461bcd60e51b815260040161099d90614ed0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612554565b506001612554565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310613ac05772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613aec576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310613b0a57662386f26fc10000830492506010015b6305f5e1008310613b22576305f5e100830492506008015b6127108310613b3657612710830492506004015b60648310613b48576064830492506002015b600a83106108695760010192915050565b60008080613b6687613e03565b90508560020b8860020b1215613bc7576000613b8189613e03565b90508660020b8860020b1215613bad57613b9c81838761420e565b613ba69084615223565b9250613bc5565b613bb881878761420e565b613bc29084615223565b92505b505b8560020b8760020b1315613c085760008660020b8960020b13613bf457613bef8760016151bb565b613bf6565b885b9050613c048189848861425a565b9350505b8560020b8860020b13158015613c2357508560020b8760020b135b15613c3e57613c3b6001600160a01b03861683615223565b91505b509550959350505050565b60006001613c568461123f565b613c609190615323565b600083815260086020526040902054909150808214613cb3576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090613cf890600190615323565b6000838152600a602052604081205460098054939450909284908110613d2e57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060098381548110613d5d57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480613da357634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613dca8361123f565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b60008060008360020b12613e1a578260020b613e27565b8260020b613e2790615412565b9050613e36620d89e7196153f1565b60020b811115613e6c5760405162461bcd60e51b81526020600482015260016024820152601560fa1b604482015260640161099d565b600060018216613e8057600160801b613e92565b6ffffcb933bd6fad37aa2d162d1a5940015b6001600160881b031690506002821615613ec7576080613ec2826ffff97272373d413259a46990580e213a615275565b901c90505b6004821615613ef1576080613eec826ffff2e50f5f656932ef12357cf3c7fdcc615275565b901c90505b6008821615613f1b576080613f16826fffe5caca7e10e4e61c3624eaa0941cd0615275565b901c90505b6010821615613f45576080613f40826fffcb9843d60f6159c9db58835c926644615275565b901c90505b6020821615613f6f576080613f6a826fff973b41fa98c081472e6896dfb254c0615275565b901c90505b6040821615613f99576080613f94826fff2ea16466c96a3843ec78b326b52861615275565b901c90505b6080821615613fc3576080613fbe826ffe5dee046a99a2a811c461f1969c3053615275565b901c90505b610100821615613fee576080613fe9826ffcbe86c7900a88aedcffc83b479aa3a4615275565b901c90505b610200821615614019576080614014826ff987a7253ac413176f2b074cf7815e54615275565b901c90505b61040082161561404457608061403f826ff3392b0822b70005940c7a398e4b70f3615275565b901c90505b61080082161561406f57608061406a826fe7159475a2c29b7443b29c7fa6e889d9615275565b901c90505b61100082161561409a576080614095826fd097f3bdfd2022b8845ad8f792aa5825615275565b901c90505b6120008216156140c55760806140c0826fa9f746462d870fdf8a65dc1f90e061e5615275565b901c90505b6140008216156140f05760806140eb826f70d869a156d2a1b890bb3df62baf32f7615275565b901c90505b61800082161561411b576080614116826f31be135f97d08fd981231505542fcfa6615275565b901c90505b62010000821615614147576080614142826f09aa508b5b7a84e1c677de54f3e99bc9615275565b901c90505b6202000082161561417257608061416d826e5d6af8dedb81196699c329225ee604615275565b901c90505b6204000082161561419c576080614197826d2216e584f5fa1ea926041bedfe98615275565b901c90505b620800008216156141c45760806141bf826b048a170391f7dc42444e8fa2615275565b901c90505b60008460020b13156141df576141dc81600019615261565b90505b6141ee640100000000826153dd565b156141fa5760016141fd565b60005b6125549060ff16602083901c615223565b60008061421b8585615303565b9050600061422d600160601b85615303565b9050614250600160601b836001600160a01b0316836001600160a01b03166142d8565b9695505050505050565b60008061427a61426a8787615294565b6142759060016151bb565b613e03565b9050600061428c6142758760016151bb565b9050600061429a8584615303565b905060006142a88784615303565b90506142cb600160601b836001600160a01b0316836001600160a01b03166142d8565b9998505050505050505050565b60006142e5848484613693565b90506000828061430557634e487b7160e01b600052601260045260246000fd5b8486091115611ce957600019811061431c57600080fd5b80614326816153c2565b95945050505050565b82805461433b90615366565b90600052602060002090601f01602090048101928261435d57600085556143a3565b82601f106143765782800160ff198235161785556143a3565b828001600101855582156143a3579182015b828111156143a3578235825591602001919060010190614388565b506143af9291506143b3565b5090565b5b808211156143af57600081556001016143b4565b80356143d38161546e565b919050565b60008083601f8401126143e9578182fd5b5081356001600160401b038111156143ff578182fd5b60208301915083602082850101111561306357600080fd5b80356143d3816154a7565b80356143d3816154b6565b805161ffff811681146143d357600080fd5b803562ffffff811681146143d357600080fd5b600060208284031215614463578081fd5b8135611ce98161546e565b60006020828403121561447f578081fd5b8151611ce98161546e565b6000806040838503121561449c578081fd5b82356144a78161546e565b915060208301356144b78161546e565b809150509250929050565b6000806000606084860312156144d6578081fd5b83356144e18161546e565b925060208401356144f18161546e565b91506144ff6040850161443f565b90509250925092565b6000806000806080858703121561451d578182fd5b84356145288161546e565b935060208501356145388161546e565b92506145466040860161443f565b91506060850135614556816154a7565b939692955090935050565b600080600060608486031215614575578081fd5b83356145808161546e565b925060208401356145908161546e565b929592945050506040919091013590565b600080600080608085870312156145b6578182fd5b84356145c18161546e565b935060208501356145d18161546e565b92506040850135915060608501356001600160401b038111156145f2578182fd5b8501601f81018713614602578182fd5b803561461561461082615194565b615164565b818152886020838501011115614629578384fd5b81602084016020830137908101602001929092525092959194509250565b60008060408385031215614659578182fd5b82356146648161546e565b915060208301356144b781615483565b60008060408385031215614686578182fd5b82356146918161546e565b946020939093013593505050565b6000806000606084860312156146b3578081fd5b83356146be8161546e565b92506020840135915060408401356146d58161546e565b809150509250925092565b600080600080608085870312156146f5578182fd5b84356147008161546e565b9350602085013592506040850135614717816154b6565b91506060850135614556816154b6565b60008060208385031215614739578182fd5b82356001600160401b038082111561474f578384fd5b818501915085601f830112614762578384fd5b813581811115614770578485fd5b8660208260051b8501011115614784578485fd5b60209290920196919550909350505050565b6000602082840312156147a7578081fd5b8151611ce981615483565b6000602082840312156147c3578081fd5b8135611ce981615491565b6000602082840312156147df578081fd5b8151611ce981615491565b6000602082840312156147fb578081fd5b8135611ce9816154a7565b60008060208385031215614818578182fd5b82356001600160401b0381111561482d578283fd5b614839858286016143d8565b90969095509350505050565b600060208284031215614856578081fd5b81516001600160401b0381111561486b578182fd5b8201601f8101841361487b578182fd5b805161488961461082615194565b81815285602083850101111561489d578384fd5b61432682602083016020860161533a565b600060c08284031215610f76578081fd5b6000608082840312156148d0578081fd5b604051608081018181106001600160401b03821117156148f2576148f2615458565b60405282356149008161546e565b815260208301356149108161546e565b60208201526149216040840161443f565b604082015260608301356149348161546e565b60608201529392505050565b60006101608284031215610f76578081fd5b60006101608284031215614964578081fd5b61496c61513b565b614975836143c8565b8152614983602084016143c8565b6020820152614994604084016143c8565b60408201526149a56060840161443f565b60608201526149b660808401614417565b60808201526149c760a08401614417565b60a08201526149d860c08401614422565b60c08201526149e960e08401614422565b60e08201526101006149fc818501614422565b90820152610120614a0e848201614422565b90820152610140928301359281019290925250919050565b600060208284031215614a37578081fd5b8135611ce9816154b6565b600080600080600060a08688031215614a59578283fd5b8551614a64816154b6565b602087015160408801516060890151608090990151929a91995097965090945092505050565b600080600080600080600080610100898b031215614aa6578586fd5b8851614ab18161546e565b60208a0151909850614ac2816154a7565b9650614ad060408a0161442d565b9550614ade60608a0161442d565b9450614aec60808a0161442d565b935060a0890151614afc81615483565b60c08a0151909350614b0d816154b6565b60e08a0151909250614b1e816154b6565b809150509295985092959890939650565b600060208284031215614b40578081fd5b611ce98261443f565b600060208284031215614b5a578081fd5b5035919050565b600060208284031215614b72578081fd5b5051919050565b60008060408385031215614b8b578182fd5b8235915060208301356144b78161546e565b600080600080600060a08688031215614bb4578283fd5b853594506020860135614bc6816154b6565b94979496505050506040830135926060810135926080909101359150565b60008060408385031215614bf6578182fd5b505080516020909101519092909150565b60008060008060608587031215614c1c578182fd5b843593506020850135925060408501356001600160401b03811115614c3f578283fd5b614c4b878288016143d8565b95989497509550505050565b60008151808452614c6f81602086016020860161533a565b601f01601f19169290920160200192915050565b8183823760009101908152919050565b60008251614ca581846020870161533a565b9190910192915050565b60008351614cc181846020880161533a565b835190830190614cd581836020880161533a565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b03938416815291909216602082015262ffffff909116604082015260600190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061425090830184614c57565b6001600160a01b0386168152600285810b602083015284900b60408201526001600160801b038316606082015260a060808201819052600090614d9290830184614c57565b979650505050505050565b6001600160a01b039490941684526001600160801b039290921660208401526040830152606082015260800190565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b82811015614e2057603f19888603018452614e0e858351614c57565b94509285019290850190600101614df2565b5092979650505050505050565b600293840b81529190920b60208201526001600160801b03909116604082015260600190565b602081526000611ce96020830184614c57565b602080825260039082015262783c7960e81b604082015260600190565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b602080825260029082015261262760f11b604082015260600190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252600490820152632ca6a4a760e11b604082015260600190565b602080825260029082015261050360f41b604082015260600190565b6020808252600c908201526b139bdd08185c1c1c9bdd995960a21b604082015260600190565b60208082526010908201526f0ae8aa89072409cdee8408adcdeeaced60831b604082015260600190565b6020808252600490820152632c26a4a760e11b604082015260600190565b602080825260189082015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604082015260600190565b6020808252600b908201526a4f7574206f662074696d6560a81b604082015260600190565b81516001600160a01b03908116825260208084015182169083015260408084015162ffffff1690830152606092830151169181019190915260800190565b6000808335601e1984360301811261510d578283fd5b8301803591506001600160401b03821115615126578283fd5b60200191503681900382131561306357600080fd5b60405161016081016001600160401b038111828210171561515e5761515e615458565b60405290565b604051601f8201601f191681016001600160401b038111828210171561518c5761518c615458565b604052919050565b60006001600160401b038211156151ad576151ad615458565b50601f01601f191660200190565b60008160020b8360020b82821282627fffff038213811516156151e0576151e061542c565b82627fffff190382128116156151f8576151f861542c565b50019392505050565b60006001600160801b03828116848216808303821115614cd557614cd561542c565b600082198211156152365761523661542c565b500190565b60006001600160801b038381168061525557615255615442565b92169190910492915050565b60008261527057615270615442565b500490565b600081600019048311821515161561528f5761528f61542c565b500290565b60008160020b8360020b82811281627fffff19018312811516156152ba576152ba61542c565b81627fffff0183138116156152d1576152d161542c565b5090039392505050565b60006001600160801b03838116908316818110156152fb576152fb61542c565b039392505050565b60006001600160a01b03838116908316818110156152fb576152fb61542c565b6000828210156153355761533561542c565b500390565b60005b8381101561535557818101518382015260200161533d565b83811115611c3d5750506000910152565b600181811c9082168061537a57607f821691505b60208210811415610f7657634e487b7160e01b600052602260045260246000fd5b60006001600160801b03828116808214156153b8576153b861542c565b6001019392505050565b60006000198214156153d6576153d661542c565b5060010190565b6000826153ec576153ec615442565b500690565b60008160020b627fffff1981141561540b5761540b61542c565b9003919050565b6000600160ff1b8214156154285761542861542c565b0390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146123a757600080fd5b80151581146123a757600080fd5b6001600160e01b0319811681146123a757600080fd5b8060020b81146123a757600080fd5b6001600160801b03811681146123a757600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212200a8fabe062ba21515613475180e8bddf48dbd2b61eaebfd1c095d9fac6c4c8ef64736f6c6343000804003300000000000000000000000045e5f26451cdb01b0fa1f8582e0aad9a6f27c218000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f
Deployed Bytecode
0x6080604052600436106102245760003560e01c8063715018a61161012e578063c45a0155116100ab578063df2ab5bb1161006f578063df2ab5bb14610773578063e985e9c514610786578063f2fde38b146107a6578063f425a3ce146107c6578063f655dbc1146107e657600080fd5b8063c45a015514610683578063c87b56dd146106b7578063cbd89416146106d7578063d4175be21461070f578063dca87bec1461075d57600080fd5b8063a0e4eb3c116100f2578063a0e4eb3c146105f0578063a22cb46514610603578063ac9650d814610623578063b88d4fde14610643578063becbcc6a1461066357600080fd5b8063715018a61461054d57806384fe2b3d146105625780638da5cb5b1461058257806395d89b41146105a057806396f639ed146105b557600080fd5b80632f745c59116101bc5780634f6ccce7116101805780634f6ccce7146104b857806355f804b3146104d85780636352211e146104f85780636c0360eb1461051857806370a082311461052d57600080fd5b80632f745c591461041157806342842e0e1461043157806342966c681461045157806349404b7c146104715780634aa4a4fc1461048457600080fd5b806301ffc9a71461023057806306fdde03146102655780630713051d14610287578063081812fc14610346578063095ea7b31461037357806312210e8a1461039557806315feae511461039d57806318160ddd146103d257806323b872dd146103f157600080fd5b3661022b57005b600080fd5b34801561023c57600080fd5b5061025061024b3660046147b2565b610844565b60405190151581526020015b60405180910390f35b34801561027157600080fd5b5061027a61086f565b60405161025c9190614e53565b34801561029357600080fd5b506102f56102a2366004614b49565b600c602052600090815260409020805460018201546002808401546003850154600486015460059096015485840b966301000000870490940b956001600160801b03600160301b90910481169594911688565b604080516002998a0b81529790980b60208801526001600160801b03958616978701979097526060860193909352608085019190915260a084015260c083015290911660e08201526101000161025c565b34801561035257600080fd5b50610366610361366004614b49565b610901565b60405161025c9190614cde565b34801561037f57600080fd5b5061039361038e366004614674565b610928565b005b610393610a43565b3480156103a957600080fd5b506103bd6103b8366004614b9d565b610a55565b6040805192835260208301919091520161025c565b3480156103de57600080fd5b506009545b60405190815260200161025c565b3480156103fd57600080fd5b5061039361040c366004614561565b610da4565b34801561041d57600080fd5b506103e361042c366004614674565b610dd5565b34801561043d57600080fd5b5061039361044c366004614561565b610e6b565b34801561045d57600080fd5b5061025061046c366004614b49565b610e86565b61039361047f366004614b79565b610f7c565b34801561049057600080fd5b506103667f000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f81565b3480156104c457600080fd5b506103e36104d3366004614b49565b6110c7565b3480156104e457600080fd5b506103936104f3366004614806565b611168565b34801561050457600080fd5b50610366610513366004614b49565b61117c565b34801561052457600080fd5b5061027a6111b1565b34801561053957600080fd5b506103e3610548366004614452565b61123f565b34801561055957600080fd5b506103936112c5565b34801561056e57600080fd5b5061039361057d366004614c07565b6112d7565b34801561058e57600080fd5b506000546001600160a01b0316610366565b3480156105ac57600080fd5b5061027a611339565b6105c86105c3366004614940565b611348565b604080519485526001600160801b03909316602085015291830152606082015260800161025c565b6103bd6105fe3660046146e0565b6116e3565b34801561060f57600080fd5b5061039361061e366004614647565b611a7b565b610636610631366004614727565b611a8a565b60405161025c9190614dcc565b34801561064f57600080fd5b5061039361065e3660046145a1565b611c0b565b34801561066f57600080fd5b5061036661067e3660046144c2565b611c43565b34801561068f57600080fd5b506103667f00000000000000000000000045e5f26451cdb01b0fa1f8582e0aad9a6f27c21881565b3480156106c357600080fd5b5061027a6106d2366004614b49565b611cf0565b6106ea6106e53660046148ae565b611d56565b604080516001600160801b03909416845260208401929092529082015260600161025c565b34801561071b57600080fd5b5061074561072a366004614452565b600f602052600090815260409020546001600160801b031681565b6040516001600160801b03909116815260200161025c565b34801561076957600080fd5b506103e3600d5481565b61039361078136600461469f565b612251565b34801561079257600080fd5b506102506107a136600461448a565b612303565b3480156107b257600080fd5b506103936107c1366004614452565b612331565b3480156107d257600080fd5b506103666107e1366004614508565b6123aa565b3480156107f257600080fd5b50610835610801366004614a26565b600e60205260009081526040902080546001909101546001600160a01b0391821691811690600160a01b900462ffffff1683565b60405161025c93929190614cf2565b60006001600160e01b0319821663780e9d6360e01b148061086957506108698261255c565b92915050565b60606001805461087e90615366565b80601f01602080910402602001604051908101604052809291908181526020018280546108aa90615366565b80156108f75780601f106108cc576101008083540402835291602001916108f7565b820191906000526020600020905b8154815290600101906020018083116108da57829003601f168201915b5050505050905090565b600061090c826125ac565b506000908152600560205260409020546001600160a01b031690565b60006109338261117c565b9050806001600160a01b0316836001600160a01b031614156109a65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806109c257506109c28133612303565b610a345760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260840161099d565b610a3e83836125d1565b505050565b4715610a5357610a53334761263f565b565b60008086610a6333826126e2565b610a7f5760405162461bcd60e51b815260040161099d90614ff4565b8380421115610aa05760405162461bcd60e51b815260040161099d90615094565b600d548910610ac15760405162461bcd60e51b815260040161099d90614f22565b6000898152600c602052604090208054600160301b90046001600160801b0316610af2576000809450945050610d98565b80546001600160801b03600160301b9091048116908a161115610b24578054600160301b90046001600160801b031698505b60058101546001600160801b03166000908152600e60209081526040808320815160608101835281546001600160a01b03908116808352600190930154808216958301869052600160a01b900462ffffff168285018190529351635f65e63560e11b81529195947f00000000000000000000000045e5f26451cdb01b0fa1f8582e0aad9a6f27c2189091169363becbcc6a93610bc69390929190600401614cf2565b60206040518083038186803b158015610bde57600080fd5b505afa158015610bf2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c16919061446e565b90506001600160a01b038116610c3e5760405162461bcd60e51b815260040161099d90614fd8565b8254600090610c5e908d90600160301b90046001600160801b03166152db565b9050816001600160a01b031663a34123a78560000160009054906101000a900460020b8660000160039054906101000a900460020b8f6040518463ffffffff1660e01b8152600401610cb293929190614e2d565b6040805180830381600087803b158015610ccb57600080fd5b505af1158015610cdf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d039190614be4565b90985096508a881015610d285760405162461bcd60e51b815260040161099d90615044565b89871015610d485760405162461bcd60e51b815260040161099d90614fba565b610d558483838b8b612740565b8c7f24f4b91fa7871755148bc2a9e01f85d6fd73ec2a0e6bd9a5717c0d7f5be8c2c3838e8b8b604051610d8b9493929190614d9d565b60405180910390a2505050505b50509550959350505050565b610dae33826126e2565b610dca5760405162461bcd60e51b815260040161099d90614e83565b610a3e838383612843565b6000610de08361123f565b8210610e425760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161099d565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b610a3e83838360405180602001604052806000815250611c0b565b600081610e9333826126e2565b610eaf5760405162461bcd60e51b815260040161099d90614ff4565b6000838152600c602052604090208054600160301b90046001600160801b0316158015610ede57506003810154155b8015610eec57506004810154155b610f1d5760405162461bcd60e51b81526020600482015260026024820152614e4360f01b604482015260640161099d565b6000848152600c6020526040812080546001600160b01b0319168155600181018290556002810182905560038101829055600481019190915560050180546001600160801b0319169055610f70846129a2565b60019250505b50919050565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f16906370a0823190610fcb903090600401614cde565b60206040518083038186803b158015610fe357600080fd5b505afa158015610ff7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101b9190614b61565b90508281101561103d5760405162461bcd60e51b815260040161099d9061501a565b8015610a3e57604051632e1a7d4d60e01b8152600481018290527f000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f6001600160a01b031690632e1a7d4d90602401600060405180830381600087803b1580156110a557600080fd5b505af11580156110b9573d6000803e3d6000fd5b50505050610a3e828261263f565b60006110d260095490565b82106111355760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161099d565b6009828154811061115657634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b611170612a33565b610a3e6010838361432f565b6000818152600360205260408120546001600160a01b0316806108695760405162461bcd60e51b815260040161099d90615062565b601080546111be90615366565b80601f01602080910402602001604051908101604052809291908181526020018280546111ea90615366565b80156112375780601f1061120c57610100808354040283529160200191611237565b820191906000526020600020905b81548152906001019060200180831161121a57829003601f168201915b505050505081565b60006001600160a01b0382166112a95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161099d565b506001600160a01b031660009081526004602052604090205490565b6112cd612a33565b610a536000612a8d565b60006112e5828401846148bf565b90506112fe816000015182602001518360400151612add565b841561131857611318816000015182606001513388612b2d565b831561133257611332816020015182606001513387612b2d565b5050505050565b60606002805461087e90615366565b600080600080846101400135804211156113745760405162461bcd60e51b815260040161099d90615094565b6113846060870160408801614452565b6001600160a01b031661139d6040880160208901614452565b6001600160a01b0316106113c35760405162461bcd60e51b815260040161099d90614e66565b60006113dc6113d736899003890189614952565b612cbd565b929750909550935090506113f861012088016101008901614a26565b6001600160801b03168410156114205760405162461bcd60e51b815260040161099d90615044565b61143261014088016101208901614a26565b6001600160801b031683101561145a5760405162461bcd60e51b815260040161099d90614fba565b600d805490600061146a836153c2565b9091555095506000806114a8836114a33061148b60a08e0160808f016147ea565b8d60a001602081019061149e91906147ea565b612f7e565b612fd4565b91509150600061151e8460405180606001604052808d60200160208101906114d09190614452565b6001600160a01b031681526020018d60400160208101906114f19190614452565b6001600160a01b031681526020018d60600160208101906115129190614b2f565b62ffffff16905261306a565b90506040518061010001604052808b608001602081019061153f91906147ea565b60020b815260200161155760c08d0160a08e016147ea565b60020b8152602001896001600160801b031681526020018481526020018381526020016000815260200160008152602001826001600160801b0316815250600c60008b815260200190815260200160002060008201518160000160006101000a81548162ffffff021916908360020b62ffffff16021790555060208201518160000160036101000a81548162ffffff021916908360020b62ffffff16021790555060408201518160000160066101000a8154816001600160801b0302191690836001600160801b03160217905550606082015181600101556080820151816002015560a0820151816003015560c0820151816004015560e08201518160050160006101000a8154816001600160801b0302191690836001600160801b031602179055509050506116998a60000160208101906116939190614452565b8a613157565b887ff565fdd70b3936f0ae8efc41c2e0822f9de5ecb4dc162b153b129ec4bb9cd93c858a8a8a6040516116cf9493929190614d9d565b60405180910390a250505050509193509193565b600080846116f133826126e2565b61170d5760405162461bcd60e51b815260040161099d90614ff4565b6001600160a01b03871661171f573096505b600d5486106117405760405162461bcd60e51b815260040161099d90614f22565b6000868152600c6020908152604080832060058101546001600160801b03168452600e8352818420825160608101845281546001600160a01b03908116808352600190930154808216968301879052600160a01b900462ffffff168286018190529451635f65e63560e11b81529396919591947f00000000000000000000000045e5f26451cdb01b0fa1f8582e0aad9a6f27c2189091169363becbcc6a936117ee9390929091600401614cf2565b60206040518083038186803b15801561180657600080fd5b505afa15801561181a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061183e919061446e565b90506001600160a01b0381166118665760405162461bcd60e51b815260040161099d90614fd8565b8254600160301b90046001600160801b03161561193257825460405163a34123a760e01b81526001600160a01b0383169163a34123a7916118bd91600281810b926301000000909204900b90600090600401614e2d565b6040805180830381600087803b1580156118d657600080fd5b505af11580156118ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061190e9190614be4565b505082546119329084908390600160301b90046001600160801b0316600080612740565b8260030154886001600160801b0316111561194f57826003015497505b8260040154876001600160801b0316111561196c57826004015496505b825460405163872d1f1560e01b81526001600160a01b038c81166004830152600283810b810b60248401526301000000909304830b90920b60448201526001600160801b03808b166064830152891660848201529082169063872d1f159060a4016040805180830381600087803b1580156119e657600080fd5b505af11580156119fa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1e9190614be4565b8096508197505050876001600160801b0316836003016000828254611a439190615323565b92505081905550866001600160801b0316836004016000828254611a679190615323565b925050819055505050505094509492505050565b611a86338383613260565b5050565b6060816001600160401b03811115611ab257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611ae557816020015b6060815260200190600190039081611ad05790505b50905060005b82811015611c045760008030868685818110611b1757634e487b7160e01b600052603260045260246000fd5b9050602002810190611b2991906150f7565b604051611b37929190614c83565b600060405180830381855af49150503d8060008114611b72576040519150601f19603f3d011682016040523d82523d6000602084013e611b77565b606091505b509150915081611bc357604481511015611b9057600080fd5b60048101905080806020019051810190611baa9190614845565b60405162461bcd60e51b815260040161099d9190614e53565b80848481518110611be457634e487b7160e01b600052603260045260246000fd5b602002602001018190525050508080611bfc906153c2565b915050611aeb565b5092915050565b611c1533836126e2565b611c315760405162461bcd60e51b815260040161099d90614e83565b611c3d8484848461332b565b50505050565b604051635f65e63560e11b81526000906001600160a01b037f00000000000000000000000045e5f26451cdb01b0fa1f8582e0aad9a6f27c218169063becbcc6a90611c9690879087908790600401614cf2565b60206040518083038186803b158015611cae57600080fd5b505afa158015611cc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ce6919061446e565b90505b9392505050565b6060611cfb826125ac565b6000611d0561335e565b90506000815111611d255760405180602001604052806000815250611ce9565b80611d2f8461336d565b604051602001611d40929190614caf565b6040516020818303038152906040529392505050565b600080808335611d6633826126e2565b611d825760405162461bcd60e51b815260040161099d90614ff4565b8460a0013580421115611da75760405162461bcd60e51b815260040161099d90615094565b600d54863510611dc95760405162461bcd60e51b815260040161099d90614f22565b85356000908152600c6020908152604080832060058101546001600160801b03168452600e8352818420825160608101845281546001600160a01b03908116808352600190930154808216968301879052600160a01b900462ffffff168286018190529451635f65e63560e11b8152939691959194859485947f00000000000000000000000045e5f26451cdb01b0fa1f8582e0aad9a6f27c2189093169363becbcc6a93611e7b939092600401614cf2565b60206040518083038186803b158015611e9357600080fd5b505afa158015611ea7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ecb919061446e565b90506001600160a01b038116611ef35760405162461bcd60e51b815260040161099d90614fd8565b611efc81613417565b8094508193505050611ffe60405180608001604052808760000160009054906101000a900460020b60020b81526020018760000160039054906101000a900460020b60020b81526020018d6020016020810190611f599190614a26565b6001600160801b031681526020018d6040016020810190611f7a9190614a26565b6001600160801b03168152508484846001600160a01b03166309beabc16040518163ffffffff1660e01b815260040160206040518083038186803b158015611fc157600080fd5b505afa158015611fd5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ff9919061446e565b6134a2565b8554909a50600160301b90046001600160801b0316600f81900b1461204a5760405162461bcd60e51b81526020600482015260026024820152614c4f60f01b604482015260640161099d565b845460009061206990600160301b90046001600160801b03168c615201565b9050816001600160a01b0316633c8a7d8d308860000160009054906101000a900460020b8960000160039054906101000a900460020b8f60405180608001604052808c600001516001600160a01b031681526020018c602001516001600160a01b031681526020018c6040015162ffffff168152602001336001600160a01b03168152506040516020016120fd91906150b9565b6040516020818303038152906040526040518663ffffffff1660e01b815260040161212c959493929190614d4d565b6040805180830381600087803b15801561214557600080fd5b505af1158015612159573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061217d9190614be4565b909a50985061219260808d0160608e01614a26565b6001600160801b03168a10156121ba5760405162461bcd60e51b815260040161099d90615044565b6121ca60a08d0160808e01614a26565b6001600160801b03168910156121f25760405162461bcd60e51b815260040161099d90614fba565b612200868383600080612740565b8b600001357ff565fdd70b3936f0ae8efc41c2e0822f9de5ecb4dc162b153b129ec4bb9cd93c838d8d8d60405161223a9493929190614d9d565b60405180910390a250505050505050509193909250565b6040516370a0823160e01b81526000906001600160a01b038516906370a0823190612280903090600401614cde565b60206040518083038186803b15801561229857600080fd5b505afa1580156122ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d09190614b61565b9050828110156122f25760405162461bcd60e51b815260040161099d9061501a565b8015611c3d57611c3d84838361357d565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b612339612a33565b6001600160a01b03811661239e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161099d565b6123a781612a8d565b50565b6000836001600160a01b0316856001600160a01b0316106123dd5760405162461bcd60e51b815260040161099d90614e66565b604051635f65e63560e11b81526000906001600160a01b037f00000000000000000000000045e5f26451cdb01b0fa1f8582e0aad9a6f27c218169063becbcc6a9061243090899089908990600401614cf2565b60206040518083038186803b15801561244857600080fd5b505afa15801561245c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612480919061446e565b90506001600160a01b038116612551576040516378eda67b60e01b81526001600160a01b038781166004830152868116602483015262ffffff86166044830152600285900b60648301527f00000000000000000000000045e5f26451cdb01b0fa1f8582e0aad9a6f27c21816906378eda67b90608401602060405180830381600087803b15801561251057600080fd5b505af1158015612524573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612548919061446e565b91506125549050565b90505b949350505050565b60006001600160e01b031982166380ac58cd60e01b148061258d57506001600160e01b03198216635b5e139f60e01b145b8061086957506301ffc9a760e01b6001600160e01b0319831614610869565b6125b581613676565b6123a75760405162461bcd60e51b815260040161099d90615062565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906126068261117c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b604080516000808252602082019092526001600160a01b0384169083906040516126699190614c93565b60006040518083038185875af1925050503d80600081146126a6576040519150601f19603f3d011682016040523d82523d6000602084013e6126ab565b606091505b5050905080610a3e5760405162461bcd60e51b815260206004820152600360248201526253544560e81b604482015260640161099d565b6000806126ee8361117c565b9050806001600160a01b0316846001600160a01b0316148061271557506127158185612303565b806125545750836001600160a01b031661272e84610901565b6001600160a01b031614949350505050565b845460009081906127679087906114a3903090600281810b9163010000009004900b612f7e565b600189015460028a01548a54939550919350840391908303906127a0908390600160301b90046001600160801b0316600160801b613693565b6127aa9087615223565b8960030160008282546127bd9190615223565b909155505088546127e4908290600160301b90046001600160801b0316600160801b613693565b6127ee9086615223565b8960040160008282546128019190615223565b9091555050505060018701919091556002860155505082546001600160801b03909116600160301b026601000000000000600160b01b03199091161790915550565b826001600160a01b03166128568261117c565b6001600160a01b03161461287c5760405162461bcd60e51b815260040161099d90614f3e565b6001600160a01b0382166128de5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161099d565b6128eb8383836001613740565b826001600160a01b03166128fe8261117c565b6001600160a01b0316146129245760405162461bcd60e51b815260040161099d90614f3e565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184936000805160206154cc83398151915291a4505050565b60006129ad8261117c565b90506129bd816000846001613740565b6129c68261117c565b600083815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526004845282852080546000190190558785526003909352818420805490911690555192935084926000805160206154cc833981519152908390a45050565b6000546001600160a01b03163314610a535760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161099d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612ae8838383611c43565b6001600160a01b0316336001600160a01b031614610a3e5760405162461bcd60e51b8152602060048201526002602482015261073760f41b604482015260640161099d565b7f000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f6001600160a01b0316846001600160a01b0316148015612b6e5750804710155b15612c90577f000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f6001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015612bce57600080fd5b505af1158015612be2573d6000803e3d6000fd5b505060405163a9059cbb60e01b81526001600160a01b038681166004830152602482018690527f000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f16935063a9059cbb92506044019050602060405180830381600087803b158015612c5257600080fd5b505af1158015612c66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8a9190614796565b50611c3d565b6001600160a01b038316301415612cb157612cac84838361357d565b611c3d565b611c3d8484848461386d565b6000806000806000807f00000000000000000000000045e5f26451cdb01b0fa1f8582e0aad9a6f27c2186001600160a01b031663becbcc6a886020015189604001518a606001516040518463ffffffff1660e01b8152600401612d2293929190614cf2565b60206040518083038186803b158015612d3a57600080fd5b505afa158015612d4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d72919061446e565b92506000836001600160a01b03166309beabc16040518163ffffffff1660e01b815260040160206040518083038186803b158015612daf57600080fd5b505afa158015612dc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612de7919061446e565b90506001600160a01b038416612e0f5760405162461bcd60e51b815260040161099d90614fd8565b612e1884613417565b8094508193505050612e7460405180608001604052808a6080015160020b81526020018a60a0015160020b81526020018a60c001516001600160801b031681526020018a60e001516001600160801b03168152508484846134a2565b9650836001600160a01b0316633c8a7d8d308a608001518b60a001518b60405180608001604052808f602001516001600160a01b031681526020018f604001516001600160a01b031681526020018f6060015162ffffff168152602001336001600160a01b0316815250604051602001612eee91906150b9565b6040516020818303038152906040526040518663ffffffff1660e01b8152600401612f1d959493929190614d4d565b6040805180830381600087803b158015612f3657600080fd5b505af1158015612f4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f6e9190614be4565b9799909850939550929350505050565b6040805160609490941b6bffffffffffffffffffffffff1916602080860191909152600293840b60e890811b60348701529290930b90911b60378401528051601a818503018152603a9093019052815191012090565b600080600080856001600160a01b031663b0f59257866040518263ffffffff1660e01b815260040161300891815260200190565b60a06040518083038186803b15801561302057600080fd5b505afa158015613034573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130589190614a42565b509196509450505050505b9250929050565b6001600160a01b0382166000908152600f60205260409020546001600160801b03168061086957600b80546001600160801b03169060006130aa8361539b565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b039485166000908152600f6020908152604080832080546001600160801b0319169486169485179055928252600e815290829020855181546001600160a01b031916908816178155908501516001919091018054959092015195166001600160b81b031990941693909317600160a01b62ffffff90951694909402939093179091555090565b6001600160a01b0382166131ad5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161099d565b6131b681613676565b156131d35760405162461bcd60e51b815260040161099d90614f83565b6131e1600083836001613740565b6131ea81613676565b156132075760405162461bcd60e51b815260040161099d90614f83565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291906000805160206154cc833981519152908290a45050565b816001600160a01b0316836001600160a01b031614156132be5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015260640161099d565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613336848484612843565b61334284848484613977565b611c3d5760405162461bcd60e51b815260040161099d90614ed0565b60606010805461087e90615366565b6060600061337a83613a81565b60010190506000816001600160401b038111156133a757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156133d1576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461340a5761340f565b6133db565b509392505050565b600080600080846001600160a01b031663c19d93fb6040518163ffffffff1660e01b81526004016101006040518083038186803b15801561345757600080fd5b505afa15801561346b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061348f9190614a8a565b50959b949a509398505050505050505050565b60006134b660026001600160801b0361523b565b90506000806134d087600001518860200151888888613b59565b9092509050811561351e57600082600160601b89604001516001600160801b03166134fb9190615275565b6135059190615261565b905080846001600160801b0316111561351c578093505b505b801561357357600081600160601b60018a6060015161353d91906152db565b6001600160801b03166135509190615275565b61355a9190615261565b905080846001600160801b03161115613571578093505b505b5050949350505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17905291516000928392908716916135d99190614c93565b6000604051808303816000865af19150503d8060008114613616576040519150601f19603f3d011682016040523d82523d6000602084013e61361b565b606091505b50915091508180156136455750805115806136455750808060200190518101906136459190614796565b6113325760405162461bcd60e51b815260206004820152600260248201526114d560f21b604482015260640161099d565b6000908152600360205260409020546001600160a01b0316151590565b6000808060001985870985870292508281108382030391505080600014156136cd57600084116136c257600080fd5b508290049050611ce9565b8084116136d957600080fd5b6000848688096001861981018716968790046003810260029081188083028203028083028203028083028203028083028203028083028203029182029003026000889003889004909101858311909403939093029303949094049190911702949350505050565b60018111156137af5760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b606482015260840161099d565b816001600160a01b03851661380b5761380681600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b61382e565b836001600160a01b0316856001600160a01b03161461382e5761382e8582613c49565b6001600160a01b03841661384a5761384581613ce6565b611332565b846001600160a01b0316846001600160a01b031614611332576113328482613dbf565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17905291516000928392908816916138d19190614c93565b6000604051808303816000865af19150503d806000811461390e576040519150601f19603f3d011682016040523d82523d6000602084013e613913565b606091505b509150915081801561393d57508051158061393d57508080602001905181019061393d9190614796565b61396f5760405162461bcd60e51b815260206004820152600360248201526229aa2360e91b604482015260640161099d565b505050505050565b60006001600160a01b0384163b15613a7957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906139bb903390899088908890600401614d1a565b602060405180830381600087803b1580156139d557600080fd5b505af1925050508015613a05575060408051601f3d908101601f19168201909252613a02918101906147ce565b60015b613a5f573d808015613a33576040519150601f19603f3d011682016040523d82523d6000602084013e613a38565b606091505b508051613a575760405162461bcd60e51b815260040161099d90614ed0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612554565b506001612554565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310613ac05772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613aec576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310613b0a57662386f26fc10000830492506010015b6305f5e1008310613b22576305f5e100830492506008015b6127108310613b3657612710830492506004015b60648310613b48576064830492506002015b600a83106108695760010192915050565b60008080613b6687613e03565b90508560020b8860020b1215613bc7576000613b8189613e03565b90508660020b8860020b1215613bad57613b9c81838761420e565b613ba69084615223565b9250613bc5565b613bb881878761420e565b613bc29084615223565b92505b505b8560020b8760020b1315613c085760008660020b8960020b13613bf457613bef8760016151bb565b613bf6565b885b9050613c048189848861425a565b9350505b8560020b8860020b13158015613c2357508560020b8760020b135b15613c3e57613c3b6001600160a01b03861683615223565b91505b509550959350505050565b60006001613c568461123f565b613c609190615323565b600083815260086020526040902054909150808214613cb3576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090613cf890600190615323565b6000838152600a602052604081205460098054939450909284908110613d2e57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060098381548110613d5d57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480613da357634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613dca8361123f565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b60008060008360020b12613e1a578260020b613e27565b8260020b613e2790615412565b9050613e36620d89e7196153f1565b60020b811115613e6c5760405162461bcd60e51b81526020600482015260016024820152601560fa1b604482015260640161099d565b600060018216613e8057600160801b613e92565b6ffffcb933bd6fad37aa2d162d1a5940015b6001600160881b031690506002821615613ec7576080613ec2826ffff97272373d413259a46990580e213a615275565b901c90505b6004821615613ef1576080613eec826ffff2e50f5f656932ef12357cf3c7fdcc615275565b901c90505b6008821615613f1b576080613f16826fffe5caca7e10e4e61c3624eaa0941cd0615275565b901c90505b6010821615613f45576080613f40826fffcb9843d60f6159c9db58835c926644615275565b901c90505b6020821615613f6f576080613f6a826fff973b41fa98c081472e6896dfb254c0615275565b901c90505b6040821615613f99576080613f94826fff2ea16466c96a3843ec78b326b52861615275565b901c90505b6080821615613fc3576080613fbe826ffe5dee046a99a2a811c461f1969c3053615275565b901c90505b610100821615613fee576080613fe9826ffcbe86c7900a88aedcffc83b479aa3a4615275565b901c90505b610200821615614019576080614014826ff987a7253ac413176f2b074cf7815e54615275565b901c90505b61040082161561404457608061403f826ff3392b0822b70005940c7a398e4b70f3615275565b901c90505b61080082161561406f57608061406a826fe7159475a2c29b7443b29c7fa6e889d9615275565b901c90505b61100082161561409a576080614095826fd097f3bdfd2022b8845ad8f792aa5825615275565b901c90505b6120008216156140c55760806140c0826fa9f746462d870fdf8a65dc1f90e061e5615275565b901c90505b6140008216156140f05760806140eb826f70d869a156d2a1b890bb3df62baf32f7615275565b901c90505b61800082161561411b576080614116826f31be135f97d08fd981231505542fcfa6615275565b901c90505b62010000821615614147576080614142826f09aa508b5b7a84e1c677de54f3e99bc9615275565b901c90505b6202000082161561417257608061416d826e5d6af8dedb81196699c329225ee604615275565b901c90505b6204000082161561419c576080614197826d2216e584f5fa1ea926041bedfe98615275565b901c90505b620800008216156141c45760806141bf826b048a170391f7dc42444e8fa2615275565b901c90505b60008460020b13156141df576141dc81600019615261565b90505b6141ee640100000000826153dd565b156141fa5760016141fd565b60005b6125549060ff16602083901c615223565b60008061421b8585615303565b9050600061422d600160601b85615303565b9050614250600160601b836001600160a01b0316836001600160a01b03166142d8565b9695505050505050565b60008061427a61426a8787615294565b6142759060016151bb565b613e03565b9050600061428c6142758760016151bb565b9050600061429a8584615303565b905060006142a88784615303565b90506142cb600160601b836001600160a01b0316836001600160a01b03166142d8565b9998505050505050505050565b60006142e5848484613693565b90506000828061430557634e487b7160e01b600052601260045260246000fd5b8486091115611ce957600019811061431c57600080fd5b80614326816153c2565b95945050505050565b82805461433b90615366565b90600052602060002090601f01602090048101928261435d57600085556143a3565b82601f106143765782800160ff198235161785556143a3565b828001600101855582156143a3579182015b828111156143a3578235825591602001919060010190614388565b506143af9291506143b3565b5090565b5b808211156143af57600081556001016143b4565b80356143d38161546e565b919050565b60008083601f8401126143e9578182fd5b5081356001600160401b038111156143ff578182fd5b60208301915083602082850101111561306357600080fd5b80356143d3816154a7565b80356143d3816154b6565b805161ffff811681146143d357600080fd5b803562ffffff811681146143d357600080fd5b600060208284031215614463578081fd5b8135611ce98161546e565b60006020828403121561447f578081fd5b8151611ce98161546e565b6000806040838503121561449c578081fd5b82356144a78161546e565b915060208301356144b78161546e565b809150509250929050565b6000806000606084860312156144d6578081fd5b83356144e18161546e565b925060208401356144f18161546e565b91506144ff6040850161443f565b90509250925092565b6000806000806080858703121561451d578182fd5b84356145288161546e565b935060208501356145388161546e565b92506145466040860161443f565b91506060850135614556816154a7565b939692955090935050565b600080600060608486031215614575578081fd5b83356145808161546e565b925060208401356145908161546e565b929592945050506040919091013590565b600080600080608085870312156145b6578182fd5b84356145c18161546e565b935060208501356145d18161546e565b92506040850135915060608501356001600160401b038111156145f2578182fd5b8501601f81018713614602578182fd5b803561461561461082615194565b615164565b818152886020838501011115614629578384fd5b81602084016020830137908101602001929092525092959194509250565b60008060408385031215614659578182fd5b82356146648161546e565b915060208301356144b781615483565b60008060408385031215614686578182fd5b82356146918161546e565b946020939093013593505050565b6000806000606084860312156146b3578081fd5b83356146be8161546e565b92506020840135915060408401356146d58161546e565b809150509250925092565b600080600080608085870312156146f5578182fd5b84356147008161546e565b9350602085013592506040850135614717816154b6565b91506060850135614556816154b6565b60008060208385031215614739578182fd5b82356001600160401b038082111561474f578384fd5b818501915085601f830112614762578384fd5b813581811115614770578485fd5b8660208260051b8501011115614784578485fd5b60209290920196919550909350505050565b6000602082840312156147a7578081fd5b8151611ce981615483565b6000602082840312156147c3578081fd5b8135611ce981615491565b6000602082840312156147df578081fd5b8151611ce981615491565b6000602082840312156147fb578081fd5b8135611ce9816154a7565b60008060208385031215614818578182fd5b82356001600160401b0381111561482d578283fd5b614839858286016143d8565b90969095509350505050565b600060208284031215614856578081fd5b81516001600160401b0381111561486b578182fd5b8201601f8101841361487b578182fd5b805161488961461082615194565b81815285602083850101111561489d578384fd5b61432682602083016020860161533a565b600060c08284031215610f76578081fd5b6000608082840312156148d0578081fd5b604051608081018181106001600160401b03821117156148f2576148f2615458565b60405282356149008161546e565b815260208301356149108161546e565b60208201526149216040840161443f565b604082015260608301356149348161546e565b60608201529392505050565b60006101608284031215610f76578081fd5b60006101608284031215614964578081fd5b61496c61513b565b614975836143c8565b8152614983602084016143c8565b6020820152614994604084016143c8565b60408201526149a56060840161443f565b60608201526149b660808401614417565b60808201526149c760a08401614417565b60a08201526149d860c08401614422565b60c08201526149e960e08401614422565b60e08201526101006149fc818501614422565b90820152610120614a0e848201614422565b90820152610140928301359281019290925250919050565b600060208284031215614a37578081fd5b8135611ce9816154b6565b600080600080600060a08688031215614a59578283fd5b8551614a64816154b6565b602087015160408801516060890151608090990151929a91995097965090945092505050565b600080600080600080600080610100898b031215614aa6578586fd5b8851614ab18161546e565b60208a0151909850614ac2816154a7565b9650614ad060408a0161442d565b9550614ade60608a0161442d565b9450614aec60808a0161442d565b935060a0890151614afc81615483565b60c08a0151909350614b0d816154b6565b60e08a0151909250614b1e816154b6565b809150509295985092959890939650565b600060208284031215614b40578081fd5b611ce98261443f565b600060208284031215614b5a578081fd5b5035919050565b600060208284031215614b72578081fd5b5051919050565b60008060408385031215614b8b578182fd5b8235915060208301356144b78161546e565b600080600080600060a08688031215614bb4578283fd5b853594506020860135614bc6816154b6565b94979496505050506040830135926060810135926080909101359150565b60008060408385031215614bf6578182fd5b505080516020909101519092909150565b60008060008060608587031215614c1c578182fd5b843593506020850135925060408501356001600160401b03811115614c3f578283fd5b614c4b878288016143d8565b95989497509550505050565b60008151808452614c6f81602086016020860161533a565b601f01601f19169290920160200192915050565b8183823760009101908152919050565b60008251614ca581846020870161533a565b9190910192915050565b60008351614cc181846020880161533a565b835190830190614cd581836020880161533a565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b03938416815291909216602082015262ffffff909116604082015260600190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061425090830184614c57565b6001600160a01b0386168152600285810b602083015284900b60408201526001600160801b038316606082015260a060808201819052600090614d9290830184614c57565b979650505050505050565b6001600160a01b039490941684526001600160801b039290921660208401526040830152606082015260800190565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b82811015614e2057603f19888603018452614e0e858351614c57565b94509285019290850190600101614df2565b5092979650505050505050565b600293840b81529190920b60208201526001600160801b03909116604082015260600190565b602081526000611ce96020830184614c57565b602080825260039082015262783c7960e81b604082015260600190565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b602080825260029082015261262760f11b604082015260600190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252600490820152632ca6a4a760e11b604082015260600190565b602080825260029082015261050360f41b604082015260600190565b6020808252600c908201526b139bdd08185c1c1c9bdd995960a21b604082015260600190565b60208082526010908201526f0ae8aa89072409cdee8408adcdeeaced60831b604082015260600190565b6020808252600490820152632c26a4a760e11b604082015260600190565b602080825260189082015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604082015260600190565b6020808252600b908201526a4f7574206f662074696d6560a81b604082015260600190565b81516001600160a01b03908116825260208084015182169083015260408084015162ffffff1690830152606092830151169181019190915260800190565b6000808335601e1984360301811261510d578283fd5b8301803591506001600160401b03821115615126578283fd5b60200191503681900382131561306357600080fd5b60405161016081016001600160401b038111828210171561515e5761515e615458565b60405290565b604051601f8201601f191681016001600160401b038111828210171561518c5761518c615458565b604052919050565b60006001600160401b038211156151ad576151ad615458565b50601f01601f191660200190565b60008160020b8360020b82821282627fffff038213811516156151e0576151e061542c565b82627fffff190382128116156151f8576151f861542c565b50019392505050565b60006001600160801b03828116848216808303821115614cd557614cd561542c565b600082198211156152365761523661542c565b500190565b60006001600160801b038381168061525557615255615442565b92169190910492915050565b60008261527057615270615442565b500490565b600081600019048311821515161561528f5761528f61542c565b500290565b60008160020b8360020b82811281627fffff19018312811516156152ba576152ba61542c565b81627fffff0183138116156152d1576152d161542c565b5090039392505050565b60006001600160801b03838116908316818110156152fb576152fb61542c565b039392505050565b60006001600160a01b03838116908316818110156152fb576152fb61542c565b6000828210156153355761533561542c565b500390565b60005b8381101561535557818101518382015260200161533d565b83811115611c3d5750506000910152565b600181811c9082168061537a57607f821691505b60208210811415610f7657634e487b7160e01b600052602260045260246000fd5b60006001600160801b03828116808214156153b8576153b861542c565b6001019392505050565b60006000198214156153d6576153d661542c565b5060010190565b6000826153ec576153ec615442565b500690565b60008160020b627fffff1981141561540b5761540b61542c565b9003919050565b6000600160ff1b8214156154285761542861542c565b0390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146123a757600080fd5b80151581146123a757600080fd5b6001600160e01b0319811681146123a757600080fd5b8060020b81146123a757600080fd5b6001600160801b03811681146123a757600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212200a8fabe062ba21515613475180e8bddf48dbd2b61eaebfd1c095d9fac6c4c8ef64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000045e5f26451cdb01b0fa1f8582e0aad9a6f27c218000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f
-----Decoded View---------------
Arg [0] : factory (address): 0x45e5F26451CDB01B0fA1f8582E0aAD9A6F27C218
Arg [1] : weth (address): 0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000045e5f26451cdb01b0fa1f8582e0aad9a6f27c218
Arg [1] : 000000000000000000000000e5d7c2a44ffddf6b295a15c148167daaaf5cf34f
Deployed Bytecode Sourcemap
125346:17466:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58782:224;;;;;;;;;;-1:-1:-1;58782:224:0;;;;;:::i;:::-;;:::i;:::-;;;22611:14:1;;22604:22;22586:41;;22574:2;22559:18;58782:224:0;;;;;;;;41739:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;128036:47::-;;;;;;;;;;-1:-1:-1;128036:47:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;128036:47:0;;;;;;;;;;;;;;;23936:1:1;23925:21;;;23907:40;;23983:21;;;;23978:2;23963:18;;23956:49;-1:-1:-1;;;;;24079:15:1;;;24059:18;;;24052:43;;;;24126:2;24111:18;;24104:34;;;;24032:3;24154:19;;24147:35;;;;24213:3;24198:19;;24191:35;24257:3;24242:19;;24235:35;24307:15;;;24301:3;24286:19;;24279:44;23894:3;23879:19;128036:47:0;23861:468:1;43251:171:0;;;;;;;;;;-1:-1:-1;43251:171:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;42769:416::-;;;;;;;;;;-1:-1:-1;42769:416:0;;;;;:::i;:::-;;:::i;:::-;;77720:138;;;:::i;139757:1268::-;;;;;;;;;;-1:-1:-1;139757:1268:0;;;;;:::i;:::-;;:::i;:::-;;;;37739:25:1;;;37795:2;37780:18;;37773:34;;;;37712:18;139757:1268:0;37694:119:1;59422:113:0;;;;;;;;;;-1:-1:-1;59510:10:0;:17;59422:113;;;22784:25:1;;;22772:2;22757:18;59422:113:0;22739:76:1;43951:301:0;;;;;;;;;;-1:-1:-1;43951:301:0;;;;;:::i;:::-;;:::i;59090:256::-;;;;;;;;;;-1:-1:-1;59090:256:0;;;;;:::i;:::-;;:::i;44323:151::-;;;;;;;;;;-1:-1:-1;44323:151:0;;;;;:::i;:::-;;:::i;135237:316::-;;;;;;;;;;-1:-1:-1;135237:316:0;;;;;:::i;:::-;;:::i;76174:328::-;;;;;;:::i;:::-;;:::i;71882:30::-;;;;;;;;;;;;;;;59612:233;;;;;;;;;;-1:-1:-1;59612:233:0;;;;;:::i;:::-;;:::i;128857:106::-;;;;;;;;;;-1:-1:-1;128857:106:0;;;;;:::i;:::-;;:::i;41449:223::-;;;;;;;;;;-1:-1:-1;41449:223:0;;;;;:::i;:::-;;:::i;128721:21::-;;;;;;;;;;;;;:::i;41180:207::-;;;;;;;;;;-1:-1:-1;41180:207:0;;;;;:::i;:::-;;:::i;2757:103::-;;;;;;;;;;;;;:::i;129491:413::-;;;;;;;;;;-1:-1:-1;129491:413:0;;;;;:::i;:::-;;:::i;2116:87::-;;;;;;;;;;-1:-1:-1;2162:7:0;2189:6;-1:-1:-1;;;;;2189:6:0;2116:87;;41908:104;;;;;;;;;;;;;:::i;133818:1283::-;;;;;;:::i;:::-;;:::i;:::-;;;;37374:25:1;;;-1:-1:-1;;;;;37435:32:1;;;37430:2;37415:18;;37408:60;37484:18;;;37477:34;37542:2;37527:18;;37520:34;37361:3;37346:19;133818:1283:0;37328:232:1;141420:1383:0;;;;;;:::i;:::-;;:::i;43494:155::-;;;;;;;;;;-1:-1:-1;43494:155:0;;;;;:::i;:::-;;:::i;72642:581::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;44545:279::-;;;;;;;;;;-1:-1:-1;44545:279:0;;;;;:::i;:::-;;:::i;78954:163::-;;;;;;;;;;-1:-1:-1;78954:163:0;;;;;:::i;:::-;;:::i;71801:32::-;;;;;;;;;;;;;;;42083:281;;;;;;;;;;-1:-1:-1;42083:281:0;;;;;:::i;:::-;;:::i;137397:1902::-;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;36831:32:1;;;36813:51;;36895:2;36880:18;;36873:34;;;;36923:18;;;36916:34;36801:2;36786:18;137397:1902:0;36768:188:1;128540:41:0;;;;;;;;;;-1:-1:-1;128540:41:0;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;128540:41:0;;;;;;-1:-1:-1;;;;;36567:32:1;;;36549:51;;36537:2;36522:18;128540:41:0;36504:102:1;128132:31:0;;;;;;;;;;;;;;;;77038:338;;;;;;:::i;:::-;;:::i;43720:164::-;;;;;;;;;;-1:-1:-1;43720:164:0;;;;;:::i;:::-;;:::i;3015:201::-;;;;;;;;;;-1:-1:-1;3015:201:0;;;;;:::i;:::-;;:::i;130236:420::-;;;;;;;;;;-1:-1:-1;130236:420:0;;;;;:::i;:::-;;:::i;128418:44::-;;;;;;;;;;-1:-1:-1;128418:44:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;128418:44:0;;;;;;;-1:-1:-1;;;128418:44:0;;;;;;;;;;;;;;;:::i;58782:224::-;58884:4;-1:-1:-1;;;;;;58908:50:0;;-1:-1:-1;;;58908:50:0;;:90;;;58962:36;58986:11;58962:23;:36::i;:::-;58901:97;58782:224;-1:-1:-1;;58782:224:0:o;41739:100::-;41793:13;41826:5;41819:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41739:100;:::o;43251:171::-;43327:7;43347:23;43362:7;43347:14;:23::i;:::-;-1:-1:-1;43390:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;43390:24:0;;43251:171::o;42769:416::-;42850:13;42866:23;42881:7;42866:14;:23::i;:::-;42850:39;;42914:5;-1:-1:-1;;;;;42908:11:0;:2;-1:-1:-1;;;;;42908:11:0;;;42900:57;;;;-1:-1:-1;;;42900:57:0;;33741:2:1;42900:57:0;;;33723:21:1;33780:2;33760:18;;;33753:30;33819:34;33799:18;;;33792:62;-1:-1:-1;;;33870:18:1;;;33863:31;33911:19;;42900:57:0;;;;;;;;;743:10;-1:-1:-1;;;;;42992:21:0;;;;:62;;-1:-1:-1;43017:37:0;43034:5;743:10;43720:164;:::i;43017:37::-;42970:173;;;;-1:-1:-1;;;42970:173:0;;34483:2:1;42970:173:0;;;34465:21:1;34522:2;34502:18;;;34495:30;34561:34;34541:18;;;34534:62;34632:31;34612:18;;;34605:59;34681:19;;42970:173:0;34455:251:1;42970:173:0;43156:21;43165:2;43169:7;43156:8;:21::i;:::-;42769:416;;;:::o;77720:138::-;77773:21;:25;77769:81;;77800:50;77816:10;77828:21;77800:15;:50::i;:::-;77720:138::o;139757:1268::-;139990:15;140016;139942:3;128641:35;128660:10;128672:3;128641:18;:35::i;:::-;128633:60;;;;-1:-1:-1;;;128633:60:0;;;;;;;:::i;:::-;139961:8:::1;72000;71981:15;:27;;71973:51;;;;-1:-1:-1::0;;;71973:51:0::1;;;;;;;:::i;:::-;140064:12:::2;;140058:3;:18;140050:33;;;;-1:-1:-1::0;;;140050:33:0::2;;;;;;;:::i;:::-;140094:27;140124:16:::0;;;:11:::2;:16;::::0;;;;140155:19;;-1:-1:-1;;;140155:19:0;::::2;-1:-1:-1::0;;;;;140155:19:0::2;140151:121;;140255:1;140258::::0;140247:13:::2;;;;;;;140151:121;140300:19:::0;;-1:-1:-1;;;;;;;;140300:19:0;;::::2;::::0;::::2;140286:33:::0;;::::2;;140282:99;;;140350:19:::0;;-1:-1:-1;;;140350:19:0;::::2;-1:-1:-1::0;;;;;140350:19:0::2;::::0;-1:-1:-1;140282:99:0::2;140428:16;::::0;::::2;::::0;-1:-1:-1;;;;;140428:16:0::2;140391:24;140418:27:::0;;;:9:::2;:27;::::0;;;;;;;140391:54;;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;;;140391:54:0;;::::2;::::0;;;140428:16;140391:54;;::::2;::::0;;;::::2;::::0;;::::2;::::0;;;-1:-1:-1;;;140391:54:0;::::2;;;::::0;;;;;;140471:77;;-1:-1:-1;;;140471:77:0;;140391:54;;:24;140487:7:::2;140471:29:::0;;::::2;::::0;::::2;::::0;:77:::2;::::0;140391:54;;;;140471:77:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;140456:92:::0;-1:-1:-1;;;;;;140567:18:0;::::2;140559:33;;;;-1:-1:-1::0;;;140559:33:0::2;;;;;;;:::i;:::-;140636:19:::0;;140613:20:::2;::::0;140636:33:::2;::::0;140658:11;;-1:-1:-1;;;140636:19:0;::::2;-1:-1:-1::0;;;;;140636:19:0::2;:33;:::i;:::-;140613:56;;140714:4;-1:-1:-1::0;;;;;140701:23:0::2;;140725:9;:16;;;;;;;;;;;;140743:9;:17;;;;;;;;;;;;140762:11;140701:73;;;;;;;;;;;;;;;;;:::i;:::-;;::::0;::::2;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;140680:94:::0;;-1:-1:-1;140680:94:0;-1:-1:-1;140793:21:0;;::::2;;140785:38;;;;-1:-1:-1::0;;;140785:38:0::2;;;;;;;:::i;:::-;140853:10;140842:7;:21;;140834:38;;;;-1:-1:-1::0;;;140834:38:0::2;;;;;;;:::i;:::-;140883:64;140899:9;140910:4;140916:12;140930:7;140939;140883:15;:64::i;:::-;140976:3;140963:54;140981:4;140987:11;141000:7;141009;140963:54;;;;;;;;;:::i;:::-;;;;;;;;72035:1;;;;;128704::::1;139757:1268:::0;;;;;;;;;:::o;43951:301::-;44112:41;743:10;44145:7;44112:18;:41::i;:::-;44104:99;;;;-1:-1:-1;;;44104:99:0;;;;;;;:::i;:::-;44216:28;44226:4;44232:2;44236:7;44216:9;:28::i;59090:256::-;59187:7;59223:23;59240:5;59223:16;:23::i;:::-;59215:5;:31;59207:87;;;;-1:-1:-1;;;59207:87:0;;25505:2:1;59207:87:0;;;25487:21:1;25544:2;25524:18;;;25517:30;25583:34;25563:18;;;25556:62;-1:-1:-1;;;25634:18:1;;;25627:41;25685:19;;59207:87:0;25477:233:1;59207:87:0;-1:-1:-1;;;;;;59312:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;59090:256::o;44323:151::-;44427:39;44444:4;44450:2;44454:7;44427:39;;;;;;;;;;;;:16;:39::i;135237:316::-;135297:12;135283:3;128641:35;128660:10;128672:3;128641:18;:35::i;:::-;128633:60;;;;-1:-1:-1;;;128633:60:0;;;;;;;:::i;:::-;135322:24:::1;135349:16:::0;;;:11:::1;:16;::::0;;;;135384;;-1:-1:-1;;;135384:16:0;::::1;-1:-1:-1::0;;;;;135384:16:0::1;:21:::0;:49;::::1;;;-1:-1:-1::0;135409:19:0::1;::::0;::::1;::::0;:24;135384:49:::1;:77;;;;-1:-1:-1::0;135437:19:0::1;::::0;::::1;::::0;:24;135384:77:::1;135376:92;;;::::0;-1:-1:-1;;;135376:92:0;;31689:2:1;135376:92:0::1;::::0;::::1;31671:21:1::0;31728:1;31708:18;;;31701:29;-1:-1:-1;;;31746:18:1;;;31739:32;31788:18;;135376:92:0::1;31661:151:1::0;135376:92:0::1;135486:16;::::0;;;:11:::1;:16;::::0;;;;135479:23;;-1:-1:-1;;;;;;135479:23:0;;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;;::::1;;::::0;;-1:-1:-1;;;;;;135479:23:0::1;::::0;;135513:10:::1;135498:3:::0;135513:5:::1;:10::i;:::-;135541:4;135534:11;;;128704:1;135237:316:::0;;;;:::o;76174:328::-;76275:38;;-1:-1:-1;;;76275:38:0;;76261:11;;-1:-1:-1;;;;;76282:5:0;76275:23;;;;:38;;76307:4;;76275:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;76261:52;;76339:9;76332:3;:16;;76324:45;;;;-1:-1:-1;;;76324:45:0;;;;;;;:::i;:::-;76386:7;;76382:113;;76410:27;;-1:-1:-1;;;76410:27:0;;;;;22784:25:1;;;76417:5:0;-1:-1:-1;;;;;76410:22:0;;;;22757:18:1;;76410:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76452:31;76468:9;76479:3;76452:15;:31::i;59612:233::-;59687:7;59723:30;59510:10;:17;;59422:113;59723:30;59715:5;:38;59707:95;;;;-1:-1:-1;;;59707:95:0;;34913:2:1;59707:95:0;;;34895:21:1;34952:2;34932:18;;;34925:30;34991:34;34971:18;;;34964:62;-1:-1:-1;;;35042:18:1;;;35035:42;35094:19;;59707:95:0;34885:234:1;59707:95:0;59820:10;59831:5;59820:17;;;;;;-1:-1:-1;;;59820:17:0;;;;;;;;;;;;;;;;;59813:24;;59612:233;;;:::o;128857:106::-;2002:13;:11;:13::i;:::-;128935:20:::1;:7;128945:10:::0;;128935:20:::1;:::i;41449:223::-:0;41521:7;46182:16;;;:7;:16;;;;;;-1:-1:-1;;;;;46182:16:0;;41585:56;;;;-1:-1:-1;;;41585:56:0;;;;;;;:::i;128721:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;41180:207::-;41252:7;-1:-1:-1;;;;;41280:19:0;;41272:73;;;;-1:-1:-1;;;41272:73:0;;29918:2:1;41272:73:0;;;29900:21:1;29957:2;29937:18;;;29930:30;29996:34;29976:18;;;29969:62;-1:-1:-1;;;30047:18:1;;;30040:39;30096:19;;41272:73:0;29890:231:1;41272:73:0;-1:-1:-1;;;;;;41363:16:0;;;;;:9;:16;;;;;;;41180:207::o;2757:103::-;2002:13;:11;:13::i;:::-;2822:30:::1;2849:1;2822:18;:30::i;129491:413::-:0;129608:26;129637:36;;;;129648:4;129637:36;:::i;:::-;129608:65;;129684:36;129691:2;:9;;;129702:2;:9;;;129713:2;:6;;;129684;:36::i;:::-;129737:5;;129733:77;;129759:39;129763:2;:9;;;129774:2;:8;;;129784:10;129796:1;129759:3;:39::i;:::-;129824:5;;129820:77;;129846:39;129850:2;:9;;;129861:2;:8;;;129871:10;129883:1;129846:3;:39::i;:::-;129491:413;;;;;:::o;41908:104::-;41964:13;41997:7;41990:14;;;;;:::i;133818:1283::-;133931:11;133953:17;133981:15;134007;133893:9;:18;;;72000:8;71981:15;:27;;71973:51;;;;-1:-1:-1;;;71973:51:0;;;;;;;:::i;:::-;134068:16:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;134049:35:0::1;:16;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;134049:35:0::1;;134041:51;;;;-1:-1:-1::0;;;134041:51:0::1;;;;;;;:::i;:::-;134103:12;134164:24;;;::::0;;::::1;::::0;::::1;134178:9:::0;134164:24:::1;:::i;:::-;:13;:24::i;:::-;134126:62:::0;;-1:-1:-1;134126:62:0;;-1:-1:-1;134126:62:0;-1:-1:-1;134126:62:0;-1:-1:-1;134218:20:0::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;134207:31:0::1;:7;:31;;134199:48;;;;-1:-1:-1::0;;;134199:48:0::1;;;;;;;:::i;:::-;134277:20;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;134266:31:0::1;:7;:31;;134258:48;;;;-1:-1:-1::0;;;134258:48:0::1;;;;;;;:::i;:::-;134323:12;:15:::0;;;:12:::1;:15;::::0;::::1;:::i;:::-;::::0;;;-1:-1:-1;134317:21:0;-1:-1:-1;134350:25:0::1;::::0;134406:102:::1;134436:4:::0;134442:55:::1;134463:4;134470:12;::::0;;;::::1;::::0;::::1;;:::i;:::-;134484:9;:12;;;;;;;;;;:::i;:::-;134442;:55::i;:::-;134406:15;:102::i;:::-;134349:159;;;;134519:14;134536:102;134549:4;134555:82;;;;;;;;134573:9;:16;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;134555:82:0::1;;;;;134599:9;:16;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;134555:82:0::1;;;;;134622:9;:13;;;;;;;;;;:::i;:::-;134555:82;;::::0;;134536:12:::1;:102::i;:::-;134519:119;;134668:319;;;;;;;;134701:9;:12;;;;;;;;;;:::i;:::-;134668:319;;::::0;;::::1;;134737:12;::::0;;;::::1;::::0;::::1;;:::i;:::-;134668:319;;;;;;134775:9;-1:-1:-1::0;;;;;134668:319:0::1;;;;;134818:17;134668:319;;;;134869:17;134668:319;;;;134915:1;134668:319;;;;134945:1;134668:319;;;;134969:6;-1:-1:-1::0;;;;;134668:319:0::1;;;::::0;134649:11:::1;:16;134661:3;134649:16;;;;;;;;;;;:338;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;134649:338:0::1;;;;;-1:-1:-1::0;;;;;134649:338:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;134649:338:0::1;;;;;-1:-1:-1::0;;;;;134649:338:0::1;;;;;;;;;134998:27;135004:9;:15;;;;;;;;;;:::i;:::-;135021:3;134998:5;:27::i;:::-;135054:3;135041:52;135059:4;135065:9;135076:7;135085;135041:52;;;;;;;;;:::i;:::-;;;;;;;;72035:1;;;;133818:1283:::0;;;;;;:::o;141420:1383::-;141603:15;141629;141579:3;128641:35;128660:10;128672:3;128641:18;:35::i;:::-;128633:60;;;;-1:-1:-1;;;128633:60:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;141667:23:0;::::1;141663:81;;141727:4;141707:25;;141663:81;141768:12;;141762:3;:18;141754:33;;;;-1:-1:-1::0;;;141754:33:0::1;;;;;;;:::i;:::-;141798:27;141828:16:::0;;;:11:::1;:16;::::0;;;;;;;141892::::1;::::0;::::1;::::0;-1:-1:-1;;;;;141892:16:0::1;141882:27:::0;;:9:::1;:27:::0;;;;;141855:54;;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;141855:54:0;;::::1;::::0;;;141892:16;141855:54;;::::1;::::0;;;::::1;::::0;;::::1;::::0;;;-1:-1:-1;;;141855:54:0;::::1;;;::::0;;;;;;141935:77;;-1:-1:-1;;;141935:77:0;;141828:16;;141855:54;;141798:27;;141951:7:::1;141935:29:::0;;::::1;::::0;::::1;::::0;:77:::1;::::0;141855:54;;;;141935:77:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;141920:92:::0;-1:-1:-1;;;;;;142031:18:0;::::1;142023:33;;;;-1:-1:-1::0;;;142023:33:0::1;;;;;;;:::i;:::-;142071:19:::0;;-1:-1:-1;;;142071:19:0;::::1;-1:-1:-1::0;;;;;142071:19:0::1;:23:::0;142067:193:::1;;142135:16:::0;;142111:63:::1;::::0;-1:-1:-1;;;142111:63:0;;-1:-1:-1;;;;;142111:23:0;::::1;::::0;::::1;::::0;:63:::1;::::0;142135:16:::1;::::0;;::::1;::::0;142153:17;;;::::1;::::0;::::1;::::0;142135:16:::1;::::0;142111:63:::1;;;:::i;:::-;;::::0;::::1;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;142222:19:0;;142189:59:::1;::::0;142222:19;;142216:4;;-1:-1:-1;;;142222:19:0;::::1;-1:-1:-1::0;;;;;142222:19:0::1;;::::0;142189:15:::1;:59::i;:::-;142287:9;:22;;;142274:10;-1:-1:-1::0;;;;;142274:35:0::1;;142270:112;;;142347:9;:22;;;142326:44;;142270:112;142409:9;:22;;;142396:10;-1:-1:-1::0;;;;;142396:35:0::1;;142392:112;;;142469:9;:22;;;142448:44;;142392:112;142573:16:::0;;142535:98:::1;::::0;-1:-1:-1;;;142535:98:0;;-1:-1:-1;;;;;20608:32:1;;;142535:98:0::1;::::0;::::1;20590:51:1::0;142573:16:0::1;::::0;;::::1;20677:21:1::0;;20657:18;;;20650:49;142591:17:0;;;::::1;::::0;::::1;20735:21:1::0;;;20715:18;;;20708:49;-1:-1:-1;;;;;20831:15:1;;;20811:18;;;20804:43;20884:15;;20863:19;;;20856:44;142535:26:0;;::::1;::::0;::::1;::::0;20562:19:1;;142535:98:0::1;::::0;::::1;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;142514:119;;;;;;;;142738:10;-1:-1:-1::0;;;;;142712:36:0::1;:9;:22;;;:36;;;;;;;:::i;:::-;;;;;;;;142785:10;-1:-1:-1::0;;;;;142759:36:0::1;:9;:22;;;:36;;;;;;;:::i;:::-;;;;;;;;128704:1;;;141420:1383:::0;;;;;;;;:::o;43494:155::-;43589:52;743:10;43622:8;43632;43589:18;:52::i;:::-;43494:155;;:::o;72642:581::-;72710:22;72767:4;-1:-1:-1;;;;;72755:24:0;;;;;-1:-1:-1;;;72755:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72745:34;;72795:9;72790:426;72810:15;;;72790:426;;;72848:12;;72893:4;72912;;72917:1;72912:7;;;;;-1:-1:-1;;;72912:7:0;;;;;;;;;;;;;;;;;;;;:::i;:::-;72885:35;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72847:73;;;;72942:7;72937:232;;72990:2;72974:6;:13;:18;72970:32;;;72994:8;;;72970:32;73075:4;73067:6;73063:17;73053:27;;73135:6;73124:28;;;;;;;;;;;;:::i;:::-;73117:36;;-1:-1:-1;;;73117:36:0;;;;;;;;:::i;72937:232::-;73198:6;73185:7;73193:1;73185:10;;;;;;-1:-1:-1;;;73185:10:0;;;;;;;;;;;;;;:19;;;;72790:426;;72827:3;;;;;:::i;:::-;;;;72790:426;;;;72642:581;;;;:::o;44545:279::-;44676:41;743:10;44709:7;44676:18;:41::i;:::-;44668:99;;;;-1:-1:-1;;;44668:99:0;;;;;;;:::i;:::-;44778:38;44792:4;44798:2;44802:7;44811:4;44778:13;:38::i;:::-;44545:279;;;;:::o;78954:163::-;79059:50;;-1:-1:-1;;;79059:50:0;;79032:7;;-1:-1:-1;;;;;79075:7:0;79059:29;;;;:50;;79089:6;;79097;;79105:3;;79059:50;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;79052:57;;78954:163;;;;;;:::o;42083:281::-;42156:13;42182:23;42197:7;42182:14;:23::i;:::-;42218:21;42242:10;:8;:10::i;:::-;42218:34;;42294:1;42276:7;42270:21;:25;:86;;;;;;;;;;;;;;;;;42322:7;42331:18;:7;:16;:18::i;:::-;42305:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;42263:93;42083:281;-1:-1:-1;;;42083:281:0:o;137397:1902::-;137592:22;;;137508:21;;128641:35;128660:10;137508:21;128641:18;:35::i;:::-;128633:60;;;;-1:-1:-1;;;128633:60:0;;;;;;;:::i;:::-;137545:17:::1;:26;;;72000:8;71981:15;:27;;71973:51;;;;-1:-1:-1::0;;;71973:51:0::1;;;;;;;:::i;:::-;137717:12:::2;::::0;137693:21;::::2;:36;137685:51;;;;-1:-1:-1::0;;;137685:51:0::2;;;;;;;:::i;:::-;137786:21:::0;::::2;137747:24;137774:34:::0;;;:11:::2;:34;::::0;;;;;;;137856:13:::2;::::0;::::2;::::0;-1:-1:-1;;;;;137856:13:0::2;137846:24:::0;;:9:::2;:24:::0;;;;;137819:51;;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;;;137819:51:0;;::::2;::::0;;;137856:13;137819:51;;::::2;::::0;;;::::2;::::0;;::::2;::::0;;;-1:-1:-1;;;137819:51:0;::::2;;;::::0;;;;;;137950:77;;-1:-1:-1;;;137950:77:0;;137774:34;;137819:51;;137747:24;;;;;;137966:7:::2;137950:29:::0;;::::2;::::0;::::2;::::0;:77:::2;::::0;137819:51;;137950:77:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;137935:92:::0;-1:-1:-1;;;;;;138114:18:0;::::2;138106:33;;;;-1:-1:-1::0;;;138106:33:0::2;;;;;;;:::i;:::-;138175:18;138188:4;138175:12;:18::i;:::-;138150:43;;;;;;;;138221:380;138261:206;;;;;;;;138307:6;:13;;;;;;;;;;;;138261:206;;;;;;138343:6;:14;;;;;;;;;;;;138261:206;;;;;;138382:17;:22;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;138261:206:0::2;;;;;138429:17;:22;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;138261:206:0::2;;;::::0;138482:6:::2;138503:12;138571:4;-1:-1:-1::0;;;;;138558:30:0::2;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;138221:25;:380::i;:::-;138663:16:::0;;138204:397;;-1:-1:-1;;;;138663:16:0;::::2;-1:-1:-1::0;;;;;138663:16:0::2;138620:61;::::0;;::::2;;138612:76;;;::::0;-1:-1:-1;;;138612:76:0;;35748:2:1;138612:76:0::2;::::0;::::2;35730:21:1::0;35787:1;35767:18;;;35760:29;-1:-1:-1;;;35805:18:1;;;35798:32;35847:18;;138612:76:0::2;35720:151:1::0;138612:76:0::2;138739:16:::0;;138699:20:::2;::::0;138722:33:::2;::::0;-1:-1:-1;;;138739:16:0;::::2;-1:-1:-1::0;;;;;138739:16:0::2;138722:14:::0;:33:::2;:::i;:::-;138699:56;;138800:4;-1:-1:-1::0;;;;;138787:23:0::2;;138819:4;138826:6;:13;;;;;;;;;;;;138841:6;:14;;;;;;;;;;;;138857;138898:106;;;;;;;;138924:8;:15;;;-1:-1:-1::0;;;;;138898:106:0::2;;;;;138949:8;:15;;;-1:-1:-1::0;;;;;138898:106:0::2;;;;;138971:8;:12;;;138898:106;;;;;;138992:10;-1:-1:-1::0;;;;;138898:106:0::2;;;::::0;138887:118:::2;;;;;;;;:::i;:::-;;;;;;;;;;;;;138787:219;;;;;;;;;;;;;;;;;;;:::i;:::-;;::::0;::::2;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;138766:240:::0;;-1:-1:-1;138766:240:0;-1:-1:-1;139036:28:0::2;::::0;;;::::2;::::0;::::2;;:::i;:::-;-1:-1:-1::0;;;;;139025:39:0::2;:7;:39;;139017:56;;;;-1:-1:-1::0;;;139017:56:0::2;;;;;;;:::i;:::-;139103:28;::::0;;;::::2;::::0;::::2;;:::i;:::-;-1:-1:-1::0;;;;;139092:39:0::2;:7;:39;;139084:56;;;;-1:-1:-1::0;;;139084:56:0::2;;;;;;;:::i;:::-;139151:49;139167:6;139175:4;139181:12;139195:1;139198::::0;139151:15:::2;:49::i;:::-;139229:17;:21;;;139216:75;139252:4;139258:14;139274:7;139283;139216:75;;;;;;;;;:::i;:::-;;;;;;;;72035:1;;;;;;128704::::1;137397:1902:::0;;;;;;:::o;77038:338::-;77187:38;;-1:-1:-1;;;77187:38:0;;77173:11;;-1:-1:-1;;;;;77187:23:0;;;;;:38;;77219:4;;77187:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;77173:52;;77251:9;77244:3;:16;;77236:45;;;;-1:-1:-1;;;77236:45:0;;;;;;;:::i;:::-;77298:7;;77294:75;;77322:35;77335:5;77342:9;77353:3;77322:12;:35::i;43720:164::-;-1:-1:-1;;;;;43841:25:0;;;43817:4;43841:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;43720:164::o;3015:201::-;2002:13;:11;:13::i;:::-;-1:-1:-1;;;;;3104:22:0;::::1;3096:73;;;::::0;-1:-1:-1;;;3096:73:0;;26336:2:1;3096:73:0::1;::::0;::::1;26318:21:1::0;26375:2;26355:18;;;26348:30;26414:34;26394:18;;;26387:62;-1:-1:-1;;;26465:18:1;;;26458:36;26511:19;;3096:73:0::1;26308:228:1::0;3096:73:0::1;3180:28;3199:8;3180:18;:28::i;:::-;3015:201:::0;:::o;130236:420::-;130338:7;130375:6;-1:-1:-1;;;;;130366:15:0;:6;-1:-1:-1;;;;;130366:15:0;;130358:31;;;;-1:-1:-1;;;130358:31:0;;;;;;;:::i;:::-;130415:50;;-1:-1:-1;;;130415:50:0;;130400:12;;-1:-1:-1;;;;;130431:7:0;130415:29;;;;:50;;130445:6;;130453;;130461:3;;130415:50;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;130400:65;-1:-1:-1;;;;;;130480:18:0;;130476:151;;130522:67;;-1:-1:-1;;;130522:67:0;;-1:-1:-1;;;;;18688:15:1;;;130522:67:0;;;18670:34:1;18740:15;;;18720:18;;;18713:43;18804:8;18792:21;;18772:18;;;18765:49;18861:1;18850:21;;;18830:18;;;18823:49;130538:7:0;130522:32;;;;18604:19:1;;130522:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;130515:74;-1:-1:-1;130604:11:0;;-1:-1:-1;130604:11:0;130476:151;130644:4;-1:-1:-1;130236:420:0;;;;;;;:::o;40811:305::-;40913:4;-1:-1:-1;;;;;;40950:40:0;;-1:-1:-1;;;40950:40:0;;:105;;-1:-1:-1;;;;;;;41007:48:0;;-1:-1:-1;;;41007:48:0;40950:105;:158;;;-1:-1:-1;;;;;;;;;;21999:40:0;;;41072:36;21890:157;52814:135;52896:16;52904:7;52896;:16::i;:::-;52888:53;;;;-1:-1:-1;;;52888:53:0;;;;;;;:::i;52127:174::-;52202:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;52202:29:0;-1:-1:-1;;;;;52202:29:0;;;;;;;;:24;;52256:23;52202:24;52256:14;:23::i;:::-;-1:-1:-1;;;;;52247:46:0;;;;;;;;;;;52127:174;;:::o;75488:168::-;75601:12;;;75561;75601;;;;;;;;;-1:-1:-1;;;;;75579:7:0;;;75594:5;;75579:35;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75560:54;;;75633:7;75625:23;;;;-1:-1:-1;;;75625:23:0;;28595:2:1;75625:23:0;;;28577:21:1;28634:1;28614:18;;;28607:29;-1:-1:-1;;;28652:18:1;;;28645:33;28695:18;;75625:23:0;28567:152:1;46814:264:0;46907:4;46924:13;46940:23;46955:7;46940:14;:23::i;:::-;46924:39;;46993:5;-1:-1:-1;;;;;46982:16:0;:7;-1:-1:-1;;;;;46982:16:0;;:52;;;;47002:32;47019:5;47026:7;47002:16;:32::i;:::-;46982:87;;;;47062:7;-1:-1:-1;;;;;47038:31:0;:20;47050:7;47038:11;:20::i;:::-;-1:-1:-1;;;;;47038:31:0;;46974:96;46814:264;-1:-1:-1;;;;46814:264:0:o;136099:1009::-;136412:13;;136292:25;;;;136348:105;;136378:4;;136384:58;;136405:4;;136412:13;;;;;136427:14;;;;;136384:12;:58::i;136348:105::-;136510:24;;;;136536;;;;136800:16;;136291:162;;-1:-1:-1;136291:162:0;;-1:-1:-1;136611:35:0;;;136675;;;;136764:70;;136611:35;;-1:-1:-1;;;136800:16:0;;-1:-1:-1;;;;;136800:16:0;-1:-1:-1;;;136764:22:0;:70::i;:::-;136754:80;;:7;:80;:::i;:::-;136731:6;:19;;;:103;;;;;;;:::i;:::-;;;;-1:-1:-1;;136914:16:0;;136878:70;;136901:11;;-1:-1:-1;;;136914:16:0;;-1:-1:-1;;;;;136914:16:0;-1:-1:-1;;;136878:22:0;:70::i;:::-;136868:80;;:7;:80;:::i;:::-;136845:6;:19;;;:103;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;136959:24:0;;;:44;;;;137014:24;;;:44;-1:-1:-1;;137069:31:0;;-1:-1:-1;;;;;137069:31:0;;;-1:-1:-1;;;137069:31:0;-1:-1:-1;;;;;;137069:31:0;;;;;;;-1:-1:-1;136099:1009:0:o;50779:1229::-;50904:4;-1:-1:-1;;;;;50877:31:0;:23;50892:7;50877:14;:23::i;:::-;-1:-1:-1;;;;;50877:31:0;;50869:81;;;;-1:-1:-1;;;50869:81:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;50969:16:0;;50961:65;;;;-1:-1:-1;;;50961:65:0;;27836:2:1;50961:65:0;;;27818:21:1;27875:2;27855:18;;;27848:30;27914:34;27894:18;;;27887:62;-1:-1:-1;;;27965:18:1;;;27958:34;28009:19;;50961:65:0;27808:226:1;50961:65:0;51039:42;51060:4;51066:2;51070:7;51079:1;51039:20;:42::i;:::-;51211:4;-1:-1:-1;;;;;51184:31:0;:23;51199:7;51184:14;:23::i;:::-;-1:-1:-1;;;;;51184:31:0;;51176:81;;;;-1:-1:-1;;;51176:81:0;;;;;;;:::i;:::-;51329:24;;;;:15;:24;;;;;;;;51322:31;;-1:-1:-1;;;;;;51322:31:0;;;;;;-1:-1:-1;;;;;51805:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;51805:20:0;;;51840:13;;;;;;;;;:18;;51322:31;51840:18;;;51880:16;;;:7;:16;;;;;;:21;;;;;;;;;;51919:27;;51345:7;;-1:-1:-1;;;;;;;;;;;51919:27:0;;42769:416;;;:::o;49659:783::-;49719:13;49735:23;49750:7;49735:14;:23::i;:::-;49719:39;;49771:51;49792:5;49807:1;49811:7;49820:1;49771:20;:51::i;:::-;49935:23;49950:7;49935:14;:23::i;:::-;50006:24;;;;:15;:24;;;;;;;;49999:31;;-1:-1:-1;;;;;;49999:31:0;;;;;;-1:-1:-1;;;;;50251:16:0;;;;;:9;:16;;;;;:21;;-1:-1:-1;;50251:21:0;;;50301:16;;;:7;:16;;;;;;50294:23;;;;;;;50335:36;49927:31;;-1:-1:-1;50022:7:0;;-1:-1:-1;;;;;;;;;;;50335:36:0;50006:24;;50335:36;43494:155;;:::o;2281:132::-;2162:7;2189:6;-1:-1:-1;;;;;2189:6:0;743:10;2345:23;2337:68;;;;-1:-1:-1;;;2337:68:0;;32364:2:1;2337:68:0;;;32346:21:1;;;32383:18;;;32376:30;32442:34;32422:18;;;32415:62;32494:18;;2337:68:0;32336:182:1;3376:191:0;3450:16;3469:6;;-1:-1:-1;;;;;3486:17:0;;;-1:-1:-1;;;;;;3486:17:0;;;;;;3519:40;;3469:6;;;;;;;3519:40;;3450:16;3519:40;3376:191;;:::o;79123:148::-;79231:25;79236:6;79244;79252:3;79231:4;:25::i;:::-;-1:-1:-1;;;;;79217:39:0;:10;-1:-1:-1;;;;;79217:39:0;;79208:55;;;;-1:-1:-1;;;79208:55:0;;28926:2:1;79208:55:0;;;28908:21:1;28965:1;28945:18;;;28938:29;-1:-1:-1;;;28983:18:1;;;28976:32;29025:18;;79208:55:0;28898:151:1;78055:686:0;78208:5;-1:-1:-1;;;;;78199:14:0;:5;-1:-1:-1;;;;;78199:14:0;;:48;;;;;78242:5;78217:21;:30;;78199:48;78195:539;;;78302:5;-1:-1:-1;;;;;78295:21:0;;78324:5;78295:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;78382:40:0;;-1:-1:-1;;;78382:40:0;;-1:-1:-1;;;;;21551:32:1;;;78382:40:0;;;21533:51:1;21600:18;;;21593:34;;;78389:5:0;78382:22;;-1:-1:-1;78382:22:0;;-1:-1:-1;21506:18:1;;;-1:-1:-1;78382:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;78195:539;;;-1:-1:-1;;;;;78444:22:0;;78461:4;78444:22;78440:294;;;78575:37;78588:5;78595:9;78606:5;78575:12;:37::i;:::-;78440:294;;;78674:48;78691:5;78698;78705:9;78716:5;78674:16;:48::i;132545:963::-;132615:17;132634:15;132651;132668:12;132699;132722:20;132776:7;-1:-1:-1;;;;;132760:29:0;;132790:2;:9;;;132801:2;:9;;;132812:2;:6;;;132760:59;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;132753:66;;132830:19;132865:4;-1:-1:-1;;;;;132852:30:0;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;132830:54;-1:-1:-1;;;;;;132903:18:0;;132895:33;;;;-1:-1:-1;;;132895:33:0;;;;;;;:::i;:::-;132964:18;132977:4;132964:12;:18::i;:::-;132939:43;;;;;;;;133005:284;133045:159;;;;;;;;133091:2;:5;;;133045:159;;;;;;133119:2;:5;;;133045:159;;;;;;133149:2;:7;;;-1:-1:-1;;;;;133045:159:0;;;;;133181:2;:7;;;-1:-1:-1;;;;;133045:159:0;;;;133219:6;133240:12;133267:11;133005:25;:284::i;:::-;132993:296;;133334:4;-1:-1:-1;;;;;133321:23:0;;133353:4;133360:2;:5;;;133367:2;:5;;;133374:9;133410:88;;;;;;;;133436:2;:9;;;-1:-1:-1;;;;;133410:88:0;;;;;133455:2;:9;;;-1:-1:-1;;;;;133410:88:0;;;;;133471:2;:6;;;133410:88;;;;;;133486:10;-1:-1:-1;;;;;133410:88:0;;;;133399:100;;;;;;;;:::i;:::-;;;;;;;;;;;;;133321:179;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;132545:963;;133300:200;;-1:-1:-1;132545:963:0;;-1:-1:-1;132545:963:0;;-1:-1:-1;;;;132545:963:0:o;130664:156::-;130780:31;;;16565:2:1;16561:15;;;;-1:-1:-1;;16557:53:1;130780:31:0;;;;16545:66:1;;;;16661:1;16650:21;;;16645:3;16641:31;;;16627:12;;;16620:53;16712:21;;;;16703:31;;;16689:12;;;16682:53;130780:31:0;;;;;;;;;16751:12:1;;;;130780:31:0;;130770:42;;;;;;130664:156::o;131099:288::-;131172:7;131181;131206:25;131233;131279:4;-1:-1:-1;;;;;131266:28:0;;131309:3;131266:57;;;;;;;;;;;;;22784:25:1;;22772:2;22757:18;;22739:76;131266:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;131203:120:0;;-1:-1:-1;131203:120:0;-1:-1:-1;;;;;131099:288:0;;;;;;:::o;130828:263::-;-1:-1:-1;;;;;130939:13:0;;130903:14;130939:13;;;:7;:13;;;;;;-1:-1:-1;;;;;130939:13:0;130967:11;130963:121;;131021:9;:11;;-1:-1:-1;;;;;131021:11:0;;:9;:11;;;:::i;:::-;;;;;;;;-1:-1:-1;;;;;131021:11:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;130995:13:0;;;-1:-1:-1;130995:13:0;;;:7;:13;;;;;;;;:38;;-1:-1:-1;;;;;;130995:38:0;;;;;;;;;131048:17;;;:9;:17;;;;;;:24;;;;-1:-1:-1;;;;;;131048:24:0;;;;;;;;;;;-1:-1:-1;131048:24:0;;;;;;;;;;;;;-1:-1:-1;;;;;;131048:24:0;;;;;;;-1:-1:-1;;;131048:24:0;;;;;;;;;;;;;;;-1:-1:-1;130995:38:0;130828:263::o;48378:942::-;-1:-1:-1;;;;;48458:16:0;;48450:61;;;;-1:-1:-1;;;48450:61:0;;30998:2:1;48450:61:0;;;30980:21:1;;;31017:18;;;31010:30;31076:34;31056:18;;;31049:62;31128:18;;48450:61:0;30970:182:1;48450:61:0;48531:16;48539:7;48531;:16::i;:::-;48530:17;48522:58;;;;-1:-1:-1;;;48522:58:0;;;;;;;:::i;:::-;48593:48;48622:1;48626:2;48630:7;48639:1;48593:20;:48::i;:::-;48740:16;48748:7;48740;:16::i;:::-;48739:17;48731:58;;;;-1:-1:-1;;;48731:58:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;49138:13:0;;;;;;:9;:13;;;;;;;;:18;;49155:1;49138:18;;;49180:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;49180:21:0;;;;;49219:33;49188:7;;49138:13;;-1:-1:-1;;;;;;;;;;;49219:33:0;49138:13;;49219:33;43494:155;;:::o;52444:281::-;52565:8;-1:-1:-1;;;;;52556:17:0;:5;-1:-1:-1;;;;;52556:17:0;;;52548:55;;;;-1:-1:-1;;;52548:55:0;;28241:2:1;52548:55:0;;;28223:21:1;28280:2;28260:18;;;28253:30;-1:-1:-1;;;28299:18:1;;;28292:55;28364:18;;52548:55:0;28213:175:1;52548:55:0;-1:-1:-1;;;;;52614:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;52614:46:0;;;;;;;;;;52676:41;;22586::1;;;52676::0;;22559:18:1;52676:41:0;;;;;;;52444:281;;;:::o;45705:270::-;45818:28;45828:4;45834:2;45838:7;45818:9;:28::i;:::-;45865:47;45888:4;45894:2;45898:7;45907:4;45865:22;:47::i;:::-;45857:110;;;;-1:-1:-1;;;45857:110:0;;;;;;;:::i;128749:100::-;128801:13;128834:7;128827:14;;;;;:::i;36996:716::-;37052:13;37103:14;37120:17;37131:5;37120:10;:17::i;:::-;37140:1;37120:21;37103:38;;37156:20;37190:6;-1:-1:-1;;;;;37179:18:0;;;;;-1:-1:-1;;;37179:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37179:18:0;-1:-1:-1;37156:41:0;-1:-1:-1;37321:28:0;;;37337:2;37321:28;37378:288;-1:-1:-1;;37410:5:0;-1:-1:-1;;;37547:2:0;37536:14;;37531:30;37410:5;37518:44;37608:2;37599:11;;;-1:-1:-1;37633:10:0;37629:21;;37645:5;;37629:21;37378:288;;;-1:-1:-1;37687:6:0;36996:716;-1:-1:-1;;;36996:716:0:o;131395:311::-;131453:7;131462:5;131495:20;131530:12;131645:4;-1:-1:-1;;;;;131632:24:0;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;131480:178:0;;;;-1:-1:-1;131395:311:0;;-1:-1:-1;;;;;;;;;131395:311:0:o;96225:867::-;96371:17;96413:21;96433:1;-1:-1:-1;;;;;96413:21:0;:::i;:::-;96401:33;;96446:9;96457;96470:73;96495:2;:5;;;96502:2;:5;;;96509:6;96517:12;96531:11;96470:24;:73::i;:::-;96445:98;;-1:-1:-1;96445:98:0;-1:-1:-1;96558:5:0;;96554:180;;96580:10;96629:1;-1:-1:-1;;;96601:2:0;:7;;;-1:-1:-1;;;;;96593:16:0;:33;;;;:::i;:::-;:37;;;;:::i;:::-;96580:50;;96661:2;96649:9;-1:-1:-1;;;;;96649:14:0;;96645:78;;;96704:2;96684:23;;96645:78;96554:180;;96748:5;;96744:341;;96927:10;96980:1;-1:-1:-1;;;96958:1:0;96948:2;:7;;;:11;;;;:::i;:::-;-1:-1:-1;;;;;96940:20:0;:37;;;;:::i;:::-;:41;;;;:::i;:::-;96927:54;;97012:2;97000:9;-1:-1:-1;;;;;97000:14:0;;96996:78;;;97055:2;97035:23;;96996:78;96744:341;;96225:867;;;;;;;;:::o;74304:316::-;74469:59;;;-1:-1:-1;;;;;21551:32:1;;;74469:59:0;;;21533:51:1;21600:18;;;;21593:34;;;74469:59:0;;;;;;;;;;21506:18:1;;;;74469:59:0;;;;;;;-1:-1:-1;;;;;74469:59:0;-1:-1:-1;;;74469:59:0;;;74458:71;;-1:-1:-1;;;;74458:10:0;;;;:71;;74469:59;74458:71;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74422:107;;;;74548:7;:57;;;;-1:-1:-1;74560:11:0;;:16;;:44;;;74591:4;74580:24;;;;;;;;;;;;:::i;:::-;74540:72;;;;-1:-1:-1;;;74540:72:0;;31359:2:1;74540:72:0;;;31341:21:1;31398:1;31378:18;;;31371:29;-1:-1:-1;;;31416:18:1;;;31409:32;31458:18;;74540:72:0;31331:151:1;46519:128:0;46584:4;46182:16;;;:7;:16;;;;;;-1:-1:-1;;;;;46182:16:0;46608:31;;;46519:128::o;90741:2163::-;90852:11;;;-1:-1:-1;;91090:1:0;91087;91080:20;91137:1;91134;91130:9;91114:25;;91217:12;91206:9;91203:27;91188:12;91177:9;91173:28;91169:62;91153:78;;;91258:12;91274:1;91258:17;91254:173;;;91304:1;91300;:5;91292:14;;;;;;-1:-1:-1;91356:20:0;;;;-1:-1:-1;91405:10:0;;91254:173;91517:12;91513:1;:16;91505:25;;;;;;91543:14;91615:1;91612;91609;91602:15;91884:1;91842:6;;91872:14;;91910;;91972;;;;92350:1;92346:9;;92357:1;92342:17;;;92398:12;;;92391:20;;92381:31;92467:12;;;92460:20;;92450:31;92537:12;;;92530:20;;92520:31;92607:12;;;92600:20;;92590:31;92677:12;;;92670:20;;92660:31;92748:12;;;92741:20;;92731:31;92108:1;92104:14;;;92100:27;;;92096:35;;;91696:24;;;91678:43;;;92161:25;;;;91751;;92047;;;;92216:30;;;;92863:23;;;-1:-1:-1;;;;91577:1320:0:o;59919:915::-;60186:1;60174:9;:13;60170:222;;;60317:63;;-1:-1:-1;;;60317:63:0;;35326:2:1;60317:63:0;;;35308:21:1;35365:2;35345:18;;;35338:30;35404:34;35384:18;;;35377:62;-1:-1:-1;;;35455:18:1;;;35448:51;35516:19;;60317:63:0;35298:243:1;60170:222:0;60422:12;-1:-1:-1;;;;;60451:18:0;;60447:187;;60486:40;60518:7;61661:10;:17;;61634:24;;;;:15;:24;;;;;:44;;;61689:24;;;;;;;;;;;;61557:164;60486:40;60447:187;;;60556:2;-1:-1:-1;;;;;60548:10:0;:4;-1:-1:-1;;;;;60548:10:0;;60544:90;;60575:47;60608:4;60614:7;60575:32;:47::i;:::-;-1:-1:-1;;;;;60648:16:0;;60644:183;;60681:45;60718:7;60681:36;:45::i;:::-;60644:183;;;60754:4;-1:-1:-1;;;;;60748:10:0;:2;-1:-1:-1;;;;;60748:10:0;;60744:83;;60775:40;60803:2;60807:7;60775:27;:40::i;73639:367::-;73844:69;;;-1:-1:-1;;;;;19141:15:1;;;73844:69:0;;;19123:34:1;19193:15;;;19173:18;;;19166:43;19225:18;;;;19218:34;;;73844:69:0;;;;;;;;;;19058:18:1;;;;73844:69:0;;;;;;;-1:-1:-1;;;;;73844:69:0;-1:-1:-1;;;73844:69:0;;;73833:81;;-1:-1:-1;;;;73833:10:0;;;;:81;;73844:69;73833:81;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73784:130;;;;73933:7;:57;;;;-1:-1:-1;73945:11:0;;:16;;:44;;;73976:4;73965:24;;;;;;;;;;;;:::i;:::-;73925:73;;;;-1:-1:-1;;;73925:73:0;;32725:2:1;73925:73:0;;;32707:21:1;32764:1;32744:18;;;32737:29;-1:-1:-1;;;32782:18:1;;;32775:33;32825:18;;73925:73:0;32697:152:1;73925:73:0;73639:367;;;;;;:::o;53513:853::-;53667:4;-1:-1:-1;;;;;53688:13:0;;13155:19;:23;53684:675;;53724:71;;-1:-1:-1;;;53724:71:0;;-1:-1:-1;;;;;53724:36:0;;;;;:71;;743:10;;53775:4;;53781:7;;53790:4;;53724:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53724:71:0;;;;;;;;-1:-1:-1;;53724:71:0;;;;;;;;;;;;:::i;:::-;;;53720:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53965:13:0;;53961:328;;54008:60;;-1:-1:-1;;;54008:60:0;;;;;;;:::i;53961:328::-;54239:6;54233:13;54224:6;54220:2;54216:15;54209:38;53720:584;-1:-1:-1;;;;;;53846:51:0;-1:-1:-1;;;53846:51:0;;-1:-1:-1;53839:58:0;;53684:675;-1:-1:-1;54343:4:0;54336:11;;32477:948;32530:7;;-1:-1:-1;;;32608:17:0;;32604:106;;-1:-1:-1;;;32646:17:0;;;-1:-1:-1;32692:2:0;32682:12;32604:106;32737:8;32728:5;:17;32724:106;;32775:8;32766:17;;;-1:-1:-1;32812:2:0;32802:12;32724:106;32857:8;32848:5;:17;32844:106;;32895:8;32886:17;;;-1:-1:-1;32932:2:0;32922:12;32844:106;32977:7;32968:5;:16;32964:103;;33014:7;33005:16;;;-1:-1:-1;33050:1:0;33040:11;32964:103;33094:7;33085:5;:16;33081:103;;33131:7;33122:16;;;-1:-1:-1;33167:1:0;33157:11;33081:103;33211:7;33202:5;:16;33198:103;;33248:7;33239:16;;;-1:-1:-1;33284:1:0;33274:11;33198:103;33328:7;33319:5;:16;33315:68;;33366:1;33356:11;33411:6;32477:948;-1:-1:-1;;32477:948:0:o;95097:1120::-;95278:9;;;95367:27;95391:2;95367:23;:27::i;:::-;95343:51;;95414:2;95409:7;;:2;:7;;;95405:363;;;95433:21;95457:27;95481:2;95457:23;:27::i;:::-;95433:51;;95508:2;95503:7;;:2;:7;;;95499:258;;;95536:80;95574:13;95589;95604:11;95536:37;:80::i;:::-;95531:85;;;;:::i;:::-;;;95499:258;;;95662:79;95700:13;95715:12;95729:11;95662:37;:79::i;:::-;95657:84;;;;:::i;:::-;;;95499:258;95405:363;;95787:2;95782:7;;:2;:7;;;95778:292;;;95841:12;95862:2;95857:7;;:2;:7;;;95856:23;;95873:6;:2;95878:1;95873:6;:::i;:::-;95856:23;;;95868:2;95856:23;95841:38;;95898:160;95954:6;95979:2;96000:13;96032:11;95898:37;:160::i;:::-;95894:164;;95778:292;;96090:2;96084:8;;:2;:8;;;;:19;;;;;96101:2;96096:7;;:2;:7;;;96084:19;96080:130;;;96181:17;-1:-1:-1;;;;;96181:17:0;;;;:::i;:::-;;;96080:130;95097:1120;;;;;;;;;:::o;62348:988::-;62614:22;62664:1;62639:22;62656:4;62639:16;:22::i;:::-;:26;;;;:::i;:::-;62676:18;62697:26;;;:17;:26;;;;;;62614:51;;-1:-1:-1;62830:28:0;;;62826:328;;-1:-1:-1;;;;;62897:18:0;;62875:19;62897:18;;;:12;:18;;;;;;;;:34;;;;;;;;;62948:30;;;;;;:44;;;63065:30;;:17;:30;;;;;:43;;;62826:328;-1:-1:-1;63250:26:0;;;;:17;:26;;;;;;;;63243:33;;;-1:-1:-1;;;;;63294:18:0;;;;;:12;:18;;;;;:34;;;;;;;63287:41;62348:988::o;63631:1079::-;63909:10;:17;63884:22;;63909:21;;63929:1;;63909:21;:::i;:::-;63941:18;63962:24;;;:15;:24;;;;;;64335:10;:26;;63884:46;;-1:-1:-1;63962:24:0;;63884:46;;64335:26;;;;-1:-1:-1;;;64335:26:0;;;;;;;;;;;;;;;;;64313:48;;64399:11;64374:10;64385;64374:22;;;;;;-1:-1:-1;;;64374:22:0;;;;;;;;;;;;;;;;;;;;:36;;;;64479:28;;;:15;:28;;;;;;;:41;;;64651:24;;;;;64644:31;64686:10;:16;;;;;-1:-1:-1;;;64686:16:0;;;;;;;;;;;;;;;;;;;;;;;;;;63631:1079;;;;:::o;61135:221::-;61220:14;61237:20;61254:2;61237:16;:20::i;:::-;-1:-1:-1;;;;;61268:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;61313:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;61135:221:0:o;79723:2295::-;79781:20;79814:14;79839:1;79831:5;:9;;;:60;;79884:5;79877:13;;79831:60;;;79859:5;79852:13;;79851:14;;;:::i;:::-;79814:77;-1:-1:-1;79471:10:0;-1:-1:-1;;79471:10:0;:::i;:::-;79928:17;;79910:6;:36;;79902:50;;;;-1:-1:-1;;;79902:50:0;;30669:2:1;79902:50:0;;;30651:21:1;30708:1;30688:18;;;30681:29;-1:-1:-1;;;30726:18:1;;;30719:31;30767:18;;79902:50:0;30641:150:1;79902:50:0;79965:13;79990:3;79981:12;;:92;;-1:-1:-1;;;79981:92:0;;;80001:34;79981:92;-1:-1:-1;;;;;79965:108:0;;-1:-1:-1;80097:3:0;80088:12;;:17;80084:82;;80163:3;80116:42;:5;80124:34;80116:42;:::i;:::-;80115:51;;80107:59;;80084:82;80190:3;80181:12;;:17;80177:82;;80256:3;80209:42;:5;80217:34;80209:42;:::i;:::-;80208:51;;80200:59;;80177:82;80283:3;80274:12;;:17;80270:82;;80349:3;80302:42;:5;80310:34;80302:42;:::i;:::-;80301:51;;80293:59;;80270:82;80376:4;80367:13;;:18;80363:83;;80443:3;80396:42;:5;80404:34;80396:42;:::i;:::-;80395:51;;80387:59;;80363:83;80470:4;80461:13;;:18;80457:83;;80537:3;80490:42;:5;80498:34;80490:42;:::i;:::-;80489:51;;80481:59;;80457:83;80564:4;80555:13;;:18;80551:83;;80631:3;80584:42;:5;80592:34;80584:42;:::i;:::-;80583:51;;80575:59;;80551:83;80658:4;80649:13;;:18;80645:83;;80725:3;80678:42;:5;80686:34;80678:42;:::i;:::-;80677:51;;80669:59;;80645:83;80752:5;80743:14;;:19;80739:84;;80820:3;80773:42;:5;80781:34;80773:42;:::i;:::-;80772:51;;80764:59;;80739:84;80847:5;80838:14;;:19;80834:84;;80915:3;80868:42;:5;80876:34;80868:42;:::i;:::-;80867:51;;80859:59;;80834:84;80942:5;80933:14;;:19;80929:84;;81010:3;80963:42;:5;80971:34;80963:42;:::i;:::-;80962:51;;80954:59;;80929:84;81037:5;81028:14;;:19;81024:84;;81105:3;81058:42;:5;81066:34;81058:42;:::i;:::-;81057:51;;81049:59;;81024:84;81132:6;81123:15;;:20;81119:85;;81201:3;81154:42;:5;81162:34;81154:42;:::i;:::-;81153:51;;81145:59;;81119:85;81228:6;81219:15;;:20;81215:85;;81297:3;81250:42;:5;81258:34;81250:42;:::i;:::-;81249:51;;81241:59;;81215:85;81324:6;81315:15;;:20;81311:85;;81393:3;81346:42;:5;81354:34;81346:42;:::i;:::-;81345:51;;81337:59;;81311:85;81420:6;81411:15;;:20;81407:85;;81489:3;81442:42;:5;81450:34;81442:42;:::i;:::-;81441:51;;81433:59;;81407:85;81516:7;81507:16;;:21;81503:85;;81585:3;81539:41;:5;81547:33;81539:41;:::i;:::-;81538:50;;81530:58;;81503:85;81612:7;81603:16;;:21;81599:84;;81680:3;81635:40;:5;81643:32;81635:40;:::i;:::-;81634:49;;81626:57;;81599:84;81707:7;81698:16;;:21;81694:82;;81773:3;81730:38;:5;81738:30;81730:38;:::i;:::-;81729:47;;81721:55;;81694:82;81800:7;81791:16;;:21;81787:77;;81861:3;81823:33;:5;81831:25;81823:33;:::i;:::-;81822:42;;81814:50;;81787:77;81889:1;81881:5;:9;;;81877:48;;;81900:25;81920:5;-1:-1:-1;;81900:25:0;:::i;:::-;81892:33;;81877:48;81978:17;81987:7;81978:5;:17;:::i;:::-;:22;:30;;82007:1;81978:30;;;82003:1;81978:30;81961:48;;;;81971:2;81962:11;;;81961:48;:::i;93811:401::-;93971:17;;94021:29;94037:13;94021;:29;:::i;:::-;94001:49;-1:-1:-1;94061:19:0;94083:37;-1:-1:-1;;;94083:11:0;:37;:::i;:::-;94061:59;;94143:61;-1:-1:-1;;;94181:9:0;-1:-1:-1;;;;;94143:61:0;94192:11;-1:-1:-1;;;;;94143:61:0;:21;:61::i;:::-;94131:73;93811:401;-1:-1:-1;;;;;;93811:401:0:o;94220:623::-;94395:17;;94504:45;94528:16;94538:6;94528:7;:16;:::i;:::-;:20;;94547:1;94528:20;:::i;:::-;94504:23;:45::i;:::-;94477:72;-1:-1:-1;94560:24:0;94587:36;94611:11;:7;94621:1;94611:11;:::i;94587:36::-;94560:63;-1:-1:-1;94636:17:0;94656:30;94675:11;94656:16;:30;:::i;:::-;94636:50;-1:-1:-1;94697:19:0;94719:32;94738:13;94719:16;:32;:::i;:::-;94697:54;;94774:61;-1:-1:-1;;;94812:9:0;-1:-1:-1;;;;;94774:61:0;94823:11;-1:-1:-1;;;;;94774:61:0;:21;:61::i;:::-;94762:73;94220:623;-1:-1:-1;;;;;;;;;94220:623:0:o;92972:282::-;93082:11;93112:20;93124:1;93127;93130;93112:11;:20::i;:::-;93106:26;;93165:1;93160;93147:15;;;-1:-1:-1;;;93147:15:0;;;;;;;;;93157:1;93154;93147:15;:19;93143:104;;;-1:-1:-1;;93191:3:0;:23;93183:32;;;;;;93230:5;;;;:::i;:::-;;92972:282;-1:-1:-1;;;;;92972:282:0:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:134:1;82:20;;111:31;82:20;111:31;:::i;:::-;63:85;;;:::o;153:375::-;204:8;214:6;268:3;261:4;253:6;249:17;245:27;235:2;;293:8;283;276:26;235:2;-1:-1:-1;323:20:1;;-1:-1:-1;;;;;355:30:1;;352:2;;;405:8;395;388:26;352:2;449:4;441:6;437:17;425:29;;501:3;494:4;485:6;477;473:19;469:30;466:39;463:2;;;518:1;515;508:12;533:130;599:20;;628:29;599:20;628:29;:::i;668:134::-;736:20;;765:31;736:20;765:31;:::i;807:163::-;885:13;;938:6;927:18;;917:29;;907:2;;960:1;957;950:12;975:161;1042:20;;1102:8;1091:20;;1081:31;;1071:2;;1126:1;1123;1116:12;1141:257;1200:6;1253:2;1241:9;1232:7;1228:23;1224:32;1221:2;;;1274:6;1266;1259:22;1221:2;1318:9;1305:23;1337:31;1362:5;1337:31;:::i;1403:261::-;1473:6;1526:2;1514:9;1505:7;1501:23;1497:32;1494:2;;;1547:6;1539;1532:22;1494:2;1584:9;1578:16;1603:31;1628:5;1603:31;:::i;1669:398::-;1737:6;1745;1798:2;1786:9;1777:7;1773:23;1769:32;1766:2;;;1819:6;1811;1804:22;1766:2;1863:9;1850:23;1882:31;1907:5;1882:31;:::i;:::-;1932:5;-1:-1:-1;1989:2:1;1974:18;;1961:32;2002:33;1961:32;2002:33;:::i;:::-;2054:7;2044:17;;;1756:311;;;;;:::o;2072:470::-;2148:6;2156;2164;2217:2;2205:9;2196:7;2192:23;2188:32;2185:2;;;2238:6;2230;2223:22;2185:2;2282:9;2269:23;2301:31;2326:5;2301:31;:::i;:::-;2351:5;-1:-1:-1;2408:2:1;2393:18;;2380:32;2421:33;2380:32;2421:33;:::i;:::-;2473:7;-1:-1:-1;2499:37:1;2532:2;2517:18;;2499:37;:::i;:::-;2489:47;;2175:367;;;;;:::o;2547:608::-;2630:6;2638;2646;2654;2707:3;2695:9;2686:7;2682:23;2678:33;2675:2;;;2729:6;2721;2714:22;2675:2;2773:9;2760:23;2792:31;2817:5;2792:31;:::i;:::-;2842:5;-1:-1:-1;2899:2:1;2884:18;;2871:32;2912:33;2871:32;2912:33;:::i;:::-;2964:7;-1:-1:-1;2990:37:1;3023:2;3008:18;;2990:37;:::i;:::-;2980:47;;3079:2;3068:9;3064:18;3051:32;3092:31;3115:7;3092:31;:::i;:::-;2665:490;;;;-1:-1:-1;2665:490:1;;-1:-1:-1;;2665:490:1:o;3160:466::-;3237:6;3245;3253;3306:2;3294:9;3285:7;3281:23;3277:32;3274:2;;;3327:6;3319;3312:22;3274:2;3371:9;3358:23;3390:31;3415:5;3390:31;:::i;:::-;3440:5;-1:-1:-1;3497:2:1;3482:18;;3469:32;3510:33;3469:32;3510:33;:::i;:::-;3264:362;;3562:7;;-1:-1:-1;;;3616:2:1;3601:18;;;;3588:32;;3264:362::o;3631:1061::-;3726:6;3734;3742;3750;3803:3;3791:9;3782:7;3778:23;3774:33;3771:2;;;3825:6;3817;3810:22;3771:2;3869:9;3856:23;3888:31;3913:5;3888:31;:::i;:::-;3938:5;-1:-1:-1;3995:2:1;3980:18;;3967:32;4008:33;3967:32;4008:33;:::i;:::-;4060:7;-1:-1:-1;4114:2:1;4099:18;;4086:32;;-1:-1:-1;4169:2:1;4154:18;;4141:32;-1:-1:-1;;;;;4185:30:1;;4182:2;;;4233:6;4225;4218:22;4182:2;4261:22;;4314:4;4306:13;;4302:27;-1:-1:-1;4292:2:1;;4348:6;4340;4333:22;4292:2;4389;4376:16;4414:48;4430:31;4458:2;4430:31;:::i;:::-;4414:48;:::i;:::-;4485:2;4478:5;4471:17;4525:7;4520:2;4515;4511;4507:11;4503:20;4500:33;4497:2;;;4551:6;4543;4536:22;4497:2;4611;4606;4602;4598:11;4593:2;4586:5;4582:14;4569:45;4634:14;;;4650:2;4630:23;4623:39;;;;-1:-1:-1;3761:931:1;;;;-1:-1:-1;3761:931:1;-1:-1:-1;3761:931:1:o;4697:392::-;4762:6;4770;4823:2;4811:9;4802:7;4798:23;4794:32;4791:2;;;4844:6;4836;4829:22;4791:2;4888:9;4875:23;4907:31;4932:5;4907:31;:::i;:::-;4957:5;-1:-1:-1;5014:2:1;4999:18;;4986:32;5027:30;4986:32;5027:30;:::i;5094:325::-;5162:6;5170;5223:2;5211:9;5202:7;5198:23;5194:32;5191:2;;;5244:6;5236;5229:22;5191:2;5288:9;5275:23;5307:31;5332:5;5307:31;:::i;:::-;5357:5;5409:2;5394:18;;;;5381:32;;-1:-1:-1;;;5181:238:1:o;5424:466::-;5501:6;5509;5517;5570:2;5558:9;5549:7;5545:23;5541:32;5538:2;;;5591:6;5583;5576:22;5538:2;5635:9;5622:23;5654:31;5679:5;5654:31;:::i;:::-;5704:5;-1:-1:-1;5756:2:1;5741:18;;5728:32;;-1:-1:-1;5812:2:1;5797:18;;5784:32;5825:33;5784:32;5825:33;:::i;:::-;5877:7;5867:17;;;5528:362;;;;;:::o;5895:608::-;5981:6;5989;5997;6005;6058:3;6046:9;6037:7;6033:23;6029:33;6026:2;;;6080:6;6072;6065:22;6026:2;6124:9;6111:23;6143:31;6168:5;6143:31;:::i;:::-;6193:5;-1:-1:-1;6245:2:1;6230:18;;6217:32;;-1:-1:-1;6301:2:1;6286:18;;6273:32;6314:33;6273:32;6314:33;:::i;:::-;6366:7;-1:-1:-1;6425:2:1;6410:18;;6397:32;6438:33;6397:32;6438:33;:::i;6508:676::-;6605:6;6613;6666:2;6654:9;6645:7;6641:23;6637:32;6634:2;;;6687:6;6679;6672:22;6634:2;6732:9;6719:23;-1:-1:-1;;;;;6802:2:1;6794:6;6791:14;6788:2;;;6823:6;6815;6808:22;6788:2;6866:6;6855:9;6851:22;6841:32;;6911:7;6904:4;6900:2;6896:13;6892:27;6882:2;;6938:6;6930;6923:22;6882:2;6983;6970:16;7009:2;7001:6;6998:14;6995:2;;;7030:6;7022;7015:22;6995:2;7088:7;7083:2;7073:6;7070:1;7066:14;7062:2;7058:23;7054:32;7051:45;7048:2;;;7114:6;7106;7099:22;7048:2;7150;7142:11;;;;;7172:6;;-1:-1:-1;6624:560:1;;-1:-1:-1;;;;6624:560:1:o;7189:255::-;7256:6;7309:2;7297:9;7288:7;7284:23;7280:32;7277:2;;;7330:6;7322;7315:22;7277:2;7367:9;7361:16;7386:28;7408:5;7386:28;:::i;7449:255::-;7507:6;7560:2;7548:9;7539:7;7535:23;7531:32;7528:2;;;7581:6;7573;7566:22;7528:2;7625:9;7612:23;7644:30;7668:5;7644:30;:::i;7709:259::-;7778:6;7831:2;7819:9;7810:7;7806:23;7802:32;7799:2;;;7852:6;7844;7837:22;7799:2;7889:9;7883:16;7908:30;7932:5;7908:30;:::i;7973:253::-;8030:6;8083:2;8071:9;8062:7;8058:23;8054:32;8051:2;;;8104:6;8096;8089:22;8051:2;8148:9;8135:23;8167:29;8190:5;8167:29;:::i;8231:430::-;8302:6;8310;8363:2;8351:9;8342:7;8338:23;8334:32;8331:2;;;8384:6;8376;8369:22;8331:2;8429:9;8416:23;-1:-1:-1;;;;;8454:6:1;8451:30;8448:2;;;8499:6;8491;8484:22;8448:2;8543:58;8593:7;8584:6;8573:9;8569:22;8543:58;:::i;:::-;8620:8;;8517:84;;-1:-1:-1;8321:340:1;-1:-1:-1;;;;8321:340:1:o;8666:675::-;8746:6;8799:2;8787:9;8778:7;8774:23;8770:32;8767:2;;;8820:6;8812;8805:22;8767:2;8858:9;8852:16;-1:-1:-1;;;;;8883:6:1;8880:30;8877:2;;;8928:6;8920;8913:22;8877:2;8956:22;;9009:4;9001:13;;8997:27;-1:-1:-1;8987:2:1;;9043:6;9035;9028:22;8987:2;9077;9071:9;9102:48;9118:31;9146:2;9118:31;:::i;9102:48::-;9173:2;9166:5;9159:17;9213:7;9208:2;9203;9199;9195:11;9191:20;9188:33;9185:2;;;9239:6;9231;9224:22;9185:2;9257:54;9308:2;9303;9296:5;9292:14;9287:2;9283;9279:11;9257:54;:::i;9346:214::-;9442:6;9495:3;9483:9;9474:7;9470:23;9466:33;9463:2;;;9517:6;9509;9502:22;9565:875;9658:6;9711:3;9699:9;9690:7;9686:23;9682:33;9679:2;;;9733:6;9725;9718:22;9679:2;9771;9765:9;9813:3;9805:6;9801:16;9883:6;9871:10;9868:22;-1:-1:-1;;;;;9835:10:1;9832:34;9829:62;9826:2;;;9894:18;;:::i;:::-;9930:2;9923:22;9967:23;;9999:31;9967:23;9999:31;:::i;:::-;10039:21;;10112:2;10097:18;;10084:32;10125:33;10084:32;10125:33;:::i;:::-;10186:2;10174:15;;10167:32;10232:37;10265:2;10250:18;;10232:37;:::i;:::-;10227:2;10219:6;10215:15;10208:62;10322:2;10311:9;10307:18;10294:32;10335:33;10360:7;10335:33;:::i;:::-;10396:2;10384:15;;10377:32;10388:6;9669:771;-1:-1:-1;;;9669:771:1:o;10445:206::-;10533:6;10586:3;10574:9;10565:7;10561:23;10557:33;10554:2;;;10608:6;10600;10593:22;10656:1070;10742:6;10795:3;10783:9;10774:7;10770:23;10766:33;10763:2;;;10817:6;10809;10802:22;10763:2;10848:22;;:::i;:::-;10893:29;10912:9;10893:29;:::i;:::-;10886:5;10879:44;10955:38;10989:2;10978:9;10974:18;10955:38;:::i;:::-;10950:2;10943:5;10939:14;10932:62;11026:38;11060:2;11049:9;11045:18;11026:38;:::i;:::-;11021:2;11014:5;11010:14;11003:62;11097:37;11130:2;11119:9;11115:18;11097:37;:::i;:::-;11092:2;11085:5;11081:14;11074:61;11168:37;11200:3;11189:9;11185:19;11168:37;:::i;:::-;11162:3;11155:5;11151:15;11144:62;11239:37;11271:3;11260:9;11256:19;11239:37;:::i;:::-;11233:3;11226:5;11222:15;11215:62;11310:39;11344:3;11333:9;11329:19;11310:39;:::i;:::-;11304:3;11297:5;11293:15;11286:64;11383:39;11417:3;11406:9;11402:19;11383:39;:::i;:::-;11377:3;11370:5;11366:15;11359:64;11442:3;11477:38;11511:2;11500:9;11496:18;11477:38;:::i;:::-;11461:14;;;11454:62;11535:3;11570:38;11589:18;;;11570:38;:::i;:::-;11554:14;;;11547:62;11628:3;11676:18;;;11663:32;11647:14;;;11640:56;;;;-1:-1:-1;11558:5:1;10753:973;-1:-1:-1;10753:973:1:o;11731:257::-;11790:6;11843:2;11831:9;11822:7;11818:23;11814:32;11811:2;;;11864:6;11856;11849:22;11811:2;11908:9;11895:23;11927:31;11952:5;11927:31;:::i;11993:507::-;12099:6;12107;12115;12123;12131;12184:3;12172:9;12163:7;12159:23;12155:33;12152:2;;;12206:6;12198;12191:22;12152:2;12243:9;12237:16;12262:31;12287:5;12262:31;:::i;:::-;12357:2;12342:18;;12336:25;12401:2;12386:18;;12380:25;12445:2;12430:18;;12424:25;12489:3;12474:19;;;12468:26;12312:5;;12336:25;;-1:-1:-1;12380:25:1;12424;-1:-1:-1;12468:26:1;;-1:-1:-1;12142:358:1;-1:-1:-1;;;12142:358:1:o;12771:1041::-;12896:6;12904;12912;12920;12928;12936;12944;12952;13005:3;12993:9;12984:7;12980:23;12976:33;12973:2;;;13027:6;13019;13012:22;12973:2;13064:9;13058:16;13083:31;13108:5;13083:31;:::i;:::-;13183:2;13168:18;;13162:25;13133:5;;-1:-1:-1;13196:31:1;13162:25;13196:31;:::i;:::-;13246:7;-1:-1:-1;13272:48:1;13316:2;13301:18;;13272:48;:::i;:::-;13262:58;;13339:48;13383:2;13372:9;13368:18;13339:48;:::i;:::-;13329:58;;13406:49;13450:3;13439:9;13435:19;13406:49;:::i;:::-;13396:59;;13500:3;13489:9;13485:19;13479:26;13514:30;13536:7;13514:30;:::i;:::-;13615:3;13600:19;;13594:26;13563:7;;-1:-1:-1;13629:33:1;13594:26;13629:33;:::i;:::-;13733:3;13718:19;;13712:26;13681:7;;-1:-1:-1;13747:33:1;13712:26;13747:33;:::i;:::-;13799:7;13789:17;;;12963:849;;;;;;;;;;;:::o;13817:194::-;13875:6;13928:2;13916:9;13907:7;13903:23;13899:32;13896:2;;;13949:6;13941;13934:22;13896:2;13977:28;13995:9;13977:28;:::i;14016:190::-;14075:6;14128:2;14116:9;14107:7;14103:23;14099:32;14096:2;;;14149:6;14141;14134:22;14096:2;-1:-1:-1;14177:23:1;;14086:120;-1:-1:-1;14086:120:1:o;14211:194::-;14281:6;14334:2;14322:9;14313:7;14309:23;14305:32;14302:2;;;14355:6;14347;14340:22;14302:2;-1:-1:-1;14383:16:1;;14292:113;-1:-1:-1;14292:113:1:o;14410:325::-;14478:6;14486;14539:2;14527:9;14518:7;14514:23;14510:32;14507:2;;;14560:6;14552;14545:22;14507:2;14601:9;14588:23;14578:33;;14661:2;14650:9;14646:18;14633:32;14674:31;14699:5;14674:31;:::i;14740:531::-;14835:6;14843;14851;14859;14867;14920:3;14908:9;14899:7;14895:23;14891:33;14888:2;;;14942:6;14934;14927:22;14888:2;14983:9;14970:23;14960:33;;15043:2;15032:9;15028:18;15015:32;15056:31;15081:5;15056:31;:::i;:::-;14878:393;;15106:5;;-1:-1:-1;;;;15158:2:1;15143:18;;15130:32;;15209:2;15194:18;;15181:32;;15260:3;15245:19;;;15232:33;;-1:-1:-1;14878:393:1:o;15276:255::-;15355:6;15363;15416:2;15404:9;15395:7;15391:23;15387:32;15384:2;;;15437:6;15429;15422:22;15384:2;-1:-1:-1;;15465:16:1;;15521:2;15506:18;;;15500:25;15465:16;;15500:25;;-1:-1:-1;15374:157:1:o;15536:565::-;15624:6;15632;15640;15648;15701:2;15689:9;15680:7;15676:23;15672:32;15669:2;;;15722:6;15714;15707:22;15669:2;15763:9;15750:23;15740:33;;15820:2;15809:9;15805:18;15792:32;15782:42;;15875:2;15864:9;15860:18;15847:32;-1:-1:-1;;;;;15894:6:1;15891:30;15888:2;;;15939:6;15931;15924:22;15888:2;15983:58;16033:7;16024:6;16013:9;16009:22;15983:58;:::i;:::-;15659:442;;;;-1:-1:-1;16060:8:1;-1:-1:-1;;;;15659:442:1:o;16106:257::-;16147:3;16185:5;16179:12;16212:6;16207:3;16200:19;16228:63;16284:6;16277:4;16272:3;16268:14;16261:4;16254:5;16250:16;16228:63;:::i;:::-;16345:2;16324:15;-1:-1:-1;;16320:29:1;16311:39;;;;16352:4;16307:50;;16155:208;-1:-1:-1;;16155:208:1:o;16774:273::-;16957:6;16949;16944:3;16931:33;16913:3;16983:16;;17008:15;;;16983:16;16921:126;-1:-1:-1;16921:126:1:o;17052:274::-;17181:3;17219:6;17213:13;17235:53;17281:6;17276:3;17269:4;17261:6;17257:17;17235:53;:::i;:::-;17304:16;;;;;17189:137;-1:-1:-1;;17189:137:1:o;17331:470::-;17510:3;17548:6;17542:13;17564:53;17610:6;17605:3;17598:4;17590:6;17586:17;17564:53;:::i;:::-;17680:13;;17639:16;;;;17702:57;17680:13;17639:16;17736:4;17724:17;;17702:57;:::i;:::-;17775:20;;17518:283;-1:-1:-1;;;;17518:283:1:o;17806:203::-;-1:-1:-1;;;;;17970:32:1;;;;17952:51;;17940:2;17925:18;;17907:102::o;18014:388::-;-1:-1:-1;;;;;18270:15:1;;;18252:34;;18322:15;;;;18317:2;18302:18;;18295:43;18386:8;18374:21;;;18369:2;18354:18;;18347:49;18202:2;18187:18;;18169:233::o;19263:488::-;-1:-1:-1;;;;;19532:15:1;;;19514:34;;19584:15;;19579:2;19564:18;;19557:43;19631:2;19616:18;;19609:34;;;19679:3;19674:2;19659:18;;19652:31;;;19457:4;;19700:45;;19725:19;;19717:6;19700:45;:::i;19756:578::-;-1:-1:-1;;;;;20007:32:1;;19989:51;;20087:1;20076:21;;;20071:2;20056:18;;20049:49;20134:21;;;20129:2;20114:18;;20107:49;-1:-1:-1;;;;;20192:32:1;;20187:2;20172:18;;20165:60;20027:3;20212;20241:19;;20234:32;;;-1:-1:-1;;20283:45:1;;20308:19;;20300:6;20283:45;:::i;:::-;20275:53;19979:355;-1:-1:-1;;;;;;;19979:355:1:o;20911:443::-;-1:-1:-1;;;;;21160:32:1;;;;21142:51;;-1:-1:-1;;;;;21229:32:1;;;;21224:2;21209:18;;21202:60;21293:2;21278:18;;21271:34;21336:2;21321:18;;21314:34;21129:3;21114:19;;21096:258::o;21638:803::-;21798:4;21827:2;21867;21856:9;21852:18;21897:2;21886:9;21879:21;21920:6;21955;21949:13;21986:6;21978;21971:22;22024:2;22013:9;22009:18;22002:25;;22086:2;22076:6;22073:1;22069:14;22058:9;22054:30;22050:39;22036:53;;22124:2;22116:6;22112:15;22145:4;22158:254;22172:6;22169:1;22166:13;22158:254;;;22265:2;22261:7;22249:9;22241:6;22237:22;22233:36;22228:3;22221:49;22293:39;22325:6;22316;22310:13;22293:39;:::i;:::-;22283:49;-1:-1:-1;22390:12:1;;;;22355:15;;;;22194:1;22187:9;22158:254;;;-1:-1:-1;22429:6:1;;21807:634;-1:-1:-1;;;;;;;21807:634:1:o;22820:375::-;23051:1;23040:21;;;23022:40;;23098:21;;;;23093:2;23078:18;;23071:49;-1:-1:-1;;;;;23156:32:1;;;23151:2;23136:18;;23129:60;23010:2;22995:18;;22977:218::o;24334:219::-;24483:2;24472:9;24465:21;24446:4;24503:44;24543:2;24532:9;24528:18;24520:6;24503:44;:::i;24558:326::-;24760:2;24742:21;;;24799:1;24779:18;;;24772:29;-1:-1:-1;;;24832:2:1;24817:18;;24810:33;24875:2;24860:18;;24732:152::o;24889:409::-;25091:2;25073:21;;;25130:2;25110:18;;;25103:30;25169:34;25164:2;25149:18;;25142:62;-1:-1:-1;;;25235:2:1;25220:18;;25213:43;25288:3;25273:19;;25063:235::o;25715:414::-;25917:2;25899:21;;;25956:2;25936:18;;;25929:30;25995:34;25990:2;25975:18;;25968:62;-1:-1:-1;;;26061:2:1;26046:18;;26039:48;26119:3;26104:19;;25889:240::o;26541:325::-;26743:2;26725:21;;;26782:1;26762:18;;;26755:29;-1:-1:-1;;;26815:2:1;26800:18;;26793:32;26857:2;26842:18;;26715:151::o;26871:401::-;27073:2;27055:21;;;27112:2;27092:18;;;27085:30;27151:34;27146:2;27131:18;;27124:62;-1:-1:-1;;;27217:2:1;27202:18;;27195:35;27262:3;27247:19;;27045:227::o;27277:352::-;27479:2;27461:21;;;27518:2;27498:18;;;27491:30;27557;27552:2;27537:18;;27530:58;27620:2;27605:18;;27451:178::o;29054:327::-;29256:2;29238:21;;;29295:1;29275:18;;;29268:29;-1:-1:-1;;;29328:2:1;29313:18;;29306:34;29372:2;29357:18;;29228:153::o;29386:325::-;29588:2;29570:21;;;29627:1;29607:18;;;29600:29;-1:-1:-1;;;29660:2:1;29645:18;;29638:32;29702:2;29687:18;;29560:151::o;30126:336::-;30328:2;30310:21;;;30367:2;30347:18;;;30340:30;-1:-1:-1;;;30401:2:1;30386:18;;30379:42;30453:2;30438:18;;30300:162::o;31817:340::-;32019:2;32001:21;;;32058:2;32038:18;;;32031:30;-1:-1:-1;;;32092:2:1;32077:18;;32070:46;32148:2;32133:18;;31991:166::o;32854:327::-;33056:2;33038:21;;;33095:1;33075:18;;;33068:29;-1:-1:-1;;;33128:2:1;33113:18;;33106:34;33172:2;33157:18;;33028:153::o;33186:348::-;33388:2;33370:21;;;33427:2;33407:18;;;33400:30;-1:-1:-1;;;33461:2:1;33446:18;;33439:54;33525:2;33510:18;;33360:174::o;33941:335::-;34143:2;34125:21;;;34182:2;34162:18;;;34155:30;-1:-1:-1;;;34216:2:1;34201:18;;34194:41;34267:2;34252:18;;34115:161::o;35876:522::-;36151:13;;-1:-1:-1;;;;;36147:22:1;;;36129:41;;36230:4;36218:17;;;36212:24;36208:33;;36186:20;;;36179:63;36302:4;36290:17;;;36284:24;36310:8;36280:39;36258:20;;;36251:69;36380:4;36368:17;;;36362:24;36358:33;36336:20;;;36329:63;;;;36078:3;36063:19;;36045:353::o;37818:533::-;37895:4;37901:6;37961:11;37948:25;38055:2;38051:7;38040:8;38024:14;38020:29;38016:43;37996:18;37992:68;37982:2;;38077:4;38071;38064:18;37982:2;38107:33;;38159:20;;;-1:-1:-1;;;;;;38191:30:1;;38188:2;;;38237:4;38231;38224:18;38188:2;38273:4;38261:17;;-1:-1:-1;38304:14:1;38300:27;;;38290:38;;38287:2;;;38341:1;38338;38331:12;38356:252;38428:2;38422:9;38470:3;38458:16;;-1:-1:-1;;;;;38489:34:1;;38525:22;;;38486:62;38483:2;;;38551:18;;:::i;:::-;38587:2;38580:22;38402:206;:::o;38613:275::-;38684:2;38678:9;38749:2;38730:13;;-1:-1:-1;;38726:27:1;38714:40;;-1:-1:-1;;;;;38769:34:1;;38805:22;;;38766:62;38763:2;;;38831:18;;:::i;:::-;38867:2;38860:22;38658:230;;-1:-1:-1;38658:230:1:o;38893:186::-;38941:4;-1:-1:-1;;;;;38966:6:1;38963:30;38960:2;;;38996:18;;:::i;:::-;-1:-1:-1;39062:2:1;39041:15;-1:-1:-1;;39037:29:1;39068:4;39033:40;;38950:129::o;39084:342::-;39122:3;39165:1;39162;39151:16;39201:1;39198;39187:16;39231:3;39226;39222:13;39286:3;39276:8;39272:18;39267:3;39263:28;39258:2;39251:10;39247:45;39244:2;;;39295:18;;:::i;:::-;39362:3;39352:7;39348:12;39344:22;39339:3;39335:32;39331:2;39327:41;39324:2;;;39371:18;;:::i;:::-;-1:-1:-1;39407:13:1;;39130:296;-1:-1:-1;;;39130:296:1:o;39431:238::-;39471:3;-1:-1:-1;;;;;39538:10:1;;;39568;;;39598:12;;;39590:21;;39587:2;;;39614:18;;:::i;39674:128::-;39714:3;39745:1;39741:6;39738:1;39735:13;39732:2;;;39751:18;;:::i;:::-;-1:-1:-1;39787:9:1;;39722:80::o;39807:201::-;39847:1;-1:-1:-1;;;;;39912:10:1;;;;39931:2;;39948:18;;:::i;:::-;39986:10;;39982:20;;;;;39853:155;-1:-1:-1;;39853:155:1:o;40013:120::-;40053:1;40079;40069:2;;40084:18;;:::i;:::-;-1:-1:-1;40118:9:1;;40059:74::o;40138:168::-;40178:7;40244:1;40240;40236:6;40232:14;40229:1;40226:21;40221:1;40214:9;40207:17;40203:45;40200:2;;;40251:18;;:::i;:::-;-1:-1:-1;40291:9:1;;40190:116::o;40311:345::-;40349:4;40393:1;40390;40379:16;40429:1;40426;40415:16;40459:4;40454:3;40450:14;40519:3;40509:7;40505:12;40501:22;40496:3;40492:32;40487:2;40480:10;40476:49;40473:2;;;40528:18;;:::i;:::-;40591:3;40581:8;40577:18;40572:3;40568:28;40564:2;40560:37;40557:2;;;40600:18;;:::i;:::-;-1:-1:-1;40637:13:1;;;40358:298;-1:-1:-1;;;40358:298:1:o;40661:231::-;40701:4;-1:-1:-1;;;;;40799:10:1;;;;40769;;40821:12;;;40818:2;;;40836:18;;:::i;:::-;40873:13;;40710:182;-1:-1:-1;;;40710:182:1:o;40897:231::-;40937:4;-1:-1:-1;;;;;41035:10:1;;;;41005;;41057:12;;;41054:2;;;41072:18;;:::i;41133:125::-;41173:4;41201:1;41198;41195:8;41192:2;;;41206:18;;:::i;:::-;-1:-1:-1;41243:9:1;;41182:76::o;41263:258::-;41335:1;41345:113;41359:6;41356:1;41353:13;41345:113;;;41435:11;;;41429:18;41416:11;;;41409:39;41381:2;41374:10;41345:113;;;41476:6;41473:1;41470:13;41467:2;;;-1:-1:-1;;41511:1:1;41493:16;;41486:27;41316:205::o;41526:380::-;41605:1;41601:12;;;;41648;;;41669:2;;41723:4;41715:6;41711:17;41701:27;;41669:2;41776;41768:6;41765:14;41745:18;41742:38;41739:2;;;41822:10;41817:3;41813:20;41810:1;41803:31;41857:4;41854:1;41847:15;41885:4;41882:1;41875:15;41911:211;41950:3;-1:-1:-1;;;;;42021:14:1;;;42047:15;;;42044:2;;;42065:18;;:::i;:::-;42114:1;42101:15;;41958:164;-1:-1:-1;;;41958:164:1:o;42127:135::-;42166:3;-1:-1:-1;;42187:17:1;;42184:2;;;42207:18;;:::i;:::-;-1:-1:-1;42254:1:1;42243:13;;42174:88::o;42267:112::-;42299:1;42325;42315:2;;42330:18;;:::i;:::-;-1:-1:-1;42364:9:1;;42305:74::o;42384:186::-;42418:3;42465:5;42462:1;42451:20;42499:7;42495:12;42486:7;42483:25;42480:2;;;42511:18;;:::i;:::-;42547:17;;;42426:144;-1:-1:-1;42426:144:1:o;42575:138::-;42610:3;-1:-1:-1;;;42631:22:1;;42628:2;;;42656:18;;:::i;:::-;42692:15;;42618:95::o;42718:127::-;42779:10;42774:3;42770:20;42767:1;42760:31;42810:4;42807:1;42800:15;42834:4;42831:1;42824:15;42850:127;42911:10;42906:3;42902:20;42899:1;42892:31;42942:4;42939:1;42932:15;42966:4;42963:1;42956:15;42982:127;43043:10;43038:3;43034:20;43031:1;43024:31;43074:4;43071:1;43064:15;43098:4;43095:1;43088:15;43114:131;-1:-1:-1;;;;;43189:31:1;;43179:42;;43169:2;;43235:1;43232;43225:12;43250:118;43336:5;43329:13;43322:21;43315:5;43312:32;43302:2;;43358:1;43355;43348:12;43373:131;-1:-1:-1;;;;;;43447:32:1;;43437:43;;43427:2;;43494:1;43491;43484:12;43509:118;43596:5;43593:1;43582:20;43575:5;43572:31;43562:2;;43617:1;43614;43607:12;43632:131;-1:-1:-1;;;;;43707:31:1;;43697:42;;43687:2;;43753:1;43750;43743:12
Swarm Source
ipfs://0a8fabe062ba21515613475180e8bddf48dbd2b61eaebfd1c095d9fac6c4c8ef
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ZKSYNC | 100.00% | $3,580.29 | 0.003 | $10.74 |
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.