More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 3,472 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Fill Multi Limit... | 5213800 | 27 secs ago | IN | 0 S | 0.04541165 | ||||
Fill Multi Limit... | 5213531 | 3 mins ago | IN | 0 S | 0.0493223 | ||||
Fill Multi Limit... | 5213222 | 7 mins ago | IN | 0 S | 0.05556315 | ||||
Fill Limit Order... | 5212170 | 18 mins ago | IN | 0 S | 0.01599265 | ||||
Fill Limit Order... | 5211688 | 23 mins ago | IN | 0 S | 0.00812785 | ||||
Fill Limit Order... | 5208912 | 1 hr ago | IN | 0 S | 0.0105871 | ||||
Fill Limit Order... | 5204458 | 1 hr ago | IN | 0 S | 0.05488625 | ||||
Fill Limit Order... | 5204424 | 1 hr ago | IN | 0 S | 0.04609522 | ||||
Fill Limit Order... | 5204168 | 1 hr ago | IN | 0 S | 0.0946686 | ||||
Fill Limit Order... | 5202387 | 2 hrs ago | IN | 0 S | 0.011435 | ||||
Fill Limit Order... | 5202345 | 2 hrs ago | IN | 0 S | 0.0153499 | ||||
Fill Limit Order... | 5201663 | 2 hrs ago | IN | 0 S | 0.0216152 | ||||
Fill Limit Order... | 5200539 | 2 hrs ago | IN | 0 S | 0.02073325 | ||||
Fill Limit Order... | 5200304 | 2 hrs ago | IN | 0 S | 0.0226023 | ||||
Fill Limit Order... | 5199965 | 2 hrs ago | IN | 0 S | 0.02640305 | ||||
Fill Limit Order... | 5199669 | 2 hrs ago | IN | 0 S | 0.0154949 | ||||
Fill Limit Order... | 5199547 | 2 hrs ago | IN | 0 S | 0.0205343 | ||||
Fill Limit Order... | 5199242 | 2 hrs ago | IN | 0 S | 0.01487685 | ||||
Fill Limit Order... | 5199093 | 2 hrs ago | IN | 0 S | 0.0260276 | ||||
Fill Limit Order... | 5198429 | 3 hrs ago | IN | 0 S | 0.03565055 | ||||
Fill Limit Order... | 5198032 | 3 hrs ago | IN | 0 S | 0.0399085 | ||||
Fill Limit Order... | 5197639 | 3 hrs ago | IN | 0 S | 0.01598895 | ||||
Fill Multi Limit... | 5193690 | 4 hrs ago | IN | 0 S | 0.05249775 | ||||
Fill Limit Order... | 5193222 | 4 hrs ago | IN | 0 S | 0.0175828 | ||||
Fill Limit Order... | 5193022 | 4 hrs ago | IN | 0 S | 0.01482325 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
5213800 | 27 secs ago | 0.30685146 S | ||||
5213800 | 27 secs ago | 0.31999999 S | ||||
5213531 | 3 mins ago | 0.30684958 S | ||||
5213531 | 3 mins ago | 0.32000001 S | ||||
5213222 | 7 mins ago | 0.32265375 S | ||||
5213222 | 7 mins ago | 0.33779196 S | ||||
5211688 | 23 mins ago | 8.98045637 S | ||||
5211688 | 23 mins ago | 9 S | ||||
5201663 | 2 hrs ago | 103.60411832 S | ||||
5201663 | 2 hrs ago | 103.89378435 S | ||||
5192945 | 4 hrs ago | 150.22677897 S | ||||
5192945 | 4 hrs ago | 150.3346452 S | ||||
5192695 | 4 hrs ago | 200.31188113 S | ||||
5192695 | 4 hrs ago | 200.44480244 S | ||||
5192486 | 4 hrs ago | 200.29401511 S | ||||
5192486 | 4 hrs ago | 200.42692748 S | ||||
5192353 | 4 hrs ago | 250.37891677 S | ||||
5192353 | 4 hrs ago | 250.53688412 S | ||||
5192051 | 4 hrs ago | 269.41843531 S | ||||
5192051 | 4 hrs ago | 269.58592718 S | ||||
5191935 | 4 hrs ago | 300.84113113 S | ||||
5191935 | 4 hrs ago | 301.0066781 S | ||||
5191757 | 4 hrs ago | 5,690.8718784 S | ||||
5191757 | 4 hrs ago | 5,705.68719634 S | ||||
5191738 | 4 hrs ago | 336.23134338 S |
Loading...
Loading
Contract Name:
OdosLimitOrderRouter
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at SonicScan.org on 2024-12-30 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.19; // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); } // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) /** * @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); } } } // OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol) /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) /** * @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); } } } // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol) // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) /** * @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); } } } // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) /** * @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)); } } // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol) /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) { // 32 is the length in bytes of hash, // enforced by the type signature above /// @solidity memory-safe-assembly assembly { mstore(0x00, "\x19Ethereum Signed Message:\n32") mstore(0x1c, hash) message := keccak256(0x00, 0x3c) } } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, "\x19\x01") mstore(add(ptr, 0x02), domainSeparator) mstore(add(ptr, 0x22), structHash) data := keccak256(ptr, 0x42) } } /** * @dev Returns an Ethereum Signed Data with intended validator, created from a * `validator` and `data` according to the version 0 of EIP-191. * * See {recover}. */ function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x00", validator, data)); } } // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) /** * @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); } } // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol) /** * @dev Contract module which provides 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} and {acceptOwnership}. * * This module is used through inheritance. It will make available all functions * from parent (Ownable). */ abstract contract Ownable2Step is Ownable { address private _pendingOwner; event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner); /** * @dev Returns the address of the pending owner. */ function pendingOwner() public view virtual returns (address) { return _pendingOwner; } /** * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual override onlyOwner { _pendingOwner = newOwner; emit OwnershipTransferStarted(owner(), newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner. * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual override { delete _pendingOwner; super._transferOwnership(newOwner); } /** * @dev The new owner accepts the ownership transfer. */ function acceptOwnership() public virtual { address sender = _msgSender(); require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner"); _transferOwnership(sender); } } // OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol) /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } } // OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._ * _Available since v4.9 for `string`, `bytes`._ */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } } // OpenZeppelin Contracts (last updated v4.9.0) (utils/ShortStrings.sol) // | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | // | length | 0x BB | type ShortString is bytes32; /** * @dev This library provides functions to convert short memory strings * into a `ShortString` type that can be used as an immutable variable. * * Strings of arbitrary length can be optimized using this library if * they are short enough (up to 31 bytes) by packing them with their * length (1 byte) in a single EVM word (32 bytes). Additionally, a * fallback mechanism can be used for every other case. * * Usage example: * * ```solidity * contract Named { * using ShortStrings for *; * * ShortString private immutable _name; * string private _nameFallback; * * constructor(string memory contractName) { * _name = contractName.toShortStringWithFallback(_nameFallback); * } * * function name() external view returns (string memory) { * return _name.toStringWithFallback(_nameFallback); * } * } * ``` */ library ShortStrings { // Used as an identifier for strings longer than 31 bytes. bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF; error StringTooLong(string str); error InvalidShortString(); /** * @dev Encode a string of at most 31 chars into a `ShortString`. * * This will trigger a `StringTooLong` error is the input string is too long. */ function toShortString(string memory str) internal pure returns (ShortString) { bytes memory bstr = bytes(str); if (bstr.length > 31) { revert StringTooLong(str); } return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length)); } /** * @dev Decode a `ShortString` back to a "normal" string. */ function toString(ShortString sstr) internal pure returns (string memory) { uint256 len = byteLength(sstr); // using `new string(len)` would work locally but is not memory safe. string memory str = new string(32); /// @solidity memory-safe-assembly assembly { mstore(str, len) mstore(add(str, 0x20), sstr) } return str; } /** * @dev Return the length of a `ShortString`. */ function byteLength(ShortString sstr) internal pure returns (uint256) { uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF; if (result > 31) { revert InvalidShortString(); } return result; } /** * @dev Encode a string into a `ShortString`, or write it to storage if it is too long. */ function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) { if (bytes(value).length < 32) { return toShortString(value); } else { StorageSlot.getStringSlot(store).value = value; return ShortString.wrap(_FALLBACK_SENTINEL); } } /** * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}. */ function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) { if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) { return toString(value); } else { return store; } } /** * @dev Return the length of a string that was encoded to `ShortString` or written to storage using {setWithFallback}. * * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of * actual characters as the UTF-8 encoding of a single character can span over multiple bytes. */ function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) { if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) { return byteLength(value); } else { return bytes(store).length; } } } // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol) interface IERC5267 { /** * @dev MAY be emitted to signal that the domain could have changed. */ event EIP712DomainChanged(); /** * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712 * signature. */ function eip712Domain() external view returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ); } // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol) /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the * separator from the immutable values, which is cheaper than accessing a cached version in cold storage. * * _Available since v3.4._ * * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment */ abstract contract EIP712 is IERC5267 { using ShortStrings for *; bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _cachedDomainSeparator; uint256 private immutable _cachedChainId; address private immutable _cachedThis; bytes32 private immutable _hashedName; bytes32 private immutable _hashedVersion; ShortString private immutable _name; ShortString private immutable _version; string private _nameFallback; string private _versionFallback; /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { _name = name.toShortStringWithFallback(_nameFallback); _version = version.toShortStringWithFallback(_versionFallback); _hashedName = keccak256(bytes(name)); _hashedVersion = keccak256(bytes(version)); _cachedChainId = block.chainid; _cachedDomainSeparator = _buildDomainSeparator(); _cachedThis = address(this); } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _cachedThis && block.chainid == _cachedChainId) { return _cachedDomainSeparator; } else { return _buildDomainSeparator(); } } function _buildDomainSeparator() private view returns (bytes32) { return keccak256(abi.encode(_TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } /** * @dev See {EIP-5267}. * * _Available since v4.9._ */ function eip712Domain() public view virtual override returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ) { return ( hex"0f", // 01111 _name.toStringWithFallback(_nameFallback), _version.toStringWithFallback(_versionFallback), block.chainid, address(this), bytes32(0), new uint256[](0) ); } } // From https://github.com/AmbireTech/signature-validator/blob/main/contracts/EIP6492.sol // with minimal modifications // From https://eips.ethereum.org/EIPS/eip-6492 // you can use `ValidateSigOffchain` for this library in exactly the same way that the other contract (DeploylessUniversalSigValidator.sol) is used // As per ERC-1271 interface IERC1271Wallet { function isValidSignature(bytes32 hash, bytes calldata signature) external view returns (bytes4 magicValue); } error ERC1271Revert(bytes error); error ERC6492DeployFailed(bytes error); error InvalidSignatureLength(); error InvalidSignatureVValue(); contract UniversalSigValidator { bytes32 private constant ERC6492_DETECTION_SUFFIX = 0x6492649264926492649264926492649264926492649264926492649264926492; bytes4 private constant ERC1271_SUCCESS = 0x1626ba7e; function isValidSigImpl( address _signer, bytes32 _hash, bytes calldata _signature, bool allowSideEffects ) public returns (bool) { uint256 contractCodeLen = address(_signer).code.length; bytes memory sigToValidate; // The order here is strictly defined in https://eips.ethereum.org/EIPS/eip-6492 // - ERC-6492 suffix check and verification first, while being permissive in case the contract is already deployed; if the contract is deployed we will check the sig against the deployed version, this allows 6492 signatures to still be validated while taking into account potential key rotation // - ERC-1271 verification if there's contract code // - finally, ecrecover bool isCounterfactual = _signature.length >= 32 && bytes32(_signature[_signature.length-32:_signature.length]) == ERC6492_DETECTION_SUFFIX; if (isCounterfactual) { address create2Factory; bytes memory factoryCalldata; (create2Factory, factoryCalldata, sigToValidate) = abi.decode(_signature[0:_signature.length-32], (address, bytes, bytes)); if (contractCodeLen == 0) { // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory err) = create2Factory.call(factoryCalldata); if (!success) revert ERC6492DeployFailed(err); } } else { sigToValidate = _signature; } // Try ERC-1271 verification if (isCounterfactual || contractCodeLen > 0) { try IERC1271Wallet(_signer).isValidSignature(_hash, sigToValidate) returns (bytes4 magicValue) { bool isValid = magicValue == ERC1271_SUCCESS; if (contractCodeLen == 0 && isCounterfactual && !allowSideEffects) { // if the call had side effects we need to return the // result using a `revert` (to undo the state changes) assembly { mstore(0, isValid) revert(31, 1) } } return isValid; } catch (bytes memory err) { revert ERC1271Revert(err); } } // ecrecover verification if (_signature.length != 65) { revert InvalidSignatureLength(); } bytes32 r = bytes32(_signature[0:32]); bytes32 s = bytes32(_signature[32:64]); uint8 v = uint8(_signature[64]); if (v != 27 && v != 28) { revert InvalidSignatureVValue(); } return ECDSA.recover(_hash, v, r, s) == _signer; } function isValidSigWithSideEffects(address _signer, bytes32 _hash, bytes calldata _signature) external returns (bool) { return this.isValidSigImpl(_signer, _hash, _signature, true); } function isValidSig(address _signer, bytes32 _hash, bytes calldata _signature) public returns (bool) { try this.isValidSigImpl(_signer, _hash, _signature, false) returns (bool isValid) { return isValid; } catch (bytes memory error) { // in order to avoid side effects from the contract getting deployed, the entire call will revert with a single byte result uint256 len = error.length; if (len == 1) return error[0] == 0x01; // all other errors are simply forwarded, but in custom formats so that nothing else can revert with a single byte in the call else assembly { revert(add(error, 0x20), len) } } } } // this is a helper so we can perform validation in a single eth_call without pre-deploying a singleton contract ValidateSigOffchain { constructor (address _signer, bytes32 _hash, bytes memory _signature) { UniversalSigValidator validator = new UniversalSigValidator(); bool isValidSig = validator.isValidSigWithSideEffects(_signer, _hash, _signature); assembly { mstore(0, isValidSig) return(31, 1) } } } error InvalidEip1271Signature(bytes32 orderHash, address account, bytes signature); error OrderNotPresigned(bytes32 orderHash, address account); error InvalidPresignLength(uint256 expectedLength, uint256 actualLength); /// @notice Limit order signature validator contract SignatureValidator is UniversalSigValidator { /// @dev Storage for keeping pre-signed orders mapping(address account => mapping(bytes32 orderHash => bool preSigned)) public preSignedOrders; /// @dev Keeps the signature and the signature validation method struct Signature { /// Depending on the validationMethod value, the signature format is: /// EIP712 - 65 bytes signature represented as abi.encodePacked(r, s, v) /// EIP1271 - the first 20 bytes contain the order owner address and the remaining part contains the signature /// PreSign - 20 bytes which contain the order owner address bytes signature; SignatureValidationMethod validationMethod; } /// @dev Order signature validation methods /// EIP712 /// EIP1271 /// PreSign - The order hash expected to be added via the setPreSignature() function prior to execution enum SignatureValidationMethod { EIP712, EIP1271, PreSign } /// @dev Event for setting pre-signature for an order hash event OrderPreSigned( bytes32 indexed orderHash, address indexed account, bool preSigned ); /// @dev Validates the signature and decodes the order owner address /// @param orderHash Order hash /// @param encodedSignature order signature or account address or account address and order signature, depending on the validationMethod value /// @return account Order owner address function _getOrderOwnerOrRevert( bytes32 orderHash, bytes calldata encodedSignature, SignatureValidationMethod validationMethod ) internal returns (address account) { if (validationMethod == SignatureValidationMethod.EIP712) { account = ECDSA.recover(orderHash, encodedSignature); } else if (validationMethod == SignatureValidationMethod.EIP1271) { assembly { // account = address(encodedSignature[0:20]) account := shr(96, calldataload(encodedSignature.offset)) } // the first 20 bytes of the encodedSignature contain the account address, // and the remaining part of the bytes array contains the signature. bytes calldata signature = encodedSignature[20:]; if (!isValidSig(account, orderHash, signature)) { revert InvalidEip1271Signature(orderHash, account, signature); } } else { // validationMethod == SignatureValidationMethod.PreSign if (encodedSignature.length != 20) { revert InvalidPresignLength(20, encodedSignature.length); } assembly { // account = address(encodedSignature[0:20]) account := shr(96, calldataload(encodedSignature.offset)) } if (!preSignedOrders[account][orderHash]) { revert OrderNotPresigned(orderHash, account); } } } /// @notice Sets a pre-signature for the specified order hash /// @param orderHash EIP712 encoded order hash of single or multi input limit order /// @param preSigned True to set the order as enabled for filling with pre-sign, false to unset it function setPreSignature( bytes32 orderHash, bool preSigned ) external { preSignedOrders[msg.sender][orderHash] = preSigned; emit OrderPreSigned(orderHash, msg.sender, preSigned); } } /// @title Odos executor interface interface IOdosExecutor { function executePath ( bytes calldata bytecode, uint256[] memory inputAmount, address msgSender ) external payable; } interface IEIP712 { function DOMAIN_SEPARATOR() external view returns (bytes32); } // From https://github.com/Uniswap/permit2 /// @title SignatureTransfer /// @notice Handles ERC20 token transfers through signature based actions /// @dev Requires user's token approval on the Permit2 contract interface ISignatureTransfer is IEIP712 { /// @notice Thrown when the requested amount for a transfer is larger than the permissioned amount /// @param maxAmount The maximum amount a spender can request to transfer error InvalidAmount(uint256 maxAmount); /// @notice Thrown when the number of tokens permissioned to a spender does not match the number of tokens being transferred /// @dev If the spender does not need to transfer the number of tokens permitted, the spender can request amount 0 to be transferred error LengthMismatch(); /// @notice Emits an event when the owner successfully invalidates an unordered nonce. event UnorderedNonceInvalidation(address indexed owner, uint256 word, uint256 mask); /// @notice The token and amount details for a transfer signed in the permit transfer signature struct TokenPermissions { // ERC20 token address address token; // the maximum amount that can be spent uint256 amount; } /// @notice The signed permit message for a single token transfer struct PermitTransferFrom { TokenPermissions permitted; // a unique value for every token owner's signature to prevent signature replays uint256 nonce; // deadline on the permit signature uint256 deadline; } /// @notice Specifies the recipient address and amount for batched transfers. /// @dev Recipients and amounts correspond to the index of the signed token permissions array. /// @dev Reverts if the requested amount is greater than the permitted signed amount. struct SignatureTransferDetails { // recipient address address to; // spender requested amount uint256 requestedAmount; } /// @notice Used to reconstruct the signed permit message for multiple token transfers /// @dev Do not need to pass in spender address as it is required that it is msg.sender /// @dev Note that a user still signs over a spender address struct PermitBatchTransferFrom { // the tokens and corresponding amounts permitted for a transfer TokenPermissions[] permitted; // a unique value for every token owner's signature to prevent signature replays uint256 nonce; // deadline on the permit signature uint256 deadline; } /// @notice A map from token owner address and a caller specified word index to a bitmap. Used to set bits in the bitmap to prevent against signature replay protection /// @dev Uses unordered nonces so that permit messages do not need to be spent in a certain order /// @dev The mapping is indexed first by the token owner, then by an index specified in the nonce /// @dev It returns a uint256 bitmap /// @dev The index, or wordPosition is capped at type(uint248).max function nonceBitmap(address, uint256) external view returns (uint256); /// @notice Transfers a token using a signed permit message /// @dev Reverts if the requested amount is greater than the permitted signed amount /// @param permit The permit data signed over by the owner /// @param owner The owner of the tokens to transfer /// @param transferDetails The spender's requested transfer details for the permitted token /// @param signature The signature to verify function permitTransferFrom( PermitTransferFrom memory permit, SignatureTransferDetails calldata transferDetails, address owner, bytes calldata signature ) external; /// @notice Transfers a token using a signed permit message /// @notice Includes extra data provided by the caller to verify signature over /// @dev The witness type string must follow EIP712 ordering of nested structs and must include the TokenPermissions type definition /// @dev Reverts if the requested amount is greater than the permitted signed amount /// @param permit The permit data signed over by the owner /// @param owner The owner of the tokens to transfer /// @param transferDetails The spender's requested transfer details for the permitted token /// @param witness Extra data to include when checking the user signature /// @param witnessTypeString The EIP-712 type definition for remaining string stub of the typehash /// @param signature The signature to verify function permitWitnessTransferFrom( PermitTransferFrom memory permit, SignatureTransferDetails calldata transferDetails, address owner, bytes32 witness, string calldata witnessTypeString, bytes calldata signature ) external; /// @notice Transfers multiple tokens using a signed permit message /// @param permit The permit data signed over by the owner /// @param owner The owner of the tokens to transfer /// @param transferDetails Specifies the recipient and requested amount for the token transfer /// @param signature The signature to verify function permitTransferFrom( PermitBatchTransferFrom memory permit, SignatureTransferDetails[] calldata transferDetails, address owner, bytes calldata signature ) external; /// @notice Transfers multiple tokens using a signed permit message /// @dev The witness type string must follow EIP712 ordering of nested structs and must include the TokenPermissions type definition /// @notice Includes extra data provided by the caller to verify signature over /// @param permit The permit data signed over by the owner /// @param owner The owner of the tokens to transfer /// @param transferDetails Specifies the recipient and requested amount for the token transfer /// @param witness Extra data to include when checking the user signature /// @param witnessTypeString The EIP-712 type definition for remaining string stub of the typehash /// @param signature The signature to verify function permitWitnessTransferFrom( PermitBatchTransferFrom memory permit, SignatureTransferDetails[] calldata transferDetails, address owner, bytes32 witness, string calldata witnessTypeString, bytes calldata signature ) external; /// @notice Invalidates the bits specified in mask for the bitmap at the word position /// @dev The wordPos is maxed at type(uint248).max /// @param wordPos A number to index the nonceBitmap at /// @param mask A bitmap masked against msg.sender's current bitmap at the word position function invalidateUnorderedNonces(uint256 wordPos, uint256 mask) external; } using SafeERC20 for IERC20; error AddressNotAllowed(address account); error OrderExpired(uint256 orderExpiry, uint256 currentTimestamp); error CurrentAmountMismatch(address tokenAddress, uint256 orderAmount, uint256 filledAmount, uint256 currentAmount); error SlippageLimitExceeded(address tokenAddress, uint256 expectedAmount, uint256 actualAmount); error ArbitrageNotAllowed(address tokenAddress); error TransferFailed(address destination, uint256 amount); error OrderCancelled(bytes32 orderHash); error InvalidArguments(); error MinSurplusCheckFailed(address tokenAddress, uint256 expectedValue, uint256 actualValue); error InvalidAddress(address _address); error FunctionIsDisabled(); error InvalidReferralFee(uint64 referralFee); /// @title Routing contract for Odos Limit Orders with single and multi input and output tokens contract OdosLimitOrderRouter is EIP712, Ownable2Step, SignatureValidator { /// @dev SCALE is required for fractional proportion calculation uint256 private constant SCALE = 1e18; /// @dev The zero address is used to represent ETH due to its gas efficiency address private constant _ETH = address(0); /// @dev Constants for managing referrals and fees uint256 private constant FEE_DENOM = 1e18; /// @dev Address which allowed to call `swapRouterFunds()` besides the owner address public liquidatorAddress; /// @dev Event emitted on successful single input limit order execution event LimitOrderFilled( bytes32 indexed orderHash, address indexed orderOwner, address inputToken, address outputToken, uint256 filledInputAmount, uint256 filledOutputAmount, uint256 surplus, uint64 referralCode, uint64 referralFee, address referralFeeRecipient, uint256 orderType ); /// @dev Event emitted on successful multi input limit order execution event MultiLimitOrderFilled( bytes32 indexed orderHash, address indexed orderOwner, address[] inputTokens, address[] outputTokens, uint256[] filledInputAmounts, uint256[] filledOutputAmounts, uint256[] surplus, uint64 referralCode, uint64 referralFee, address referralFeeRecipient, uint256 orderType ); /// @dev Event emitted on single input limit order cancellation event LimitOrderCancelled( bytes32 indexed orderHash, address indexed orderOwner ); /// @dev Event emitted on multi input limit order cancellation event MultiLimitOrderCancelled( bytes32 indexed orderHash, address indexed orderOwner ); /// @dev Event emitted on adding allowed order filler event AllowedFillerAdded(address indexed account); /// @dev Event emitted on removing allowed order filler event AllowedFillerRemoved(address indexed account); /// @dev Event emitted on changing the liquidator address event LiquidatorAddressChanged(address indexed account); /// @dev Event emitted on swapping internal router funds event SwapRouterFunds( address sender, address[] inputTokens, uint256[] inputAmounts, address[] inputReceivers, address outputToken, uint256 outputAmount, address outputReceiver, uint256 amountOut ); /// @dev Token address and amount struct TokenInfo { address tokenAddress; uint256 tokenAmount; } /// @dev Single input and output limit order structure struct LimitOrder { TokenInfo input; TokenInfo output; uint256 expiry; uint256 salt; uint64 referralCode; uint64 referralFee; address referralFeeRecipient; bool partiallyFillable; } /// @dev Multiple inputs and outputs limit order structure struct MultiLimitOrder { TokenInfo[] inputs; TokenInfo[] outputs; uint256 expiry; uint256 salt; uint64 referralCode; uint64 referralFee; address referralFeeRecipient; bool partiallyFillable; } /// @dev The execution context provided by the filler for single token limit order struct LimitOrderContext { bytes pathDefinition; address odosExecutor; uint256 currentAmount; address inputReceiver; uint256 minSurplus; uint256 orderType; } /// @dev The execution context provided by the filler for multi token limit order struct MultiLimitOrderContext { bytes pathDefinition; address odosExecutor; uint256[] currentAmounts; address[] inputReceivers; uint256[] minSurplus; uint256 orderType; } /// @dev A helper which is used for avoiding "Stack too deep" error with single input order struct LimitOrderHelper { uint256 balanceBefore; uint256 amountOut; uint256 surplus; uint256 proratedAmount; } /// @dev A helper which is used for avoiding "Stack too deep" error with multi input order struct MultiLimitOrderHelper { address[] inputTokens; address[] outputTokens; uint256[] orderInputAmounts; uint256[] orderOutputAmounts; uint256[] filledAmounts; uint256[] filledOutputAmounts; uint256[] surplus; uint256[] balancesBefore; address orderOwner; bytes32 orderHash; uint256 amountProration; } /// @dev Contains information required for Permit2 token transfer struct Permit2Info { address contractAddress; // Permit2 contract address uint256 nonce; uint256 deadline; address orderOwner; bytes signature; } /// @dev Holds all information for a given referral struct ReferralInfo { uint64 referralFee; address beneficiary; bool registered; } /// @dev Single token limit order storage mapping(address orderOwner => mapping(bytes32 orderHash => uint256 filledAmount)) public limitOrders; /// @dev Multi token limit order storage mapping(address orderOwner => mapping(bytes32 orderHash => uint256[] filledAmounts)) public multiLimitOrders; /// @dev Allowed order fillers mapping(address => bool) public allowedFillers; /// @dev Type strings for EIP-712 signing bytes internal constant TOKEN_PERMISSIONS_TYPE_STRING = "TokenPermissions(address token,uint256 amount)"; bytes internal constant TOKEN_INFO_TYPE_STRING = "TokenInfo(address tokenAddress,uint256 tokenAmount)"; bytes internal constant LIMIT_ORDER_TYPE_STRING = "LimitOrder(" "TokenInfo input," "TokenInfo output," "uint256 expiry," "uint256 salt," "uint64 referralCode," "uint64 referralFee," "address referralFeeRecipient," "bool partiallyFillable" ")"; bytes internal constant MULTI_LIMIT_ORDER_TYPE_STRING = "MultiLimitOrder(" "TokenInfo[] inputs," "TokenInfo[] outputs," "uint256 expiry," "uint256 salt," "uint64 referralCode," "uint64 referralFee," "address referralFeeRecipient," "bool partiallyFillable" ")"; string public constant LIMIT_ORDER_WITNESS_TYPE_STRING = string(abi.encodePacked( "LimitOrder witness)", LIMIT_ORDER_TYPE_STRING, TOKEN_INFO_TYPE_STRING, TOKEN_PERMISSIONS_TYPE_STRING )); string public constant MULTI_LIMIT_ORDER_WITNESS_TYPE_STRING = string(abi.encodePacked( "MultiLimitOrder witness)", MULTI_LIMIT_ORDER_TYPE_STRING, TOKEN_INFO_TYPE_STRING, TOKEN_PERMISSIONS_TYPE_STRING )); /// @dev Type hashes for EIP-712 signing bytes32 public constant TOKEN_INFO_TYPEHASH = keccak256(TOKEN_INFO_TYPE_STRING); bytes32 public constant LIMIT_ORDER_TYPEHASH = keccak256(abi.encodePacked( LIMIT_ORDER_TYPE_STRING, TOKEN_INFO_TYPE_STRING )); bytes32 public constant MULTI_LIMIT_ORDER_TYPEHASH = keccak256(abi.encodePacked( MULTI_LIMIT_ORDER_TYPE_STRING, TOKEN_INFO_TYPE_STRING )); constructor() EIP712("OdosLimitOrderRouter", "1") { changeLiquidatorAddress(msg.sender); } // Must exist in order for contract to receive eth receive() external payable { } /// @notice Tries to execute a single input limit order, expects the input token to be approved via the ERC20 interface /// @param order Single input limit order struct /// @param signature Order signature and signature validation method /// @param context Execution context /// @return orderHash Order hash function fillLimitOrder( LimitOrder calldata order, Signature calldata signature, LimitOrderContext calldata context ) external returns (bytes32 orderHash) { // 1-3 Checks _limitOrderChecks(order); // 4. Get order hash orderHash = getLimitOrderHash(order); // 5. Recover the orderOwner and validate signature address orderOwner = _getOrderOwnerOrRevert(orderHash, signature.signature, signature.validationMethod); // 6,7 Try get order filled amount uint256 filledAmount = _getFilledAmount(order, context, orderHash, orderOwner); // 8. Transfer tokens from order owner IERC20(order.input.tokenAddress).safeTransferFrom(orderOwner, context.inputReceiver, context.currentAmount); // 9-17 Fill order _limitOrderFill(order, context, orderHash, orderOwner, filledAmount); } /// @notice Tries to execute a single input limit order, expects the input token to be approved via the Permit2 interface /// @param order Single input limit order struct /// @param context Execution context /// @param permit2 Permit2 struct /// @return orderHash Order hash function fillLimitOrderPermit2( LimitOrder calldata order, LimitOrderContext calldata context, Permit2Info calldata permit2 ) external returns (bytes32 orderHash) { // 1-3 Checks _limitOrderChecks(order); // 4. Get order hash bytes32 orderStructHash = getLimitOrderStructHash(order); orderHash = _hashTypedDataV4(orderStructHash); // 5. No need to recover address as it is set in Permit2Info // 6,7 Try get order filled amount uint256 filledAmount = _getFilledAmount(order, context, orderHash, permit2.orderOwner); // 8. Transfer tokens from order owner ISignatureTransfer(permit2.contractAddress).permitWitnessTransferFrom( ISignatureTransfer.PermitTransferFrom( ISignatureTransfer.TokenPermissions( order.input.tokenAddress, context.currentAmount ), permit2.nonce, permit2.deadline ), ISignatureTransfer.SignatureTransferDetails( context.inputReceiver, context.currentAmount ), permit2.orderOwner, orderStructHash, LIMIT_ORDER_WITNESS_TYPE_STRING, permit2.signature ); // 9-17 Fill order _limitOrderFill(order, context, orderHash, permit2.orderOwner, filledAmount); } /// @notice Tries to execute a multi input limit order, expects the input tokens to be approved via the ERC20 interface /// @param order Multi input limit order struct /// @param signature Signature and signature validation method /// @param context Execution context /// @return orderHash Order hash function fillMultiLimitOrder( MultiLimitOrder calldata order, Signature calldata signature, MultiLimitOrderContext calldata context ) external returns (bytes32 orderHash) { // 1-3 Checks _multiOrderChecks(order); // 4. Get order hash orderHash = getMultiLimitOrderHash(order); // 5. Recover the orderOwner and validate signature address orderOwner = _getOrderOwnerOrRevert(orderHash, signature.signature, signature.validationMethod); // 6,7 Try get order filled amount MultiLimitOrderHelper memory helper = _getMultiFilledAmount(order, context, orderHash, orderOwner); // 8. Transfer tokens from order owner to the receiver for (uint256 i = 0; i < order.inputs.length; i++) { IERC20(order.inputs[i].tokenAddress).safeTransferFrom(orderOwner, context.inputReceivers[i], context.currentAmounts[i]); // update filled amount helper.filledAmounts[i] += context.currentAmounts[i]; helper.inputTokens[i] = order.inputs[i].tokenAddress; helper.orderInputAmounts[i] = order.inputs[i].tokenAmount; } _multiLimitOrderFill(order, context, helper); } /// @notice Tries to execute a multi input limit order, expects the input tokens to be approved via the Permit2 interface /// @param order Single input limit order struct /// @param context Execution context /// @param permit2 Permit2 struct /// @return orderHash Order hash function fillMultiLimitOrderPermit2( MultiLimitOrder calldata order, MultiLimitOrderContext calldata context, Permit2Info calldata permit2 ) external returns (bytes32 orderHash) { // 1-3 Checks _multiOrderChecks(order); // 4. Get order hash bytes32 orderStructHash = getMultiLimitOrderStructHash(order); orderHash = _hashTypedDataV4(orderStructHash); // 5. No need to recover address as it is set in Permit2Info // 6,7 Try get order filled amount MultiLimitOrderHelper memory helper = _getMultiFilledAmount(order, context, orderHash, permit2.orderOwner); // 8. Transfer tokens from order owner to the receiver ISignatureTransfer.PermitBatchTransferFrom memory permit = ISignatureTransfer.PermitBatchTransferFrom( new ISignatureTransfer.TokenPermissions[](order.inputs.length), permit2.nonce, permit2.deadline ); ISignatureTransfer.SignatureTransferDetails[] memory transferDetails = new ISignatureTransfer.SignatureTransferDetails[](order.inputs.length); for (uint256 i = 0; i < order.inputs.length; i++) { permit.permitted[i].token = order.inputs[i].tokenAddress; permit.permitted[i].amount = context.currentAmounts[i]; // Fill helper data helper.filledAmounts[i] += context.currentAmounts[i]; helper.inputTokens[i] = order.inputs[i].tokenAddress; helper.orderInputAmounts[i] = context.currentAmounts[i]; transferDetails[i].to = context.inputReceivers[i]; transferDetails[i].requestedAmount = context.currentAmounts[i]; } ISignatureTransfer(permit2.contractAddress).permitWitnessTransferFrom( permit, transferDetails, permit2.orderOwner, orderStructHash, MULTI_LIMIT_ORDER_WITNESS_TYPE_STRING, permit2.signature ); // 9-15 Fill order _multiLimitOrderFill(order, context, helper); } /// @notice Cancels single input limit order. Only the order owner address can cancel it. /// @param orderHash Single input limit order hash function cancelLimitOrder( bytes32 orderHash ) external { limitOrders[msg.sender][orderHash] = type(uint256).max; emit LimitOrderCancelled(orderHash, msg.sender); } /// @notice Cancels multi input limit order. Only the order owner address can cancel it. /// @param orderHash Multi input limit order hash function cancelMultiLimitOrder( bytes32 orderHash ) external { uint256[] memory _filledAmounts = new uint256[](1); _filledAmounts[0] = type(uint256).max; multiLimitOrders[msg.sender][orderHash] = _filledAmounts; emit MultiLimitOrderCancelled(orderHash, msg.sender); } /// @notice Directly swap funds held in router, multi input tokens to one output token. Only owner or liquidatorAddress can call it. /// @param inputs List of input token structs /// @param inputReceivers List of addresses for swap execution /// @param output Output token structs /// @param outputReceiver Address which will receive output token /// @param pathDefinition Encoded path definition for executor /// @param odosExecutor Address of contract which will execute the path /// @return amountOut Amount of output token after swap function swapRouterFunds( TokenInfo[] memory inputs, address[] memory inputReceivers, TokenInfo memory output, address outputReceiver, bytes calldata pathDefinition, address odosExecutor ) external returns (uint256 amountOut) { if (msg.sender != liquidatorAddress && msg.sender != owner()) { revert AddressNotAllowed(msg.sender); } uint256[] memory amountsIn = new uint256[](inputs.length); address[] memory tokensIn = new address[](inputs.length); for (uint256 i = 0; i < inputs.length; i++) { tokensIn[i] = inputs[i].tokenAddress; // Allow total amount spending amountsIn[i] = inputs[i].tokenAmount == 0 ? IERC20(tokensIn[i]).balanceOf(address(this)) : inputs[i].tokenAmount; // Transfer funds to the receivers IERC20(tokensIn[i]).safeTransfer(inputReceivers[i], amountsIn[i]); } // Get output token balances before uint256 balanceBefore = IERC20(output.tokenAddress).balanceOf(address(this)); // Delegate the execution of the path to the specified Odos Executor IOdosExecutor(odosExecutor).executePath(pathDefinition, amountsIn, msg.sender); // Get output token balances difference amountOut = IERC20(output.tokenAddress).balanceOf(address(this)) - balanceBefore; if (amountOut < output.tokenAmount) { revert SlippageLimitExceeded(output.tokenAddress, output.tokenAmount, amountOut); } // Transfer tokens to the receiver IERC20(output.tokenAddress).safeTransfer(outputReceiver, amountOut); emit SwapRouterFunds( msg.sender, tokensIn, amountsIn, inputReceivers, output.tokenAddress, output.tokenAmount, outputReceiver, amountOut ); } /// @notice Transfers funds held by the router contract /// @param tokens List of token address to be transferred /// @param amounts List of amounts of each token to be transferred /// @param dest Address to which the funds should be sent function transferRouterFunds( address[] calldata tokens, uint256[] calldata amounts, address dest ) external { if (msg.sender != liquidatorAddress && msg.sender != owner()) { revert AddressNotAllowed(msg.sender); } if (dest == address(0)) { revert InvalidAddress(dest); } if (tokens.length != amounts.length) revert InvalidArguments(); for (uint256 i = 0; i < tokens.length; i++) { if (tokens[i] == _ETH) { (bool success,) = payable(dest).call{value: amounts[i]}(""); if (!success) { revert TransferFailed(dest, amounts[i]); } } else { IERC20(tokens[i]).safeTransfer( dest, amounts[i] == 0 ? IERC20(tokens[i]).balanceOf(address(this)) : amounts[i] ); } } } /// @notice Adds an address to the list of allowed filler addresses /// @param account The address to be allowed function addAllowedFiller(address account) external onlyOwner { allowedFillers[account] = true; emit AllowedFillerAdded(account); } /// @notice Removes an address from the list of allowed filler addresses /// @param account The address to be disabled function removeAllowedFiller(address account) external onlyOwner { allowedFillers[account] = false; emit AllowedFillerRemoved(account); } /// @notice Disable the Ownable.renounceOwnership() function to prevent ownerless state function renounceOwnership() public onlyOwner view override { revert FunctionIsDisabled(); } /// @notice Changes the address which can call `swapRouterFunds()` function /// @param account The address of new liquidator function changeLiquidatorAddress(address account) public onlyOwner { liquidatorAddress = account; emit LiquidatorAddressChanged(account); } /// @dev Encodes TokenInfo struct according to EIP-712 /// @param tokenInfo TokenInfo struct /// @return Encoded struct function encodeTokenInfo( TokenInfo calldata tokenInfo ) public pure returns (bytes memory) { return abi.encode(TOKEN_INFO_TYPEHASH, tokenInfo.tokenAddress, tokenInfo.tokenAmount); } /// @notice gets LimitOrder struct hash according to EIP-712 /// @param order LimitOrder struct /// @return structHash EIP-712 struct hash function getLimitOrderStructHash( LimitOrder calldata order ) public pure returns (bytes32 structHash) { return keccak256( abi.encode( LIMIT_ORDER_TYPEHASH, keccak256(encodeTokenInfo(order.input)), keccak256(encodeTokenInfo(order.output)), order.expiry, order.salt, order.referralCode, order.referralFee, order.referralFeeRecipient, order.partiallyFillable ) ); } /// @notice gets MultiLimitOrder struct hash according to EIP-712 /// @param order MultiLimitOrder struct /// @return structHash EIP-712 struct hash function getMultiLimitOrderStructHash( MultiLimitOrder calldata order ) public pure returns (bytes32 structHash) { bytes32[] memory encodedInputs = new bytes32[](order.inputs.length); for (uint256 i = 0; i < order.inputs.length; i++) { encodedInputs[i] = keccak256(encodeTokenInfo(order.inputs[i])); } bytes32[] memory encodedOutputs = new bytes32[](order.outputs.length); for (uint256 i = 0; i < order.outputs.length; i++) { encodedOutputs[i] = keccak256(encodeTokenInfo(order.outputs[i])); } return keccak256( abi.encode( MULTI_LIMIT_ORDER_TYPEHASH, keccak256(abi.encodePacked(encodedInputs)), keccak256(abi.encodePacked(encodedOutputs)), order.expiry, order.salt, order.referralCode, order.referralFee, order.referralFeeRecipient, order.partiallyFillable ) ); } /// @notice Returns single input limit order hash /// @param order Single input limit order /// @return hash Order hash function getLimitOrderHash(LimitOrder calldata order) public view returns (bytes32 hash) { return _hashTypedDataV4(getLimitOrderStructHash(order)); } /// @notice Returns multi input limit order hash /// @param order Multi input limit order /// @return hash Order hash function getMultiLimitOrderHash( MultiLimitOrder calldata order ) public view returns (bytes32 hash) { return _hashTypedDataV4(getMultiLimitOrderStructHash(order)); } /// @dev Checks order parameters and current order state before execution /// @param order Single input limit order struct function _limitOrderChecks( LimitOrder calldata order ) internal view { // 1. Check msg.sender allowed if (!allowedFillers[msg.sender]) { revert AddressNotAllowed(msg.sender); } // 2. Check if order still valid if (order.expiry < block.timestamp) { revert OrderExpired(order.expiry, block.timestamp); } // 3. Check tokens, amounts if (order.input.tokenAddress == order.output.tokenAddress) { revert ArbitrageNotAllowed(order.input.tokenAddress); } } /// @dev Handle a referral fee /// @param originalAmountOut output amount before function /// @param outputToken output token in question /// @param referralFee the referral fee to charge /// @param referralFeeRecipient recipient of the referral fee /// @return newAmountOut the amount out after the referral fee function _handleFee( uint256 originalAmountOut, address outputToken, uint64 referralFee, address referralFeeRecipient ) internal returns (uint256 newAmountOut) { if (referralFeeRecipient == address(0)) { revert InvalidAddress(referralFeeRecipient); } if (referralFee > FEE_DENOM / 50) { revert InvalidReferralFee(referralFee); } if (referralFeeRecipient != address(this)) { _universalTransfer( outputToken, referralFeeRecipient, originalAmountOut * referralFee * 8 / (FEE_DENOM * 10) ); } newAmountOut = originalAmountOut * (FEE_DENOM - referralFee) / FEE_DENOM; } /// @dev Limit order checks /// @param order Single input limit order struct /// @param context Order execution context /// @param orderHash Limit order struct hash /// @param orderOwner Order owner address /// @return filledAmount Order amount filled by now function _getFilledAmount( LimitOrder calldata order, LimitOrderContext calldata context, bytes32 orderHash, address orderOwner ) internal view returns ( uint256 filledAmount ) { // 6. Extract previously filled amounts for order from storage, or create filledAmount = limitOrders[orderOwner][orderHash]; if (filledAmount == type(uint256).max) { revert OrderCancelled(orderHash); } // 7. Check if fill possible: // - If partiallyFillable, total amount do not exceed // - If not partiallyFillable - it was not filled previously if (order.partiallyFillable) { // Check that the currentAmount fits the total order amount if (filledAmount + context.currentAmount > order.input.tokenAmount) { revert CurrentAmountMismatch(order.input.tokenAddress, order.input.tokenAmount, filledAmount, context.currentAmount); } } else { // Revert if order was filled or currentAmount is not equal to the order amount if (filledAmount > 0 || context.currentAmount != order.input.tokenAmount) { revert CurrentAmountMismatch(order.input.tokenAddress, order.input.tokenAmount, filledAmount, context.currentAmount); } } } /// @dev Fills single input limit order /// @param order Single input limit order struct /// @param context Order execution context /// @param orderHash Order hash /// @param orderOwner Order owner address /// @param filledAmount Amount filled by now function _limitOrderFill( LimitOrder calldata order, LimitOrderContext calldata context, bytes32 orderHash, address orderOwner, uint256 filledAmount ) internal { // 9. Update order filled amounts in storage filledAmount += context.currentAmount; limitOrders[orderOwner][orderHash] = filledAmount; LimitOrderHelper memory helper; // 10. Get output token balances before helper.balanceBefore = _universalBalance(order.output.tokenAddress); // 11. Call Odos Executor { uint256[] memory amountsIn = new uint256[](1); amountsIn[0] = context.currentAmount; IOdosExecutor(context.odosExecutor).executePath(context.pathDefinition, amountsIn, msg.sender); } // 12. Get output token balances difference helper.amountOut = _universalBalance(order.output.tokenAddress) - helper.balanceBefore; // calculate prorated output amount in case of partial fill, otherwise it will be equal to order.output.tokenAmount helper.proratedAmount = SCALE * order.output.tokenAmount * context.currentAmount / order.input.tokenAmount / SCALE; // 13. Calculate and transfer referral fee if any if (order.referralFee > 0) { helper.amountOut = _handleFee( helper.amountOut, order.output.tokenAddress, order.referralFee, order.referralFeeRecipient ); } // 14. Check slippage, adjust amountOut if (helper.amountOut < helper.proratedAmount) { revert SlippageLimitExceeded(order.output.tokenAddress, helper.proratedAmount, helper.amountOut); } // 15. Check surplus helper.surplus = helper.amountOut - helper.proratedAmount; if (helper.surplus < context.minSurplus) { revert MinSurplusCheckFailed(order.output.tokenAddress, context.minSurplus, helper.surplus); } // 16. Transfer tokens to the order owner _universalTransfer( order.output.tokenAddress, orderOwner, helper.proratedAmount ); // 17. Emit LimitOrderFilled event emit LimitOrderFilled( orderHash, orderOwner, order.input.tokenAddress, order.output.tokenAddress, context.currentAmount, helper.proratedAmount, helper.surplus, order.referralCode, order.referralFee, order.referralFeeRecipient, context.orderType ); } /// @dev Checks order parameters and current order state before execution /// @param order Multi input limit order struct function _multiOrderChecks( MultiLimitOrder calldata order ) internal view { // 1. Check msg.sender allowed if (!allowedFillers[msg.sender]) { revert AddressNotAllowed(msg.sender); } // 2. Check if order still valid if (order.expiry < block.timestamp) { revert OrderExpired(order.expiry, block.timestamp); } // 3. Check tokens, amounts for (uint256 i = 0; i < order.inputs.length; i++) { for (uint256 j = 0; j < order.outputs.length; j++) { if (order.inputs[i].tokenAddress == order.outputs[j].tokenAddress) { revert ArbitrageNotAllowed(order.inputs[i].tokenAddress); } } } } /// @dev Checks order parameters and current order state before execution /// @param order Multi input limit order struct /// @param context Order execution context /// @param orderHash Order struct hash /// @return helper Helper struct which contains order information function _getMultiFilledAmount( MultiLimitOrder calldata order, MultiLimitOrderContext calldata context, bytes32 orderHash, address orderOwner ) internal view returns ( MultiLimitOrderHelper memory helper ) { helper = MultiLimitOrderHelper({ inputTokens: new address[](order.inputs.length), outputTokens: new address[](order.outputs.length), orderInputAmounts: new uint256[](order.inputs.length), orderOutputAmounts: new uint256[](order.outputs.length), filledAmounts: new uint256[](order.inputs.length), filledOutputAmounts: new uint256[](order.outputs.length), surplus: new uint256[](order.outputs.length), balancesBefore: new uint256[](order.outputs.length), orderOwner : orderOwner, orderHash : orderHash, amountProration: 0 }); // 6. Extract previously filled amounts for order from storage, or create helper.filledAmounts = multiLimitOrders[orderOwner][orderHash]; if (helper.filledAmounts.length > 0 && helper.filledAmounts[0] == type(uint256).max) { revert OrderCancelled(orderHash); } if (helper.filledAmounts.length == 0) { helper.filledAmounts = new uint256[](order.inputs.length); } // 7. Check if fill possible: // - If partiallyFillable, total amount do not exceed // - If not partiallyFillable - it was not filled previously if (order.partiallyFillable) { // Check that the currentAmount fits the total order amount for (uint256 i = 0; i < helper.filledAmounts.length; i++) { if (helper.filledAmounts[i] + context.currentAmounts[i] > order.inputs[i].tokenAmount) { revert CurrentAmountMismatch(order.inputs[i].tokenAddress, order.inputs[i].tokenAmount, helper.filledAmounts[i], context.currentAmounts[i]); } // Set the maximum input proration uint256 thisAmountProration = SCALE * context.currentAmounts[i] / order.inputs[i].tokenAmount; if (thisAmountProration > helper.amountProration) { helper.amountProration = thisAmountProration; } } } else { // Set the proration to one, since no proration needed helper.amountProration = SCALE; // Revert if order was filled or currentAmount is not equal to the order amount for (uint256 i = 0; i < helper.filledAmounts.length; i++) { if (helper.filledAmounts[i] > 0 || context.currentAmounts[i] != order.inputs[i].tokenAmount) { revert CurrentAmountMismatch(order.inputs[i].tokenAddress, order.inputs[i].tokenAmount, helper.filledAmounts[i], context.currentAmounts[i]); } } } } /// @dev Fills multi input limit order /// @param order Multi input limit order struct /// @param context Order execution context /// @param helper Helper struct which contains order information function _multiLimitOrderFill( MultiLimitOrder calldata order, MultiLimitOrderContext calldata context, MultiLimitOrderHelper memory helper ) internal { // 9. Update order filled amounts in storage multiLimitOrders[helper.orderOwner][helper.orderHash] = helper.filledAmounts; // 10. Get output token balances before for (uint256 i = 0; i < order.outputs.length; i++) { helper.outputTokens[i] = order.outputs[i].tokenAddress; helper.orderOutputAmounts[i] = order.outputs[i].tokenAmount; helper.balancesBefore[i] = _universalBalance(order.outputs[i].tokenAddress); } // 11. Call Odos Executor IOdosExecutor(context.odosExecutor).executePath(context.pathDefinition, context.currentAmounts, msg.sender); { // 12. Get output token balances difference uint256[] memory amountsOut = new uint256[](order.outputs.length); for (uint256 i = 0; i < order.outputs.length; i++) { amountsOut[i] = _universalBalance(order.outputs[i].tokenAddress) - helper.balancesBefore[i]; } for (uint256 i = 0; i < order.outputs.length; i++) { // 13. Calculate and transfer referral fee if any if (order.referralFee > 0) { amountsOut[i] = _handleFee( amountsOut[i], order.outputs[i].tokenAddress, order.referralFee, order.referralFeeRecipient ); } // calculate prorated output amount in case of partial fill, otherwise it will be equal to order.output.tokenAmount uint256 proratedAmount = helper.amountProration * order.outputs[i].tokenAmount / SCALE; // 14. Check slippage, adjust amountOut if (amountsOut[i] < proratedAmount) { revert SlippageLimitExceeded(order.outputs[i].tokenAddress, proratedAmount, amountsOut[i]); } helper.filledOutputAmounts[i] = proratedAmount; // 15. Check surplus helper.surplus[i] = amountsOut[i] - proratedAmount; if (helper.surplus[i] < context.minSurplus[i]) { revert MinSurplusCheckFailed(order.outputs[i].tokenAddress, context.minSurplus[i], helper.surplus[i]); } // 16. Transfer tokens to the order owner _universalTransfer( order.outputs[i].tokenAddress, helper.orderOwner, proratedAmount ); } } // 17. Emit LimitOrderFilled event emit MultiLimitOrderFilled( helper.orderHash, helper.orderOwner, helper.inputTokens, helper.outputTokens, context.currentAmounts, helper.filledOutputAmounts, helper.surplus, order.referralCode, order.referralFee, order.referralFeeRecipient, context.orderType ); } /// @notice helper function to get balance of ERC20 or native coin for this contract /// @param token address of the token to check, null for native coin /// @return balance of specified coin or token function _universalBalance(address token) private view returns(uint256) { if (token == _ETH) { return address(this).balance; } else { return IERC20(token).balanceOf(address(this)); } } /// @notice helper function to transfer ERC20 or native coin /// @param token address of the token being transferred, null for native coin /// @param to address to transfer to /// @param amount to transfer function _universalTransfer(address token, address to, uint256 amount) private { if (token == _ETH) { (bool success,) = payable(to).call{value: amount}(""); if (!success) { revert TransferFailed(to, amount); } } else { IERC20(token).safeTransfer(to, amount); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressNotAllowed","type":"error"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"ArbitrageNotAllowed","type":"error"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"orderAmount","type":"uint256"},{"internalType":"uint256","name":"filledAmount","type":"uint256"},{"internalType":"uint256","name":"currentAmount","type":"uint256"}],"name":"CurrentAmountMismatch","type":"error"},{"inputs":[{"internalType":"bytes","name":"error","type":"bytes"}],"name":"ERC1271Revert","type":"error"},{"inputs":[{"internalType":"bytes","name":"error","type":"bytes"}],"name":"ERC6492DeployFailed","type":"error"},{"inputs":[],"name":"FunctionIsDisabled","type":"error"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"InvalidArguments","type":"error"},{"inputs":[{"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"InvalidEip1271Signature","type":"error"},{"inputs":[{"internalType":"uint256","name":"expectedLength","type":"uint256"},{"internalType":"uint256","name":"actualLength","type":"uint256"}],"name":"InvalidPresignLength","type":"error"},{"inputs":[{"internalType":"uint64","name":"referralFee","type":"uint64"}],"name":"InvalidReferralFee","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[],"name":"InvalidSignatureLength","type":"error"},{"inputs":[],"name":"InvalidSignatureVValue","type":"error"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"expectedValue","type":"uint256"},{"internalType":"uint256","name":"actualValue","type":"uint256"}],"name":"MinSurplusCheckFailed","type":"error"},{"inputs":[{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"name":"OrderCancelled","type":"error"},{"inputs":[{"internalType":"uint256","name":"orderExpiry","type":"uint256"},{"internalType":"uint256","name":"currentTimestamp","type":"uint256"}],"name":"OrderExpired","type":"error"},{"inputs":[{"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"OrderNotPresigned","type":"error"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"expectedAmount","type":"uint256"},{"internalType":"uint256","name":"actualAmount","type":"uint256"}],"name":"SlippageLimitExceeded","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"inputs":[{"internalType":"address","name":"destination","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"AllowedFillerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"AllowedFillerRemoved","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"orderOwner","type":"address"}],"name":"LimitOrderCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"orderOwner","type":"address"},{"indexed":false,"internalType":"address","name":"inputToken","type":"address"},{"indexed":false,"internalType":"address","name":"outputToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"filledInputAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"filledOutputAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"surplus","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"referralCode","type":"uint64"},{"indexed":false,"internalType":"uint64","name":"referralFee","type":"uint64"},{"indexed":false,"internalType":"address","name":"referralFeeRecipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"orderType","type":"uint256"}],"name":"LimitOrderFilled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"LiquidatorAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"orderOwner","type":"address"}],"name":"MultiLimitOrderCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"orderOwner","type":"address"},{"indexed":false,"internalType":"address[]","name":"inputTokens","type":"address[]"},{"indexed":false,"internalType":"address[]","name":"outputTokens","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"filledInputAmounts","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"filledOutputAmounts","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"surplus","type":"uint256[]"},{"indexed":false,"internalType":"uint64","name":"referralCode","type":"uint64"},{"indexed":false,"internalType":"uint64","name":"referralFee","type":"uint64"},{"indexed":false,"internalType":"address","name":"referralFeeRecipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"orderType","type":"uint256"}],"name":"MultiLimitOrderFilled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"preSigned","type":"bool"}],"name":"OrderPreSigned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","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":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address[]","name":"inputTokens","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"inputAmounts","type":"uint256[]"},{"indexed":false,"internalType":"address[]","name":"inputReceivers","type":"address[]"},{"indexed":false,"internalType":"address","name":"outputToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"outputAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"outputReceiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"SwapRouterFunds","type":"event"},{"inputs":[],"name":"LIMIT_ORDER_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LIMIT_ORDER_WITNESS_TYPE_STRING","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MULTI_LIMIT_ORDER_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MULTI_LIMIT_ORDER_WITNESS_TYPE_STRING","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_INFO_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addAllowedFiller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowedFillers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"name":"cancelLimitOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"name":"cancelMultiLimitOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"changeLiquidatorAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo","name":"tokenInfo","type":"tuple"}],"name":"encodeTokenInfo","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo","name":"input","type":"tuple"},{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo","name":"output","type":"tuple"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"uint64","name":"referralCode","type":"uint64"},{"internalType":"uint64","name":"referralFee","type":"uint64"},{"internalType":"address","name":"referralFeeRecipient","type":"address"},{"internalType":"bool","name":"partiallyFillable","type":"bool"}],"internalType":"struct OdosLimitOrderRouter.LimitOrder","name":"order","type":"tuple"},{"components":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"enum SignatureValidator.SignatureValidationMethod","name":"validationMethod","type":"uint8"}],"internalType":"struct SignatureValidator.Signature","name":"signature","type":"tuple"},{"components":[{"internalType":"bytes","name":"pathDefinition","type":"bytes"},{"internalType":"address","name":"odosExecutor","type":"address"},{"internalType":"uint256","name":"currentAmount","type":"uint256"},{"internalType":"address","name":"inputReceiver","type":"address"},{"internalType":"uint256","name":"minSurplus","type":"uint256"},{"internalType":"uint256","name":"orderType","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.LimitOrderContext","name":"context","type":"tuple"}],"name":"fillLimitOrder","outputs":[{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo","name":"input","type":"tuple"},{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo","name":"output","type":"tuple"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"uint64","name":"referralCode","type":"uint64"},{"internalType":"uint64","name":"referralFee","type":"uint64"},{"internalType":"address","name":"referralFeeRecipient","type":"address"},{"internalType":"bool","name":"partiallyFillable","type":"bool"}],"internalType":"struct OdosLimitOrderRouter.LimitOrder","name":"order","type":"tuple"},{"components":[{"internalType":"bytes","name":"pathDefinition","type":"bytes"},{"internalType":"address","name":"odosExecutor","type":"address"},{"internalType":"uint256","name":"currentAmount","type":"uint256"},{"internalType":"address","name":"inputReceiver","type":"address"},{"internalType":"uint256","name":"minSurplus","type":"uint256"},{"internalType":"uint256","name":"orderType","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.LimitOrderContext","name":"context","type":"tuple"},{"components":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"address","name":"orderOwner","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct OdosLimitOrderRouter.Permit2Info","name":"permit2","type":"tuple"}],"name":"fillLimitOrderPermit2","outputs":[{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo[]","name":"inputs","type":"tuple[]"},{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo[]","name":"outputs","type":"tuple[]"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"uint64","name":"referralCode","type":"uint64"},{"internalType":"uint64","name":"referralFee","type":"uint64"},{"internalType":"address","name":"referralFeeRecipient","type":"address"},{"internalType":"bool","name":"partiallyFillable","type":"bool"}],"internalType":"struct OdosLimitOrderRouter.MultiLimitOrder","name":"order","type":"tuple"},{"components":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"enum SignatureValidator.SignatureValidationMethod","name":"validationMethod","type":"uint8"}],"internalType":"struct SignatureValidator.Signature","name":"signature","type":"tuple"},{"components":[{"internalType":"bytes","name":"pathDefinition","type":"bytes"},{"internalType":"address","name":"odosExecutor","type":"address"},{"internalType":"uint256[]","name":"currentAmounts","type":"uint256[]"},{"internalType":"address[]","name":"inputReceivers","type":"address[]"},{"internalType":"uint256[]","name":"minSurplus","type":"uint256[]"},{"internalType":"uint256","name":"orderType","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.MultiLimitOrderContext","name":"context","type":"tuple"}],"name":"fillMultiLimitOrder","outputs":[{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo[]","name":"inputs","type":"tuple[]"},{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo[]","name":"outputs","type":"tuple[]"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"uint64","name":"referralCode","type":"uint64"},{"internalType":"uint64","name":"referralFee","type":"uint64"},{"internalType":"address","name":"referralFeeRecipient","type":"address"},{"internalType":"bool","name":"partiallyFillable","type":"bool"}],"internalType":"struct OdosLimitOrderRouter.MultiLimitOrder","name":"order","type":"tuple"},{"components":[{"internalType":"bytes","name":"pathDefinition","type":"bytes"},{"internalType":"address","name":"odosExecutor","type":"address"},{"internalType":"uint256[]","name":"currentAmounts","type":"uint256[]"},{"internalType":"address[]","name":"inputReceivers","type":"address[]"},{"internalType":"uint256[]","name":"minSurplus","type":"uint256[]"},{"internalType":"uint256","name":"orderType","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.MultiLimitOrderContext","name":"context","type":"tuple"},{"components":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"address","name":"orderOwner","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct OdosLimitOrderRouter.Permit2Info","name":"permit2","type":"tuple"}],"name":"fillMultiLimitOrderPermit2","outputs":[{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo","name":"input","type":"tuple"},{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo","name":"output","type":"tuple"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"uint64","name":"referralCode","type":"uint64"},{"internalType":"uint64","name":"referralFee","type":"uint64"},{"internalType":"address","name":"referralFeeRecipient","type":"address"},{"internalType":"bool","name":"partiallyFillable","type":"bool"}],"internalType":"struct OdosLimitOrderRouter.LimitOrder","name":"order","type":"tuple"}],"name":"getLimitOrderHash","outputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo","name":"input","type":"tuple"},{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo","name":"output","type":"tuple"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"uint64","name":"referralCode","type":"uint64"},{"internalType":"uint64","name":"referralFee","type":"uint64"},{"internalType":"address","name":"referralFeeRecipient","type":"address"},{"internalType":"bool","name":"partiallyFillable","type":"bool"}],"internalType":"struct OdosLimitOrderRouter.LimitOrder","name":"order","type":"tuple"}],"name":"getLimitOrderStructHash","outputs":[{"internalType":"bytes32","name":"structHash","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo[]","name":"inputs","type":"tuple[]"},{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo[]","name":"outputs","type":"tuple[]"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"uint64","name":"referralCode","type":"uint64"},{"internalType":"uint64","name":"referralFee","type":"uint64"},{"internalType":"address","name":"referralFeeRecipient","type":"address"},{"internalType":"bool","name":"partiallyFillable","type":"bool"}],"internalType":"struct OdosLimitOrderRouter.MultiLimitOrder","name":"order","type":"tuple"}],"name":"getMultiLimitOrderHash","outputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo[]","name":"inputs","type":"tuple[]"},{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo[]","name":"outputs","type":"tuple[]"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"uint64","name":"referralCode","type":"uint64"},{"internalType":"uint64","name":"referralFee","type":"uint64"},{"internalType":"address","name":"referralFeeRecipient","type":"address"},{"internalType":"bool","name":"partiallyFillable","type":"bool"}],"internalType":"struct OdosLimitOrderRouter.MultiLimitOrder","name":"order","type":"tuple"}],"name":"getMultiLimitOrderStructHash","outputs":[{"internalType":"bytes32","name":"structHash","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"isValidSig","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"bool","name":"allowSideEffects","type":"bool"}],"name":"isValidSigImpl","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"isValidSigWithSideEffects","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"orderOwner","type":"address"},{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"name":"limitOrders","outputs":[{"internalType":"uint256","name":"filledAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidatorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"orderOwner","type":"address"},{"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"multiLimitOrders","outputs":[{"internalType":"uint256","name":"filledAmounts","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"name":"preSignedOrders","outputs":[{"internalType":"bool","name":"preSigned","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeAllowedFiller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"internalType":"bool","name":"preSigned","type":"bool"}],"name":"setPreSignature","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo[]","name":"inputs","type":"tuple[]"},{"internalType":"address[]","name":"inputReceivers","type":"address[]"},{"components":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"internalType":"struct OdosLimitOrderRouter.TokenInfo","name":"output","type":"tuple"},{"internalType":"address","name":"outputReceiver","type":"address"},{"internalType":"bytes","name":"pathDefinition","type":"bytes"},{"internalType":"address","name":"odosExecutor","type":"address"}],"name":"swapRouterFunds","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"address","name":"dest","type":"address"}],"name":"transferRouterFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101606040523480156200001257600080fd5b50604080518082018252601481527f4f646f734c696d69744f72646572526f75746572000000000000000000000000602080830191909152825180840190935260018352603160f81b90830152906200006d82600062000131565b610120526200007e81600162000131565b61014052815160208084019190912060e052815190820120610100524660a0526200010c60e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60805250503060c05262000120336200016a565b6200012b3362000188565b620004be565b600060208351101562000151576200014983620001dc565b905062000164565b816200015e84826200037d565b5060ff90505b92915050565b600380546001600160a01b0319169055620001858162000228565b50565b620001926200027a565b600580546001600160a01b0319166001600160a01b0383169081179091556040517f1535fa8f7275b71050af30bf7f74391b45be7ba2b545fd28279dafe9b50f642490600090a250565b600080829050601f8151111562000213578260405163305a27a960e01b81526004016200020a919062000449565b60405180910390fd5b8051620002208262000499565b179392505050565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002546001600160a01b03163314620002d65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200020a565b565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200030357607f821691505b6020821081036200032457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200037857600081815260208120601f850160051c81016020861015620003535750805b601f850160051c820191505b8181101562000374578281556001016200035f565b5050505b505050565b81516001600160401b03811115620003995762000399620002d8565b620003b181620003aa8454620002ee565b846200032a565b602080601f831160018114620003e95760008415620003d05750858301515b600019600386901b1c1916600185901b17855562000374565b600085815260208120601f198616915b828110156200041a57888601518255948401946001909101908401620003f9565b5085821015620004395787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208083528351808285015260005b8181101562000478578581018301518582016040015282016200045a565b506000604082860101526040601f19601f8301168501019250505092915050565b80516020808301519190811015620003245760001960209190910360031b1b16919050565b60805160a05160c05160e051610100516101205161014051615ff2620005196000396000611727015260006116fd0152600061458a01526000614562015260006144bd015260006144e7015260006145110152615ff26000f3fe6080604052600436106102535760003560e01c80638da5cb5b11610138578063ce64c997116100b0578063e30c39781161007f578063eb8fb26811610064578063eb8fb268146106c3578063f2fde38b146106e3578063ff247a8e1461070357600080fd5b8063e30c397814610685578063e5dae17d146106a357600080fd5b8063ce64c99714610626578063d678b6fc1461063b578063df9bc68714610650578063e225651a1461067057600080fd5b8063b5967d0111610107578063c5eeda3f116100ec578063c5eeda3f146105c6578063c7cb6382146105e6578063ce0f52d51461060657600080fd5b8063b5967d0114610591578063bba06de4146105a657600080fd5b80638da5cb5b146104fb5780638f0684301461051957806398ef1ed814610539578063aca766aa1461055957600080fd5b8063559475e5116101cb5780637550b0151161019a57806379ba50971161017f57806379ba50971461049e57806384b0196e146104b3578063891b1bad146104db57600080fd5b80637550b0151461044657806375c111f21461046657600080fd5b8063559475e5146103c457806364673295146103e4578063712c512214610404578063715018a61461043157600080fd5b80633a965edb116102225780634584eff6116102075780634584eff61461036f57806348a14ed61461038f57806354dd5f74146103af57600080fd5b80633a965edb1461031f5780633e0cf5431461033f57600080fd5b806316d434011461025f578063174da621146102945780631d971a4a146102b6578063258ff156146102f157600080fd5b3661025a57005b600080fd5b34801561026b57600080fd5b5061027f61027a366004614be0565b610723565b60405190151581526020015b60405180910390f35b3480156102a057600080fd5b506102b46102af366004614c99565b610af9565b005b3480156102c257600080fd5b5061027f6102d1366004614d0f565b600460209081526000928352604080842090915290825290205460ff1681565b3480156102fd57600080fd5b5061031161030c366004614d54565b610dcf565b60405190815260200161028b565b34801561032b57600080fd5b5061031161033a366004614d54565b610de8565b34801561034b57600080fd5b5061027f61035a366004614d78565b60086020526000908152604090205460ff1681565b34801561037b57600080fd5b506102b461038a366004614d95565b610f32565b34801561039b57600080fd5b506103116103aa366004614de5565b610f7b565b3480156103bb57600080fd5b50610311611195565b3480156103d057600080fd5b506103116103df366004614e6d565b6111f1565b3480156103f057600080fd5b506102b46103ff366004614d95565b61122f565b34801561041057600080fd5b5061042461041f366004614ea2565b6112cc565b60405161028b9190614f0e565b34801561043d57600080fd5b506102b461133a565b34801561045257600080fd5b50610311610461366004614f21565b611374565b34801561047257600080fd5b50600554610486906001600160a01b031681565b6040516001600160a01b03909116815260200161028b565b3480156104aa57600080fd5b506102b4611661565b3480156104bf57600080fd5b506104c86116ef565b60405161028b9796959493929190614f91565b3480156104e757600080fd5b506103116104f6366004614f21565b611793565b34801561050757600080fd5b506002546001600160a01b0316610486565b34801561052557600080fd5b5061027f61053436600461501b565b6117a1565b34801561054557600080fd5b5061027f61055436600461501b565b61181e565b34801561056557600080fd5b50610311610574366004614d0f565b600660209081526000928352604080842090915290825290205481565b34801561059d57600080fd5b50610424611942565b3480156105b257600080fd5b506102b46105c1366004614d78565b6119b1565b3480156105d257600080fd5b506103116105e1366004615089565b611a05565b3480156105f257600080fd5b50610311610601366004615107565b611eb7565b34801561061257600080fd5b506102b4610621366004614d78565b611f22565b34801561063257600080fd5b50610311611f73565b34801561064757600080fd5b50610311611f96565b34801561065c57600080fd5b5061031161066b366004615168565b611fd9565b34801561067c57600080fd5b506104246121b8565b34801561069157600080fd5b506003546001600160a01b0316610486565b3480156106af57600080fd5b506102b46106be366004614d78565b612215565b3480156106cf57600080fd5b506102b46106de3660046151c9565b612274565b3480156106ef57600080fd5b506102b46106fe366004614d78565b6122d4565b34801561070f57600080fd5b5061031161071e366004615331565b612352565b60006001600160a01b0386163b6060826020861080159061078457507f6492649264926492649264926492649264926492649264926492649264926492878761076d602082615469565b610779928a929061547c565b610782916154a6565b145b90508015610876576000606088828961079e602082615469565b926107ab9392919061547c565b8101906107b89190615534565b95509092509050600085900361086f57600080836001600160a01b0316836040516107e391906155a0565b6000604051808303816000865af19150503d8060008114610820576040519150601f19603f3d011682016040523d82523d6000602084013e610825565b606091505b50915091508161086c57806040517f9d0d6e2d0000000000000000000000000000000000000000000000000000000081526004016108639190614f0e565b60405180910390fd5b50505b50506108b0565b86868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509294505050505b80806108bc5750600083115b156109ec57604051630b135d3f60e11b81526001600160a01b038a1690631626ba7e906108ef908b9086906004016155bc565b602060405180830381865afa925050508015610928575060408051601f3d908101601f19168201909252610925918101906155d5565b60015b610990573d808015610956576040519150601f19603f3d011682016040523d82523d6000602084013e61095b565b606091505b50806040517f6f2a95990000000000000000000000000000000000000000000000000000000081526004016108639190614f0e565b7fffffffff000000000000000000000000000000000000000000000000000000008116630b135d3f60e11b14841580156109c75750825b80156109d1575086155b156109e057806000526001601ffd5b9450610af09350505050565b60418614610a26576040517f4be6321b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610a35602082898b61547c565b610a3e916154a6565b90506000610a50604060208a8c61547c565b610a59916154a6565b9050600089896040818110610a7057610a70615617565b919091013560f81c915050601b8114801590610a9057508060ff16601c14155b15610ac7576040517f449f5db100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8b6001600160a01b0316610add8c838686612809565b6001600160a01b03161496505050505050505b95945050505050565b6005546001600160a01b03163314801590610b1f57506002546001600160a01b03163314155b15610b3f576040516351ee5ed560e01b8152336004820152602401610863565b6001600160a01b038116610b7157604051634726455360e11b81526001600160a01b0382166004820152602401610863565b838214610baa576040517f5f6f132c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b84811015610dc7576000868683818110610bc957610bc9615617565b9050602002016020810190610bde9190614d78565b6001600160a01b031603610cab576000826001600160a01b0316858584818110610c0a57610c0a615617565b9050602002013560405160006040518083038185875af1925050503d8060008114610c51576040519150601f19603f3d011682016040523d82523d6000602084013e610c56565b606091505b5050905080610ca55782858584818110610c7257610c72615617565b604051630e21dcbb60e11b81526001600160a01b0390941660048501526020029190910135602483015250604401610863565b50610db5565b610db582858584818110610cc157610cc1615617565b90506020020135600014610ced57858584818110610ce157610ce1615617565b90506020020135610d7e565b878784818110610cff57610cff615617565b9050602002016020810190610d149190614d78565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015610d5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7e919061562d565b888885818110610d9057610d90615617565b9050602002016020810190610da59190614d78565b6001600160a01b03169190612831565b80610dbf81615646565b915050610bad565b505050505050565b6000610de2610ddd83610de8565b6128df565b92915050565b60006040518060e0016040528060a38152602001615e3960a39139604051806060016040528060338152602001615f8a60339139604051602001610e2d92919061565f565b60405160208183030381529060405280519060200120610e4f836000016112cc565b80519060200120610e62846040016112cc565b8051602090910120608085013560a0860135610e8460e0880160c0890161568e565b610e95610100890160e08a0161568e565b610ea76101208a016101008b01614d78565b610eb96101408b016101208c016156b8565b60408051602081019a909a528901979097526060880195909552608087019390935260a086019190915267ffffffffffffffff90811660c08601521660e08401526001600160a01b0316610100830152151561012082015261014001604051602081830303815290604052805190602001209050919050565b33600081815260066020908152604080832085845290915280822060001990555183917f9589246bd420836dc7c4f266f2553bca3d6fee904eb0aad0a436ba3fba8fe3f991a350565b6000610f8684612927565b610f8f84611793565b90506000610fb682610fa186806156d5565b610fb16040890160208a0161571c565b612aca565b90506000610fc686858585612c50565b905060005b610fd5878061573d565b90508110156111805761107c83610fef6060880188615787565b84818110610fff57610fff615617565b90506020020160208101906110149190614d78565b6110216040890189615787565b8581811061103157611031615617565b602002919091013590506110458b8061573d565b8681811061105557611055615617565b61106b9260206040909202019081019150614d78565b6001600160a01b031692919061337f565b6110896040860186615787565b8281811061109957611099615617565b90506020020135826080015182815181106110b6576110b6615617565b602002602001018181516110ca91906157d1565b9052506110d7878061573d565b828181106110e7576110e7615617565b6110fd9260206040909202019081019150614d78565b825180518390811061111157611111615617565b6001600160a01b0390921660209283029190910190910152611133878061573d565b8281811061114357611143615617565b905060400201602001358260400151828151811061116357611163615617565b60209081029190910101528061117881615646565b915050610fcb565b5061118c8685836133d6565b50509392505050565b6040518060e0016040528060a38152602001615e3960a39139604051806060016040528060338152602001615f8a603391396040516020016111d892919061565f565b6040516020818303038152906040528051906020012081565b6007602052826000526040600020602052816000526040600020818154811061121957600080fd5b9060005260206000200160009250925050505481565b604080516001808252818301909252600091602080830190803683370190505090506000198160008151811061126757611267615617565b60209081029190910181019190915233600090815260078252604080822085835283529020825161129a92840190614b10565b50604051339083907fa8c658e479c63c75980f19e6b202df4243db8c4a36973b4d162b6ffe6cf0d69190600090a35050565b6060604051806060016040528060338152602001615f8a603391398051602091820120906112fc90840184614d78565b604080516020818101949094526001600160a01b03909216908201529083013560608201526080016040516020818303038152906040529050919050565b611342613aee565b6040517f21afe9d300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611381838061573d565b905067ffffffffffffffff81111561139b5761139b6151f9565b6040519080825280602002602001820160405280156113c4578160200160208202803683370190505b50905060005b6113d4848061573d565b905081101561143b576114056113ea858061573d565b838181106113fa576113fa615617565b9050604002016112cc565b8051906020012082828151811061141e5761141e615617565b60209081029190910101528061143381615646565b9150506113ca565b50600061144b602085018561573d565b905067ffffffffffffffff811115611465576114656151f9565b60405190808252806020026020018201604052801561148e578160200160208202803683370190505b50905060005b6114a1602086018661573d565b90508110156114f0576114ba6113ea602087018761573d565b805190602001208282815181106114d3576114d3615617565b6020908102919091010152806114e881615646565b915050611494565b506040518060e0016040528060ae8152602001615edc60ae9139604051806060016040528060338152602001615f8a6033913960405160200161153492919061565f565b604051602081830303815290604052805190602001208260405160200161155b91906157e4565b604051602081830303815290604052805190602001208260405160200161158291906157e4565b60405160208183030381529060405280519060200120866040013587606001358860800160208101906115b5919061568e565b6115c560c08b0160a08c0161568e565b6115d560e08c0160c08d01614d78565b6115e66101008d0160e08e016156b8565b60408051602081019a909a528901979097526060880195909552608087019390935260a086019190915267ffffffffffffffff90811660c08601521660e08401526001600160a01b03166101008301521515610120820152610140016040516020818303038152906040528051906020012092505050919050565b60035433906001600160a01b031681146116e35760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e657200000000000000000000000000000000000000000000006064820152608401610863565b6116ec81613b4a565b50565b6000606080828080836117227f000000000000000000000000000000000000000000000000000000000000000083613b70565b61174d7f00000000000000000000000000000000000000000000000000000000000000006001613b70565b604080516000808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b6000610de2610ddd83611374565b6040516316d4340160e01b815260009030906316d43401906117d0908890889088908890600190600401615843565b6020604051808303816000875af11580156117ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118139190615880565b90505b949350505050565b6040516316d4340160e01b815260009030906316d434019061184c9088908890889088908890600401615843565b6020604051808303816000875af1925050508015611887575060408051601f3d908101601f1916820190925261188491810190615880565b60015b61193b573d8080156118b5576040519150601f19603f3d011682016040523d82523d6000602084013e6118ba565b606091505b508051600181900361192d57816000815181106118d9576118d9615617565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f0100000000000000000000000000000000000000000000000000000000000000149250611816915050565b8060208301fd5b5050611816565b9050611816565b6040518060e0016040528060ae8152602001615edc60ae9139604051806060016040528060338152602001615f8a603391396040518060600160405280602e8152602001615e0b602e913960405160200161199f9392919061589d565b60405160208183030381529060405281565b6119b9613aee565b6001600160a01b038116600081815260086020526040808220805460ff19166001179055517fa2dce8c36614bedf0a7ccdd7570cfe9a7f2b13a2d778512c4204fd2e90ba99479190a250565b6000611a1084612927565b6000611a1b85611374565b9050611a26816128df565b91506000611a45868685611a406080890160608a01614d78565b612c50565b604080516060810190915290915060009080611a61898061573d565b905067ffffffffffffffff811115611a7b57611a7b6151f9565b604051908082528060200260200182016040528015611ac057816020015b6040805180820190915260008082526020820152815260200190600190039081611a995790505b5081526020878101359082015260408088013591015290506000611ae4888061573d565b905067ffffffffffffffff811115611afe57611afe6151f9565b604051908082528060200260200182016040528015611b4357816020015b6040805180820190915260008082526020820152815260200190600190039081611b1c5790505b50905060005b611b53898061573d565b9050811015611da457611b66898061573d565b82818110611b7657611b76615617565b611b8c9260206040909202019081019150614d78565b8351805183908110611ba057611ba0615617565b60209081029190910101516001600160a01b039091169052611bc56040890189615787565b82818110611bd557611bd5615617565b9050602002013583600001518281518110611bf257611bf2615617565b6020908102919091018101510152611c0d6040890189615787565b82818110611c1d57611c1d615617565b9050602002013584608001518281518110611c3a57611c3a615617565b60200260200101818151611c4e91906157d1565b905250611c5b898061573d565b82818110611c6b57611c6b615617565b611c819260206040909202019081019150614d78565b8451805183908110611c9557611c95615617565b6001600160a01b0390921660209283029190910190910152611cba6040890189615787565b82818110611cca57611cca615617565b9050602002013584604001518281518110611ce757611ce7615617565b6020908102919091010152611cff6060890189615787565b82818110611d0f57611d0f615617565b9050602002016020810190611d249190614d78565b828281518110611d3657611d36615617565b60209081029190910101516001600160a01b039091169052611d5b6040890189615787565b82818110611d6b57611d6b615617565b90506020020135828281518110611d8457611d84615617565b602090810291909101810151015280611d9c81615646565b915050611b49565b50611db26020870187614d78565b6001600160a01b031663fe8ec1a78383611dd260808b0160608c01614d78565b886040518060e0016040528060ae8152602001615edc60ae9139604051806060016040528060338152602001615f8a603391396040518060600160405280602e8152602001615e0b602e9139604051602001611e309392919061589d565b60408051601f19818403018152919052611e4d60808e018e6156d5565b6040518863ffffffff1660e01b8152600401611e6f979695949392919061595c565b600060405180830381600087803b158015611e8957600080fd5b505af1158015611e9d573d6000803e3d6000fd5b50505050611eac8888856133d6565b505050509392505050565b6000611ec284613c1c565b611ecb84610dcf565b90506000611edd82610fa186806156d5565b90506000611eed86858585613cc0565b9050611f1582611f036080870160608801614d78565b604087013561106b60208b018b614d78565b61118c8685858585613db2565b611f2a613aee565b6001600160a01b038116600081815260086020526040808220805460ff19169055517f3f27d27eeec2234d4d75f7629ee5638cbbf219d246f1077f57ebedaa9c7659259190a250565b604051806060016040528060338152602001615f8a603391398051906020012081565b6040518060e0016040528060ae8152602001615edc60ae9139604051806060016040528060338152602001615f8a603391396040516020016111d892919061565f565b6000611fe484613c1c565b6000611fef85610de8565b9050611ffa816128df565b915060006120198686856120146080890160608a01614d78565b613cc0565b90506120286020850185614d78565b6040805160a081019091526001600160a01b03919091169063137c29fe9080606081018061205960208d018d614d78565b6001600160a01b031681526020018a60400135815250815260200187602001358152602001876040013581525060405180604001604052808960600160208101906120a49190614d78565b6001600160a01b0316815260408a01356020909101526120ca6080890160608a01614d78565b866040518060e0016040528060a38152602001615e3960a39139604051806060016040528060338152602001615f8a603391396040518060600160405280602e8152602001615e0b602e913960405160200161212893929190615a2f565b60408051601f1981840301815291905261214560808c018c6156d5565b6040518863ffffffff1660e01b81526004016121679796959493929190615aa1565b600060405180830381600087803b15801561218157600080fd5b505af1158015612195573d6000803e3d6000fd5b5050505061118c8686858760600160208101906121b29190614d78565b85613db2565b6040518060e0016040528060a38152602001615e3960a39139604051806060016040528060338152602001615f8a603391396040518060600160405280602e8152602001615e0b602e913960405160200161199f93929190615a2f565b61221d613aee565b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040517f1535fa8f7275b71050af30bf7f74391b45be7ba2b545fd28279dafe9b50f642490600090a250565b336000818152600460209081526040808320868452825291829020805460ff1916851515908117909155915191825284917f146d83fd67d3b4dab3c8bbade3b7dcd73867dc6d376b219a75a3f578f61edc9d910160405180910390a35050565b6122dc613aee565b600380546001600160a01b03831673ffffffffffffffffffffffffffffffffffffffff19909116811790915561231a6002546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6005546000906001600160a01b0316331480159061237b57506002546001600160a01b03163314155b1561239b576040516351ee5ed560e01b8152336004820152602401610863565b6000885167ffffffffffffffff8111156123b7576123b76151f9565b6040519080825280602002602001820160405280156123e0578160200160208202803683370190505b5090506000895167ffffffffffffffff8111156123ff576123ff6151f9565b604051908082528060200260200182016040528015612428578160200160208202803683370190505b50905060005b8a518110156125ee578a818151811061244957612449615617565b60200260200101516000015182828151811061246757612467615617565b60200260200101906001600160a01b031690816001600160a01b0316815250508a818151811061249957612499615617565b6020026020010151602001516000146124cf578a81815181106124be576124be615617565b602002602001015160200151612555565b8181815181106124e1576124e1615617565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612531573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612555919061562d565b83828151811061256757612567615617565b6020026020010181815250506125dc8a828151811061258857612588615617565b60200260200101518483815181106125a2576125a2615617565b60200260200101518484815181106125bc576125bc615617565b60200260200101516001600160a01b03166128319092919063ffffffff16565b806125e681615646565b91505061242e565b5087516040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612637573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061265b919061562d565b6040517fcb70e2730000000000000000000000000000000000000000000000000000000081529091506001600160a01b0386169063cb70e273906126a9908a908a9088903390600401615b36565b600060405180830381600087803b1580156126c357600080fd5b505af11580156126d7573d6000803e3d6000fd5b50508a516040516370a0823160e01b81523060048201528493506001600160a01b0390911691506370a0823190602401602060405180830381865afa158015612724573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612748919061562d565b6127529190615469565b9350886020015184101561279857885160208a01516040516303c4929f60e51b81526001600160a01b039092166004830152602482015260448101859052606401610863565b88516127ae906001600160a01b03168986612831565b7f23ce0616b5c94f004b302769b5b4391f577e2120c6215edc21e3eca037dc50443383858d8d600001518e602001518e8b6040516127f3989796959493929190615bb0565b60405180910390a1505050979650505050505050565b600080600061281a8787878761419f565b9150915061282781614263565b5095945050505050565b6040516001600160a01b0383166024820152604481018290526128da9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526143c8565b505050565b6000610de26128ec6144b0565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b3360009081526008602052604090205460ff16612959576040516351ee5ed560e01b8152336004820152602401610863565b428160400135101561298a5760408051634b2d84db60e01b8152908201356004820152426024820152604401610863565b60005b612997828061573d565b9050811015612ac65760005b6129b0602084018461573d565b9050811015612ab3576129c6602084018461573d565b828181106129d6576129d6615617565b6129ec9260206040909202019081019150614d78565b6001600160a01b03166129ff848061573d565b84818110612a0f57612a0f615617565b612a259260206040909202019081019150614d78565b6001600160a01b031603612aa157612a3d838061573d565b83818110612a4d57612a4d615617565b612a639260206040909202019081019150614d78565b6040517f906c72630000000000000000000000000000000000000000000000000000000081526001600160a01b039091166004820152602401610863565b80612aab81615646565b9150506129a3565b5080612abe81615646565b91505061298d565b5050565b600080826002811115612adf57612adf615c23565b03612b245761193b8585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506145e092505050565b6001826002811115612b3857612b38615c23565b03612ba15750823560601c366000612b53856014818961547c565b91509150612b638388848461181e565b61193457868383836040517f3ced885a0000000000000000000000000000000000000000000000000000000081526004016108639493929190615c39565b60148314612be5576040517f081983230000000000000000000000000000000000000000000000000000000081526014600482015260248101849052604401610863565b50823560601c600081815260046020908152604080832088845290915290205460ff16611816576040517f5f4cb138000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b0382166024820152604401610863565b612cb9604051806101600160405280606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200160006001600160a01b0316815260200160008019168152602001600081525090565b60408051610160810190915280612cd0878061573d565b905067ffffffffffffffff811115612cea57612cea6151f9565b604051908082528060200260200182016040528015612d13578160200160208202803683370190505b508152602001868060200190612d29919061573d565b905067ffffffffffffffff811115612d4357612d436151f9565b604051908082528060200260200182016040528015612d6c578160200160208202803683370190505b508152602001612d7c878061573d565b905067ffffffffffffffff811115612d9657612d966151f9565b604051908082528060200260200182016040528015612dbf578160200160208202803683370190505b508152602001868060200190612dd5919061573d565b905067ffffffffffffffff811115612def57612def6151f9565b604051908082528060200260200182016040528015612e18578160200160208202803683370190505b508152602001612e28878061573d565b905067ffffffffffffffff811115612e4257612e426151f9565b604051908082528060200260200182016040528015612e6b578160200160208202803683370190505b508152602001868060200190612e81919061573d565b905067ffffffffffffffff811115612e9b57612e9b6151f9565b604051908082528060200260200182016040528015612ec4578160200160208202803683370190505b508152602001868060200190612eda919061573d565b905067ffffffffffffffff811115612ef457612ef46151f9565b604051908082528060200260200182016040528015612f1d578160200160208202803683370190505b508152602001868060200190612f33919061573d565b905067ffffffffffffffff811115612f4d57612f4d6151f9565b604051908082528060200260200182016040528015612f76578160200160208202803683370190505b5081526001600160a01b038416602080830182905260408084018890526000606090940184905291835260078152818320878452815291819020805482518185028101850190935280835293945090929091830182828015612ff757602002820191906000526020600020905b815481526020019060010190808311612fe3575b50505050608083018290525051158015906130315750600019816080015160008151811061302757613027615617565b6020026020010151145b1561305257604051635152abf960e01b815260048101849052602401610863565b8060800151516000036130b357613069858061573d565b905067ffffffffffffffff811115613083576130836151f9565b6040519080825280602002602001820160405280156130ac578160200160208202803683370190505b5060808201525b6130c4610100860160e087016156b8565b156132c15760005b8160800151518110156132bb576130e3868061573d565b828181106130f3576130f3615617565b9050604002016020013585806040019061310d9190615787565b8381811061311d5761311d615617565b905060200201358360800151838151811061313a5761313a615617565b602002602001015161314c91906157d1565b11156132265761315c868061573d565b8281811061316c5761316c615617565b6131829260206040909202019081019150614d78565b61318c878061573d565b8381811061319c5761319c615617565b90506040020160200135836080015183815181106131bc576131bc615617565b60200260200101518780604001906131d49190615787565b858181106131e4576131e4615617565b604051635e6e2c1560e01b81526001600160a01b0390961660048701526024860194909452506044840191909152602090910201356064820152608401610863565b6000613232878061573d565b8381811061324257613242615617565b9050604002016020013586806040019061325c9190615787565b8481811061326c5761326c615617565b90506020020135670de0b6b3a76400006132869190615c6c565b6132909190615c83565b90508261014001518111156132a85761014083018190525b50806132b381615646565b9150506130cc565b50611816565b670de0b6b3a764000061014082015260005b816080015151811015613376576000826080015182815181106132f8576132f8615617565b602002602001015111806133555750613311868061573d565b8281811061332157613321615617565b9050604002016020013585806040019061333b9190615787565b8381811061334b5761334b615617565b9050602002013514155b156133645761315c868061573d565b8061336e81615646565b9150506132d3565b50949350505050565b6040516001600160a01b03808516602483015283166044820152606481018290526133d09085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401612876565b50505050565b60808101516101008201516001600160a01b0316600090815260076020908152604080832061012086015184528252909120825161341993919290910190614b10565b5060005b61342a602085018561573d565b905081101561354c57613440602085018561573d565b8281811061345057613450615617565b6134669260206040909202019081019150614d78565b8260200151828151811061347c5761347c615617565b6001600160a01b0390921660209283029190910182015261349f9085018561573d565b828181106134af576134af615617565b90506040020160200135826060015182815181106134cf576134cf615617565b6020026020010181815250506135198480602001906134ee919061573d565b838181106134fe576134fe615617565b6135149260206040909202019081019150614d78565b614604565b8260e00151828151811061352f5761352f615617565b60209081029190910101528061354481615646565b91505061341d565b5061355d6040830160208401614d78565b6001600160a01b031663cb70e27361357584806156d5565b6135826040870187615787565b336040518663ffffffff1660e01b81526004016135a3959493929190615cf0565b600060405180830381600087803b1580156135bd57600080fd5b505af11580156135d1573d6000803e3d6000fd5b50600092506135e6915050602085018561573d565b905067ffffffffffffffff811115613600576136006151f9565b604051908082528060200260200182016040528015613629578160200160208202803683370190505b50905060005b61363c602086018661573d565b90508110156136bf578260e00151818151811061365b5761365b615617565b6020026020010151613686868060200190613676919061573d565b848181106134fe576134fe615617565b6136909190615469565b8282815181106136a2576136a2615617565b6020908102919091010152806136b781615646565b91505061362f565b5060005b6136d0602086018661573d565b9050811015613a345760006136eb60c0870160a0880161568e565b67ffffffffffffffff1611156137925761377382828151811061371057613710615617565b6020026020010151868060200190613728919061573d565b8481811061373857613738615617565b61374e9260206040909202019081019150614d78565b61375e60c0890160a08a0161568e565b61376e60e08a0160c08b01614d78565b614688565b82828151811061378557613785615617565b6020026020010181815250505b6000670de0b6b3a76400006137aa602088018861573d565b848181106137ba576137ba615617565b905060400201602001358561014001516137d49190615c6c565b6137de9190615c83565b9050808383815181106137f3576137f3615617565b602002602001015110156138845761380e602087018761573d565b8381811061381e5761381e615617565b6138349260206040909202019081019150614d78565b8184848151811061384757613847615617565b60209081029190910101516040516303c4929f60e51b81526001600160a01b03909316600484015260248301919091526044820152606401610863565b808460a00151838151811061389b5761389b615617565b602002602001018181525050808383815181106138ba576138ba615617565b60200260200101516138cc9190615469565b8460c0015183815181106138e2576138e2615617565b60209081029190910101526138fa6080860186615787565b8381811061390a5761390a615617565b905060200201358460c00151838151811061392757613927615617565b602002602001015110156139df57613942602087018761573d565b8381811061395257613952615617565b6139689260206040909202019081019150614d78565b6139756080870187615787565b8481811061398557613985615617565b905060200201358560c0015184815181106139a2576139a2615617565b6020908102919091010151604051636ae033dd60e01b81526001600160a01b03909316600484015260248301919091526044820152606401610863565b613a216139ef602088018861573d565b848181106139ff576139ff615617565b613a159260206040909202019081019150614d78565b856101000151836147a5565b5080613a2c81615646565b9150506136c3565b50508061010001516001600160a01b03168161012001517ff5e409954221206be4ce7ee40131667bfd0c4b76ba19cfd716dce50bc506cf4283600001518460200151868060400190613a869190615787565b8760a001518860c001518b6080016020810190613aa3919061568e565b613ab360c08e0160a08f0161568e565b8d60c0016020810190613ac69190614d78565b8d60a00135604051613ae19a99989796959493929190615d33565b60405180910390a3505050565b6002546001600160a01b03163314613b485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610863565b565b6003805473ffffffffffffffffffffffffffffffffffffffff191690556116ec8161484d565b606060ff8314613b8a57613b83836148ac565b9050610de2565b818054613b9690615dd6565b80601f0160208091040260200160405190810160405280929190818152602001828054613bc290615dd6565b8015613c0f5780601f10613be457610100808354040283529160200191613c0f565b820191906000526020600020905b815481529060010190602001808311613bf257829003601f168201915b5050505050905092915050565b3360009081526008602052604090205460ff16613c4e576040516351ee5ed560e01b8152336004820152602401610863565b4281608001351015613c7f57604051634b2d84db60e01b815260808201356004820152426024820152604401610863565b613c8f6060820160408301614d78565b6001600160a01b0316613ca56020830183614d78565b6001600160a01b0316036116ec57612a636020820182614d78565b6001600160a01b038116600090815260066020908152604080832085845290915290205460018101613d0857604051635152abf960e01b815260048101849052602401610863565b613d1a610140860161012087016156b8565b15613d89576020850135613d326040860135836157d1565b1115613d8457613d456020860186614d78565b60408051635e6e2c1560e01b81526001600160a01b03909216600483015260208701356024830152604482018390528501356064820152608401610863565b611816565b6000811180613da057506040840135602086013514155b1561181657613d456020860186614d78565b613dc06040850135826157d1565b6001600160a01b03831660009081526006602090815260408083208784528252808320849055805160808101825283815291820183905281018290526060810191909152909150613e1a6135146060880160408901614d78565b815260408051600180825281830190925260009160208083019080368337019050509050856040013581600081518110613e5657613e56615617565b602002602001018181525050856020016020810190613e759190614d78565b6001600160a01b031663cb70e273613e8d88806156d5565b84336040518563ffffffff1660e01b8152600401613eae9493929190615b36565b600060405180830381600087803b158015613ec857600080fd5b505af1158015613edc573d6000803e3d6000fd5b505083519250613ef9915061351490506060890160408a01614d78565b613f039190615469565b602080830191909152670de0b6b3a7640000908701356040870135613f2c60608a013584615c6c565b613f369190615c6c565b613f409190615c83565b613f4a9190615c83565b60608201526000613f62610100880160e0890161568e565b67ffffffffffffffff161115613fb4576020810151613fae90613f8b6060890160408a01614d78565b613f9c6101008a0160e08b0161568e565b61376e6101208b016101008c01614d78565b60208201525b80606001518160200151101561401057613fd46060870160408801614d78565b606082015160208301516040516303c4929f60e51b81526001600160a01b03909316600484015260248301919091526044820152606401610863565b806060015181602001516140249190615469565b604082018190526080860135111561407f576140466060870160408801614d78565b6040808301519051636ae033dd60e01b81526001600160a01b039092166004830152608087013560248301526044820152606401610863565b61409d6140926060880160408901614d78565b8483606001516147a5565b6001600160a01b038316847f4c192cf19bc8fb5c8c501a88db334890b2d67f4973511ed49a1fc65adde85f846140d660208a018a614d78565b6140e660608b0160408c01614d78565b8960400135866060015187604001518d60c0016020810190614108919061568e565b8e60e001602081019061411b919061568e565b8f61010001602081019061412f9190614d78565b604080516001600160a01b03998a16815297891660208901528701959095526060860193909352608085019190915267ffffffffffffffff90811660a085810191909152911660c0840152921660e0820152908901356101008201526101200160405180910390a3505050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156141d6575060009050600361425a565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561422a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166142535760006001925092505061425a565b9150600090505b94509492505050565b600081600481111561427757614277615c23565b0361427f5750565b600181600481111561429357614293615c23565b036142e05760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610863565b60028160048111156142f4576142f4615c23565b036143415760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610863565b600381600481111561435557614355615c23565b036116ec5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610863565b600061441d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166148eb9092919063ffffffff16565b905080516000148061443e57508080602001905181019061443e9190615880565b6128da5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610863565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561450957507f000000000000000000000000000000000000000000000000000000000000000046145b1561453357507f000000000000000000000000000000000000000000000000000000000000000090565b6145db604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b905090565b60008060006145ef85856148fa565b915091506145fc81614263565b509392505050565b60006001600160a01b03821661461b575047919050565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa15801561465f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de2919061562d565b919050565b60006001600160a01b0382166146bc57604051634726455360e11b81526001600160a01b0383166004820152602401610863565b6146cf6032670de0b6b3a7640000615c83565b8367ffffffffffffffff16111561471e576040517fc965cdf500000000000000000000000000000000000000000000000000000000815267ffffffffffffffff84166004820152602401610863565b6001600160a01b0382163014614774576147748483614746670de0b6b3a7640000600a615c6c565b61475a67ffffffffffffffff88168a615c6c565b614765906008615c6c565b61476f9190615c83565b6147a5565b670de0b6b3a764000061479167ffffffffffffffff851682615469565b61479b9087615c6c565b6118139190615c83565b6001600160a01b038316614839576000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114614800576040519150601f19603f3d011682016040523d82523d6000602084013e614805565b606091505b50509050806133d057604051630e21dcbb60e11b81526001600160a01b038416600482015260248101839052604401610863565b6128da6001600160a01b0384168383612831565b600280546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606060006148b98361493f565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b60606118168484600085614980565b60008082516041036149305760208301516040840151606085015160001a6149248782858561419f565b94509450505050614938565b506000905060025b9250929050565b600060ff8216601f811115610de2576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6060824710156149f85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610863565b600080866001600160a01b03168587604051614a1491906155a0565b60006040518083038185875af1925050503d8060008114614a51576040519150601f19603f3d011682016040523d82523d6000602084013e614a56565b606091505b5091509150614a6787838387614a72565b979650505050505050565b60608315614ae1578251600003614ada576001600160a01b0385163b614ada5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610863565b5081611816565b6118168383815115614af65781518083602001fd5b8060405162461bcd60e51b81526004016108639190614f0e565b828054828255906000526020600020908101928215614b4b579160200282015b82811115614b4b578251825591602001919060010190614b30565b50614b57929150614b5b565b5090565b5b80821115614b575760008155600101614b5c565b6001600160a01b03811681146116ec57600080fd5b803561468381614b70565b60008083601f840112614ba257600080fd5b50813567ffffffffffffffff811115614bba57600080fd5b60208301915083602082850101111561493857600080fd5b80151581146116ec57600080fd5b600080600080600060808688031215614bf857600080fd5b8535614c0381614b70565b945060208601359350604086013567ffffffffffffffff811115614c2657600080fd5b614c3288828901614b90565b9094509250506060860135614c4681614bd2565b809150509295509295909350565b60008083601f840112614c6657600080fd5b50813567ffffffffffffffff811115614c7e57600080fd5b6020830191508360208260051b850101111561493857600080fd5b600080600080600060608688031215614cb157600080fd5b853567ffffffffffffffff80821115614cc957600080fd5b614cd589838a01614c54565b90975095506020880135915080821115614cee57600080fd5b50614cfb88828901614c54565b9094509250506040860135614c4681614b70565b60008060408385031215614d2257600080fd5b8235614d2d81614b70565b946020939093013593505050565b60006101408284031215614d4e57600080fd5b50919050565b60006101408284031215614d6757600080fd5b614d718383614d3b565b9392505050565b600060208284031215614d8a57600080fd5b8135614d7181614b70565b600060208284031215614da757600080fd5b5035919050565b60006101008284031215614d4e57600080fd5b600060408284031215614d4e57600080fd5b600060c08284031215614d4e57600080fd5b600080600060608486031215614dfa57600080fd5b833567ffffffffffffffff80821115614e1257600080fd5b614e1e87838801614dae565b94506020860135915080821115614e3457600080fd5b614e4087838801614dc1565b93506040860135915080821115614e5657600080fd5b50614e6386828701614dd3565b9150509250925092565b600080600060608486031215614e8257600080fd5b8335614e8d81614b70565b95602085013595506040909401359392505050565b600060408284031215614eb457600080fd5b614d718383614dc1565b60005b83811015614ed9578181015183820152602001614ec1565b50506000910152565b60008151808452614efa816020860160208601614ebe565b601f01601f19169290920160200192915050565b602081526000614d716020830184614ee2565b600060208284031215614f3357600080fd5b813567ffffffffffffffff811115614f4a57600080fd5b61181684828501614dae565b600081518084526020808501945080840160005b83811015614f8657815187529582019590820190600101614f6a565b509495945050505050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201526000614fcc60e0830189614ee2565b8281036040840152614fde8189614ee2565b90508660608401526001600160a01b03861660808401528460a084015282810360c084015261500d8185614f56565b9a9950505050505050505050565b6000806000806060858703121561503157600080fd5b843561503c81614b70565b935060208501359250604085013567ffffffffffffffff81111561505f57600080fd5b61506b87828801614b90565b95989497509550505050565b600060a08284031215614d4e57600080fd5b60008060006060848603121561509e57600080fd5b833567ffffffffffffffff808211156150b657600080fd5b6150c287838801614dae565b945060208601359150808211156150d857600080fd5b6150e487838801614dd3565b935060408601359150808211156150fa57600080fd5b50614e6386828701615077565b6000806000610180848603121561511d57600080fd5b6151278585614d3b565b925061014084013567ffffffffffffffff8082111561514557600080fd5b61515187838801614dc1565b9350610160860135915080821115614e5657600080fd5b6000806000610180848603121561517e57600080fd5b6151888585614d3b565b925061014084013567ffffffffffffffff808211156151a657600080fd5b6151b287838801614dd3565b93506101608601359150808211156150fa57600080fd5b600080604083850312156151dc57600080fd5b8235915060208301356151ee81614bd2565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715615238576152386151f9565b604052919050565b600067ffffffffffffffff82111561525a5761525a6151f9565b5060051b60200190565b60006040828403121561527657600080fd5b6040516040810181811067ffffffffffffffff82111715615299576152996151f9565b60405290508082356152aa81614b70565b8152602092830135920191909152919050565b600082601f8301126152ce57600080fd5b813560206152e36152de83615240565b61520f565b82815260059290921b8401810191818101908684111561530257600080fd5b8286015b8481101561532657803561531981614b70565b8352918301918301615306565b509695505050505050565b600080600080600080600060e0888a03121561534c57600080fd5b873567ffffffffffffffff8082111561536457600080fd5b818a0191508a601f83011261537857600080fd5b813560206153886152de83615240565b82815260069290921b8401810191818101908e8411156153a757600080fd5b948201945b838610156153d0576153be8f87615264565b825282820191506040860195506153ac565b9b50508b0135925050808211156153e657600080fd5b6153f28b838c016152bd565b97506154018b60408c01615264565b965061540f60808b01614b85565b955060a08a013591508082111561542557600080fd5b506154328a828b01614b90565b9094509250615445905060c08901614b85565b905092959891949750929550565b634e487b7160e01b600052601160045260246000fd5b81810381811115610de257610de2615453565b6000808585111561548c57600080fd5b8386111561549957600080fd5b5050820193919092039150565b80356020831015610de257600019602084900360031b1b1692915050565b600082601f8301126154d557600080fd5b813567ffffffffffffffff8111156154ef576154ef6151f9565b615502601f8201601f191660200161520f565b81815284602083860101111561551757600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561554957600080fd5b833561555481614b70565b9250602084013567ffffffffffffffff8082111561557157600080fd5b61557d878388016154c4565b9350604086013591508082111561559357600080fd5b50614e63868287016154c4565b600082516155b2818460208701614ebe565b9190910192915050565b8281526040602082015260006118166040830184614ee2565b6000602082840312156155e757600080fd5b81517fffffffff0000000000000000000000000000000000000000000000000000000081168114614d7157600080fd5b634e487b7160e01b600052603260045260246000fd5b60006020828403121561563f57600080fd5b5051919050565b60006001820161565857615658615453565b5060010190565b60008351615671818460208801614ebe565b835190830190615685818360208801614ebe565b01949350505050565b6000602082840312156156a057600080fd5b813567ffffffffffffffff81168114614d7157600080fd5b6000602082840312156156ca57600080fd5b8135614d7181614bd2565b6000808335601e198436030181126156ec57600080fd5b83018035915067ffffffffffffffff82111561570757600080fd5b60200191503681900382131561493857600080fd5b60006020828403121561572e57600080fd5b813560038110614d7157600080fd5b6000808335601e1984360301811261575457600080fd5b83018035915067ffffffffffffffff82111561576f57600080fd5b6020019150600681901b360382131561493857600080fd5b6000808335601e1984360301811261579e57600080fd5b83018035915067ffffffffffffffff8211156157b957600080fd5b6020019150600581901b360382131561493857600080fd5b80820180821115610de257610de2615453565b815160009082906020808601845b8381101561580e578151855293820193908201906001016157f2565b50929695505050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038616815284602082015260806040820152600061586c60808301858761581a565b905082151560608301529695505050505050565b60006020828403121561589257600080fd5b8151614d7181614bd2565b7f4d756c74694c696d69744f72646572207769746e6573732900000000000000008152600084516158d5816018850160208901614ebe565b8451908301906158ec816018840160208901614ebe565b8451910190615902816018840160208801614ebe565b0160180195945050505050565b600081518084526020808501945080840160005b83811015614f865761594987835180516001600160a01b03168252602090810151910152565b6040969096019590820190600101615923565b60c08152600061012082018951606060c08501528181518084526101408601915060209350838301925060005b818110156159c2576159af83855180516001600160a01b03168252602090810151910152565b9284019260409290920191600101615989565b5050828c015160e086015260408c0151610100860152848103838601526159e9818c61590f565b92505050615a0260408401896001600160a01b03169052565b8660608401528281036080840152615a1a8187614ee2565b905082810360a084015261500d81858761581a565b7f4c696d69744f72646572207769746e6573732900000000000000000000000000815260008451615a67816013850160208901614ebe565b845190830190615a7e816013840160208901614ebe565b8451910190615a94816013840160208801614ebe565b0160130195945050505050565b6000610140615ac4838b5180516001600160a01b03168252602090810151910152565b60208a0151604084015260408a01516060840152615af8608084018a80516001600160a01b03168252602090810151910152565b6001600160a01b03881660c08401528660e084015280610100840152615b2081840187614ee2565b905082810361012084015261500d81858761581a565b606081526000615b4a60608301868861581a565b8281036020840152615b5c8186614f56565b9150506001600160a01b038316604083015295945050505050565b600081518084526020808501945080840160005b83811015614f865781516001600160a01b031687529582019590820190600101615b8b565b60006101006001600160a01b03808c168452816020850152615bd48285018c615b77565b91508382036040850152615be8828b614f56565b91508382036060850152615bfc828a615b77565b978116608085015260a084019690965250509190921660c082015260e00152949350505050565b634e487b7160e01b600052602160045260246000fd5b8481526001600160a01b0384166020820152606060408201526000615c6260608301848661581a565b9695505050505050565b8082028115828204841417610de257610de2615453565b600082615ca057634e487b7160e01b600052601260045260246000fd5b500490565b81835260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115615cd757600080fd5b8260051b80836020870137939093016020019392505050565b606081526000615d0460608301878961581a565b8281036020840152615d17818688615ca5565b9150506001600160a01b03831660408301529695505050505050565b6000610120808352615d478184018e615b77565b90508281036020840152615d5b818d615b77565b90508281036040840152615d70818b8d615ca5565b90508281036060840152615d84818a614f56565b90508281036080840152615d988189614f56565b67ffffffffffffffff97881660a08501529590961660c0830152506001600160a01b039290921660e083015261010090910152979650505050505050565b600181811c90821680615dea57607f821691505b602082108103614d4e57634e487b7160e01b600052602260045260246000fdfe546f6b656e5065726d697373696f6e73286164647265737320746f6b656e2c75696e7432353620616d6f756e74294c696d69744f7264657228546f6b656e496e666f20696e7075742c546f6b656e496e666f206f75747075742c75696e74323536206578706972792c75696e743235362073616c742c75696e74363420726566657272616c436f64652c75696e74363420726566657272616c4665652c6164647265737320726566657272616c466565526563697069656e742c626f6f6c207061727469616c6c7946696c6c61626c65294d756c74694c696d69744f7264657228546f6b656e496e666f5b5d20696e707574732c546f6b656e496e666f5b5d206f7574707574732c75696e74323536206578706972792c75696e743235362073616c742c75696e74363420726566657272616c436f64652c75696e74363420726566657272616c4665652c6164647265737320726566657272616c466565526563697069656e742c626f6f6c207061727469616c6c7946696c6c61626c6529546f6b656e496e666f286164647265737320746f6b656e416464726573732c75696e7432353620746f6b656e416d6f756e7429a2646970667358221220775688bb8248c18a0314f2882b42d9bc1113cd4bb8bc9df233e6aab0a41ecfe664736f6c63430008130033
Deployed Bytecode
0x6080604052600436106102535760003560e01c80638da5cb5b11610138578063ce64c997116100b0578063e30c39781161007f578063eb8fb26811610064578063eb8fb268146106c3578063f2fde38b146106e3578063ff247a8e1461070357600080fd5b8063e30c397814610685578063e5dae17d146106a357600080fd5b8063ce64c99714610626578063d678b6fc1461063b578063df9bc68714610650578063e225651a1461067057600080fd5b8063b5967d0111610107578063c5eeda3f116100ec578063c5eeda3f146105c6578063c7cb6382146105e6578063ce0f52d51461060657600080fd5b8063b5967d0114610591578063bba06de4146105a657600080fd5b80638da5cb5b146104fb5780638f0684301461051957806398ef1ed814610539578063aca766aa1461055957600080fd5b8063559475e5116101cb5780637550b0151161019a57806379ba50971161017f57806379ba50971461049e57806384b0196e146104b3578063891b1bad146104db57600080fd5b80637550b0151461044657806375c111f21461046657600080fd5b8063559475e5146103c457806364673295146103e4578063712c512214610404578063715018a61461043157600080fd5b80633a965edb116102225780634584eff6116102075780634584eff61461036f57806348a14ed61461038f57806354dd5f74146103af57600080fd5b80633a965edb1461031f5780633e0cf5431461033f57600080fd5b806316d434011461025f578063174da621146102945780631d971a4a146102b6578063258ff156146102f157600080fd5b3661025a57005b600080fd5b34801561026b57600080fd5b5061027f61027a366004614be0565b610723565b60405190151581526020015b60405180910390f35b3480156102a057600080fd5b506102b46102af366004614c99565b610af9565b005b3480156102c257600080fd5b5061027f6102d1366004614d0f565b600460209081526000928352604080842090915290825290205460ff1681565b3480156102fd57600080fd5b5061031161030c366004614d54565b610dcf565b60405190815260200161028b565b34801561032b57600080fd5b5061031161033a366004614d54565b610de8565b34801561034b57600080fd5b5061027f61035a366004614d78565b60086020526000908152604090205460ff1681565b34801561037b57600080fd5b506102b461038a366004614d95565b610f32565b34801561039b57600080fd5b506103116103aa366004614de5565b610f7b565b3480156103bb57600080fd5b50610311611195565b3480156103d057600080fd5b506103116103df366004614e6d565b6111f1565b3480156103f057600080fd5b506102b46103ff366004614d95565b61122f565b34801561041057600080fd5b5061042461041f366004614ea2565b6112cc565b60405161028b9190614f0e565b34801561043d57600080fd5b506102b461133a565b34801561045257600080fd5b50610311610461366004614f21565b611374565b34801561047257600080fd5b50600554610486906001600160a01b031681565b6040516001600160a01b03909116815260200161028b565b3480156104aa57600080fd5b506102b4611661565b3480156104bf57600080fd5b506104c86116ef565b60405161028b9796959493929190614f91565b3480156104e757600080fd5b506103116104f6366004614f21565b611793565b34801561050757600080fd5b506002546001600160a01b0316610486565b34801561052557600080fd5b5061027f61053436600461501b565b6117a1565b34801561054557600080fd5b5061027f61055436600461501b565b61181e565b34801561056557600080fd5b50610311610574366004614d0f565b600660209081526000928352604080842090915290825290205481565b34801561059d57600080fd5b50610424611942565b3480156105b257600080fd5b506102b46105c1366004614d78565b6119b1565b3480156105d257600080fd5b506103116105e1366004615089565b611a05565b3480156105f257600080fd5b50610311610601366004615107565b611eb7565b34801561061257600080fd5b506102b4610621366004614d78565b611f22565b34801561063257600080fd5b50610311611f73565b34801561064757600080fd5b50610311611f96565b34801561065c57600080fd5b5061031161066b366004615168565b611fd9565b34801561067c57600080fd5b506104246121b8565b34801561069157600080fd5b506003546001600160a01b0316610486565b3480156106af57600080fd5b506102b46106be366004614d78565b612215565b3480156106cf57600080fd5b506102b46106de3660046151c9565b612274565b3480156106ef57600080fd5b506102b46106fe366004614d78565b6122d4565b34801561070f57600080fd5b5061031161071e366004615331565b612352565b60006001600160a01b0386163b6060826020861080159061078457507f6492649264926492649264926492649264926492649264926492649264926492878761076d602082615469565b610779928a929061547c565b610782916154a6565b145b90508015610876576000606088828961079e602082615469565b926107ab9392919061547c565b8101906107b89190615534565b95509092509050600085900361086f57600080836001600160a01b0316836040516107e391906155a0565b6000604051808303816000865af19150503d8060008114610820576040519150601f19603f3d011682016040523d82523d6000602084013e610825565b606091505b50915091508161086c57806040517f9d0d6e2d0000000000000000000000000000000000000000000000000000000081526004016108639190614f0e565b60405180910390fd5b50505b50506108b0565b86868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509294505050505b80806108bc5750600083115b156109ec57604051630b135d3f60e11b81526001600160a01b038a1690631626ba7e906108ef908b9086906004016155bc565b602060405180830381865afa925050508015610928575060408051601f3d908101601f19168201909252610925918101906155d5565b60015b610990573d808015610956576040519150601f19603f3d011682016040523d82523d6000602084013e61095b565b606091505b50806040517f6f2a95990000000000000000000000000000000000000000000000000000000081526004016108639190614f0e565b7fffffffff000000000000000000000000000000000000000000000000000000008116630b135d3f60e11b14841580156109c75750825b80156109d1575086155b156109e057806000526001601ffd5b9450610af09350505050565b60418614610a26576040517f4be6321b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610a35602082898b61547c565b610a3e916154a6565b90506000610a50604060208a8c61547c565b610a59916154a6565b9050600089896040818110610a7057610a70615617565b919091013560f81c915050601b8114801590610a9057508060ff16601c14155b15610ac7576040517f449f5db100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8b6001600160a01b0316610add8c838686612809565b6001600160a01b03161496505050505050505b95945050505050565b6005546001600160a01b03163314801590610b1f57506002546001600160a01b03163314155b15610b3f576040516351ee5ed560e01b8152336004820152602401610863565b6001600160a01b038116610b7157604051634726455360e11b81526001600160a01b0382166004820152602401610863565b838214610baa576040517f5f6f132c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b84811015610dc7576000868683818110610bc957610bc9615617565b9050602002016020810190610bde9190614d78565b6001600160a01b031603610cab576000826001600160a01b0316858584818110610c0a57610c0a615617565b9050602002013560405160006040518083038185875af1925050503d8060008114610c51576040519150601f19603f3d011682016040523d82523d6000602084013e610c56565b606091505b5050905080610ca55782858584818110610c7257610c72615617565b604051630e21dcbb60e11b81526001600160a01b0390941660048501526020029190910135602483015250604401610863565b50610db5565b610db582858584818110610cc157610cc1615617565b90506020020135600014610ced57858584818110610ce157610ce1615617565b90506020020135610d7e565b878784818110610cff57610cff615617565b9050602002016020810190610d149190614d78565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015610d5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7e919061562d565b888885818110610d9057610d90615617565b9050602002016020810190610da59190614d78565b6001600160a01b03169190612831565b80610dbf81615646565b915050610bad565b505050505050565b6000610de2610ddd83610de8565b6128df565b92915050565b60006040518060e0016040528060a38152602001615e3960a39139604051806060016040528060338152602001615f8a60339139604051602001610e2d92919061565f565b60405160208183030381529060405280519060200120610e4f836000016112cc565b80519060200120610e62846040016112cc565b8051602090910120608085013560a0860135610e8460e0880160c0890161568e565b610e95610100890160e08a0161568e565b610ea76101208a016101008b01614d78565b610eb96101408b016101208c016156b8565b60408051602081019a909a528901979097526060880195909552608087019390935260a086019190915267ffffffffffffffff90811660c08601521660e08401526001600160a01b0316610100830152151561012082015261014001604051602081830303815290604052805190602001209050919050565b33600081815260066020908152604080832085845290915280822060001990555183917f9589246bd420836dc7c4f266f2553bca3d6fee904eb0aad0a436ba3fba8fe3f991a350565b6000610f8684612927565b610f8f84611793565b90506000610fb682610fa186806156d5565b610fb16040890160208a0161571c565b612aca565b90506000610fc686858585612c50565b905060005b610fd5878061573d565b90508110156111805761107c83610fef6060880188615787565b84818110610fff57610fff615617565b90506020020160208101906110149190614d78565b6110216040890189615787565b8581811061103157611031615617565b602002919091013590506110458b8061573d565b8681811061105557611055615617565b61106b9260206040909202019081019150614d78565b6001600160a01b031692919061337f565b6110896040860186615787565b8281811061109957611099615617565b90506020020135826080015182815181106110b6576110b6615617565b602002602001018181516110ca91906157d1565b9052506110d7878061573d565b828181106110e7576110e7615617565b6110fd9260206040909202019081019150614d78565b825180518390811061111157611111615617565b6001600160a01b0390921660209283029190910190910152611133878061573d565b8281811061114357611143615617565b905060400201602001358260400151828151811061116357611163615617565b60209081029190910101528061117881615646565b915050610fcb565b5061118c8685836133d6565b50509392505050565b6040518060e0016040528060a38152602001615e3960a39139604051806060016040528060338152602001615f8a603391396040516020016111d892919061565f565b6040516020818303038152906040528051906020012081565b6007602052826000526040600020602052816000526040600020818154811061121957600080fd5b9060005260206000200160009250925050505481565b604080516001808252818301909252600091602080830190803683370190505090506000198160008151811061126757611267615617565b60209081029190910181019190915233600090815260078252604080822085835283529020825161129a92840190614b10565b50604051339083907fa8c658e479c63c75980f19e6b202df4243db8c4a36973b4d162b6ffe6cf0d69190600090a35050565b6060604051806060016040528060338152602001615f8a603391398051602091820120906112fc90840184614d78565b604080516020818101949094526001600160a01b03909216908201529083013560608201526080016040516020818303038152906040529050919050565b611342613aee565b6040517f21afe9d300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611381838061573d565b905067ffffffffffffffff81111561139b5761139b6151f9565b6040519080825280602002602001820160405280156113c4578160200160208202803683370190505b50905060005b6113d4848061573d565b905081101561143b576114056113ea858061573d565b838181106113fa576113fa615617565b9050604002016112cc565b8051906020012082828151811061141e5761141e615617565b60209081029190910101528061143381615646565b9150506113ca565b50600061144b602085018561573d565b905067ffffffffffffffff811115611465576114656151f9565b60405190808252806020026020018201604052801561148e578160200160208202803683370190505b50905060005b6114a1602086018661573d565b90508110156114f0576114ba6113ea602087018761573d565b805190602001208282815181106114d3576114d3615617565b6020908102919091010152806114e881615646565b915050611494565b506040518060e0016040528060ae8152602001615edc60ae9139604051806060016040528060338152602001615f8a6033913960405160200161153492919061565f565b604051602081830303815290604052805190602001208260405160200161155b91906157e4565b604051602081830303815290604052805190602001208260405160200161158291906157e4565b60405160208183030381529060405280519060200120866040013587606001358860800160208101906115b5919061568e565b6115c560c08b0160a08c0161568e565b6115d560e08c0160c08d01614d78565b6115e66101008d0160e08e016156b8565b60408051602081019a909a528901979097526060880195909552608087019390935260a086019190915267ffffffffffffffff90811660c08601521660e08401526001600160a01b03166101008301521515610120820152610140016040516020818303038152906040528051906020012092505050919050565b60035433906001600160a01b031681146116e35760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e657200000000000000000000000000000000000000000000006064820152608401610863565b6116ec81613b4a565b50565b6000606080828080836117227f4f646f734c696d69744f72646572526f7574657200000000000000000000001483613b70565b61174d7f31000000000000000000000000000000000000000000000000000000000000016001613b70565b604080516000808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b6000610de2610ddd83611374565b6040516316d4340160e01b815260009030906316d43401906117d0908890889088908890600190600401615843565b6020604051808303816000875af11580156117ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118139190615880565b90505b949350505050565b6040516316d4340160e01b815260009030906316d434019061184c9088908890889088908890600401615843565b6020604051808303816000875af1925050508015611887575060408051601f3d908101601f1916820190925261188491810190615880565b60015b61193b573d8080156118b5576040519150601f19603f3d011682016040523d82523d6000602084013e6118ba565b606091505b508051600181900361192d57816000815181106118d9576118d9615617565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f0100000000000000000000000000000000000000000000000000000000000000149250611816915050565b8060208301fd5b5050611816565b9050611816565b6040518060e0016040528060ae8152602001615edc60ae9139604051806060016040528060338152602001615f8a603391396040518060600160405280602e8152602001615e0b602e913960405160200161199f9392919061589d565b60405160208183030381529060405281565b6119b9613aee565b6001600160a01b038116600081815260086020526040808220805460ff19166001179055517fa2dce8c36614bedf0a7ccdd7570cfe9a7f2b13a2d778512c4204fd2e90ba99479190a250565b6000611a1084612927565b6000611a1b85611374565b9050611a26816128df565b91506000611a45868685611a406080890160608a01614d78565b612c50565b604080516060810190915290915060009080611a61898061573d565b905067ffffffffffffffff811115611a7b57611a7b6151f9565b604051908082528060200260200182016040528015611ac057816020015b6040805180820190915260008082526020820152815260200190600190039081611a995790505b5081526020878101359082015260408088013591015290506000611ae4888061573d565b905067ffffffffffffffff811115611afe57611afe6151f9565b604051908082528060200260200182016040528015611b4357816020015b6040805180820190915260008082526020820152815260200190600190039081611b1c5790505b50905060005b611b53898061573d565b9050811015611da457611b66898061573d565b82818110611b7657611b76615617565b611b8c9260206040909202019081019150614d78565b8351805183908110611ba057611ba0615617565b60209081029190910101516001600160a01b039091169052611bc56040890189615787565b82818110611bd557611bd5615617565b9050602002013583600001518281518110611bf257611bf2615617565b6020908102919091018101510152611c0d6040890189615787565b82818110611c1d57611c1d615617565b9050602002013584608001518281518110611c3a57611c3a615617565b60200260200101818151611c4e91906157d1565b905250611c5b898061573d565b82818110611c6b57611c6b615617565b611c819260206040909202019081019150614d78565b8451805183908110611c9557611c95615617565b6001600160a01b0390921660209283029190910190910152611cba6040890189615787565b82818110611cca57611cca615617565b9050602002013584604001518281518110611ce757611ce7615617565b6020908102919091010152611cff6060890189615787565b82818110611d0f57611d0f615617565b9050602002016020810190611d249190614d78565b828281518110611d3657611d36615617565b60209081029190910101516001600160a01b039091169052611d5b6040890189615787565b82818110611d6b57611d6b615617565b90506020020135828281518110611d8457611d84615617565b602090810291909101810151015280611d9c81615646565b915050611b49565b50611db26020870187614d78565b6001600160a01b031663fe8ec1a78383611dd260808b0160608c01614d78565b886040518060e0016040528060ae8152602001615edc60ae9139604051806060016040528060338152602001615f8a603391396040518060600160405280602e8152602001615e0b602e9139604051602001611e309392919061589d565b60408051601f19818403018152919052611e4d60808e018e6156d5565b6040518863ffffffff1660e01b8152600401611e6f979695949392919061595c565b600060405180830381600087803b158015611e8957600080fd5b505af1158015611e9d573d6000803e3d6000fd5b50505050611eac8888856133d6565b505050509392505050565b6000611ec284613c1c565b611ecb84610dcf565b90506000611edd82610fa186806156d5565b90506000611eed86858585613cc0565b9050611f1582611f036080870160608801614d78565b604087013561106b60208b018b614d78565b61118c8685858585613db2565b611f2a613aee565b6001600160a01b038116600081815260086020526040808220805460ff19169055517f3f27d27eeec2234d4d75f7629ee5638cbbf219d246f1077f57ebedaa9c7659259190a250565b604051806060016040528060338152602001615f8a603391398051906020012081565b6040518060e0016040528060ae8152602001615edc60ae9139604051806060016040528060338152602001615f8a603391396040516020016111d892919061565f565b6000611fe484613c1c565b6000611fef85610de8565b9050611ffa816128df565b915060006120198686856120146080890160608a01614d78565b613cc0565b90506120286020850185614d78565b6040805160a081019091526001600160a01b03919091169063137c29fe9080606081018061205960208d018d614d78565b6001600160a01b031681526020018a60400135815250815260200187602001358152602001876040013581525060405180604001604052808960600160208101906120a49190614d78565b6001600160a01b0316815260408a01356020909101526120ca6080890160608a01614d78565b866040518060e0016040528060a38152602001615e3960a39139604051806060016040528060338152602001615f8a603391396040518060600160405280602e8152602001615e0b602e913960405160200161212893929190615a2f565b60408051601f1981840301815291905261214560808c018c6156d5565b6040518863ffffffff1660e01b81526004016121679796959493929190615aa1565b600060405180830381600087803b15801561218157600080fd5b505af1158015612195573d6000803e3d6000fd5b5050505061118c8686858760600160208101906121b29190614d78565b85613db2565b6040518060e0016040528060a38152602001615e3960a39139604051806060016040528060338152602001615f8a603391396040518060600160405280602e8152602001615e0b602e913960405160200161199f93929190615a2f565b61221d613aee565b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040517f1535fa8f7275b71050af30bf7f74391b45be7ba2b545fd28279dafe9b50f642490600090a250565b336000818152600460209081526040808320868452825291829020805460ff1916851515908117909155915191825284917f146d83fd67d3b4dab3c8bbade3b7dcd73867dc6d376b219a75a3f578f61edc9d910160405180910390a35050565b6122dc613aee565b600380546001600160a01b03831673ffffffffffffffffffffffffffffffffffffffff19909116811790915561231a6002546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6005546000906001600160a01b0316331480159061237b57506002546001600160a01b03163314155b1561239b576040516351ee5ed560e01b8152336004820152602401610863565b6000885167ffffffffffffffff8111156123b7576123b76151f9565b6040519080825280602002602001820160405280156123e0578160200160208202803683370190505b5090506000895167ffffffffffffffff8111156123ff576123ff6151f9565b604051908082528060200260200182016040528015612428578160200160208202803683370190505b50905060005b8a518110156125ee578a818151811061244957612449615617565b60200260200101516000015182828151811061246757612467615617565b60200260200101906001600160a01b031690816001600160a01b0316815250508a818151811061249957612499615617565b6020026020010151602001516000146124cf578a81815181106124be576124be615617565b602002602001015160200151612555565b8181815181106124e1576124e1615617565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612531573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612555919061562d565b83828151811061256757612567615617565b6020026020010181815250506125dc8a828151811061258857612588615617565b60200260200101518483815181106125a2576125a2615617565b60200260200101518484815181106125bc576125bc615617565b60200260200101516001600160a01b03166128319092919063ffffffff16565b806125e681615646565b91505061242e565b5087516040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612637573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061265b919061562d565b6040517fcb70e2730000000000000000000000000000000000000000000000000000000081529091506001600160a01b0386169063cb70e273906126a9908a908a9088903390600401615b36565b600060405180830381600087803b1580156126c357600080fd5b505af11580156126d7573d6000803e3d6000fd5b50508a516040516370a0823160e01b81523060048201528493506001600160a01b0390911691506370a0823190602401602060405180830381865afa158015612724573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612748919061562d565b6127529190615469565b9350886020015184101561279857885160208a01516040516303c4929f60e51b81526001600160a01b039092166004830152602482015260448101859052606401610863565b88516127ae906001600160a01b03168986612831565b7f23ce0616b5c94f004b302769b5b4391f577e2120c6215edc21e3eca037dc50443383858d8d600001518e602001518e8b6040516127f3989796959493929190615bb0565b60405180910390a1505050979650505050505050565b600080600061281a8787878761419f565b9150915061282781614263565b5095945050505050565b6040516001600160a01b0383166024820152604481018290526128da9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526143c8565b505050565b6000610de26128ec6144b0565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b3360009081526008602052604090205460ff16612959576040516351ee5ed560e01b8152336004820152602401610863565b428160400135101561298a5760408051634b2d84db60e01b8152908201356004820152426024820152604401610863565b60005b612997828061573d565b9050811015612ac65760005b6129b0602084018461573d565b9050811015612ab3576129c6602084018461573d565b828181106129d6576129d6615617565b6129ec9260206040909202019081019150614d78565b6001600160a01b03166129ff848061573d565b84818110612a0f57612a0f615617565b612a259260206040909202019081019150614d78565b6001600160a01b031603612aa157612a3d838061573d565b83818110612a4d57612a4d615617565b612a639260206040909202019081019150614d78565b6040517f906c72630000000000000000000000000000000000000000000000000000000081526001600160a01b039091166004820152602401610863565b80612aab81615646565b9150506129a3565b5080612abe81615646565b91505061298d565b5050565b600080826002811115612adf57612adf615c23565b03612b245761193b8585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506145e092505050565b6001826002811115612b3857612b38615c23565b03612ba15750823560601c366000612b53856014818961547c565b91509150612b638388848461181e565b61193457868383836040517f3ced885a0000000000000000000000000000000000000000000000000000000081526004016108639493929190615c39565b60148314612be5576040517f081983230000000000000000000000000000000000000000000000000000000081526014600482015260248101849052604401610863565b50823560601c600081815260046020908152604080832088845290915290205460ff16611816576040517f5f4cb138000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b0382166024820152604401610863565b612cb9604051806101600160405280606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200160006001600160a01b0316815260200160008019168152602001600081525090565b60408051610160810190915280612cd0878061573d565b905067ffffffffffffffff811115612cea57612cea6151f9565b604051908082528060200260200182016040528015612d13578160200160208202803683370190505b508152602001868060200190612d29919061573d565b905067ffffffffffffffff811115612d4357612d436151f9565b604051908082528060200260200182016040528015612d6c578160200160208202803683370190505b508152602001612d7c878061573d565b905067ffffffffffffffff811115612d9657612d966151f9565b604051908082528060200260200182016040528015612dbf578160200160208202803683370190505b508152602001868060200190612dd5919061573d565b905067ffffffffffffffff811115612def57612def6151f9565b604051908082528060200260200182016040528015612e18578160200160208202803683370190505b508152602001612e28878061573d565b905067ffffffffffffffff811115612e4257612e426151f9565b604051908082528060200260200182016040528015612e6b578160200160208202803683370190505b508152602001868060200190612e81919061573d565b905067ffffffffffffffff811115612e9b57612e9b6151f9565b604051908082528060200260200182016040528015612ec4578160200160208202803683370190505b508152602001868060200190612eda919061573d565b905067ffffffffffffffff811115612ef457612ef46151f9565b604051908082528060200260200182016040528015612f1d578160200160208202803683370190505b508152602001868060200190612f33919061573d565b905067ffffffffffffffff811115612f4d57612f4d6151f9565b604051908082528060200260200182016040528015612f76578160200160208202803683370190505b5081526001600160a01b038416602080830182905260408084018890526000606090940184905291835260078152818320878452815291819020805482518185028101850190935280835293945090929091830182828015612ff757602002820191906000526020600020905b815481526020019060010190808311612fe3575b50505050608083018290525051158015906130315750600019816080015160008151811061302757613027615617565b6020026020010151145b1561305257604051635152abf960e01b815260048101849052602401610863565b8060800151516000036130b357613069858061573d565b905067ffffffffffffffff811115613083576130836151f9565b6040519080825280602002602001820160405280156130ac578160200160208202803683370190505b5060808201525b6130c4610100860160e087016156b8565b156132c15760005b8160800151518110156132bb576130e3868061573d565b828181106130f3576130f3615617565b9050604002016020013585806040019061310d9190615787565b8381811061311d5761311d615617565b905060200201358360800151838151811061313a5761313a615617565b602002602001015161314c91906157d1565b11156132265761315c868061573d565b8281811061316c5761316c615617565b6131829260206040909202019081019150614d78565b61318c878061573d565b8381811061319c5761319c615617565b90506040020160200135836080015183815181106131bc576131bc615617565b60200260200101518780604001906131d49190615787565b858181106131e4576131e4615617565b604051635e6e2c1560e01b81526001600160a01b0390961660048701526024860194909452506044840191909152602090910201356064820152608401610863565b6000613232878061573d565b8381811061324257613242615617565b9050604002016020013586806040019061325c9190615787565b8481811061326c5761326c615617565b90506020020135670de0b6b3a76400006132869190615c6c565b6132909190615c83565b90508261014001518111156132a85761014083018190525b50806132b381615646565b9150506130cc565b50611816565b670de0b6b3a764000061014082015260005b816080015151811015613376576000826080015182815181106132f8576132f8615617565b602002602001015111806133555750613311868061573d565b8281811061332157613321615617565b9050604002016020013585806040019061333b9190615787565b8381811061334b5761334b615617565b9050602002013514155b156133645761315c868061573d565b8061336e81615646565b9150506132d3565b50949350505050565b6040516001600160a01b03808516602483015283166044820152606481018290526133d09085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401612876565b50505050565b60808101516101008201516001600160a01b0316600090815260076020908152604080832061012086015184528252909120825161341993919290910190614b10565b5060005b61342a602085018561573d565b905081101561354c57613440602085018561573d565b8281811061345057613450615617565b6134669260206040909202019081019150614d78565b8260200151828151811061347c5761347c615617565b6001600160a01b0390921660209283029190910182015261349f9085018561573d565b828181106134af576134af615617565b90506040020160200135826060015182815181106134cf576134cf615617565b6020026020010181815250506135198480602001906134ee919061573d565b838181106134fe576134fe615617565b6135149260206040909202019081019150614d78565b614604565b8260e00151828151811061352f5761352f615617565b60209081029190910101528061354481615646565b91505061341d565b5061355d6040830160208401614d78565b6001600160a01b031663cb70e27361357584806156d5565b6135826040870187615787565b336040518663ffffffff1660e01b81526004016135a3959493929190615cf0565b600060405180830381600087803b1580156135bd57600080fd5b505af11580156135d1573d6000803e3d6000fd5b50600092506135e6915050602085018561573d565b905067ffffffffffffffff811115613600576136006151f9565b604051908082528060200260200182016040528015613629578160200160208202803683370190505b50905060005b61363c602086018661573d565b90508110156136bf578260e00151818151811061365b5761365b615617565b6020026020010151613686868060200190613676919061573d565b848181106134fe576134fe615617565b6136909190615469565b8282815181106136a2576136a2615617565b6020908102919091010152806136b781615646565b91505061362f565b5060005b6136d0602086018661573d565b9050811015613a345760006136eb60c0870160a0880161568e565b67ffffffffffffffff1611156137925761377382828151811061371057613710615617565b6020026020010151868060200190613728919061573d565b8481811061373857613738615617565b61374e9260206040909202019081019150614d78565b61375e60c0890160a08a0161568e565b61376e60e08a0160c08b01614d78565b614688565b82828151811061378557613785615617565b6020026020010181815250505b6000670de0b6b3a76400006137aa602088018861573d565b848181106137ba576137ba615617565b905060400201602001358561014001516137d49190615c6c565b6137de9190615c83565b9050808383815181106137f3576137f3615617565b602002602001015110156138845761380e602087018761573d565b8381811061381e5761381e615617565b6138349260206040909202019081019150614d78565b8184848151811061384757613847615617565b60209081029190910101516040516303c4929f60e51b81526001600160a01b03909316600484015260248301919091526044820152606401610863565b808460a00151838151811061389b5761389b615617565b602002602001018181525050808383815181106138ba576138ba615617565b60200260200101516138cc9190615469565b8460c0015183815181106138e2576138e2615617565b60209081029190910101526138fa6080860186615787565b8381811061390a5761390a615617565b905060200201358460c00151838151811061392757613927615617565b602002602001015110156139df57613942602087018761573d565b8381811061395257613952615617565b6139689260206040909202019081019150614d78565b6139756080870187615787565b8481811061398557613985615617565b905060200201358560c0015184815181106139a2576139a2615617565b6020908102919091010151604051636ae033dd60e01b81526001600160a01b03909316600484015260248301919091526044820152606401610863565b613a216139ef602088018861573d565b848181106139ff576139ff615617565b613a159260206040909202019081019150614d78565b856101000151836147a5565b5080613a2c81615646565b9150506136c3565b50508061010001516001600160a01b03168161012001517ff5e409954221206be4ce7ee40131667bfd0c4b76ba19cfd716dce50bc506cf4283600001518460200151868060400190613a869190615787565b8760a001518860c001518b6080016020810190613aa3919061568e565b613ab360c08e0160a08f0161568e565b8d60c0016020810190613ac69190614d78565b8d60a00135604051613ae19a99989796959493929190615d33565b60405180910390a3505050565b6002546001600160a01b03163314613b485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610863565b565b6003805473ffffffffffffffffffffffffffffffffffffffff191690556116ec8161484d565b606060ff8314613b8a57613b83836148ac565b9050610de2565b818054613b9690615dd6565b80601f0160208091040260200160405190810160405280929190818152602001828054613bc290615dd6565b8015613c0f5780601f10613be457610100808354040283529160200191613c0f565b820191906000526020600020905b815481529060010190602001808311613bf257829003601f168201915b5050505050905092915050565b3360009081526008602052604090205460ff16613c4e576040516351ee5ed560e01b8152336004820152602401610863565b4281608001351015613c7f57604051634b2d84db60e01b815260808201356004820152426024820152604401610863565b613c8f6060820160408301614d78565b6001600160a01b0316613ca56020830183614d78565b6001600160a01b0316036116ec57612a636020820182614d78565b6001600160a01b038116600090815260066020908152604080832085845290915290205460018101613d0857604051635152abf960e01b815260048101849052602401610863565b613d1a610140860161012087016156b8565b15613d89576020850135613d326040860135836157d1565b1115613d8457613d456020860186614d78565b60408051635e6e2c1560e01b81526001600160a01b03909216600483015260208701356024830152604482018390528501356064820152608401610863565b611816565b6000811180613da057506040840135602086013514155b1561181657613d456020860186614d78565b613dc06040850135826157d1565b6001600160a01b03831660009081526006602090815260408083208784528252808320849055805160808101825283815291820183905281018290526060810191909152909150613e1a6135146060880160408901614d78565b815260408051600180825281830190925260009160208083019080368337019050509050856040013581600081518110613e5657613e56615617565b602002602001018181525050856020016020810190613e759190614d78565b6001600160a01b031663cb70e273613e8d88806156d5565b84336040518563ffffffff1660e01b8152600401613eae9493929190615b36565b600060405180830381600087803b158015613ec857600080fd5b505af1158015613edc573d6000803e3d6000fd5b505083519250613ef9915061351490506060890160408a01614d78565b613f039190615469565b602080830191909152670de0b6b3a7640000908701356040870135613f2c60608a013584615c6c565b613f369190615c6c565b613f409190615c83565b613f4a9190615c83565b60608201526000613f62610100880160e0890161568e565b67ffffffffffffffff161115613fb4576020810151613fae90613f8b6060890160408a01614d78565b613f9c6101008a0160e08b0161568e565b61376e6101208b016101008c01614d78565b60208201525b80606001518160200151101561401057613fd46060870160408801614d78565b606082015160208301516040516303c4929f60e51b81526001600160a01b03909316600484015260248301919091526044820152606401610863565b806060015181602001516140249190615469565b604082018190526080860135111561407f576140466060870160408801614d78565b6040808301519051636ae033dd60e01b81526001600160a01b039092166004830152608087013560248301526044820152606401610863565b61409d6140926060880160408901614d78565b8483606001516147a5565b6001600160a01b038316847f4c192cf19bc8fb5c8c501a88db334890b2d67f4973511ed49a1fc65adde85f846140d660208a018a614d78565b6140e660608b0160408c01614d78565b8960400135866060015187604001518d60c0016020810190614108919061568e565b8e60e001602081019061411b919061568e565b8f61010001602081019061412f9190614d78565b604080516001600160a01b03998a16815297891660208901528701959095526060860193909352608085019190915267ffffffffffffffff90811660a085810191909152911660c0840152921660e0820152908901356101008201526101200160405180910390a3505050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156141d6575060009050600361425a565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561422a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166142535760006001925092505061425a565b9150600090505b94509492505050565b600081600481111561427757614277615c23565b0361427f5750565b600181600481111561429357614293615c23565b036142e05760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610863565b60028160048111156142f4576142f4615c23565b036143415760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610863565b600381600481111561435557614355615c23565b036116ec5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610863565b600061441d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166148eb9092919063ffffffff16565b905080516000148061443e57508080602001905181019061443e9190615880565b6128da5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610863565b6000306001600160a01b037f00000000000000000000000064815baaf1230e84416f58d29608a538c52f072e1614801561450957507f000000000000000000000000000000000000000000000000000000000000009246145b1561453357507f6730b1c9ecc0fb71cb484fbc0caf78b53ac3b9e15c2a7ee591b6b2e88668f1cb90565b6145db604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f68a60f4c048ebe044c5ffb48fa4c9302cad285cd2f62aa2c4df2be787ddc79ea918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b905090565b60008060006145ef85856148fa565b915091506145fc81614263565b509392505050565b60006001600160a01b03821661461b575047919050565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa15801561465f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de2919061562d565b919050565b60006001600160a01b0382166146bc57604051634726455360e11b81526001600160a01b0383166004820152602401610863565b6146cf6032670de0b6b3a7640000615c83565b8367ffffffffffffffff16111561471e576040517fc965cdf500000000000000000000000000000000000000000000000000000000815267ffffffffffffffff84166004820152602401610863565b6001600160a01b0382163014614774576147748483614746670de0b6b3a7640000600a615c6c565b61475a67ffffffffffffffff88168a615c6c565b614765906008615c6c565b61476f9190615c83565b6147a5565b670de0b6b3a764000061479167ffffffffffffffff851682615469565b61479b9087615c6c565b6118139190615c83565b6001600160a01b038316614839576000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114614800576040519150601f19603f3d011682016040523d82523d6000602084013e614805565b606091505b50509050806133d057604051630e21dcbb60e11b81526001600160a01b038416600482015260248101839052604401610863565b6128da6001600160a01b0384168383612831565b600280546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606060006148b98361493f565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b60606118168484600085614980565b60008082516041036149305760208301516040840151606085015160001a6149248782858561419f565b94509450505050614938565b506000905060025b9250929050565b600060ff8216601f811115610de2576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6060824710156149f85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610863565b600080866001600160a01b03168587604051614a1491906155a0565b60006040518083038185875af1925050503d8060008114614a51576040519150601f19603f3d011682016040523d82523d6000602084013e614a56565b606091505b5091509150614a6787838387614a72565b979650505050505050565b60608315614ae1578251600003614ada576001600160a01b0385163b614ada5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610863565b5081611816565b6118168383815115614af65781518083602001fd5b8060405162461bcd60e51b81526004016108639190614f0e565b828054828255906000526020600020908101928215614b4b579160200282015b82811115614b4b578251825591602001919060010190614b30565b50614b57929150614b5b565b5090565b5b80821115614b575760008155600101614b5c565b6001600160a01b03811681146116ec57600080fd5b803561468381614b70565b60008083601f840112614ba257600080fd5b50813567ffffffffffffffff811115614bba57600080fd5b60208301915083602082850101111561493857600080fd5b80151581146116ec57600080fd5b600080600080600060808688031215614bf857600080fd5b8535614c0381614b70565b945060208601359350604086013567ffffffffffffffff811115614c2657600080fd5b614c3288828901614b90565b9094509250506060860135614c4681614bd2565b809150509295509295909350565b60008083601f840112614c6657600080fd5b50813567ffffffffffffffff811115614c7e57600080fd5b6020830191508360208260051b850101111561493857600080fd5b600080600080600060608688031215614cb157600080fd5b853567ffffffffffffffff80821115614cc957600080fd5b614cd589838a01614c54565b90975095506020880135915080821115614cee57600080fd5b50614cfb88828901614c54565b9094509250506040860135614c4681614b70565b60008060408385031215614d2257600080fd5b8235614d2d81614b70565b946020939093013593505050565b60006101408284031215614d4e57600080fd5b50919050565b60006101408284031215614d6757600080fd5b614d718383614d3b565b9392505050565b600060208284031215614d8a57600080fd5b8135614d7181614b70565b600060208284031215614da757600080fd5b5035919050565b60006101008284031215614d4e57600080fd5b600060408284031215614d4e57600080fd5b600060c08284031215614d4e57600080fd5b600080600060608486031215614dfa57600080fd5b833567ffffffffffffffff80821115614e1257600080fd5b614e1e87838801614dae565b94506020860135915080821115614e3457600080fd5b614e4087838801614dc1565b93506040860135915080821115614e5657600080fd5b50614e6386828701614dd3565b9150509250925092565b600080600060608486031215614e8257600080fd5b8335614e8d81614b70565b95602085013595506040909401359392505050565b600060408284031215614eb457600080fd5b614d718383614dc1565b60005b83811015614ed9578181015183820152602001614ec1565b50506000910152565b60008151808452614efa816020860160208601614ebe565b601f01601f19169290920160200192915050565b602081526000614d716020830184614ee2565b600060208284031215614f3357600080fd5b813567ffffffffffffffff811115614f4a57600080fd5b61181684828501614dae565b600081518084526020808501945080840160005b83811015614f8657815187529582019590820190600101614f6a565b509495945050505050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201526000614fcc60e0830189614ee2565b8281036040840152614fde8189614ee2565b90508660608401526001600160a01b03861660808401528460a084015282810360c084015261500d8185614f56565b9a9950505050505050505050565b6000806000806060858703121561503157600080fd5b843561503c81614b70565b935060208501359250604085013567ffffffffffffffff81111561505f57600080fd5b61506b87828801614b90565b95989497509550505050565b600060a08284031215614d4e57600080fd5b60008060006060848603121561509e57600080fd5b833567ffffffffffffffff808211156150b657600080fd5b6150c287838801614dae565b945060208601359150808211156150d857600080fd5b6150e487838801614dd3565b935060408601359150808211156150fa57600080fd5b50614e6386828701615077565b6000806000610180848603121561511d57600080fd5b6151278585614d3b565b925061014084013567ffffffffffffffff8082111561514557600080fd5b61515187838801614dc1565b9350610160860135915080821115614e5657600080fd5b6000806000610180848603121561517e57600080fd5b6151888585614d3b565b925061014084013567ffffffffffffffff808211156151a657600080fd5b6151b287838801614dd3565b93506101608601359150808211156150fa57600080fd5b600080604083850312156151dc57600080fd5b8235915060208301356151ee81614bd2565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715615238576152386151f9565b604052919050565b600067ffffffffffffffff82111561525a5761525a6151f9565b5060051b60200190565b60006040828403121561527657600080fd5b6040516040810181811067ffffffffffffffff82111715615299576152996151f9565b60405290508082356152aa81614b70565b8152602092830135920191909152919050565b600082601f8301126152ce57600080fd5b813560206152e36152de83615240565b61520f565b82815260059290921b8401810191818101908684111561530257600080fd5b8286015b8481101561532657803561531981614b70565b8352918301918301615306565b509695505050505050565b600080600080600080600060e0888a03121561534c57600080fd5b873567ffffffffffffffff8082111561536457600080fd5b818a0191508a601f83011261537857600080fd5b813560206153886152de83615240565b82815260069290921b8401810191818101908e8411156153a757600080fd5b948201945b838610156153d0576153be8f87615264565b825282820191506040860195506153ac565b9b50508b0135925050808211156153e657600080fd5b6153f28b838c016152bd565b97506154018b60408c01615264565b965061540f60808b01614b85565b955060a08a013591508082111561542557600080fd5b506154328a828b01614b90565b9094509250615445905060c08901614b85565b905092959891949750929550565b634e487b7160e01b600052601160045260246000fd5b81810381811115610de257610de2615453565b6000808585111561548c57600080fd5b8386111561549957600080fd5b5050820193919092039150565b80356020831015610de257600019602084900360031b1b1692915050565b600082601f8301126154d557600080fd5b813567ffffffffffffffff8111156154ef576154ef6151f9565b615502601f8201601f191660200161520f565b81815284602083860101111561551757600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561554957600080fd5b833561555481614b70565b9250602084013567ffffffffffffffff8082111561557157600080fd5b61557d878388016154c4565b9350604086013591508082111561559357600080fd5b50614e63868287016154c4565b600082516155b2818460208701614ebe565b9190910192915050565b8281526040602082015260006118166040830184614ee2565b6000602082840312156155e757600080fd5b81517fffffffff0000000000000000000000000000000000000000000000000000000081168114614d7157600080fd5b634e487b7160e01b600052603260045260246000fd5b60006020828403121561563f57600080fd5b5051919050565b60006001820161565857615658615453565b5060010190565b60008351615671818460208801614ebe565b835190830190615685818360208801614ebe565b01949350505050565b6000602082840312156156a057600080fd5b813567ffffffffffffffff81168114614d7157600080fd5b6000602082840312156156ca57600080fd5b8135614d7181614bd2565b6000808335601e198436030181126156ec57600080fd5b83018035915067ffffffffffffffff82111561570757600080fd5b60200191503681900382131561493857600080fd5b60006020828403121561572e57600080fd5b813560038110614d7157600080fd5b6000808335601e1984360301811261575457600080fd5b83018035915067ffffffffffffffff82111561576f57600080fd5b6020019150600681901b360382131561493857600080fd5b6000808335601e1984360301811261579e57600080fd5b83018035915067ffffffffffffffff8211156157b957600080fd5b6020019150600581901b360382131561493857600080fd5b80820180821115610de257610de2615453565b815160009082906020808601845b8381101561580e578151855293820193908201906001016157f2565b50929695505050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038616815284602082015260806040820152600061586c60808301858761581a565b905082151560608301529695505050505050565b60006020828403121561589257600080fd5b8151614d7181614bd2565b7f4d756c74694c696d69744f72646572207769746e6573732900000000000000008152600084516158d5816018850160208901614ebe565b8451908301906158ec816018840160208901614ebe565b8451910190615902816018840160208801614ebe565b0160180195945050505050565b600081518084526020808501945080840160005b83811015614f865761594987835180516001600160a01b03168252602090810151910152565b6040969096019590820190600101615923565b60c08152600061012082018951606060c08501528181518084526101408601915060209350838301925060005b818110156159c2576159af83855180516001600160a01b03168252602090810151910152565b9284019260409290920191600101615989565b5050828c015160e086015260408c0151610100860152848103838601526159e9818c61590f565b92505050615a0260408401896001600160a01b03169052565b8660608401528281036080840152615a1a8187614ee2565b905082810360a084015261500d81858761581a565b7f4c696d69744f72646572207769746e6573732900000000000000000000000000815260008451615a67816013850160208901614ebe565b845190830190615a7e816013840160208901614ebe565b8451910190615a94816013840160208801614ebe565b0160130195945050505050565b6000610140615ac4838b5180516001600160a01b03168252602090810151910152565b60208a0151604084015260408a01516060840152615af8608084018a80516001600160a01b03168252602090810151910152565b6001600160a01b03881660c08401528660e084015280610100840152615b2081840187614ee2565b905082810361012084015261500d81858761581a565b606081526000615b4a60608301868861581a565b8281036020840152615b5c8186614f56565b9150506001600160a01b038316604083015295945050505050565b600081518084526020808501945080840160005b83811015614f865781516001600160a01b031687529582019590820190600101615b8b565b60006101006001600160a01b03808c168452816020850152615bd48285018c615b77565b91508382036040850152615be8828b614f56565b91508382036060850152615bfc828a615b77565b978116608085015260a084019690965250509190921660c082015260e00152949350505050565b634e487b7160e01b600052602160045260246000fd5b8481526001600160a01b0384166020820152606060408201526000615c6260608301848661581a565b9695505050505050565b8082028115828204841417610de257610de2615453565b600082615ca057634e487b7160e01b600052601260045260246000fd5b500490565b81835260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115615cd757600080fd5b8260051b80836020870137939093016020019392505050565b606081526000615d0460608301878961581a565b8281036020840152615d17818688615ca5565b9150506001600160a01b03831660408301529695505050505050565b6000610120808352615d478184018e615b77565b90508281036020840152615d5b818d615b77565b90508281036040840152615d70818b8d615ca5565b90508281036060840152615d84818a614f56565b90508281036080840152615d988189614f56565b67ffffffffffffffff97881660a08501529590961660c0830152506001600160a01b039290921660e083015261010090910152979650505050505050565b600181811c90821680615dea57607f821691505b602082108103614d4e57634e487b7160e01b600052602260045260246000fdfe546f6b656e5065726d697373696f6e73286164647265737320746f6b656e2c75696e7432353620616d6f756e74294c696d69744f7264657228546f6b656e496e666f20696e7075742c546f6b656e496e666f206f75747075742c75696e74323536206578706972792c75696e743235362073616c742c75696e74363420726566657272616c436f64652c75696e74363420726566657272616c4665652c6164647265737320726566657272616c466565526563697069656e742c626f6f6c207061727469616c6c7946696c6c61626c65294d756c74694c696d69744f7264657228546f6b656e496e666f5b5d20696e707574732c546f6b656e496e666f5b5d206f7574707574732c75696e74323536206578706972792c75696e743235362073616c742c75696e74363420726566657272616c436f64652c75696e74363420726566657272616c4665652c6164647265737320726566657272616c466565526563697069656e742c626f6f6c207061727469616c6c7946696c6c61626c6529546f6b656e496e666f286164647265737320746f6b656e416464726573732c75696e7432353620746f6b656e416d6f756e7429a2646970667358221220775688bb8248c18a0314f2882b42d9bc1113cd4bb8bc9df233e6aab0a41ecfe664736f6c63430008130033
Deployed Bytecode Sourcemap
92896:35601:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77452:2440;;;;;;;;;;-1:-1:-1;77452:2440:0;;;;;:::i;:::-;;:::i;:::-;;;1705:14:1;;1698:22;1680:41;;1668:2;1653:18;77452:2440:0;;;;;;;;110044:831;;;;;;;;;;-1:-1:-1;110044:831:0;;;;;:::i;:::-;;:::i;:::-;;81604:95;;;;;;;;;;-1:-1:-1;81604:95:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;114151:169;;;;;;;;;;-1:-1:-1;114151:169:0;;;;;:::i;:::-;;:::i;:::-;;;3897:25:1;;;3885:2;3870:18;114151:169:0;3751:177:1;112419:493:0;;;;;;;;;;-1:-1:-1;112419:493:0;;;;;:::i;:::-;;:::i;98039:46::-;;;;;;;;;;-1:-1:-1;98039:46:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;106771:191;;;;;;;;;;-1:-1:-1;106771:191:0;;;;;:::i;:::-;;:::i;103204:1172::-;;;;;;;;;;-1:-1:-1;103204:1172:0;;;;;:::i;:::-;;:::i;99584:139::-;;;;;;;;;;;;;:::i;97890:108::-;;;;;;;;;;-1:-1:-1;97890:108:0;;;;;:::i;:::-;;:::i;107113:306::-;;;;;;;;;;-1:-1:-1;107113:306:0;;;;;:::i;:::-;;:::i;112055:210::-;;;;;;;;;;-1:-1:-1;112055:210:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;111522:100::-;;;;;;;;;;;;;:::i;113076:940::-;;;;;;;;;;-1:-1:-1;113076:940:0;;;;;:::i;:::-;;:::i;93400:32::-;;;;;;;;;;-1:-1:-1;93400:32:0;;;;-1:-1:-1;;;;;93400:32:0;;;;;;-1:-1:-1;;;;;8019:55:1;;;8001:74;;7989:2;7974:18;93400:32:0;7855:226:1;50775:216:0;;;;;;;;;;;;;:::i;75939:657::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:::i;114453:194::-;;;;;;;;;;-1:-1:-1;114453:194:0;;;;;:::i;:::-;;:::i;47619:87::-;;;;;;;;;;-1:-1:-1;47692:6:0;;-1:-1:-1;;;;;47692:6:0;47619:87;;79898:199;;;;;;;;;;-1:-1:-1;79898:199:0;;;;;:::i;:::-;;:::i;80103:664::-;;;;;;;;;;-1:-1:-1;80103:664:0;;;;;:::i;:::-;;:::i;97739:100::-;;;;;;;;;;-1:-1:-1;97739:100:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;99221:226;;;;;;;;;;;;;:::i;111000:144::-;;;;;;;;;;-1:-1:-1;111000:144:0;;;;;:::i;:::-;;:::i;104672:1946::-;;;;;;;;;;-1:-1:-1;104672:1946:0;;;;;:::i;:::-;;:::i;100413:867::-;;;;;;;;;;-1:-1:-1;100413:867:0;;;;;:::i;:::-;;:::i;111275:150::-;;;;;;;;;;-1:-1:-1;111275:150:0;;;;;:::i;:::-;;:::i;99498:79::-;;;;;;;;;;;;;:::i;99730:151::-;;;;;;;;;;;;;:::i;101576:1306::-;;;;;;;;;;-1:-1:-1;101576:1306:0;;;;;:::i;:::-;;:::i;99005:209::-;;;;;;;;;;;;;:::i;49863:101::-;;;;;;;;;;-1:-1:-1;49943:13:0;;-1:-1:-1;;;;;49943:13:0;49863:101;;111759:161;;;;;;;;;;-1:-1:-1;111759:161:0;;;;;:::i;:::-;;:::i;84571:213::-;;;;;;;;;;-1:-1:-1;84571:213:0;;;;;:::i;:::-;;:::i;50163:181::-;;;;;;;;;;-1:-1:-1;50163:181:0;;;;;:::i;:::-;;:::i;107987:1800::-;;;;;;;;;;-1:-1:-1;107987:1800:0;;;;;:::i;:::-;;:::i;77452:2440::-;77599:4;-1:-1:-1;;;;;77638:28:0;;;77673:26;77599:4;78223:2;78202:23;;;;;:121;;-1:-1:-1;77322:66:0;78244:10;;78255:20;78273:2;78244:10;78255:20;:::i;:::-;78244:50;;78276:10;;78244:50;;:::i;:::-;78236:59;;;:::i;:::-;:87;78202:121;78178:145;;78334:16;78330:522;;;78361:22;78392:28;78491:10;78361:22;78491:10;78504:20;78522:2;78491:10;78504:20;:::i;:::-;78491:34;;;;;;;:::i;:::-;78480:71;;;;;;;:::i;:::-;78429:122;-1:-1:-1;78429:122:0;;-1:-1:-1;78429:122:0;-1:-1:-1;78585:1:0;78566:20;;;78562:234;;78660:12;78674:16;78694:14;-1:-1:-1;;;;;78694:19:0;78714:15;78694:36;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78659:71;;;;78746:7;78741:45;;78782:3;78762:24;;;;;;;;;;;:::i;:::-;;;;;;;;78741:45;78588:208;;78562:234;78352:451;;78330:522;;;78834:10;;78818:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;78818:26:0;;-1:-1:-1;;;;78330:522:0;78898:16;:39;;;;78936:1;78918:15;:19;78898:39;78894:618;;;78952:62;;-1:-1:-1;;;78952:62:0;;-1:-1:-1;;;;;78952:40:0;;;;;:62;;78993:5;;79000:13;;78952:62;;;:::i;:::-;;;;;;;;;;;;;;;;;;;-1:-1:-1;78952:62:0;;;;;;;;-1:-1:-1;;78952:62:0;;;;;;;;;;;;:::i;:::-;;;78948:557;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79498:3;79484:18;;;;;;;;;;;:::i;78948:557::-;79069:29;;;-1:-1:-1;;;79069:29:0;79115:20;;:40;;;;;79139:16;79115:40;:61;;;;;79160:16;79159:17;79115:61;79111:302;;;79355:7;79352:1;79345:18;79387:1;79383:2;79376:13;79111:302;79432:7;-1:-1:-1;79425:14:0;;-1:-1:-1;;;;79425:14:0;78948:557;79576:2;79555:23;;79551:77;;79596:24;;;;;;;;;;;;;;79551:77;79634:9;79654:16;79667:2;79634:9;79654:10;;:16;:::i;:::-;79646:25;;;:::i;:::-;79634:37;-1:-1:-1;79678:9:0;79698:17;79712:2;79709;79698:10;;:17;:::i;:::-;79690:26;;;:::i;:::-;79678:38;;79723:7;79739:10;;79750:2;79739:14;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;;79770:2:0;79765:7;;;;;:18;;;79776:1;:7;;79781:2;79776:7;;79765:18;79761:72;;;79801:24;;;;;;;;;;;;;;79761:72;79879:7;-1:-1:-1;;;;;79846:40:0;:29;79860:5;79867:1;79870;79873;79846:13;:29::i;:::-;-1:-1:-1;;;;;79846:40:0;;79839:47;;;;;;;;77452:2440;;;;;;;;:::o;110044:831::-;110202:17;;-1:-1:-1;;;;;110202:17:0;110188:10;:31;;;;:56;;-1:-1:-1;47692:6:0;;-1:-1:-1;;;;;47692:6:0;110223:10;:21;;110188:56;110184:115;;;110262:29;;-1:-1:-1;;;110262:29:0;;110280:10;110262:29;;;8001:74:1;7974:18;;110262:29:0;7855:226:1;110184:115:0;-1:-1:-1;;;;;110309:18:0;;110305:68;;110345:20;;-1:-1:-1;;;110345:20:0;;-1:-1:-1;;;;;8019:55:1;;110345:20:0;;;8001:74:1;7974:18;;110345:20:0;7855:226:1;110305:68:0;110383:31;;;110379:62;;110423:18;;;;;;;;;;;;;;110379:62;110453:9;110448:422;110468:17;;;110448:422;;;93209:1;110505:6;;110512:1;110505:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;110505:17:0;;110501:362;;110536:12;110561:4;-1:-1:-1;;;;;110553:18:0;110579:7;;110587:1;110579:10;;;;;;;:::i;:::-;;;;;;;110553:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;110535:59;;;110610:7;110605:78;;110654:4;110660:7;;110668:1;110660:10;;;;;;;:::i;:::-;110639:32;;-1:-1:-1;;;110639:32:0;;-1:-1:-1;;;;;20710:55:1;;;110639:32:0;;;20692:74:1;110660:10:0;;;;;;;20782:18:1;;;20775:34;-1:-1:-1;20665:18:1;;110639:32:0;20518:297:1;110605:78:0;110524:168;110501:362;;;110709:144;110752:4;110769:7;;110777:1;110769:10;;;;;;;:::i;:::-;;;;;;;110783:1;110769:15;:73;;110832:7;;110840:1;110832:10;;;;;;;:::i;:::-;;;;;;;110769:73;;;110794:6;;110801:1;110794:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;110787:42;;-1:-1:-1;;;110787:42:0;;110823:4;110787:42;;;8001:74:1;-1:-1:-1;;;;;110787:27:0;;;;;;;7974:18:1;;110787:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;110716:6;;110723:1;110716:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;110709:30:0;;:144;:30;:144::i;:::-;110487:3;;;;:::i;:::-;;;;110448:422;;;;110044:831;;;;;:::o;114151:169::-;114235:12;114266:48;114283:30;114307:5;114283:23;:30::i;:::-;114266:16;:48::i;:::-;114259:55;114151:169;-1:-1:-1;;114151:169:0:o;112419:493::-;112519:18;99664:23;;;;;;;;;;;;;;;;;99695:22;;;;;;;;;;;;;;;;;99641:81;;;;;;;;;:::i;:::-;;;;;;;;;;;;;99631:92;;;;;;112638:28;112654:5;:11;;112638:15;:28::i;:::-;112628:39;;;;;;112688:29;112704:5;:12;;112688:15;:29::i;:::-;112678:40;;;;;;;112729:12;;;;112752:10;;;;112773:18;;;;;;;;:::i;:::-;112802:17;;;;;;;;:::i;:::-;112830:26;;;;;;;;:::i;:::-;112867:23;;;;;;;;:::i;:::-;112576:323;;;;;;22542:25:1;;;;22583:18;;22576:34;;;;22626:18;;;22619:34;;;;22669:18;;;22662:34;;;;22712:19;;;22705:35;;;;22759:18;22814:15;;;22793:19;;;22786:44;22867:15;22846:19;;;22839:44;-1:-1:-1;;;;;22920:55:1;22899:19;;;22892:84;23020:14;23013:22;22992:19;;;22985:51;22514:19;;112576:323:0;;;;;;;;;;;;112556:350;;;;;;112549:357;;112419:493;;;:::o;106771:191::-;106860:10;106848:23;;;;:11;:23;;;;;;;;:34;;;;;;;;;-1:-1:-1;;106848:54:0;;106914:42;106872:9;;106914:42;;;106771:191;:::o;103204:1172::-;103380:17;103428:24;103446:5;103428:17;:24::i;:::-;103499:29;103522:5;103499:22;:29::i;:::-;103487:41;-1:-1:-1;103594:18:0;103615:82;103487:41;103649:19;:9;;:19;:::i;:::-;103670:26;;;;;;;;:::i;:::-;103615:22;:82::i;:::-;103594:103;;103746:35;103784:60;103806:5;103813:7;103822:9;103833:10;103784:21;:60::i;:::-;103746:98;;103918:9;103913:405;103937:12;:5;;:12;:::i;:::-;:19;;103933:1;:23;103913:405;;;103972:119;104026:10;104038:22;;;;:7;:22;:::i;:::-;104061:1;104038:25;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;104065:22;;;;:7;:22;:::i;:::-;104088:1;104065:25;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;103979:12:0;:5;;:12;:::i;:::-;103992:1;103979:15;;;;;;;:::i;:::-;:28;;;:15;;;;;:28;;;;-1:-1:-1;103979:28:0;:::i;:::-;-1:-1:-1;;;;;103972:53:0;;:119;;:53;:119::i;:::-;104158:22;;;;:7;:22;:::i;:::-;104181:1;104158:25;;;;;;;:::i;:::-;;;;;;;104131:6;:20;;;104152:1;104131:23;;;;;;;;:::i;:::-;;;;;;:52;;;;;;;:::i;:::-;;;-1:-1:-1;104216:12:0;:5;;:12;:::i;:::-;104229:1;104216:15;;;;;;;:::i;:::-;:28;;;:15;;;;;:28;;;;-1:-1:-1;104216:28:0;:::i;:::-;104192:18;;:21;;104211:1;;104192:21;;;;;;:::i;:::-;-1:-1:-1;;;;;104192:52:0;;;:21;;;;;;;;;;;:52;104283:12;:5;;:12;:::i;:::-;104296:1;104283:15;;;;;;;:::i;:::-;;;;;;:27;;;104253:6;:24;;;104278:1;104253:27;;;;;;;;:::i;:::-;;;;;;;;;;:57;103958:3;;;;:::i;:::-;;;;103913:405;;;;104326:44;104347:5;104354:7;104363:6;104326:20;:44::i;:::-;103402:974;;103204:1172;;;;;:::o;99584:139::-;99664:23;;;;;;;;;;;;;;;;;99695:22;;;;;;;;;;;;;;;;;99641:81;;;;;;;;;:::i;:::-;;;;;;;;;;;;;99631:92;;;;;;99584:139;:::o;97890:108::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;107113:306::-;107229:16;;;107243:1;107229:16;;;;;;;;;107195:31;;107229:16;;;;;;;;;;;-1:-1:-1;107229:16:0;107195:50;;-1:-1:-1;;107252:14:0;107267:1;107252:17;;;;;;;;:::i;:::-;;;;;;;;;;;:37;;;;107313:10;107296:28;;;;:16;:28;;;;;;:39;;;;;;;:56;;;;;;;;:::i;:::-;-1:-1:-1;107366:47:0;;107402:10;;107391:9;;107366:47;;;;;107188:231;107113:306;:::o;112055:210::-;112150:12;99554:22;;;;;;;;;;;;;;;;;99544:33;;;;;;;;112213:22;;;;:9;:22;:::i;:::-;112181:78;;;112237:21;112181:78;;;25875:25:1;;;;-1:-1:-1;;;;;25936:55:1;;;25916:18;;;25909:83;112237:21:0;;;;26008:18:1;;;26001:34;25848:18;;112181:78:0;;;;;;;;;;;;112174:85;;112055:210;;;:::o;111522:100::-;47505:13;:11;:13::i;:::-;111596:20:::1;;;;;;;;;;;;;;113076:940:::0;113186:18;;113263:12;:5;;:12;:::i;:::-;:19;;113249:34;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;113249:34:0;;113216:67;;113295:9;113290:129;113314:12;:5;;:12;:::i;:::-;:19;;113310:1;:23;113290:129;;;113378:32;113394:12;:5;;:12;:::i;:::-;113407:1;113394:15;;;;;;;:::i;:::-;;;;;;113378;:32::i;:::-;113368:43;;;;;;113349:13;113363:1;113349:16;;;;;;;;:::i;:::-;;;;;;;;;;:62;113335:3;;;;:::i;:::-;;;;113290:129;;;-1:-1:-1;113425:31:0;113473:13;;;;:5;:13;:::i;:::-;:20;;113459:35;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;113459:35:0;;113425:69;;113506:9;113501:132;113525:13;;;;:5;:13;:::i;:::-;:20;;113521:1;:24;113501:132;;;113591:33;113607:13;;;;:5;:13;:::i;113591:33::-;113581:44;;;;;;113561:14;113576:1;113561:17;;;;;;;;:::i;:::-;;;;;;;;;;:64;113547:3;;;;:::i;:::-;;;;113501:132;;;;99816:29;;;;;;;;;;;;;;;;;99853:22;;;;;;;;;;;;;;;;;99793:87;;;;;;;;;:::i;:::-;;;;;;;;;;;;;99783:98;;;;;;113753:13;113736:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;113726:42;;;;;;113806:14;113789:32;;;;;;;;:::i;:::-;;;;;;;;;;;;;113779:43;;;;;;113833:5;:12;;;113856:5;:10;;;113877:5;:18;;;;;;;;;;:::i;:::-;113906:17;;;;;;;;:::i;:::-;113934:26;;;;;;;;:::i;:::-;113971:23;;;;;;;;:::i;:::-;113668:335;;;;;;22542:25:1;;;;22583:18;;22576:34;;;;22626:18;;;22619:34;;;;22669:18;;;22662:34;;;;22712:19;;;22705:35;;;;22759:18;22814:15;;;22793:19;;;22786:44;22867:15;22846:19;;;22839:44;-1:-1:-1;;;;;22920:55:1;22899:19;;;22892:84;23020:14;23013:22;22992:19;;;22985:51;22514:19;;113668:335:0;;;;;;;;;;;;113648:362;;;;;;113641:369;;;;113076:940;;;:::o;50775:216::-;49943:13;;13058:10;;-1:-1:-1;;;;;49943:13:0;50876:24;;50868:78;;;;-1:-1:-1;;;50868:78:0;;26796:2:1;50868:78:0;;;26778:21:1;26835:2;26815:18;;;26808:30;26874:34;26854:18;;;26847:62;26945:11;26925:18;;;26918:39;26974:19;;50868:78:0;26594:405:1;50868:78:0;50957:26;50976:6;50957:18;:26::i;:::-;50817:174;50775:216::o;75939:657::-;76060:13;76088:18;;76060:13;;;76088:18;76362:41;:5;76060:13;76362:26;:41::i;:::-;76418:47;:8;76448:16;76418:29;:47::i;:::-;76561:16;;;76544:1;76561:16;;;;;;;;;76309:279;;;;-1:-1:-1;76309:279:0;;-1:-1:-1;76480:13:0;;-1:-1:-1;76516:4:0;;-1:-1:-1;76544:1:0;-1:-1:-1;76561:16:0;-1:-1:-1;76309:279:0;-1:-1:-1;75939:657:0:o;114453:194::-;114557:12;114588:53;114605:35;114634:5;114605:28;:35::i;79898:199::-;80038:53;;-1:-1:-1;;;80038:53:0;;80015:4;;80038;;:19;;:53;;80058:7;;80067:5;;80074:10;;;;80086:4;;80038:53;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;80031:60;;79898:199;;;;;;;:::o;80103:664::-;80223:54;;-1:-1:-1;;;80223:54:0;;80203:4;;80223;;:19;;:54;;80243:7;;80252:5;;80259:10;;;;80203:4;;80223:54;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;80223:54:0;;;;;;;;-1:-1:-1;;80223:54:0;;;;;;;;;;;;:::i;:::-;;;80219:543;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;80507:12:0;;80539:1;80532:8;;;80528:227;;80549:5;80555:1;80549:8;;;;;;;;:::i;:::-;;;;;;;;:16;;;-1:-1:-1;80542:23:0;;-1:-1:-1;;80542:23:0;80528:227;80749:3;80742:4;80735:5;80731:16;80724:29;80722:33;80353:409;80326:436;80219:543;;;80310:7;-1:-1:-1;80303:14:0;;99221:226;99347:29;;;;;;;;;;;;;;;;;99383:22;;;;;;;;;;;;;;;;;99412:29;;;;;;;;;;;;;;;;;99291:155;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;99221:226;:::o;111000:144::-;47505:13;:11;:13::i;:::-;-1:-1:-1;;;;;111069:23:0;::::1;;::::0;;;:14:::1;:23;::::0;;;;;:30;;-1:-1:-1;;111069:30:0::1;111095:4;111069:30;::::0;;111111:27;::::1;::::0;111069:23;111111:27:::1;111000:144:::0;:::o;104672:1946::-;104855:17;104903:24;104921:5;104903:17;:24::i;:::-;104962:23;104988:35;105017:5;104988:28;:35::i;:::-;104962:61;;105042:33;105059:15;105042:16;:33::i;:::-;105030:45;-1:-1:-1;105192:35:0;105230:68;105252:5;105259:7;105030:45;105279:18;;;;;;;;:::i;:::-;105230:21;:68::i;:::-;105426:167;;;;;;;;;105192:106;;-1:-1:-1;105367:56:0;;105426:167;105519:12;:5;;:12;:::i;:::-;:19;;105477:62;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;105477:62:0;;;;;;;;;;;;;;;-1:-1:-1;105426:167:0;;;105548:13;;;;105426:167;;;;;105570:16;;;;105426:167;;;105367:226;-1:-1:-1;;105728:12:0;:5;;:12;:::i;:::-;:19;;105678:70;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;105678:70:0;;;;;;;;;;;;;;;;105600:148;;105762:9;105757:534;105781:12;:5;;:12;:::i;:::-;:19;;105777:1;:23;105757:534;;;105844:12;:5;;:12;:::i;:::-;105857:1;105844:15;;;;;;;:::i;:::-;:28;;;:15;;;;;:28;;;;-1:-1:-1;105844:28:0;:::i;:::-;105816:16;;:19;;105833:1;;105816:19;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;105816:56:0;;;;;105910:22;;;;:7;:22;:::i;:::-;105933:1;105910:25;;;;;;;:::i;:::-;;;;;;;105881:6;:16;;;105898:1;105881:19;;;;;;;;:::i;:::-;;;;;;;;;;;;:26;:54;106000:22;;;;:7;:22;:::i;:::-;106023:1;106000:25;;;;;;;:::i;:::-;;;;;;;105973:6;:20;;;105994:1;105973:23;;;;;;;;:::i;:::-;;;;;;:52;;;;;;;:::i;:::-;;;-1:-1:-1;106058:12:0;:5;;:12;:::i;:::-;106071:1;106058:15;;;;;;;:::i;:::-;:28;;;:15;;;;;:28;;;;-1:-1:-1;106058:28:0;:::i;:::-;106034:18;;:21;;106053:1;;106034:21;;;;;;:::i;:::-;-1:-1:-1;;;;;106034:52:0;;;:21;;;;;;;;;;;:52;106125:22;;;;:7;:22;:::i;:::-;106148:1;106125:25;;;;;;;:::i;:::-;;;;;;;106095:6;:24;;;106120:1;106095:27;;;;;;;;:::i;:::-;;;;;;;;;;:55;106185:22;;;;:7;:22;:::i;:::-;106208:1;106185:25;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;106161:15;106177:1;106161:18;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;106161:49:0;;;;;106256:22;;;;:7;:22;:::i;:::-;106279:1;106256:25;;;;;;;:::i;:::-;;;;;;;106219:15;106235:1;106219:18;;;;;;;;:::i;:::-;;;;;;;;;;;;:34;:62;105802:3;;;;:::i;:::-;;;;105757:534;;;-1:-1:-1;106316:23:0;;;;:7;:23;:::i;:::-;-1:-1:-1;;;;;106297:69:0;;106375:6;106390:15;106414:18;;;;;;;;:::i;:::-;106441:15;99347:29;;;;;;;;;;;;;;;;;99383:22;;;;;;;;;;;;;;;;;99412:29;;;;;;;;;;;;;;;;;99291:155;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;99291:155:0;;;;;;;;;106511:17;;;;:7;:17;:::i;:::-;106297:238;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106568:44;106589:5;106596:7;106605:6;106568:20;:44::i;:::-;104877:1741;;;;104672:1946;;;;;:::o;100413:867::-;100574:17;100622:24;100640:5;100622:17;:24::i;:::-;100693;100711:5;100693:17;:24::i;:::-;100681:36;-1:-1:-1;100783:18:0;100804:82;100681:36;100838:19;:9;;:19;:::i;100804:82::-;100783:103;;100935:20;100958:55;100975:5;100982:7;100991:9;101002:10;100958:16;:55::i;:::-;100935:78;-1:-1:-1;101066:107:0;101116:10;101128:21;;;;;;;;:::i;:::-;101151;;;;101073:24;;;;:5;:24;:::i;101066:107::-;101206:68;101222:5;101229:7;101238:9;101249:10;101261:12;101206:15;:68::i;111275:150::-;47505:13;:11;:13::i;:::-;-1:-1:-1;;;;;111347:23:0;::::1;111373:5;111347:23:::0;;;:14:::1;:23;::::0;;;;;:31;;-1:-1:-1;;111347:31:0::1;::::0;;111390:29;::::1;::::0;111373:5;111390:29:::1;111275:150:::0;:::o;99498:79::-;99554:22;;;;;;;;;;;;;;;;;99544:33;;;;;;99498:79;:::o;99730:151::-;99816:29;;;;;;;;;;;;;;;;;99853:22;;;;;;;;;;;;;;;;;99793:87;;;;;;;;;:::i;101576:1306::-;101744:17;101792:24;101810:5;101792:17;:24::i;:::-;101851:23;101877:30;101901:5;101877:23;:30::i;:::-;101851:56;;101926:33;101943:15;101926:16;:33::i;:::-;101914:45;-1:-1:-1;102076:20:0;102099:63;102116:5;102123:7;101914:45;102143:18;;;;;;;;:::i;:::-;102099:16;:63::i;:::-;102076:86;-1:-1:-1;102234:23:0;;;;:7;:23;:::i;:::-;102293:225;;;102341:117;;;;;;-1:-1:-1;;;;;102215:69:0;;;;;;;102293:225;;;;;102389:24;;;;:5;:24;:::i;:::-;-1:-1:-1;;;;;102341:117:0;;;;;102426:7;:21;;;102341:117;;;102293:225;;;;102469:7;:13;;;102293:225;;;;102493:7;:16;;;102293:225;;;102527:116;;;;;;;;102581:7;:21;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;102527:116:0;;;102613:21;;;;102527:116;;;;;102652:18;;;;;;;;:::i;:::-;102679:15;99120:23;;;;;;;;;;;;;;;;;99150:22;;;;;;;;;;;;;;;;;99179:29;;;;;;;;;;;;;;;;;99069:144;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;99069:144:0;;;;;;;;;102743:17;;;;:7;:17;:::i;:::-;102215:552;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;102800:76;102816:5;102823:7;102832:9;102843:7;:18;;;;;;;;;;:::i;:::-;102863:12;102800:15;:76::i;99005:209::-;99120:23;;;;;;;;;;;;;;;;;99150:22;;;;;;;;;;;;;;;;;99179:29;;;;;;;;;;;;;;;;;99069:144;;;;;;;;;;:::i;111759:161::-;47505:13;:11;:13::i;:::-;111842:17:::1;:27:::0;;-1:-1:-1;;111842:27:0::1;-1:-1:-1::0;;;;;111842:27:0;::::1;::::0;;::::1;::::0;;;111881:33:::1;::::0;::::1;::::0;-1:-1:-1;;111881:33:0::1;111759:161:::0;:::o;84571:213::-;84684:10;84668:27;;;;:15;:27;;;;;;;;:38;;;;;;;;;:50;;-1:-1:-1;;84668:50:0;;;;;;;;;;84730:48;;1680:41:1;;;84668:38:0;;84730:48;;1653:18:1;84730:48:0;;;;;;;84571:213;;:::o;50163:181::-;47505:13;:11;:13::i;:::-;50253::::1;:24:::0;;-1:-1:-1;;;;;50253:24:0;::::1;-1:-1:-1::0;;50253:24:0;;::::1;::::0;::::1;::::0;;;50318:7:::1;47692:6:::0;;-1:-1:-1;;;;;47692:6:0;;47619:87;50318:7:::1;-1:-1:-1::0;;;;;50293:43:0::1;;;;;;;;;;;50163:181:::0;:::o;107987:1800::-;108280:17;;108233;;-1:-1:-1;;;;;108280:17:0;108266:10;:31;;;;:56;;-1:-1:-1;47692:6:0;;-1:-1:-1;;;;;47692:6:0;108301:10;:21;;108266:56;108262:115;;;108340:29;;-1:-1:-1;;;108340:29:0;;108358:10;108340:29;;;8001:74:1;7974:18;;108340:29:0;7855:226:1;108262:115:0;108383:26;108426:6;:13;108412:28;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;108412:28:0;;108383:57;;108447:25;108489:6;:13;108475:28;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;108475:28:0;;108447:56;;108517:9;108512:385;108536:6;:13;108532:1;:17;108512:385;;;108579:6;108586:1;108579:9;;;;;;;;:::i;:::-;;;;;;;:22;;;108565:8;108574:1;108565:11;;;;;;;;:::i;:::-;;;;;;:36;-1:-1:-1;;;;;108565:36:0;;;-1:-1:-1;;;;;108565:36:0;;;;;108665:6;108672:1;108665:9;;;;;;;;:::i;:::-;;;;;;;:21;;;108690:1;108665:26;:106;;108750:6;108757:1;108750:9;;;;;;;;:::i;:::-;;;;;;;:21;;;108665:106;;;108710:8;108719:1;108710:11;;;;;;;;:::i;:::-;;;;;;;;;;;108703:44;;-1:-1:-1;;;108703:44:0;;108741:4;108703:44;;;8001:74:1;-1:-1:-1;;;;;108703:29:0;;;;;;7974:18:1;;108703:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;108650:9;108660:1;108650:12;;;;;;;;:::i;:::-;;;;;;:121;;;;;108824:65;108857:14;108872:1;108857:17;;;;;;;;:::i;:::-;;;;;;;108876:9;108886:1;108876:12;;;;;;;;:::i;:::-;;;;;;;108831:8;108840:1;108831:11;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;108824:32:0;;;:65;;;;;:::i;:::-;108551:3;;;;:::i;:::-;;;;108512:385;;;-1:-1:-1;108975:19:0;;108968:52;;-1:-1:-1;;;108968:52:0;;109014:4;108968:52;;;8001:74:1;108944:21:0;;-1:-1:-1;;;;;108968:37:0;;;;7974:18:1;;108968:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;109103:78;;;;;108944:76;;-1:-1:-1;;;;;;109103:39:0;;;;;:78;;109143:14;;;;109159:9;;109170:10;;109103:78;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;109254:19:0;;109247:52;;-1:-1:-1;;;109247:52:0;;109293:4;109247:52;;;8001:74:1;109302:13:0;;-1:-1:-1;;;;;;109247:37:0;;;;-1:-1:-1;109247:37:0;;7974:18:1;;109247:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:68;;;;:::i;:::-;109235:80;;109340:6;:18;;;109328:9;:30;109324:133;;;109398:19;;109419:18;;;;109376:73;;-1:-1:-1;;;109376:73:0;;-1:-1:-1;;;;;34106:55:1;;;109376:73:0;;;34088:74:1;34178:18;;;34171:34;34221:18;;;34214:34;;;34061:18;;109376:73:0;33886:368:1;109324:133:0;109512:19;;109505:67;;-1:-1:-1;;;;;109505:40:0;109546:14;109562:9;109505:40;:67::i;:::-;109586:195;109610:10;109629:8;109646:9;109664:14;109687:6;:19;;;109715:6;:18;;;109742:14;109765:9;109586:195;;;;;;;;;;;;;:::i;:::-;;;;;;;;108255:1532;;;107987:1800;;;;;;;;;:::o;43868:236::-;43953:7;43974:17;43993:18;44015:25;44026:4;44032:1;44035;44038;44015:10;:25::i;:::-;43973:67;;;;44051:18;44063:5;44051:11;:18::i;:::-;-1:-1:-1;44087:9:0;43868:236;-1:-1:-1;;;;;43868:236:0:o;55631:177::-;55741:58;;-1:-1:-1;;;;;20710:55:1;;55741:58:0;;;20692:74:1;20782:18;;;20775:34;;;55714:86:0;;55734:5;;55764:23;;20665:18:1;;55741:58:0;;;;-1:-1:-1;;55741:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;55714:19;:86::i;:::-;55631:177;;;:::o;75677:167::-;75754:7;75781:55;75803:20;:18;:20::i;:::-;75825:10;45855:4;45849:11;45886:10;45874:23;;45927:4;45918:14;;45911:39;;;;45980:4;45971:14;;45964:34;46035:4;46020:20;;;45652:406;120748:701;120903:10;120888:26;;;;:14;:26;;;;;;;;120883:86;;120932:29;;-1:-1:-1;;;120932:29:0;;120950:10;120932:29;;;8001:74:1;7974:18;;120932:29:0;7855:226:1;120883:86:0;121034:15;121019:5;:12;;;:30;121015:103;;;121080:12;121067:43;;-1:-1:-1;;;121067:43:0;;121080:12;;;;121067:43;;;36065:25:1;121094:15:0;36106:18:1;;;36099:34;36038:18;;121067:43:0;35891:248:1;121015:103:0;121164:9;121159:285;121183:12;:5;;:12;:::i;:::-;:19;;121179:1;:23;121159:285;;;121223:9;121218:219;121242:13;;;;:5;:13;:::i;:::-;:20;;121238:1;:24;121218:219;;;121316:13;;;;:5;:13;:::i;:::-;121330:1;121316:16;;;;;;;:::i;:::-;:29;;;:16;;;;;:29;;;;-1:-1:-1;121316:29:0;:::i;:::-;-1:-1:-1;;;;;121284:61:0;:12;:5;;:12;:::i;:::-;121297:1;121284:15;;;;;;;:::i;:::-;:28;;;:15;;;;;:28;;;;-1:-1:-1;121284:28:0;:::i;:::-;-1:-1:-1;;;;;121284:61:0;;121280:148;;121387:12;:5;;:12;:::i;:::-;121400:1;121387:15;;;;;;;:::i;:::-;:28;;;:15;;;;;:28;;;;-1:-1:-1;121387:28:0;:::i;:::-;121367:49;;;;;-1:-1:-1;;;;;8019:55:1;;;121367:49:0;;;8001:74:1;7974:18;;121367:49:0;7855:226:1;121280:148:0;121264:3;;;;:::i;:::-;;;;121218:219;;;-1:-1:-1;121204:3:0;;;;:::i;:::-;;;;121159:285;;;;120748:701;:::o;82948:1363::-;83120:15;;83151:16;:52;;;;;;;;:::i;:::-;;83147:1159;;83224:42;83238:9;83249:16;;83224:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;83224:13:0;;-1:-1:-1;;;83224:42:0:i;83147:1159::-;83304:33;83284:16;:53;;;;;;;;:::i;:::-;;83280:1026;;-1:-1:-1;83441:37:0;;83437:2;83433:46;83654:24;;83681:21;:16;83698:2;83681:16;83454:23;83681:21;:::i;:::-;83654:48;;;;83718:41;83729:7;83738:9;83749;;83718:10;:41::i;:::-;83713:130;;83803:9;83814:7;83823:9;;83779:54;;;;;;;;;;;;;;:::i;83280:1026::-;83953:2;83926:29;;83922:112;;83975:49;;;;;83996:2;83975:49;;;36065:25:1;36106:18;;;36099:34;;;36038:18;;83975:49:0;35891:248:1;83922:112:0;-1:-1:-1;84135:37:0;;84131:2;84127:46;84197:24;;;;:15;:24;;;;;;;;:35;;;;;;;;;;;84192:107;;84252:37;;;;;;;;37209:25:1;;;-1:-1:-1;;;;;37270:55:1;;37250:18;;;37243:83;37182:18;;84252:37:0;37035:297:1;121740:2742:0;121946:35;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;121946:35:0;122006:595;;;;;;;;;;122064:12;:5;;:12;:::i;:::-;:19;;122050:34;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;122050:34:0;;122006:595;;;;122121:5;:13;;;;;;;;:::i;:::-;:20;;122107:35;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;122107:35:0;-1:-1:-1;122006:595:0;;;;122184:12;:5;;:12;:::i;:::-;:19;;122170:34;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;122170:34:0;;122006:595;;;;122247:5;:13;;;;;;;;:::i;:::-;:20;;122233:35;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;122233:35:0;-1:-1:-1;122006:595:0;;;;122306:12;:5;;:12;:::i;:::-;:19;;122292:34;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;122292:34:0;;122006:595;;;;122370:5;:13;;;;;;;;:::i;:::-;:20;;122356:35;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;122356:35:0;;122006:595;;;;122423:5;:13;;;;;;;;:::i;:::-;:20;;122409:35;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;122409:35:0;;122006:595;;;;122483:5;:13;;;;;;;;:::i;:::-;:20;;122469:35;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;122469:35:0;-1:-1:-1;122006:595:0;;-1:-1:-1;;;;;122006:595:0;;;;;;;;;;;;;;;;-1:-1:-1;122006:595:0;;;;;;;122712:28;;;:16;:28;;;;;:39;;;;;;;;;122689:62;;;;;;;;;;;;;;;;;121997:604;;-1:-1:-1;122689:62:0;;122712:39;;122689:62;;122712:39;122689:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;122689:20:0;;;:62;;;-1:-1:-1;122764:27:0;:31;;;;:79;;;-1:-1:-1;;122799:6:0;:20;;;122820:1;122799:23;;;;;;;;:::i;:::-;;;;;;;:44;122764:79;122760:134;;;122861:25;;-1:-1:-1;;;122861:25:0;;;;;3897::1;;;3870:18;;122861:25:0;3751:177:1;122760:134:0;122906:6;:20;;;:27;122937:1;122906:32;122902:112;;122986:12;:5;;:12;:::i;:::-;:19;;122972:34;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;122972:34:0;-1:-1:-1;122949:20:0;;;:57;122902:112;123190:23;;;;;;;;:::i;:::-;123186:1291;;;123296:9;123291:619;123315:6;:20;;;:27;123311:1;:31;123291:619;;;123418:12;:5;;:12;:::i;:::-;123431:1;123418:15;;;;;;;:::i;:::-;;;;;;:27;;;123390:7;:22;;;;;;;;:::i;:::-;123413:1;123390:25;;;;;;;:::i;:::-;;;;;;;123364:6;:20;;;123385:1;123364:23;;;;;;;;:::i;:::-;;;;;;;:51;;;;:::i;:::-;:81;123360:264;;;123489:12;:5;;:12;:::i;:::-;123502:1;123489:15;;;;;;;:::i;:::-;:28;;;:15;;;;;:28;;;;-1:-1:-1;123489:28:0;:::i;:::-;123519:12;:5;;:12;:::i;:::-;123532:1;123519:15;;;;;;;:::i;:::-;;;;;;:27;;;123561:6;:20;;;123582:1;123561:23;;;;;;;;:::i;:::-;;;;;;;123586:7;:22;;;;;;;;:::i;:::-;123609:1;123586:25;;;;;;;:::i;:::-;123467:145;;-1:-1:-1;;;123467:145:0;;-1:-1:-1;;;;;37586:55:1;;;123467:145:0;;;37568:74:1;37658:18;;;37651:34;;;;-1:-1:-1;37701:18:1;;;37694:34;;;;123586:25:0;;;;;;37744:18:1;;;37737:34;37540:19;;123467:145:0;37337:440:1;123360:264:0;123678:27;123744:12;:5;;:12;:::i;:::-;123757:1;123744:15;;;;;;;:::i;:::-;;;;;;:27;;;123716:7;:22;;;;;;;;:::i;:::-;123739:1;123716:25;;;;;;;:::i;:::-;;;;;;;93078:4;123708:33;;;;:::i;:::-;:63;;;;:::i;:::-;123678:93;;123808:6;:22;;;123786:19;:44;123782:119;;;123845:22;;;:44;;;123782:119;-1:-1:-1;123344:3:0;;;;:::i;:::-;;;;123291:619;;;;123186:1291;;;93078:4;123994:22;;;:30;124127:9;124122:348;124146:6;:20;;;:27;124142:1;:31;124122:348;;;124221:1;124195:6;:20;;;124216:1;124195:23;;;;;;;;:::i;:::-;;;;;;;:27;:87;;;-1:-1:-1;124255:12:0;:5;;:12;:::i;:::-;124268:1;124255:15;;;;;;;:::i;:::-;;;;;;:27;;;124226:7;:22;;;;;;;;:::i;:::-;124249:1;124226:25;;;;;;;:::i;:::-;;;;;;;:56;;124195:87;124191:270;;;124326:12;:5;;:12;:::i;124191:270::-;124175:3;;;;:::i;:::-;;;;124122:348;;;;121740:2742;;;;;;:::o;56053:205::-;56181:68;;-1:-1:-1;;;;;38515:15:1;;;56181:68:0;;;38497:34:1;38567:15;;38547:18;;;38540:43;38599:18;;;38592:34;;;56154:96:0;;56174:5;;56204:27;;38409:18:1;;56181:68:0;38234:398:1;56154:96:0;56053:205;;;;:::o;124695:2822::-;124983:20;;;;124944:17;;;;-1:-1:-1;;;;;124927:35:0;;;;;:16;:35;;;;;;;;124963:16;;;;124927:53;;;;;;;:76;;;;:53;;:76;;;;;:::i;:::-;;125062:9;125057:274;125081:13;;;;:5;:13;:::i;:::-;:20;;125077:1;:24;125057:274;;;125142:13;;;;:5;:13;:::i;:::-;125156:1;125142:16;;;;;;;:::i;:::-;:29;;;:16;;;;;:29;;;;-1:-1:-1;125142:29:0;:::i;:::-;125117:6;:19;;;125137:1;125117:22;;;;;;;;:::i;:::-;-1:-1:-1;;;;;125117:54:0;;;:22;;;;;;;;;;:54;125211:13;;;;:5;:13;:::i;:::-;125225:1;125211:16;;;;;;;:::i;:::-;;;;;;:28;;;125180:6;:25;;;125206:1;125180:28;;;;;;;;:::i;:::-;;;;;;:59;;;;;125275:48;125293:5;:13;;;;;;;;:::i;:::-;125307:1;125293:16;;;;;;;:::i;:::-;:29;;;:16;;;;;:29;;;;-1:-1:-1;125293:29:0;:::i;:::-;125275:17;:48::i;:::-;125248:6;:21;;;125270:1;125248:24;;;;;;;;:::i;:::-;;;;;;;;;;:75;125103:3;;;;:::i;:::-;;;;125057:274;;;-1:-1:-1;125382:20:0;;;;;;;;:::i;:::-;-1:-1:-1;;;;;125368:47:0;;125416:22;:7;;:22;:::i;:::-;125440;;;;:7;:22;:::i;:::-;125464:10;125368:107;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;125544:27:0;;-1:-1:-1;125588:13:0;;-1:-1:-1;;125588:13:0;;;:5;:13;:::i;:::-;:20;;125574:35;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;125574:35:0;;125544:65;;125623:9;125618:163;125642:13;;;;:5;:13;:::i;:::-;:20;;125638:1;:24;125618:163;;;125747:6;:21;;;125769:1;125747:24;;;;;;;;:::i;:::-;;;;;;;125696:48;125714:5;:13;;;;;;;;:::i;:::-;125728:1;125714:16;;;;;;;:::i;125696:48::-;:75;;;;:::i;:::-;125680:10;125691:1;125680:13;;;;;;;;:::i;:::-;;;;;;;;;;:91;125664:3;;;;:::i;:::-;;;;125618:163;;;;125794:9;125789:1327;125813:13;;;;:5;:13;:::i;:::-;:20;;125809:1;:24;125789:1327;;;125934:1;125914:17;;;;;;;;:::i;:::-;:21;;;125910:238;;;125968:168;125993:10;126004:1;125993:13;;;;;;;;:::i;:::-;;;;;;;126021:5;:13;;;;;;;;:::i;:::-;126035:1;126021:16;;;;;;;:::i;:::-;:29;;;:16;;;;;:29;;;;-1:-1:-1;126021:29:0;:::i;:::-;126065:17;;;;;;;;:::i;:::-;126097:26;;;;;;;;:::i;:::-;125968:10;:168::i;:::-;125952:10;125963:1;125952:13;;;;;;;;:::i;:::-;;;;;;:184;;;;;125910:238;126283:22;93078:4;126333:13;;;;:5;:13;:::i;:::-;126347:1;126333:16;;;;;;;:::i;:::-;;;;;;:28;;;126308:6;:22;;;:53;;;;:::i;:::-;:61;;;;:::i;:::-;126283:86;;126451:14;126435:10;126446:1;126435:13;;;;;;;;:::i;:::-;;;;;;;:30;126431:151;;;126509:13;;;;:5;:13;:::i;:::-;126523:1;126509:16;;;;;;;:::i;:::-;:29;;;:16;;;;;:29;;;;-1:-1:-1;126509:29:0;:::i;:::-;126540:14;126556:10;126567:1;126556:13;;;;;;;;:::i;:::-;;;;;;;;;;;126487:83;;-1:-1:-1;;;126487:83:0;;-1:-1:-1;;;;;34106:55:1;;;126487:83:0;;;34088:74:1;34178:18;;;34171:34;;;;34221:18;;;34214:34;34061:18;;126487:83:0;33886:368:1;126431:151:0;126624:14;126592:6;:26;;;126619:1;126592:29;;;;;;;;:::i;:::-;;;;;;:46;;;;;126717:14;126701:10;126712:1;126701:13;;;;;;;;:::i;:::-;;;;;;;:30;;;;:::i;:::-;126681:6;:14;;;126696:1;126681:17;;;;;;;;:::i;:::-;;;;;;;;;;:50;126766:18;;;;:7;:18;:::i;:::-;126785:1;126766:21;;;;;;;:::i;:::-;;;;;;;126746:6;:14;;;126761:1;126746:17;;;;;;;;:::i;:::-;;;;;;;:41;126742:173;;;126831:13;;;;:5;:13;:::i;:::-;126845:1;126831:16;;;;;;;:::i;:::-;:29;;;:16;;;;;:29;;;;-1:-1:-1;126831:29:0;:::i;:::-;126862:18;;;;:7;:18;:::i;:::-;126881:1;126862:21;;;;;;;:::i;:::-;;;;;;;126885:6;:14;;;126900:1;126885:17;;;;;;;;:::i;:::-;;;;;;;;;;;126809:94;;-1:-1:-1;;;126809:94:0;;-1:-1:-1;;;;;34106:55:1;;;126809:94:0;;;34088:74:1;34178:18;;;34171:34;;;;34221:18;;;34214:34;34061:18;;126809:94:0;33886:368:1;126742:173:0;126978:128;127009:13;;;;:5;:13;:::i;:::-;127023:1;127009:16;;;;;;;:::i;:::-;:29;;;:16;;;;;:29;;;;-1:-1:-1;127009:29:0;:::i;:::-;127051:6;:17;;;127081:14;126978:18;:128::i;:::-;-1:-1:-1;125835:3:0;;;;:::i;:::-;;;;125789:1327;;;;125484:1639;127229:6;:17;;;-1:-1:-1;;;;;127174:337:0;127204:6;:16;;;127174:337;127255:6;:18;;;127282:6;:19;;;127310:7;:22;;;;;;;;:::i;:::-;127341:6;:26;;;127376:6;:14;;;127399:5;:18;;;;;;;;;;:::i;:::-;127426:17;;;;;;;;:::i;:::-;127452:5;:26;;;;;;;;;;:::i;:::-;127487:7;:17;;;127174:337;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;124695:2822;;;:::o;47784:132::-;47692:6;;-1:-1:-1;;;;;47692:6:0;13058:10;47848:23;47840:68;;;;-1:-1:-1;;;47840:68:0;;41322:2:1;47840:68:0;;;41304:21:1;;;41341:18;;;41334:30;41400:34;41380:18;;;41373:62;41452:18;;47840:68:0;41120:356:1;47840:68:0;47784:132::o;50534:156::-;50624:13;50617:20;;-1:-1:-1;;50617:20:0;;;50648:34;50673:8;50648:24;:34::i;69308:274::-;69402:13;67253:66;69432:47;;69428:147;;69503:15;69512:5;69503:8;:15::i;:::-;69496:22;;;;69428:147;69558:5;69551:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69308:274;;;;:::o;114782:539::-;114932:10;114917:26;;;;:14;:26;;;;;;;;114912:86;;114961:29;;-1:-1:-1;;;114961:29:0;;114979:10;114961:29;;;8001:74:1;7974:18;;114961:29:0;7855:226:1;114912:86:0;115063:15;115048:5;:12;;;:30;115044:103;;;115096:43;;-1:-1:-1;;;115096:43:0;;115109:12;;;;115096:43;;;36065:25:1;115123:15:0;36106:18:1;;;36099:34;36038:18;;115096:43:0;35891:248:1;115044:103:0;115220:25;;;;:12;;;:25;:::i;:::-;-1:-1:-1;;;;;115192:53:0;:24;;;;:5;:24;:::i;:::-;-1:-1:-1;;;;;115192:53:0;;115188:128;;115283:24;;;;:5;:24;:::i;116643:1266::-;-1:-1:-1;;;;;116964:23:0;;116834:20;116964:23;;;:11;:23;;;;;;;;:34;;;;;;;;;117011:33;;;117007:88;;117062:25;;-1:-1:-1;;;117062:25:0;;;;;3897::1;;;3870:18;;117062:25:0;3751:177:1;117007:88:0;117271:23;;;;;;;;:::i;:::-;117267:637;;;117415:23;;;;117376:36;117391:21;;;;117376:12;:36;:::i;:::-;:62;117372:205;;;117480:24;;;;:5;:24;:::i;:::-;117545:21;117458:109;;-1:-1:-1;;;117458:109:0;;-1:-1:-1;;;;;37586:55:1;;;117458:109:0;;;37568:74:1;117506:23:0;;;;37658:18:1;;;37651:34;37701:18;;;37694:34;;;117545:21:0;;;37744:18:1;;;37737:34;37540:19;;117458:109:0;37337:440:1;117372:205:0;117267:637;;;117705:1;117690:12;:16;:68;;;-1:-1:-1;117710:21:0;;;;117735:23;;;;117710:48;;117690:68;117686:211;;;117800:24;;;;:5;:24;:::i;118184:2430::-;118435:37;118451:21;;;;118435:37;;:::i;:::-;-1:-1:-1;;;;;118479:23:0;;;;;;:11;:23;;;;;;;;:34;;;;;;;;:49;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;118435:37:0;;-1:-1:-1;118644:44:0;118662:25;;;;:12;;;:25;:::i;118644:44::-;118621:67;;118766:16;;;118780:1;118766:16;;;;;;;;;118621:20;;118766:16;;;;;;;;;;;-1:-1:-1;118766:16:0;118737:45;;118806:7;:21;;;118791:9;118801:1;118791:12;;;;;;;;:::i;:::-;;;;;;:36;;;;;118850:7;:20;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;118836:47:0;;118884:22;:7;;:22;:::i;:::-;118908:9;118919:10;118836:94;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;119061:20:0;;;-1:-1:-1;119014:44:0;;-1:-1:-1;119032:25:0;;-1:-1:-1;119032:25:0;;;:12;;;:25;:::i;119014:44::-;:67;;;;:::i;:::-;118995:16;;;;:86;;;;93078:4;;119294:23;;;119270:21;;;;119235:32;119243:24;;;;93078:4;119235:32;:::i;:::-;:56;;;;:::i;:::-;:82;;;;:::i;:::-;:90;;;;:::i;:::-;119211:21;;;:114;119413:1;119393:17;;;;;;;;:::i;:::-;:21;;;119389:218;;;119467:16;;;;119444:155;;119496:25;;;;:12;;;:25;:::i;:::-;119534:17;;;;;;;;:::i;:::-;119564:26;;;;;;;;:::i;119444:155::-;119425:16;;;:174;119389:218;119683:6;:21;;;119664:6;:16;;;:40;119660:159;;;119744:25;;;;:12;;;:25;:::i;:::-;119771:21;;;;119794:16;;;;119722:89;;-1:-1:-1;;;119722:89:0;;-1:-1:-1;;;;;34106:55:1;;;119722:89:0;;;34088:74:1;34178:18;;;34171:34;;;;34221:18;;;34214:34;34061:18;;119722:89:0;33886:368:1;119660:159:0;119889:6;:21;;;119870:6;:16;;;:40;;;;:::i;:::-;119853:14;;;:57;;;119938:18;;;;-1:-1:-1;119917:149:0;;;119996:25;;;;:12;;;:25;:::i;:::-;120043:14;;;;;119974:84;;-1:-1:-1;;;119974:84:0;;-1:-1:-1;;;;;34106:55:1;;;119974:84:0;;;34088:74:1;120023:18:0;;;;34178::1;;;34171:34;34221:18;;;34214:34;34061:18;;119974:84:0;33886:368:1;119917:149:0;120121:109;120148:25;;;;:12;;;:25;:::i;:::-;120182:10;120202:6;:21;;;120121:18;:109::i;:::-;-1:-1:-1;;;;;120284:324:0;;120309:9;120284:324;120346:24;;;;:5;:24;:::i;:::-;120379:25;;;;:12;;;:25;:::i;:::-;120413:7;:21;;;120443:6;:21;;;120473:6;:14;;;120496:5;:18;;;;;;;;;;:::i;:::-;120523:5;:17;;;;;;;;;;:::i;:::-;120549:5;:26;;;;;;;;;;:::i;:::-;120284:324;;;-1:-1:-1;;;;;42369:15:1;;;42351:34;;42421:15;;;42416:2;42401:18;;42394:43;42453:18;;42446:34;;;;42511:2;42496:18;;42489:34;;;;42554:3;42539:19;;42532:35;;;;42586:18;42641:15;;;120584:17:0;42620:19:1;;;42613:44;;;;42694:15;;42688:3;42673:19;;42666:44;42747:15;;42741:3;42726:19;;42719:44;120584:17:0;;;;42794:3:1;42779:19;;42772:35;42277:3;42262:19;120284:324:0;;;;;;;118378:2236;118184:2430;;;;;:::o;42252:1477::-;42340:7;;43274:66;43261:79;;43257:163;;;-1:-1:-1;43373:1:0;;-1:-1:-1;43377:30:0;43357:51;;43257:163;43534:24;;;43517:14;43534:24;;;;;;;;;43045:25:1;;;43118:4;43106:17;;43086:18;;;43079:45;;;;43140:18;;;43133:34;;;43183:18;;;43176:34;;;43534:24:0;;43017:19:1;;43534:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;43534:24:0;;-1:-1:-1;;43534:24:0;;;-1:-1:-1;;;;;;;43573:20:0;;43569:103;;43626:1;43630:29;43610:50;;;;;;;43569:103;43692:6;-1:-1:-1;43700:20:0;;-1:-1:-1;42252:1477:0;;;;;;;;:::o;37712:521::-;37790:20;37781:5;:29;;;;;;;;:::i;:::-;;37777:449;;37712:521;:::o;37777:449::-;37888:29;37879:5;:38;;;;;;;;:::i;:::-;;37875:351;;37934:34;;-1:-1:-1;;;37934:34:0;;43423:2:1;37934:34:0;;;43405:21:1;43462:2;43442:18;;;43435:30;43501:26;43481:18;;;43474:54;43545:18;;37934:34:0;43221:348:1;37875:351:0;37999:35;37990:5;:44;;;;;;;;:::i;:::-;;37986:240;;38051:41;;-1:-1:-1;;;38051:41:0;;43776:2:1;38051:41:0;;;43758:21:1;43815:2;43795:18;;;43788:30;43854:33;43834:18;;;43827:61;43905:18;;38051:41:0;43574:355:1;37986:240:0;38123:30;38114:5;:39;;;;;;;;:::i;:::-;;38110:116;;38170:44;;-1:-1:-1;;;38170:44:0;;44136:2:1;38170:44:0;;;44118:21:1;44175:2;44155:18;;;44148:30;44214:34;44194:18;;;44187:62;44285:4;44265:18;;;44258:32;44307:19;;38170:44:0;43934:398:1;59977:649:0;60401:23;60427:69;60455:4;60427:69;;;;;;;;;;;;;;;;;60435:5;-1:-1:-1;;;;;60427:27:0;;;:69;;;;;:::i;:::-;60401:95;;60515:10;:17;60536:1;60515:22;:56;;;;60552:10;60541:30;;;;;;;;;;;;:::i;:::-;60507:111;;;;-1:-1:-1;;;60507:111:0;;44539:2:1;60507:111:0;;;44521:21:1;44578:2;44558:18;;;44551:30;44617:34;44597:18;;;44590:62;44688:12;44668:18;;;44661:40;44718:19;;60507:111:0;44337:406:1;74577:268:0;74630:7;74662:4;-1:-1:-1;;;;;74671:11:0;74654:28;;:63;;;;;74703:14;74686:13;:31;74654:63;74650:188;;;-1:-1:-1;74741:22:0;;74577:268::o;74650:188::-;74803:23;74945:81;;;72769:95;74945:81;;;45212:25:1;74968:11:0;45253:18:1;;;45246:34;;;;74981:14:0;45296:18:1;;;45289:34;74997:13:0;45339:18:1;;;45332:34;75020:4:0;45382:19:1;;;45375:84;74908:7:0;;45184:19:1;;74945:81:0;;;;;;;;;;;;74935:92;;;;;;74928:99;;74853:182;;74803:23;74796:30;;74577:268;:::o;40868:231::-;40946:7;40967:17;40986:18;41008:27;41019:4;41025:9;41008:10;:27::i;:::-;40966:69;;;;41046:18;41058:5;41046:11;:18::i;:::-;-1:-1:-1;41082:9:0;40868:231;-1:-1:-1;;;40868:231:0:o;127733:216::-;127796:7;-1:-1:-1;;;;;127816:13:0;;127812:132;;-1:-1:-1;127847:21:0;;127733:216;-1:-1:-1;127733:216:0:o;127812:132::-;127898:38;;-1:-1:-1;;;127898:38:0;;127930:4;127898:38;;;8001:74:1;-1:-1:-1;;;;;127898:23:0;;;;;7974:18:1;;127898:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;127812:132::-;127733:216;;;:::o;115658:702::-;115837:20;-1:-1:-1;;;;;115874:34:0;;115870:100;;115926:36;;-1:-1:-1;;;115926:36:0;;-1:-1:-1;;;;;8019:55:1;;115926:36:0;;;8001:74:1;7974:18;;115926:36:0;7855:226:1;115870:100:0;115994:14;116006:2;93309:4;115994:14;:::i;:::-;115980:11;:28;;;115976:89;;;116026:31;;;;;44922:18:1;44910:31;;116026::0;;;44892:50:1;44865:18;;116026:31:0;44748:200:1;115976:89:0;-1:-1:-1;;;;;116075:37:0;;116107:4;116075:37;116071:205;;116123:145;116152:11;116174:20;116244:14;93309:4;116256:2;116244:14;:::i;:::-;116205:31;;;;:17;:31;:::i;:::-;:35;;116239:1;116205:35;:::i;:::-;:54;;;;:::i;:::-;116123:18;:145::i;:::-;93309:4;116318:23;;;;93309:4;116318:23;:::i;:::-;116297:45;;:17;:45;:::i;:::-;:57;;;;:::i;128173:321::-;-1:-1:-1;;;;;128263:13:0;;128259:230;;128288:12;128313:2;-1:-1:-1;;;;;128305:16:0;128329:6;128305:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;128287:53;;;128354:7;128349:72;;128383:26;;-1:-1:-1;;;128383:26:0;;-1:-1:-1;;;;;20710:55:1;;128383:26:0;;;20692:74:1;20782:18;;;20775:34;;;20665:18;;128383:26:0;20518:297:1;128259:230:0;128443:38;-1:-1:-1;;;;;128443:26:0;;128470:2;128474:6;128443:26;:38::i;48879:191::-;48972:6;;;-1:-1:-1;;;;;48989:17:0;;;-1:-1:-1;;48989:17:0;;;;;;;49022:40;;48972:6;;;48989:17;48972:6;;49022:40;;48953:16;;49022:40;48942:128;48879:191;:::o;67962:415::-;68021:13;68047:11;68061:16;68072:4;68061:10;:16::i;:::-;68187:14;;;68198:2;68187:14;;;;;;;;;68047:30;;-1:-1:-1;68167:17:0;;68187:14;;;;;;;;;-1:-1:-1;;;68280:16:0;;;-1:-1:-1;68326:4:0;68317:14;;68310:28;;;;-1:-1:-1;68280:16:0;67962:415::o;6963:229::-;7100:12;7132:52;7154:6;7162:4;7168:1;7171:12;7132:21;:52::i;39319:747::-;39400:7;39409:12;39438:9;:16;39458:2;39438:22;39434:625;;39782:4;39767:20;;39761:27;39832:4;39817:20;;39811:27;39890:4;39875:20;;39869:27;39477:9;39861:36;39933:25;39944:4;39861:36;39761:27;39811;39933:10;:25::i;:::-;39926:32;;;;;;;;;39434:625;-1:-1:-1;40007:1:0;;-1:-1:-1;40011:35:0;39434:625;39319:747;;;;;:::o;68454:251::-;68515:7;68588:4;68552:40;;68616:2;68607:11;;68603:71;;;68642:20;;;;;;;;;;;;;;8049:455;8219:12;8277:5;8252:21;:30;;8244:81;;;;-1:-1:-1;;;8244:81:0;;45672:2:1;8244:81:0;;;45654:21:1;45711:2;45691:18;;;45684:30;45750:34;45730:18;;;45723:62;45821:8;45801:18;;;45794:36;45847:19;;8244:81:0;45470:402:1;8244:81:0;8337:12;8351:23;8378:6;-1:-1:-1;;;;;8378:11:0;8397:5;8404:4;8378:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8336:73;;;;8427:69;8454:6;8462:7;8471:10;8483:12;8427:26;:69::i;:::-;8420:76;8049:455;-1:-1:-1;;;;;;;8049:455:0:o;10622:644::-;10807:12;10836:7;10832:427;;;10864:10;:17;10885:1;10864:22;10860:290;;-1:-1:-1;;;;;4503:19:0;;;11074:60;;;;-1:-1:-1;;;11074:60:0;;46079:2:1;11074:60:0;;;46061:21:1;46118:2;46098:18;;;46091:30;46157:31;46137:18;;;46130:59;46206:18;;11074:60:0;45877:353:1;11074:60:0;-1:-1:-1;11171:10:0;11164:17;;10832:427;11214:33;11222:10;11234:12;11969:17;;:21;11965:388;;12201:10;12195:17;12258:15;12245:10;12241:2;12237:19;12230:44;11965:388;12328:12;12321:20;;-1:-1:-1;;;12321:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:154:1;-1:-1:-1;;;;;93:5:1;89:54;82:5;79:65;69:93;;158:1;155;148:12;173:134;241:20;;270:31;241:20;270:31;:::i;312:347::-;363:8;373:6;427:3;420:4;412:6;408:17;404:27;394:55;;445:1;442;435:12;394:55;-1:-1:-1;468:20:1;;511:18;500:30;;497:50;;;543:1;540;533:12;497:50;580:4;572:6;568:17;556:29;;632:3;625:4;616:6;608;604:19;600:30;597:39;594:59;;;649:1;646;639:12;664:118;750:5;743:13;736:21;729:5;726:32;716:60;;772:1;769;762:12;787:748;881:6;889;897;905;913;966:3;954:9;945:7;941:23;937:33;934:53;;;983:1;980;973:12;934:53;1022:9;1009:23;1041:31;1066:5;1041:31;:::i;:::-;1091:5;-1:-1:-1;1143:2:1;1128:18;;1115:32;;-1:-1:-1;1198:2:1;1183:18;;1170:32;1225:18;1214:30;;1211:50;;;1257:1;1254;1247:12;1211:50;1296:58;1346:7;1337:6;1326:9;1322:22;1296:58;:::i;:::-;1373:8;;-1:-1:-1;1270:84:1;-1:-1:-1;;1460:2:1;1445:18;;1432:32;1473:30;1432:32;1473:30;:::i;:::-;1522:7;1512:17;;;787:748;;;;;;;;:::o;1732:367::-;1795:8;1805:6;1859:3;1852:4;1844:6;1840:17;1836:27;1826:55;;1877:1;1874;1867:12;1826:55;-1:-1:-1;1900:20:1;;1943:18;1932:30;;1929:50;;;1975:1;1972;1965:12;1929:50;2012:4;2004:6;2000:17;1988:29;;2072:3;2065:4;2055:6;2052:1;2048:14;2040:6;2036:27;2032:38;2029:47;2026:67;;;2089:1;2086;2079:12;2104:908;2235:6;2243;2251;2259;2267;2320:2;2308:9;2299:7;2295:23;2291:32;2288:52;;;2336:1;2333;2326:12;2288:52;2376:9;2363:23;2405:18;2446:2;2438:6;2435:14;2432:34;;;2462:1;2459;2452:12;2432:34;2501:70;2563:7;2554:6;2543:9;2539:22;2501:70;:::i;:::-;2590:8;;-1:-1:-1;2475:96:1;-1:-1:-1;2678:2:1;2663:18;;2650:32;;-1:-1:-1;2694:16:1;;;2691:36;;;2723:1;2720;2713:12;2691:36;;2762:72;2826:7;2815:8;2804:9;2800:24;2762:72;:::i;:::-;2853:8;;-1:-1:-1;2736:98:1;-1:-1:-1;;2938:2:1;2923:18;;2910:32;2951:31;2910:32;2951:31;:::i;3017:315::-;3085:6;3093;3146:2;3134:9;3125:7;3121:23;3117:32;3114:52;;;3162:1;3159;3152:12;3114:52;3201:9;3188:23;3220:31;3245:5;3220:31;:::i;:::-;3270:5;3322:2;3307:18;;;;3294:32;;-1:-1:-1;;;3017:315:1:o;3337:159::-;3400:5;3445:3;3436:6;3431:3;3427:16;3423:26;3420:46;;;3462:1;3459;3452:12;3420:46;-1:-1:-1;3484:6:1;3337:159;-1:-1:-1;3337:159:1:o;3501:245::-;3590:6;3643:3;3631:9;3622:7;3618:23;3614:33;3611:53;;;3660:1;3657;3650:12;3611:53;3683:57;3732:7;3721:9;3683:57;:::i;:::-;3673:67;3501:245;-1:-1:-1;;;3501:245:1:o;3933:247::-;3992:6;4045:2;4033:9;4024:7;4020:23;4016:32;4013:52;;;4061:1;4058;4051:12;4013:52;4100:9;4087:23;4119:31;4144:5;4119:31;:::i;4185:180::-;4244:6;4297:2;4285:9;4276:7;4272:23;4268:32;4265:52;;;4313:1;4310;4303:12;4265:52;-1:-1:-1;4336:23:1;;4185:180;-1:-1:-1;4185:180:1:o;4370:164::-;4438:5;4483:3;4474:6;4469:3;4465:16;4461:26;4458:46;;;4500:1;4497;4490:12;4539:157;4601:5;4646:2;4637:6;4632:3;4628:16;4624:25;4621:45;;;4662:1;4659;4652:12;4701:171;4776:5;4821:3;4812:6;4807:3;4803:16;4799:26;4796:46;;;4838:1;4835;4828:12;4877:895;5060:6;5068;5076;5129:2;5117:9;5108:7;5104:23;5100:32;5097:52;;;5145:1;5142;5135:12;5097:52;5185:9;5172:23;5214:18;5255:2;5247:6;5244:14;5241:34;;;5271:1;5268;5261:12;5241:34;5294:75;5361:7;5352:6;5341:9;5337:22;5294:75;:::i;:::-;5284:85;;5422:2;5411:9;5407:18;5394:32;5378:48;;5451:2;5441:8;5438:16;5435:36;;;5467:1;5464;5457:12;5435:36;5490:71;5553:7;5542:8;5531:9;5527:24;5490:71;:::i;:::-;5480:81;;5614:2;5603:9;5599:18;5586:32;5570:48;;5643:2;5633:8;5630:16;5627:36;;;5659:1;5656;5649:12;5627:36;;5682:84;5758:7;5747:8;5736:9;5732:24;5682:84;:::i;:::-;5672:94;;;4877:895;;;;;:::o;5777:383::-;5854:6;5862;5870;5923:2;5911:9;5902:7;5898:23;5894:32;5891:52;;;5939:1;5936;5929:12;5891:52;5978:9;5965:23;5997:31;6022:5;5997:31;:::i;:::-;6047:5;6099:2;6084:18;;6071:32;;-1:-1:-1;6150:2:1;6135:18;;;6122:32;;5777:383;-1:-1:-1;;;5777:383:1:o;6347:242::-;6435:6;6488:2;6476:9;6467:7;6463:23;6459:32;6456:52;;;6504:1;6501;6494:12;6456:52;6527:56;6575:7;6564:9;6527:56;:::i;6594:250::-;6679:1;6689:113;6703:6;6700:1;6697:13;6689:113;;;6779:11;;;6773:18;6760:11;;;6753:39;6725:2;6718:10;6689:113;;;-1:-1:-1;;6836:1:1;6818:16;;6811:27;6594:250::o;6849:270::-;6890:3;6928:5;6922:12;6955:6;6950:3;6943:19;6971:76;7040:6;7033:4;7028:3;7024:14;7017:4;7010:5;7006:16;6971:76;:::i;:::-;7101:2;7080:15;-1:-1:-1;;7076:29:1;7067:39;;;;7108:4;7063:50;;6849:270;-1:-1:-1;;6849:270:1:o;7124:217::-;7271:2;7260:9;7253:21;7234:4;7291:44;7331:2;7320:9;7316:18;7308:6;7291:44;:::i;7346:372::-;7440:6;7493:2;7481:9;7472:7;7468:23;7464:32;7461:52;;;7509:1;7506;7499:12;7461:52;7549:9;7536:23;7582:18;7574:6;7571:30;7568:50;;;7614:1;7611;7604:12;7568:50;7637:75;7704:7;7695:6;7684:9;7680:22;7637:75;:::i;8086:435::-;8139:3;8177:5;8171:12;8204:6;8199:3;8192:19;8230:4;8259:2;8254:3;8250:12;8243:19;;8296:2;8289:5;8285:14;8317:1;8327:169;8341:6;8338:1;8335:13;8327:169;;;8402:13;;8390:26;;8436:12;;;;8471:15;;;;8363:1;8356:9;8327:169;;;-1:-1:-1;8512:3:1;;8086:435;-1:-1:-1;;;;;8086:435:1:o;8526:994::-;8923:66;8915:6;8911:79;8900:9;8893:98;9027:3;9022:2;9011:9;9007:18;9000:31;8874:4;9054:45;9094:3;9083:9;9079:19;9071:6;9054:45;:::i;:::-;9147:9;9139:6;9135:22;9130:2;9119:9;9115:18;9108:50;9181:32;9206:6;9198;9181:32;:::i;:::-;9167:46;;9249:6;9244:2;9233:9;9229:18;9222:34;-1:-1:-1;;;;;9297:6:1;9293:55;9287:3;9276:9;9272:19;9265:84;9386:6;9380:3;9369:9;9365:19;9358:35;9442:9;9434:6;9430:22;9424:3;9413:9;9409:19;9402:51;9470:44;9507:6;9499;9470:44;:::i;:::-;9462:52;8526:994;-1:-1:-1;;;;;;;;;;8526:994:1:o;9525:612::-;9613:6;9621;9629;9637;9690:2;9678:9;9669:7;9665:23;9661:32;9658:52;;;9706:1;9703;9696:12;9658:52;9745:9;9732:23;9764:31;9789:5;9764:31;:::i;:::-;9814:5;-1:-1:-1;9866:2:1;9851:18;;9838:32;;-1:-1:-1;9921:2:1;9906:18;;9893:32;9948:18;9937:30;;9934:50;;;9980:1;9977;9970:12;9934:50;10019:58;10069:7;10060:6;10049:9;10045:22;10019:58;:::i;:::-;9525:612;;;;-1:-1:-1;10096:8:1;-1:-1:-1;;;;9525:612:1:o;10366:160::-;10430:5;10475:3;10466:6;10461:3;10457:16;10453:26;10450:46;;;10492:1;10489;10482:12;10531:899;10716:6;10724;10732;10785:2;10773:9;10764:7;10760:23;10756:32;10753:52;;;10801:1;10798;10791:12;10753:52;10841:9;10828:23;10870:18;10911:2;10903:6;10900:14;10897:34;;;10927:1;10924;10917:12;10897:34;10950:75;11017:7;11008:6;10997:9;10993:22;10950:75;:::i;:::-;10940:85;;11078:2;11067:9;11063:18;11050:32;11034:48;;11107:2;11097:8;11094:16;11091:36;;;11123:1;11120;11113:12;11091:36;11146:84;11222:7;11211:8;11200:9;11196:24;11146:84;:::i;:::-;11136:94;;11283:2;11272:9;11268:18;11255:32;11239:48;;11312:2;11302:8;11299:16;11296:36;;;11328:1;11325;11318:12;11296:36;;11351:73;11416:7;11405:8;11394:9;11390:24;11351:73;:::i;11435:775::-;11608:6;11616;11624;11677:3;11665:9;11656:7;11652:23;11648:33;11645:53;;;11694:1;11691;11684:12;11645:53;11717:57;11766:7;11755:9;11717:57;:::i;:::-;11707:67;;11825:3;11814:9;11810:19;11797:33;11849:18;11890:2;11882:6;11879:14;11876:34;;;11906:1;11903;11896:12;11876:34;11929:69;11990:7;11981:6;11970:9;11966:22;11929:69;:::i;:::-;11919:79;;12051:3;12040:9;12036:19;12023:33;12007:49;;12081:2;12071:8;12068:16;12065:36;;;12097:1;12094;12087:12;12215:779;12390:6;12398;12406;12459:3;12447:9;12438:7;12434:23;12430:33;12427:53;;;12476:1;12473;12466:12;12427:53;12499:57;12548:7;12537:9;12499:57;:::i;:::-;12489:67;;12607:3;12596:9;12592:19;12579:33;12631:18;12672:2;12664:6;12661:14;12658:34;;;12688:1;12685;12678:12;12658:34;12711:82;12785:7;12776:6;12765:9;12761:22;12711:82;:::i;:::-;12701:92;;12846:3;12835:9;12831:19;12818:33;12802:49;;12876:2;12866:8;12863:16;12860:36;;;12892:1;12889;12882:12;12999:309;13064:6;13072;13125:2;13113:9;13104:7;13100:23;13096:32;13093:52;;;13141:1;13138;13131:12;13093:52;13177:9;13164:23;13154:33;;13237:2;13226:9;13222:18;13209:32;13250:28;13272:5;13250:28;:::i;:::-;13297:5;13287:15;;;12999:309;;;;;:::o;13313:184::-;-1:-1:-1;;;13362:1:1;13355:88;13462:4;13459:1;13452:15;13486:4;13483:1;13476:15;13502:275;13573:2;13567:9;13638:2;13619:13;;-1:-1:-1;;13615:27:1;13603:40;;13673:18;13658:34;;13694:22;;;13655:62;13652:88;;;13720:18;;:::i;:::-;13756:2;13749:22;13502:275;;-1:-1:-1;13502:275:1:o;13782:192::-;13851:4;13884:18;13876:6;13873:30;13870:56;;;13906:18;;:::i;:::-;-1:-1:-1;13951:1:1;13947:14;13963:4;13943:25;;13782:192::o;13979:551::-;14035:5;14083:4;14071:9;14066:3;14062:19;14058:30;14055:50;;;14101:1;14098;14091:12;14055:50;14134:4;14128:11;14178:4;14170:6;14166:17;14249:6;14237:10;14234:22;14213:18;14201:10;14198:34;14195:62;14192:88;;;14260:18;;:::i;:::-;14296:4;14289:24;14331:6;-1:-1:-1;14331:6:1;14361:23;;14393:33;14361:23;14393:33;:::i;:::-;14435:23;;14519:2;14504:18;;;14491:32;14474:15;;14467:57;;;;13979:551;;-1:-1:-1;13979:551:1:o;14535:746::-;14589:5;14642:3;14635:4;14627:6;14623:17;14619:27;14609:55;;14660:1;14657;14650:12;14609:55;14696:6;14683:20;14722:4;14746:69;14762:52;14811:2;14762:52;:::i;:::-;14746:69;:::i;:::-;14849:15;;;14935:1;14931:10;;;;14919:23;;14915:32;;;14880:12;;;;14959:15;;;14956:35;;;14987:1;14984;14977:12;14956:35;15023:2;15015:6;15011:15;15035:217;15051:6;15046:3;15043:15;15035:217;;;15131:3;15118:17;15148:31;15173:5;15148:31;:::i;:::-;15192:18;;15230:12;;;;15068;;15035:217;;;-1:-1:-1;15270:5:1;14535:746;-1:-1:-1;;;;;;14535:746:1:o;15286:1762::-;15505:6;15513;15521;15529;15537;15545;15553;15606:3;15594:9;15585:7;15581:23;15577:33;15574:53;;;15623:1;15620;15613:12;15574:53;15663:9;15650:23;15692:18;15733:2;15725:6;15722:14;15719:34;;;15749:1;15746;15739:12;15719:34;15787:6;15776:9;15772:22;15762:32;;15832:7;15825:4;15821:2;15817:13;15813:27;15803:55;;15854:1;15851;15844:12;15803:55;15890:2;15877:16;15912:4;15936:69;15952:52;16001:2;15952:52;:::i;15936:69::-;16039:15;;;16121:1;16117:10;;;;16109:19;;16105:28;;;16070:12;;;;16145:19;;;16142:39;;;16177:1;16174;16167:12;16142:39;16201:11;;;;16221:168;16237:6;16232:3;16229:15;16221:168;;;16305:41;16338:7;16333:3;16305:41;:::i;:::-;16300:3;16293:54;16376:2;16371:3;16367:12;16360:19;;16263:4;16258:3;16254:14;16247:21;;16221:168;;;16408:5;-1:-1:-1;;16451:18:1;;16438:32;;-1:-1:-1;;16482:16:1;;;16479:36;;;16511:1;16508;16501:12;16479:36;16534:63;16589:7;16578:8;16567:9;16563:24;16534:63;:::i;:::-;16524:73;;16616:58;16666:7;16659:4;16648:9;16644:20;16616:58;:::i;:::-;16606:68;;16693:39;16727:3;16716:9;16712:19;16693:39;:::i;:::-;16683:49;;16785:3;16774:9;16770:19;16757:33;16741:49;;16815:2;16805:8;16802:16;16799:36;;;16831:1;16828;16821:12;16799:36;;16870:60;16922:7;16911:8;16900:9;16896:24;16870:60;:::i;:::-;16949:8;;-1:-1:-1;16844:86:1;-1:-1:-1;17003:39:1;;-1:-1:-1;17037:3:1;17022:19;;17003:39;:::i;:::-;16993:49;;15286:1762;;;;;;;;;;:::o;17053:184::-;-1:-1:-1;;;17102:1:1;17095:88;17202:4;17199:1;17192:15;17226:4;17223:1;17216:15;17242:128;17309:9;;;17330:11;;;17327:37;;;17344:18;;:::i;17375:331::-;17480:9;17491;17533:8;17521:10;17518:24;17515:44;;;17555:1;17552;17545:12;17515:44;17584:6;17574:8;17571:20;17568:40;;;17604:1;17601;17594:12;17568:40;-1:-1:-1;;17630:23:1;;;17675:25;;;;;-1:-1:-1;17375:331:1:o;17711:255::-;17831:19;;17870:2;17862:11;;17859:101;;;-1:-1:-1;;17931:2:1;17927:12;;;17924:1;17920:20;17916:33;17905:45;17711:255;;;;:::o;17971:530::-;18013:5;18066:3;18059:4;18051:6;18047:17;18043:27;18033:55;;18084:1;18081;18074:12;18033:55;18120:6;18107:20;18146:18;18142:2;18139:26;18136:52;;;18168:18;;:::i;:::-;18212:55;18255:2;18236:13;;-1:-1:-1;;18232:27:1;18261:4;18228:38;18212:55;:::i;:::-;18292:2;18283:7;18276:19;18338:3;18331:4;18326:2;18318:6;18314:15;18310:26;18307:35;18304:55;;;18355:1;18352;18345:12;18304:55;18420:2;18413:4;18405:6;18401:17;18394:4;18385:7;18381:18;18368:55;18468:1;18443:16;;;18461:4;18439:27;18432:38;;;;18447:7;17971:530;-1:-1:-1;;;17971:530:1:o;18506:682::-;18609:6;18617;18625;18678:2;18666:9;18657:7;18653:23;18649:32;18646:52;;;18694:1;18691;18684:12;18646:52;18733:9;18720:23;18752:31;18777:5;18752:31;:::i;:::-;18802:5;-1:-1:-1;18858:2:1;18843:18;;18830:32;18881:18;18911:14;;;18908:34;;;18938:1;18935;18928:12;18908:34;18961:49;19002:7;18993:6;18982:9;18978:22;18961:49;:::i;:::-;18951:59;;19063:2;19052:9;19048:18;19035:32;19019:48;;19092:2;19082:8;19079:16;19076:36;;;19108:1;19105;19098:12;19076:36;;19131:51;19174:7;19163:8;19152:9;19148:24;19131:51;:::i;19193:287::-;19322:3;19360:6;19354:13;19376:66;19435:6;19430:3;19423:4;19415:6;19411:17;19376:66;:::i;:::-;19458:16;;;;;19193:287;-1:-1:-1;;19193:287:1:o;19485:288::-;19660:6;19649:9;19642:25;19703:2;19698;19687:9;19683:18;19676:30;19623:4;19723:44;19763:2;19752:9;19748:18;19740:6;19723:44;:::i;19778:336::-;19847:6;19900:2;19888:9;19879:7;19875:23;19871:32;19868:52;;;19916:1;19913;19906:12;19868:52;19948:9;19942:16;19998:66;19991:5;19987:78;19980:5;19977:89;19967:117;;20080:1;20077;20070:12;20119:184;-1:-1:-1;;;20168:1:1;20161:88;20268:4;20265:1;20258:15;20292:4;20289:1;20282:15;20820:184;20890:6;20943:2;20931:9;20922:7;20918:23;20914:32;20911:52;;;20959:1;20956;20949:12;20911:52;-1:-1:-1;20982:16:1;;20820:184;-1:-1:-1;20820:184:1:o;21009:135::-;21048:3;21069:17;;;21066:43;;21089:18;;:::i;:::-;-1:-1:-1;21136:1:1;21125:13;;21009:135::o;21149:492::-;21324:3;21362:6;21356:13;21378:66;21437:6;21432:3;21425:4;21417:6;21413:17;21378:66;:::i;:::-;21507:13;;21466:16;;;;21529:70;21507:13;21466:16;21576:4;21564:17;;21529:70;:::i;:::-;21615:20;;21149:492;-1:-1:-1;;;;21149:492:1:o;21646:284::-;21704:6;21757:2;21745:9;21736:7;21732:23;21728:32;21725:52;;;21773:1;21770;21763:12;21725:52;21812:9;21799:23;21862:18;21855:5;21851:30;21844:5;21841:41;21831:69;;21896:1;21893;21886:12;21935:241;21991:6;22044:2;22032:9;22023:7;22019:23;22015:32;22012:52;;;22060:1;22057;22050:12;22012:52;22099:9;22086:23;22118:28;22140:5;22118:28;:::i;23047:521::-;23124:4;23130:6;23190:11;23177:25;23284:2;23280:7;23269:8;23253:14;23249:29;23245:43;23225:18;23221:68;23211:96;;23303:1;23300;23293:12;23211:96;23330:33;;23382:20;;;-1:-1:-1;23425:18:1;23414:30;;23411:50;;;23457:1;23454;23447:12;23411:50;23490:4;23478:17;;-1:-1:-1;23521:14:1;23517:27;;;23507:38;;23504:58;;;23558:1;23555;23548:12;23573:286;23662:6;23715:2;23703:9;23694:7;23690:23;23686:32;23683:52;;;23731:1;23728;23721:12;23683:52;23770:9;23757:23;23809:1;23802:5;23799:12;23789:40;;23825:1;23822;23815:12;23864:574;23986:4;23992:6;24052:11;24039:25;24146:2;24142:7;24131:8;24115:14;24111:29;24107:43;24087:18;24083:68;24073:96;;24165:1;24162;24155:12;24073:96;24192:33;;24244:20;;;-1:-1:-1;24287:18:1;24276:30;;24273:50;;;24319:1;24316;24309:12;24273:50;24352:4;24340:17;;-1:-1:-1;24403:1:1;24399:14;;;24383;24379:35;24369:46;;24366:66;;;24428:1;24425;24418:12;24443:545;24536:4;24542:6;24602:11;24589:25;24696:2;24692:7;24681:8;24665:14;24661:29;24657:43;24637:18;24633:68;24623:96;;24715:1;24712;24705:12;24623:96;24742:33;;24794:20;;;-1:-1:-1;24837:18:1;24826:30;;24823:50;;;24869:1;24866;24859:12;24823:50;24902:4;24890:17;;-1:-1:-1;24953:1:1;24949:14;;;24933;24929:35;24919:46;;24916:66;;;24978:1;24975;24968:12;25543:125;25608:9;;;25629:10;;;25626:36;;;25642:18;;:::i;26046:543::-;26264:13;;26207:3;;26238;;26317:4;26344:15;;;26207:3;26387:175;26401:6;26398:1;26395:13;26387:175;;;26464:13;;26450:28;;26500:14;;;;26537:15;;;;26423:1;26416:9;26387:175;;;-1:-1:-1;26578:5:1;;26046:543;-1:-1:-1;;;;;;26046:543:1:o;27004:266::-;27092:6;27087:3;27080:19;27144:6;27137:5;27130:4;27125:3;27121:14;27108:43;-1:-1:-1;27196:1:1;27171:16;;;27189:4;27167:27;;;27160:38;;;;27252:2;27231:15;;;-1:-1:-1;;27227:29:1;27218:39;;;27214:50;;27004:266::o;27275:518::-;-1:-1:-1;;;;;27514:6:1;27510:55;27499:9;27492:74;27602:6;27597:2;27586:9;27582:18;27575:34;27645:3;27640:2;27629:9;27625:18;27618:31;27473:4;27666:62;27723:3;27712:9;27708:19;27700:6;27692;27666:62;:::i;:::-;27658:70;;27778:6;27771:14;27764:22;27759:2;27748:9;27744:18;27737:50;27275:518;;;;;;;;:::o;27798:245::-;27865:6;27918:2;27906:9;27897:7;27893:23;27889:32;27886:52;;;27934:1;27931;27924:12;27886:52;27966:9;27960:16;27985:28;28007:5;27985:28;:::i;28048:864::-;28400:26;28395:3;28388:39;28370:3;28456:6;28450:13;28472:75;28540:6;28535:2;28530:3;28526:12;28519:4;28511:6;28507:17;28472:75;:::i;:::-;28607:13;;28566:16;;;;28629:76;28607:13;28691:2;28683:11;;28676:4;28664:17;;28629:76;:::i;:::-;28766:13;;28724:17;;;28788:76;28766:13;28850:2;28842:11;;28835:4;28823:17;;28788:76;:::i;:::-;28884:17;28903:2;28880:26;;28048:864;-1:-1:-1;;;;;28048:864:1:o;29128:489::-;29205:3;29243:5;29237:12;29270:6;29265:3;29258:19;29296:4;29325:2;29320:3;29316:12;29309:19;;29362:2;29355:5;29351:14;29383:1;29393:199;29407:6;29404:1;29401:13;29393:199;;;29456:54;29506:3;29497:6;29491:13;29003:12;;-1:-1:-1;;;;;28999:61:1;28987:74;;29110:4;29099:16;;;29093:23;29077:14;;29070:47;28917:206;29456:54;29539:4;29530:14;;;;;29567:15;;;;29429:1;29422:9;29393:199;;29622:1706;30155:3;30144:9;30137:22;30118:4;30197:3;30186:9;30182:19;30236:6;30230:13;30280:4;30274:3;30263:9;30259:19;30252:33;30305:6;30340:12;30334:19;30377:6;30369;30362:22;30415:3;30404:9;30400:19;30393:26;;30438:4;30428:14;;30483:2;30469:12;30465:21;30451:35;;30504:1;30514:199;30528:6;30525:1;30522:13;30514:199;;;30577:54;30627:3;30618:6;30612:13;29003:12;;-1:-1:-1;;;;;28999:61:1;28987:74;;29110:4;29099:16;;;29093:23;29077:14;;29070:47;28917:206;30577:54;30688:15;;;;30660:4;30651:14;;;;;30550:1;30543:9;30514:199;;;30518:3;;30768:2;30760:6;30756:15;30750:22;30744:3;30733:9;30729:19;30722:51;30828:4;30820:6;30816:17;30810:24;30804:3;30793:9;30789:19;30782:53;30880:9;30875:3;30871:19;30866:2;30855:9;30851:18;30844:47;30914:65;30975:3;30967:6;30914:65;:::i;:::-;30900:79;;;;30988:48;31030:4;31019:9;31015:20;31007:6;-1:-1:-1;;;;;7789:54:1;7777:67;;7723:127;30988:48;31074:6;31067:4;31056:9;31052:20;31045:36;31130:9;31122:6;31118:22;31112:3;31101:9;31097:19;31090:51;31164:32;31189:6;31181;31164:32;:::i;:::-;31150:46;;31245:9;31237:6;31233:22;31227:3;31216:9;31212:19;31205:51;31273:49;31315:6;31307;31299;31273:49;:::i;31333:859::-;31685:21;31680:3;31673:34;31655:3;31736:6;31730:13;31752:75;31820:6;31815:2;31810:3;31806:12;31799:4;31791:6;31787:17;31752:75;:::i;:::-;31887:13;;31846:16;;;;31909:76;31887:13;31971:2;31963:11;;31956:4;31944:17;;31909:76;:::i;:::-;32046:13;;32004:17;;;32068:76;32046:13;32130:2;32122:11;;32115:4;32103:17;;32068:76;:::i;:::-;32164:17;32183:2;32160:26;;31333:859;-1:-1:-1;;;;;31333:859:1:o;32197:1111::-;32633:4;32662:3;32674:60;32724:9;32715:6;32709:13;29003:12;;-1:-1:-1;;;;;28999:61:1;28987:74;;29110:4;29099:16;;;29093:23;29077:14;;29070:47;28917:206;32674:60;32790:4;32782:6;32778:17;32772:24;32765:4;32754:9;32750:20;32743:54;32853:4;32845:6;32841:17;32835:24;32828:4;32817:9;32813:20;32806:54;32869:63;32927:3;32916:9;32912:19;32904:6;29003:12;;-1:-1:-1;;;;;28999:61:1;28987:74;;29110:4;29099:16;;;29093:23;29077:14;;29070:47;28917:206;32869:63;-1:-1:-1;;;;;32973:6:1;32969:55;32963:3;32952:9;32948:19;32941:84;33062:6;33056:3;33045:9;33041:19;33034:35;33106:2;33100:3;33089:9;33085:19;33078:31;33132:44;33172:2;33161:9;33157:18;33149:6;33132:44;:::i;:::-;33118:58;;33225:9;33217:6;33213:22;33207:3;33196:9;33192:19;33185:51;33253:49;33295:6;33287;33279;33253:49;:::i;33313:568::-;33576:2;33565:9;33558:21;33539:4;33602:61;33659:2;33648:9;33644:18;33636:6;33628;33602:61;:::i;:::-;33711:9;33703:6;33699:22;33694:2;33683:9;33679:18;33672:50;33739:44;33776:6;33768;33739:44;:::i;:::-;33731:52;;;-1:-1:-1;;;;;33823:6:1;33819:55;33814:2;33803:9;33799:18;33792:83;33313:568;;;;;;;:::o;34259:484::-;34312:3;34350:5;34344:12;34377:6;34372:3;34365:19;34403:4;34432:2;34427:3;34423:12;34416:19;;34469:2;34462:5;34458:14;34490:1;34500:218;34514:6;34511:1;34508:13;34500:218;;;34579:13;;-1:-1:-1;;;;;34575:62:1;34563:75;;34658:12;;;;34693:15;;;;34536:1;34529:9;34500:218;;34748:1138;35186:4;35215:3;-1:-1:-1;;;;;35318:2:1;35310:6;35306:15;35295:9;35288:34;35358:2;35353;35342:9;35338:18;35331:30;35384:56;35436:2;35425:9;35421:18;35413:6;35384:56;:::i;:::-;35370:70;;35488:9;35480:6;35476:22;35471:2;35460:9;35456:18;35449:50;35522:44;35559:6;35551;35522:44;:::i;:::-;35508:58;;35614:9;35606:6;35602:22;35597:2;35586:9;35582:18;35575:50;35642:44;35679:6;35671;35642:44;:::i;:::-;35723:15;;;35717:3;35702:19;;35695:44;35770:3;35755:19;;35748:35;;;;-1:-1:-1;;35820:15:1;;;;35814:3;35799:19;;35792:44;35867:3;35852:19;35845:35;35634:52;34748:1138;-1:-1:-1;;;;34748:1138:1:o;36144:184::-;-1:-1:-1;;;36193:1:1;36186:88;36293:4;36290:1;36283:15;36317:4;36314:1;36307:15;36333:435;36546:6;36535:9;36528:25;-1:-1:-1;;;;;36593:6:1;36589:55;36584:2;36573:9;36569:18;36562:83;36681:2;36676;36665:9;36661:18;36654:30;36509:4;36701:61;36758:2;36747:9;36743:18;36735:6;36727;36701:61;:::i;:::-;36693:69;36333:435;-1:-1:-1;;;;;;36333:435:1:o;37782:168::-;37855:9;;;37886;;37903:15;;;37897:22;;37883:37;37873:71;;37924:18;;:::i;37955:274::-;37995:1;38021;38011:189;;-1:-1:-1;;;38053:1:1;38046:88;38157:4;38154:1;38147:15;38185:4;38182:1;38175:15;38011:189;-1:-1:-1;38214:9:1;;37955:274::o;38637:358::-;38737:6;38732:3;38725:19;38707:3;38767:66;38759:6;38756:78;38753:98;;;38847:1;38844;38837:12;38753:98;38883:6;38880:1;38876:14;38935:8;38928:5;38921:4;38916:3;38912:14;38899:45;38964:18;;;;38984:4;38960:29;;38637:358;-1:-1:-1;;;38637:358:1:o;39000:595::-;39273:2;39262:9;39255:21;39236:4;39299:61;39356:2;39345:9;39341:18;39333:6;39325;39299:61;:::i;:::-;39408:9;39400:6;39396:22;39391:2;39380:9;39376:18;39369:50;39436:61;39490:6;39482;39474;39436:61;:::i;:::-;39428:69;;;-1:-1:-1;;;;;39537:6:1;39533:55;39528:2;39517:9;39513:18;39506:83;39000:595;;;;;;;;:::o;39600:1515::-;40172:4;40201:3;40231:2;40220:9;40213:21;40257:56;40309:2;40298:9;40294:18;40286:6;40257:56;:::i;:::-;40243:70;;40361:9;40353:6;40349:22;40344:2;40333:9;40329:18;40322:50;40395:44;40432:6;40424;40395:44;:::i;:::-;40381:58;;40487:9;40479:6;40475:22;40470:2;40459:9;40455:18;40448:50;40521:61;40575:6;40567;40559;40521:61;:::i;:::-;40507:75;;40630:9;40622:6;40618:22;40613:2;40602:9;40598:18;40591:50;40664:44;40701:6;40693;40664:44;:::i;:::-;40650:58;;40757:9;40749:6;40745:22;40739:3;40728:9;40724:19;40717:51;40785:44;40822:6;40814;40785:44;:::i;:::-;40848:18;40903:15;;;40897:3;40882:19;;40875:44;40956:15;;;;40950:3;40935:19;;40928:44;-1:-1:-1;;;;;;41009:55:1;;;;41003:3;40988:19;;40981:84;41096:3;41081:19;;;41074:35;40777:52;39600:1515;-1:-1:-1;;;;;;;39600:1515:1:o;41481:437::-;41560:1;41556:12;;;;41603;;;41624:61;;41678:4;41670:6;41666:17;41656:27;;41624:61;41731:2;41723:6;41720:14;41700:18;41697:38;41694:218;;-1:-1:-1;;;41765:1:1;41758:88;41869:4;41866:1;41859:15;41897:4;41894:1;41887:15
Swarm Source
ipfs://775688bb8248c18a0314f2882b42d9bc1113cd4bb8bc9df233e6aab0a41ecfe6
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.