ERC-721
Overview
Max Total Supply
7 LEMVT
Holders
7
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 LEMVTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x86f78d3c...738Ec4932 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
stableQiVault
Compiler Version
v0.8.11+commit.d7f03943
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-04-06 */ // Sources flattened with hardhat v2.12.2 https://hardhat.org pragma solidity 0.8.11; interface IPriceSource { function latestRoundData() external view returns (uint256); function latestAnswer() external view returns (uint256); function decimals() external view returns (uint8); } // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 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 10, 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 * 8) < value ? 1 : 0); } } } // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `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); } } // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [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://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return 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 v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // OpenZeppelin Contracts (last updated v4.8.2) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } } // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev See {ERC721-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual override { super._beforeTokenTransfer(from, to, firstTokenId, batchSize); if (batchSize > 1) { // Will only trigger during construction. Batch transferring (minting) is not available afterwards. revert("ERC721Enumerable: consecutive transfers not supported"); } uint256 tokenId = firstTokenId; if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } // contracts/MyVaultNFT.sol pragma solidity 0.8.11; contract VaultNFTv5 is ERC721, ERC721Enumerable { bool public custom; string internal baseURI; function _beforeTokenTransfer(address from, address to, uint256 tokenId, uint256 batchSize) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId, batchSize); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } constructor(string memory name, string memory symbol, string memory _baseURI) ERC721(name, symbol) { baseURI = _baseURI; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); if(custom){ return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, Strings.toString(tokenId))) : ""; } else{ return baseURI; } } } // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @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. */ 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]. */ 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.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } 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"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } pragma solidity 0.8.11; contract fixedVault is ReentrancyGuard, VaultNFTv5 { using SafeERC20 for ERC20; /// @dev Constants used across the contract. uint256 constant TEN_THOUSAND = 10000; uint256 constant ONE_YEAR = 31556952; uint256 constant THOUSAND = 1000; IPriceSource public ethPriceSource; uint256 public _minimumCollateralPercentage; uint256 public vaultCount; uint256 public closingFee; uint256 public openingFee; uint256 public minDebt; uint256 public maxDebt; uint256 constant public tokenPeg = 1e8; // $1 uint256 public iR; mapping(uint256 => uint256) public vaultCollateral; mapping(uint256 => uint256) public accumulatedVaultDebt; mapping(uint256 => uint256) public lastInterest; mapping(uint256 => uint256) public promoter; uint256 public adminFee; // 10% of the earned interest uint256 public refFee; // 90% of the earned interest uint256 public debtRatio; uint256 public gainRatio; ERC20 public collateral; ERC20 public mai; uint256 public decimalDifferenceRaisedToTen; uint256 public priceSourceDecimals; uint256 public totalBorrowed; mapping(address => uint256) public maticDebt; uint256 public maiDebt; address public stabilityPool; address public adm; address public ref; address public router; uint8 public version = 8; event CreateVault(uint256 vaultID, address creator); event DestroyVault(uint256 vaultID); event DepositCollateral(uint256 vaultID, uint256 amount); event WithdrawCollateral(uint256 vaultID, uint256 amount); event BorrowToken(uint256 vaultID, uint256 amount); event PayBackToken(uint256 vaultID, uint256 amount, uint256 closingFee); event LiquidateVault( uint256 vaultID, address owner, address buyer, uint256 debtRepaid, uint256 collateralLiquidated, uint256 closingFee ); event BoughtRiskyDebtVault(uint256 riskyVault, uint256 newVault, address riskyVaultBuyer, uint256 amountPaidtoBuy); constructor( address ethPriceSourceAddress, uint256 minimumCollateralPercentage, string memory name, string memory symbol, address _mai, address _collateral, string memory baseURI ) VaultNFTv5(name, symbol, baseURI) { require(ethPriceSourceAddress != address(0)); require(minimumCollateralPercentage != 0); closingFee = 50; // 0.5% openingFee = 0; // 0.0% ethPriceSource = IPriceSource(ethPriceSourceAddress); stabilityPool = address(0); maxDebt = 500000 ether; //Keeping maxDebt at 500K * 10^(18) debtRatio = 2; // 1/2, pay back 50% gainRatio = 1100; // /10 so 1.1 _minimumCollateralPercentage = minimumCollateralPercentage; collateral = ERC20(_collateral); mai = ERC20(_mai); priceSourceDecimals = 8; /* This works only for collaterals with decimals < 18 */ decimalDifferenceRaisedToTen = 10**(mai.decimals() - collateral.decimals()); adm = msg.sender; ref = msg.sender; } modifier onlyVaultOwner(uint256 vaultID) { require(_exists(vaultID), "Vault does not exist"); require(ownerOf(vaultID) == msg.sender, "Vault is not owned by you"); _; } modifier onlyRouter() { require( router == address(0) || msg.sender == router, "must use router" ); _; } modifier vaultExists(uint256 vaultID) { require(_exists(vaultID), "Vault does not exist"); _; } modifier frontExists(uint256 vaultID) { require(_exists(vaultID), "front end vault does not exist"); require(promoter[vaultID] <= TEN_THOUSAND && promoter[vaultID] > 0, "Front end not added"); _; } /// @notice Return the current debt available to borrow. /// @dev checks the outstanding balance of the borrowable asset within the contract. /// @return available balance of borrowable asset. function getDebtCeiling() public view returns (uint256) { return mai.balanceOf(address(this)); } /// @param vaultID is the token id of the vault being checked. /// @notice Returns true if a vault exists /// @dev the erc721 spec allows users to burn/destroy their nft /// @return boolean if the vault exists function exists(uint256 vaultID) external view returns (bool) { return _exists(vaultID); } /// @notice Returns the total value locked in the vault, based on the oracle price. /// @return uint256 total value locked in vault function getTotalValueLocked() external view returns (uint256) { return ( getEthPriceSource() * decimalDifferenceRaisedToTen * collateral.balanceOf(address(this)) ) ; //extra 1e8, to get fraction in ui // 1e8 * 1eDelta } /// @notice Return the fee charged when repaying a vault. /// @return uint256 is the fee charged to a vault when repaying. function getClosingFee() external view returns (uint256) { return closingFee; } /// @notice Return the peg maintained by the vault. /// @return uint256 is the value with 8 decimals used to calculate borrowable debt. function getTokenPriceSource() public view returns (uint256) { return tokenPeg; } /// @notice Return the collateral value /// @return uint256 is the value retrieved from the oracle used /// to calculate the available borrowable amounts. function getEthPriceSource() public view returns (uint256) { return ethPriceSource.latestAnswer(); } /// @param vaultID is the token id of the vault being checked. /// @notice Returns the debt owned by the vault and the interest accrued over time. /// @return uint256 fee earned in the time between updates /// @return uint256 debt owed by the vault for further calculation. function _vaultDebtAndFee(uint256 vaultID) internal view returns (uint256, uint256) { uint256 currentTime = block.timestamp; uint256 debt = accumulatedVaultDebt[vaultID]; uint256 fee = 0; if (lastInterest[vaultID] != 0 && iR > 0) { uint256 timeDelta = currentTime - lastInterest[vaultID]; uint256 feeAccrued = (((iR * debt) * timeDelta) / ONE_YEAR) / TEN_THOUSAND; fee = feeAccrued; debt = feeAccrued + debt; } return (fee, debt); } /// @param vaultID is the token id of the vault being checked. /// @notice Returns the debt owned by the vault without tracking the interest /// @return uint256 debt owed by the vault for further calculation. function vaultDebt(uint256 vaultID) public view returns (uint256) { (, uint256 debt) = _vaultDebtAndFee(vaultID); return debt; } /// @param vaultID is the token id of the vault being checked. /// @notice Adds the interest charged to the vault over the previous time called. /// @return uint256 latest vault debt function updateVaultDebt(uint256 vaultID) public returns (uint256) { (uint256 fee, uint256 debt) = _vaultDebtAndFee(vaultID); maiDebt = maiDebt + fee; totalBorrowed = totalBorrowed + fee; if(iR > 0) { lastInterest[vaultID] = block.timestamp; } // we can just update the current vault debt here instead accumulatedVaultDebt[vaultID] = debt; return debt; } /// @param _collateral is the amount of collateral tokens to be valued. /// @param _debt is the debt owed by the vault. /// @notice Returns collateral value and debt based on the oracle prices /// @return uint256 coolateral value * 100. used to calculate the CDR /// @return uint256 debt value. Uses token price source to derive. function calculateCollateralProperties(uint256 _collateral, uint256 _debt) private view returns (uint256, uint256) { require(getEthPriceSource() != 0); require(getTokenPriceSource() != 0); uint256 collateralValue = _collateral * getEthPriceSource() * decimalDifferenceRaisedToTen; require(collateralValue >= _collateral); uint256 debtValue = _debt * getTokenPriceSource(); require(debtValue >= _debt); uint256 collateralValueTimes100 = collateralValue * 100; require(collateralValueTimes100 > collateralValue); return (collateralValueTimes100, debtValue); } /// @param _collateral is the amount of collateral tokens held by vault. /// @param debt is the debt owed by the vault. /// @notice Calculates if the CDR is valid before taking a further action with a user /// @return boolean describing if the new CDR is valid. function isValidCollateral(uint256 _collateral, uint256 debt) public view returns (bool) { ( uint256 collateralValueTimes100, uint256 debtValue ) = calculateCollateralProperties(_collateral, debt); uint256 collateralPercentage = collateralValueTimes100 / debtValue; return collateralPercentage >= _minimumCollateralPercentage; } /// @param fee is the amount of basis points (BP) to charge /// @param amount is the total value to calculate the BPs from /// @param promoFee is the fee charged by the front end /// @notice Returns fee to charge based on the collateral amount /// @return uint256 fee to charge the collateral. /// @dev fee can be called on web app to compare charges. function calculateFee( uint256 fee, uint256 amount, uint256 promoFee ) public view returns (uint256) { uint256 _fee; if (promoFee>0) { _fee = ((amount * fee * getTokenPriceSource() * promoFee) / (getEthPriceSource() * TEN_THOUSAND * TEN_THOUSAND)); } else { _fee = (amount * fee * getTokenPriceSource()) / (getEthPriceSource() * TEN_THOUSAND); } return _fee / decimalDifferenceRaisedToTen; } /// @notice Creates a new ERC721 Vault NFT /// @return uint256 the token id of the vault created. function createVault() public returns (uint256) { uint256 id = vaultCount; vaultCount = vaultCount + 1; require(vaultCount >= id); _mint(msg.sender, id); emit CreateVault(id, msg.sender); return id; } /// @notice Destroys an ERC721 Vault NFT /// @param vaultID the vault ID to destroy /// @dev vault must not have any debt owed to be able to be destroyed. function destroyVault(uint256 vaultID) external onlyVaultOwner(vaultID) nonReentrant { require(vaultDebt(vaultID) == 0, "Vault has outstanding debt"); if (vaultCollateral[vaultID] != 0) { // withdraw leftover collateral collateral.safeTransfer(ownerOf(vaultID), vaultCollateral[vaultID]); } _burn(vaultID); delete vaultCollateral[vaultID]; delete accumulatedVaultDebt[vaultID]; delete lastInterest[vaultID]; emit DestroyVault(vaultID); } /// @param vaultID is the token id of the vault being interacted with. /// @param amount is the amount of collateral to deposit from msg.sender /// @notice Adds collateral to a specific vault by token id /// @dev Any address can deposit into a vault function depositCollateral(uint256 vaultID, uint256 amount) external vaultExists(vaultID) onlyRouter { uint256 newCollateral = vaultCollateral[vaultID] + (amount); require(newCollateral >= vaultCollateral[vaultID]); vaultCollateral[vaultID] = newCollateral; collateral.safeTransferFrom(msg.sender, address(this), amount); emit DepositCollateral(vaultID, amount); } /// @param vaultID is the token id of the vault being interacted with. /// @param amount is the amount of collateral to withdraw /// @notice withdraws collateral to a specific vault by token id /// @dev If there is debt, then it can only withdraw up to the min CDR. function withdrawCollateral(uint256 vaultID, uint256 amount) external onlyVaultOwner(vaultID) nonReentrant { require( vaultCollateral[vaultID] >= amount, "Vault does not have enough collateral" ); uint256 newCollateral = vaultCollateral[vaultID] - amount; uint256 debt = updateVaultDebt(vaultID); if (debt != 0) { require( isValidCollateral(newCollateral, debt), "Withdrawal would put vault below minimum collateral percentage" ); } vaultCollateral[vaultID] = newCollateral; collateral.safeTransfer(msg.sender, amount); emit WithdrawCollateral(vaultID, amount); } /// @param vaultID is the token id of the vault being interacted with. /// @param amount is the amount of borrowable asset to borrow /// @notice borrows asset based on the collateral held and the price of the collateral. /// @dev Borrowing is limited by the CDR of the vault /// If there's opening fee, it will be charged here. function borrowToken( uint256 vaultID, uint256 amount, uint256 _front ) external frontExists(_front) onlyVaultOwner(vaultID) nonReentrant { require(amount > 0, "Must borrow non-zero amount"); require( amount <= getDebtCeiling(), "borrowToken: Cannot mint over available supply." ); uint256 newDebt = updateVaultDebt(vaultID) + amount; require(newDebt<=maxDebt, "borrowToken: max loan cap reached."); require(newDebt > vaultDebt(vaultID)); require( isValidCollateral(vaultCollateral[vaultID], newDebt), "Borrow would put vault below minimum collateral percentage" ); require( ((vaultDebt(vaultID)) + amount) >= minDebt, "Vault debt can't be under minDebt" ); accumulatedVaultDebt[vaultID] = newDebt; uint256 _openingFee = calculateFee(openingFee, newDebt, promoter[_front]); vaultCollateral[vaultID] = vaultCollateral[vaultID] - (_openingFee); vaultCollateral[_front] = vaultCollateral[_front] + (_openingFee); // mai mai.safeTransfer(msg.sender, amount); totalBorrowed = totalBorrowed + (amount); emit BorrowToken(vaultID, amount); } function paybackTokenAll( uint256 vaultID, uint256 deadline, uint256 _front ) external frontExists(_front) vaultExists(vaultID) onlyRouter { require( deadline >= block.timestamp, "paybackTokenAll: deadline expired." ); uint256 _amount = updateVaultDebt(vaultID); payBackToken(vaultID, _amount, _front); } /// @param vaultID is the token id of the vault being interacted with. /// @param amount is the amount of borrowable asset to repay /// @param _front is the front end that will get the opening /// @notice payback asset to close loan. /// @dev If there is debt, then it can only withdraw up to the min CDR. function payBackToken( uint256 vaultID, uint256 amount, uint256 _front ) public frontExists(_front) vaultExists(vaultID) onlyRouter { require(mai.balanceOf(msg.sender) >= amount, "Token balance too low"); uint256 vaultDebtNow = updateVaultDebt(vaultID); require( vaultDebtNow >= amount, "Vault debt less than amount to pay back" ); require( ((vaultDebtNow) - amount) >= minDebt || amount == (vaultDebtNow), "Vault debt can't be under minDebt" ); uint256 _closingFee = calculateFee( closingFee, amount, promoter[_front] ); accumulatedVaultDebt[vaultID] = vaultDebtNow - amount; vaultCollateral[vaultID] = vaultCollateral[vaultID] - _closingFee; vaultCollateral[_front] = vaultCollateral[_front] + _closingFee; totalBorrowed = totalBorrowed - amount; //mai mai.safeTransferFrom(msg.sender, address(this), amount); emit PayBackToken(vaultID, amount, _closingFee); } /// @notice withdraws liquidator earnings. /// @dev reverts if there's no collateral to withdraw. function getPaid() external nonReentrant { require(maticDebt[msg.sender] != 0, "Don't have anything for you."); uint256 amount = maticDebt[msg.sender]; maticDebt[msg.sender] = 0; collateral.safeTransfer(msg.sender, amount); } /// @param pay is address of the person to getPaid /// @notice withdraws liquidator earnings. /// @dev reverts if there's no collateral to withdraw. function getPaid(address pay) external nonReentrant { require(maticDebt[pay] != 0, "Don't have anything for you."); uint256 amount = maticDebt[pay]; maticDebt[pay] = 0; collateral.safeTransfer(pay, amount); } /// @param vaultID is the token id of the vault being interacted with. /// @notice Calculates cost to liquidate a vault /// @dev Can be used to calculate balance required to liquidate a vault. function checkCost(uint256 vaultID) public view returns (uint256) { uint256 vaultDebtNow = vaultDebt(vaultID); if ( vaultCollateral[vaultID] == 0 || vaultDebtNow == 0 || !checkLiquidation(vaultID) ) { return 0; } (, uint256 debtValue ) = calculateCollateralProperties( vaultCollateral[vaultID], vaultDebtNow ); if (debtValue == 0) { return 0; } debtValue = debtValue / (10**priceSourceDecimals); uint256 halfDebt = debtValue / debtRatio; //debtRatio (2) if (halfDebt <= minDebt) { halfDebt = debtValue; } return (halfDebt); } /// @param vaultID is the token id of the vault being interacted with. /// @notice Calculates collateral to extract when liquidating a vault /// @dev Can be used to calculate earnings from liquidating a vault. function checkExtract(uint256 vaultID) public view returns (uint256) { if (vaultCollateral[vaultID] == 0 || !checkLiquidation(vaultID)) { return 0; } uint256 vaultDebtNow = vaultDebt(vaultID); (, uint256 debtValue) = calculateCollateralProperties( vaultCollateral[vaultID], vaultDebtNow ); uint256 halfDebt = debtValue / debtRatio; //debtRatio (2) if (halfDebt == 0) { return 0; } if ((halfDebt) / (10**priceSourceDecimals) <= minDebt) { // full liquidation if under the min debt. return (debtValue * ( gainRatio)) / (THOUSAND) / (getEthPriceSource()) / decimalDifferenceRaisedToTen; } else { return (halfDebt * (gainRatio)) / THOUSAND / (getEthPriceSource()) / decimalDifferenceRaisedToTen; } } /// @param vaultID is the token id of the vault being interacted with. /// @notice Calculates the collateral percentage of a vault. function checkCollateralPercentage(uint256 vaultID) public view vaultExists(vaultID) returns (uint256) { uint256 vaultDebtNow = vaultDebt(vaultID); if (vaultCollateral[vaultID] == 0 || vaultDebtNow == 0) { return 0; } ( uint256 collateralValueTimes100, uint256 debtValue ) = calculateCollateralProperties( vaultCollateral[vaultID], vaultDebtNow ); return collateralValueTimes100 / (debtValue); } /// @param vaultID is the token id of the vault being interacted with. /// @notice Calculates if a vault is liquidatable. /// @return bool if vault is liquidatable or not. function checkLiquidation(uint256 vaultID) public view vaultExists(vaultID) returns (bool) { uint256 vaultDebtNow = vaultDebt(vaultID); if (vaultCollateral[vaultID] == 0 || vaultDebtNow == 0) { return false; } ( uint256 collateralValueTimes100, uint256 debtValue ) = calculateCollateralProperties( vaultCollateral[vaultID], vaultDebtNow ); uint256 collateralPercentage = collateralValueTimes100 / (debtValue); if (collateralPercentage < _minimumCollateralPercentage) { return true; } else { return false; } } /// @param vaultID is the token id of the vault being interacted with. /// @notice Calculates if a vault is risky and can be bought. /// @return bool if vault is risky or not. function checkRiskyVault(uint256 vaultID) public view vaultExists(vaultID) returns (bool) { uint256 vaultDebtNow = vaultDebt(vaultID); if (vaultCollateral[vaultID] == 0 || vaultDebtNow == 0) { return false; } ( uint256 collateralValueTimes100, uint256 debtValue ) = calculateCollateralProperties( vaultCollateral[vaultID], vaultDebtNow ); uint256 collateralPercentage = collateralValueTimes100 / (debtValue); if ((collateralPercentage*10) <= gainRatio) { return true; } else { return false; } } /// @param vaultID is the token id of the vault being interacted with. /// @notice Pays back the part of the debt owed by the vault and removes a /// comparable amount of collateral plus bonus /// @dev if vault CDR is under the bonus ratio, /// then it will only be able to be bought through buy risky. /// Amount to pay back is based on debtRatio variable. function liquidateVault(uint256 vaultID, uint256 _front) external frontExists(_front) vaultExists(vaultID) { require( stabilityPool == address(0) || msg.sender == stabilityPool, "liquidation is disabled for public" ); uint256 vaultDebtNow = updateVaultDebt(vaultID); ( uint256 collateralValueTimes100, uint256 debtValue ) = calculateCollateralProperties( vaultCollateral[vaultID], vaultDebtNow ); require(vaultDebtNow != 0, "Vault debt is 0"); uint256 collateralPercentage = collateralValueTimes100 / (debtValue); require( collateralPercentage < _minimumCollateralPercentage, "Vault is not below minimum collateral percentage" ); require(collateralPercentage * 10 > gainRatio , "Vault is not above gain ratio"); debtValue = debtValue / (10**priceSourceDecimals); uint256 halfDebt = debtValue / (debtRatio); //debtRatio (2) if (halfDebt <= minDebt) { halfDebt = debtValue; } require( mai.balanceOf(msg.sender) >= halfDebt, "Token balance too low to pay off outstanding debt" ); totalBorrowed = totalBorrowed - (halfDebt); uint256 maticExtract = checkExtract(vaultID); accumulatedVaultDebt[vaultID] = vaultDebtNow - (halfDebt); // we paid back half of its debt. uint256 _closingFee = calculateFee(closingFee, halfDebt, promoter[_front]); vaultCollateral[vaultID] = vaultCollateral[vaultID] - (_closingFee); vaultCollateral[_front] = vaultCollateral[_front] + (_closingFee); // deduct the amount from the vault's collateral vaultCollateral[vaultID] = vaultCollateral[vaultID] - (maticExtract); // let liquidator take the collateral maticDebt[msg.sender] = maticDebt[msg.sender] + (maticExtract); //mai mai.safeTransferFrom(msg.sender, address(this), halfDebt); emit LiquidateVault( vaultID, ownerOf(vaultID), msg.sender, halfDebt, maticExtract, _closingFee ); } /// @param vaultID is the token id of the vault being interacted with. /// @notice Pays back the debt owed to bring it back to min CDR. /// And transfers ownership of it to the liquidator with a new vault /// @return uint256 new vault created with the debt and collateral. /// @dev this function can only be called if vault CDR is under the bonus ratio. /// address who calls it will now own the debt and the collateral. function buyRiskDebtVault(uint256 vaultID) external vaultExists(vaultID) nonReentrant returns(uint256) { require( stabilityPool == address(0) || msg.sender == stabilityPool, "buy risky is disabled for public" ); uint256 vaultDebtNow = updateVaultDebt(vaultID); require(vaultDebtNow != 0, "Vault debt is 0"); ( uint256 collateralValueTimes100, uint256 debtValue ) = calculateCollateralProperties( vaultCollateral[vaultID], vaultDebtNow ); uint256 collateralPercentage = collateralValueTimes100 / (debtValue); require( (collateralPercentage*10) <= gainRatio, "Vault is not below risky collateral percentage" ); uint256 maiDebtTobePaid = (debtValue / (10**priceSourceDecimals)) - (collateralValueTimes100 / ( _minimumCollateralPercentage * (10**priceSourceDecimals))); //have enough MAI to bring vault to X CDR (presumably min) require(mai.balanceOf(msg.sender) >= maiDebtTobePaid, "Not enough mai to buy the risky vault"); //mai mai.safeTransferFrom(msg.sender, address(this), maiDebtTobePaid); totalBorrowed = totalBorrowed - (maiDebtTobePaid); // newVault for msg.sender uint256 newVault = createVault(); // updating vault collateral and debt details for the transfer of risky vault vaultCollateral[newVault] = vaultCollateral[vaultID]; accumulatedVaultDebt[newVault] = vaultDebtNow - maiDebtTobePaid; lastInterest[newVault] = block.timestamp; // resetting the vaultID vault info delete vaultCollateral[vaultID]; delete accumulatedVaultDebt[vaultID]; // lastInterest of vaultID would be block.timestamp, not reseting its timestamp emit BoughtRiskyDebtVault(vaultID, newVault, msg.sender, maiDebtTobePaid); return newVault; } } // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } pragma solidity 0.8.11; /// @title Fixed Interest Vault /// @notice Single collateral lending manager with fixed rate interest. contract stableQiVault is fixedVault, Ownable { /// @dev Used to restrain the fee. Can only be up to 5% of the amount. uint256 constant FEE_MAX = 500; string private oracleType; constructor( address ethPriceSourceAddress, uint256 minimumCollateralPercentage, string memory name, string memory symbol, address _mai, address _collateral, string memory baseURI ) fixedVault( ethPriceSourceAddress, minimumCollateralPercentage, name, symbol, _mai, _collateral, baseURI ) { createVault(); addFrontEnd(0); } event UpdatedClosingFee(uint256 newFee); event UpdatedOpeningFee(uint256 newFee); event WithdrawInterest(uint256 earned); event UpdatedMinDebt(uint256 newMinDebt); event UpdatedMaxDebt(uint256 newMaxDebt); event UpdatedDebtRatio(uint256 _debtRatio); event UpdatedGainRatio(uint256 _gainRatio); event UpdatedEthPriceSource(address _ethPriceSourceAddress); event AddedFrontEnd(uint256 promoter); event RemovedFrontEnd(uint256 promoter); event UpdatedFrontEnd(uint256 promoter, uint256 newFee); event UpdatedFees(uint256 _adminFee, uint256 _refFee); event UpdatedMinCollateralRatio(uint256 newMinCollateralRatio); event UpdatedStabilityPool(address pool); event UpdatedInterestRate(uint256 interestRate); event BurnedToken(uint256 amount); event UpdatedTokenURI(string uri); event UpdatedAdmin(address newAdmin); event UpdatedRef(address newRef); event UpdatedOracleName(string oracle); event UpdatedRouter(address router); event UpdatedCustomURI(bool custom); modifier onlyOperators() { require(ref == msg.sender || adm == msg.sender || owner() == msg.sender, "Needs to be called by operators"); _; } modifier onlyAdmin() { require(adm == msg.sender, "Needs to be called by admin"); _; } /// @param _oracle name of the oracle used by the contract /// @notice sets the oracle name used by the contract. for visual purposes. function updateOracleName(string memory _oracle) external onlyOwner { oracleType = _oracle; emit UpdatedOracleName(_oracle); } /// @param _gainRatio sets the bonus earned from a liquidator /// @notice implements a setter for the bonus earned by a liquidator /// @dev fails if the bonus is less than 1 function setGainRatio(uint256 _gainRatio) external onlyOwner { require(_gainRatio >= 1000, "gainRatio cannot be less than or equal to 1000"); gainRatio = _gainRatio; emit UpdatedGainRatio(gainRatio); } /// @param _debtRatio sets the ratio of debt paid back by a liquidator /// @notice sets the ratio of the debt to be paid back /// @dev it divides the debt. 1/debtRatio. function setDebtRatio(uint256 _debtRatio) external onlyOwner { require(_debtRatio != 0, "Debt Ratio cannot be 0"); debtRatio = _debtRatio; emit UpdatedDebtRatio(debtRatio); } /// @param ethPriceSourceAddress is the address that provides the price of the collateral /// @notice sets the address used as oracle /// @dev Oracle price feed is used in here. Interface's available in the at /interfaces/IPriceSourceAll.sol function changeEthPriceSource(address ethPriceSourceAddress) external onlyOwner { require(ethPriceSourceAddress != address(0), "Ethpricesource cannot be zero address" ); ethPriceSource = IPriceSource(ethPriceSourceAddress); emit UpdatedEthPriceSource(ethPriceSourceAddress); } /// @param _pool is the address that can execute liquidations /// @notice sets the address used as stability pool for liquidations /// @dev if not set to address(0) then _pool is the only address able to liquidate function setStabilityPool(address _pool) external onlyOwner { require(_pool != address(0), "StabilityPool cannot be zero address" ); stabilityPool = _pool; emit UpdatedStabilityPool(stabilityPool); } /// @param _admin is the ratio earned by the address that maintains the market /// @param _ref is the ratio earned by the address that provides the borrowable asset /// @notice sets the interest rate split between the admin and ref /// @dev if not set to address(0) then _pool is the only address able to liquidate function setFees(uint256 _admin, uint256 _ref) external onlyOwner { require((_admin+_ref)==TEN_THOUSAND, "setFees: must equal 10000."); adminFee=_admin; refFee=_ref; emit UpdatedFees(adminFee, refFee); } /// @param minimumCollateralPercentage is the CDR that limits the amount borrowed /// @notice sets the CDR /// @dev only callable by owner of the contract function setMinCollateralRatio(uint256 minimumCollateralPercentage) external onlyOwner { _minimumCollateralPercentage = minimumCollateralPercentage; emit UpdatedMinCollateralRatio(_minimumCollateralPercentage); } /// @param _minDebt is minimum debt able to be borrowed by a vault. /// @notice sets the minimum debt. /// @dev dust protection function setMinDebt(uint256 _minDebt) external onlyOwner { require(_minDebt >=0, "setMinDebt: must be over 0."); minDebt = _minDebt; emit UpdatedMinDebt(minDebt); } /// @param _maxDebt is maximum debt able to be borrowed by a vault. /// @notice sets the maximum debt. /// @dev whale and liquidity protection. function setMaxDebt(uint256 _maxDebt) external onlyOwner { require(_maxDebt >=0, "setMaxDebt: must be over 0."); maxDebt = _maxDebt; emit UpdatedMaxDebt(maxDebt); } /// @param _ref is the address that provides the borrowable asset /// @notice sets the address that earns interest for providing a borrowable asset /// @dev cannot be address(0) function setRef(address _ref) external onlyOwner { require(_ref != address(0), "Reference Address cannot be zero"); ref = _ref; emit UpdatedRef(ref); } /// @param _adm is the ratio earned by the address that maintains the market /// @notice sets the address that earns interest for maintaining the market /// @dev cannot be address(0) function setAdmin(address _adm) external onlyOwner { require(_adm != address(0), "Admin Address cannot be zero"); adm = _adm; emit UpdatedAdmin(adm); } /// @param _openingFee is the fee charged to a vault when borrowing. /// @notice sets opening fee. /// @dev can only be up to 5% (FEE_MAX) of the amount. function setOpeningFee(uint256 _openingFee) external onlyOwner { require(_openingFee >= 0 && _openingFee <= FEE_MAX, "setOpeningFee: cannot be more than 5%"); openingFee = _openingFee; // emit event emit UpdatedOpeningFee(openingFee); } /// @param _closingFee is the fee charged to a vault when repaying. /// @notice sets closing fee. /// @dev can only be up to 5% (FEE_MAX) of the amount. function setClosingFee(uint256 _closingFee) external onlyOwner { require(_closingFee >= 0 && _closingFee <= FEE_MAX, "setClosingFee: cannot be more than 5%"); closingFee = _closingFee; // emit event emit UpdatedClosingFee(closingFee); } /// @param _promoter is a front end for the contract /// @notice adds a front end to earn opening/closing fees from borrowing/repaying. /// @dev can only be up to 5% (FEE_MAX) of the amount. function addFrontEnd(uint256 _promoter) public onlyOwner { require(_exists(_promoter), "addFrontEnd: Vault does not exist"); require(promoter[_promoter] == 0, "addFrontEnd: already added"); promoter[_promoter] = TEN_THOUSAND; emit AddedFrontEnd(_promoter); } /// @param _promoter is a front end for the contract /// @param cashback is the amount of fee not taken from a user. /// @notice updates the cashback variable for a given front end /// @dev can only be updated by the front end vault's owner function updateFrontEnd(uint256 _promoter, uint256 cashback) external frontExists(_promoter) onlyVaultOwner(_promoter) { require(cashback > 0 && cashback <= TEN_THOUSAND, "updateFrontEnd: cannot be 0"); promoter[_promoter] = cashback; emit UpdatedFrontEnd(_promoter, cashback); } /// @param _promoter is a front end for the contract /// @notice removes the ability for a front end to earn fees function removeFrontEnd(uint256 _promoter) external frontExists(_promoter) onlyOwner { require(_exists(_promoter), "removeFrontEnd: Vault does not exist"); require(promoter[_promoter] > 0, "removeFrontEnd: not a front end"); promoter[_promoter] = 0; emit RemovedFrontEnd(_promoter); } /// @notice withdraws earned interest by vault. function withdrawInterest() external onlyOperators nonReentrant { uint256 adm_fee = maiDebt*adminFee / TEN_THOUSAND; // Transfer mai.transfer(ref, (maiDebt-adm_fee) ); // cheaper and equivalent. mai.transfer(adm, adm_fee); emit WithdrawInterest(maiDebt); maiDebt = 0; } /// @param _iR is the fixed interest charged by a vault /// @notice sets the interest charged by a vault. function setInterestRate(uint256 _iR) external onlyOwner { iR = _iR; emit UpdatedInterestRate(iR); } /// @param amountToken is the amount of borrowable asset that is removed from the debt ceiling. /// @notice removes debt ceiling from the vault. /// @dev returns the asset to the owner so it can be redeployed at a later time. function burn(uint256 amountToken) external onlyAdmin { // Burn require(amountToken <= mai.balanceOf(address(this)), "burn: Balance not enough"); mai.transfer(ref, amountToken); emit BurnedToken(amountToken); } /// @param _baseURI is the url for the nft metadata /// @notice updates the metadata /// @dev it currently uses an ipfs json function setTokenURI(string calldata _baseURI) external onlyOwner { baseURI = _baseURI; emit UpdatedTokenURI(baseURI); } function setRouter(address _router) external onlyOwner { router=_router; emit UpdatedRouter(router); } function setCustomURI(bool _custom) external onlyOwner { custom=_custom; emit UpdatedCustomURI(custom); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"ethPriceSourceAddress","type":"address"},{"internalType":"uint256","name":"minimumCollateralPercentage","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"_mai","type":"address"},{"internalType":"address","name":"_collateral","type":"address"},{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"promoter","type":"uint256"}],"name":"AddedFrontEnd","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BorrowToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"riskyVault","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newVault","type":"uint256"},{"indexed":false,"internalType":"address","name":"riskyVaultBuyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountPaidtoBuy","type":"uint256"}],"name":"BoughtRiskyDebtVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BurnedToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"address","name":"creator","type":"address"}],"name":"CreateVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DepositCollateral","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"DestroyVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"debtRepaid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"collateralLiquidated","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"closingFee","type":"uint256"}],"name":"LiquidateVault","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":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"closingFee","type":"uint256"}],"name":"PayBackToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"promoter","type":"uint256"}],"name":"RemovedFrontEnd","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"UpdatedAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"UpdatedClosingFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"custom","type":"bool"}],"name":"UpdatedCustomURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_debtRatio","type":"uint256"}],"name":"UpdatedDebtRatio","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_ethPriceSourceAddress","type":"address"}],"name":"UpdatedEthPriceSource","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_adminFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_refFee","type":"uint256"}],"name":"UpdatedFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"promoter","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"UpdatedFrontEnd","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_gainRatio","type":"uint256"}],"name":"UpdatedGainRatio","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"interestRate","type":"uint256"}],"name":"UpdatedInterestRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMaxDebt","type":"uint256"}],"name":"UpdatedMaxDebt","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMinCollateralRatio","type":"uint256"}],"name":"UpdatedMinCollateralRatio","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMinDebt","type":"uint256"}],"name":"UpdatedMinDebt","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"UpdatedOpeningFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"oracle","type":"string"}],"name":"UpdatedOracleName","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newRef","type":"address"}],"name":"UpdatedRef","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"router","type":"address"}],"name":"UpdatedRouter","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pool","type":"address"}],"name":"UpdatedStabilityPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"UpdatedTokenURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawCollateral","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"earned","type":"uint256"}],"name":"WithdrawInterest","type":"event"},{"inputs":[],"name":"_minimumCollateralPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"accumulatedVaultDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_promoter","type":"uint256"}],"name":"addFrontEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"adm","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adminFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"_front","type":"uint256"}],"name":"borrowToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"buyRiskDebtVault","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"promoFee","type":"uint256"}],"name":"calculateFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"ethPriceSourceAddress","type":"address"}],"name":"changeEthPriceSource","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"checkCollateralPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"checkCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"checkExtract","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"checkLiquidation","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"checkRiskyVault","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"closingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collateral","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"createVault","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"custom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debtRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimalDifferenceRaisedToTen","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"destroyVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ethPriceSource","outputs":[{"internalType":"contract IPriceSource","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gainRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClosingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDebtCeiling","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEthPriceSource","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pay","type":"address"}],"name":"getPaid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPaid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getTokenPriceSource","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalValueLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"iR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collateral","type":"uint256"},{"internalType":"uint256","name":"debt","type":"uint256"}],"name":"isValidCollateral","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lastInterest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"},{"internalType":"uint256","name":"_front","type":"uint256"}],"name":"liquidateVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mai","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maiDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maticDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"_front","type":"uint256"}],"name":"payBackToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"_front","type":"uint256"}],"name":"paybackTokenAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"priceSourceDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"promoter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ref","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_promoter","type":"uint256"}],"name":"removeFrontEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_adm","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_closingFee","type":"uint256"}],"name":"setClosingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_custom","type":"bool"}],"name":"setCustomURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_debtRatio","type":"uint256"}],"name":"setDebtRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_admin","type":"uint256"},{"internalType":"uint256","name":"_ref","type":"uint256"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_gainRatio","type":"uint256"}],"name":"setGainRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_iR","type":"uint256"}],"name":"setInterestRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxDebt","type":"uint256"}],"name":"setMaxDebt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minimumCollateralPercentage","type":"uint256"}],"name":"setMinCollateralRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minDebt","type":"uint256"}],"name":"setMinDebt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_openingFee","type":"uint256"}],"name":"setOpeningFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ref","type":"address"}],"name":"setRef","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"}],"name":"setStabilityPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stabilityPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPeg","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBorrowed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_promoter","type":"uint256"},{"internalType":"uint256","name":"cashback","type":"uint256"}],"name":"updateFrontEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_oracle","type":"string"}],"name":"updateOracleName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"updateVaultDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vaultCollateral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"vaultDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawInterest","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526027805460ff60a01b1916600160a31b1790553480156200002457600080fd5b506040516200682938038062006829833981016040819052620000479162000bd6565b868686868686868484828282600160008190555081600190805190602001906200007392919062000a46565b5080516200008990600290602084019062000a46565b50508151620000a19150600c90602084019062000a46565b505050506001600160a01b038716620000b957600080fd5b85620000c457600080fd5b60326010556000601155600d80546001600160a01b03808a166001600160a01b03199283161790925560248054821690556969e10de76676d08000006013556002601b5561044c601c55600e889055601d80548584169083168117909155601e805493871693909216929092179055600860209081556040805163313ce56760e01b8152905163313ce567926004838101939192918290030181865afa15801562000173573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000199919062000caa565b601e60009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000213919062000caa565b6200021f919062000cec565b6200022c90600a62000e11565b601f55505060258054336001600160a01b03199182168117909255602680549091169091179055506200026f935062000269925062000293915050565b62000297565b62000279620002e9565b5062000286600062000357565b5050505050505062000ec0565b3390565b602880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600f54600090620002fc81600162000e22565b600f8190558111156200030e57600080fd5b6200031a338262000484565b604080518281523360208201527f8b6c1d05c678fa59695e26465a85918ce0fc63a88f74af53d1daef8f0a9c7804910160405180910390a1919050565b6200036162000625565b6000818152600360205260409020546001600160a01b0316620003d55760405162461bcd60e51b815260206004820152602160248201527f61646446726f6e74456e643a205661756c7420646f6573206e6f7420657869736044820152601d60fa1b60648201526084015b60405180910390fd5b60008181526018602052604090205415620004335760405162461bcd60e51b815260206004820152601a60248201527f61646446726f6e74456e643a20616c72656164792061646465640000000000006044820152606401620003cc565b600081815260186020526040908190206127109055517f9d7c7013bbd38c45562efb3f7031f740c1f8b8886dbbf421142755ed68339f4c90620004799083815260200190565b60405180910390a150565b6001600160a01b038216620004dc5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401620003cc565b6000818152600360205260409020546001600160a01b031615620005435760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620003cc565b6200055360008383600162000683565b6000818152600360205260409020546001600160a01b031615620005ba5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620003cc565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6028546001600160a01b03163314620006815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620003cc565b565b6200069c84848484620006a260201b62003e4a1760201c565b50505050565b620006bb848484846200069c60201b6200369f1760201c565b6001811115620007345760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f7274656400000000000000000000006064820152608401620003cc565b816001600160a01b03851662000793576200078d81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b620007b9565b836001600160a01b0316856001600160a01b031614620007b957620007b9858262000806565b6001600160a01b038416620007d957620007d381620008b3565b620007ff565b846001600160a01b0316846001600160a01b031614620007ff57620007ff84826200096d565b5050505050565b600060016200082084620009be60201b620021951760201c565b6200082c919062000e3d565b60008381526008602052604090205490915080821462000880576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090620008c79060019062000e3d565b6000838152600a602052604081205460098054939450909284908110620008f257620008f262000e57565b90600052602060002001549050806009838154811062000916576200091662000e57565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548062000951576200095162000e6d565b6001900381819060005260206000200160009055905550505050565b60006200098583620009be60201b620021951760201c565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b60006001600160a01b03821662000a2a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401620003cc565b506001600160a01b031660009081526004602052604090205490565b82805462000a549062000e83565b90600052602060002090601f01602090048101928262000a78576000855562000ac3565b82601f1062000a9357805160ff191683800117855562000ac3565b8280016001018555821562000ac3579182015b8281111562000ac357825182559160200191906001019062000aa6565b5062000ad192915062000ad5565b5090565b5b8082111562000ad1576000815560010162000ad6565b80516001600160a01b038116811462000b0457600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011262000b3157600080fd5b81516001600160401b038082111562000b4e5762000b4e62000b09565b604051601f8301601f19908116603f0116810190828211818310171562000b795762000b7962000b09565b8160405283815260209250868385880101111562000b9657600080fd5b600091505b8382101562000bba578582018301518183018401529082019062000b9b565b8382111562000bcc5760008385830101525b9695505050505050565b600080600080600080600060e0888a03121562000bf257600080fd5b62000bfd8862000aec565b602089015160408a015191985096506001600160401b038082111562000c2257600080fd5b62000c308b838c0162000b1f565b965060608a015191508082111562000c4757600080fd5b62000c558b838c0162000b1f565b955062000c6560808b0162000aec565b945062000c7560a08b0162000aec565b935060c08a015191508082111562000c8c57600080fd5b5062000c9b8a828b0162000b1f565b91505092959891949750929550565b60006020828403121562000cbd57600080fd5b815160ff8116811462000ccf57600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff84168082101562000d095762000d0962000cd6565b90039392505050565b600181815b8085111562000d5357816000190482111562000d375762000d3762000cd6565b8085161562000d4557918102915b93841c939080029062000d17565b509250929050565b60008262000d6c5750600162000e0b565b8162000d7b5750600062000e0b565b816001811462000d94576002811462000d9f5762000dbf565b600191505062000e0b565b60ff84111562000db35762000db362000cd6565b50506001821b62000e0b565b5060208310610133831016604e8410600b841016171562000de4575081810a62000e0b565b62000df0838362000d12565b806000190482111562000e075762000e0762000cd6565b0290505b92915050565b600062000ccf60ff84168362000d5b565b6000821982111562000e385762000e3862000cd6565b500190565b60008282101562000e525762000e5262000cd6565b500390565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600181811c9082168062000e9857607f821691505b6020821081141562000eba57634e487b7160e01b600052602260045260246000fd5b50919050565b6159598062000ed06000396000f3fe608060405234801561001057600080fd5b506004361061054a5760003560e01c806386375994116102ca578063c71abb321161018d578063d8dfeb45116100f4578063ec2e0ab3116100ad578063f1c91fa611610087578063f1c91fa614610bdf578063f2fde38b14610be8578063f887ea4014610bfb578063ffc73da714610c0e57600080fd5b8063ec2e0ab314610bba578063ece1373214610bc3578063f17336d714610bd657600080fd5b8063d8dfeb4514610b29578063df98784614610b3c578063e0df5b6f14610b4f578063e5f4dc9214610b62578063e985e9c514610b6b578063eb6a887d14610ba757600080fd5b8063cf41d6f811610146578063cf41d6f814610ab2578063cf5f0f3c14610aba578063d0064c0014610acd578063d310f49b14610ad6578063d4a9b2c514610ae9578063d73464cc14610b0957600080fd5b8063c71abb3214610a65578063c87b56dd14610a6e578063cc02ce2214610a81578063cd44db1b14610a94578063cdfedd6314610a9e578063cea55f5714610aa957600080fd5b8063a22cb46511610231578063b26025aa116101ea578063b26025aa14610a04578063b3229a6314610a0c578063b86f6aef14610a1f578063b88d4fde14610a32578063c0d7865514610a45578063c231aa3014610a5857600080fd5b8063a22cb465146109a4578063a57ff503146109b7578063a5e98837146109c0578063a7c6a100146109c8578063a9c904b5146109d1578063b165ff0b146109e457600080fd5b806395d89b411161028357806395d89b411461094557806397a41b8e1461094d57806397ff37b91461096057806398c3f2db1461098057806398d721e014610988578063a0be06f91461099b57600080fd5b806386375994146108e05780638da5cb5b146108f35780639035e4cb1461090457806393ee476a1461091757806394cd4ba71461092a578063952cc86a1461093257600080fd5b806342966c68116104125780636234dc2111610379578063704b6c0211610332578063704b6c021461088357806370a0823114610896578063715018a6146108a9578063728bbbb5146108b1578063767a7b05146108ba57806385e290a3146108cd57600080fd5b80636234dc21146108115780636352211e1461082457806363b8817c146108375780636526941b1461084a578063687e8c171461085d5780636bc855cc1461087057600080fd5b806354fd4d50116103cb57806354fd4d501461079757806356572ac0146107bd578063570b2b84146107d05780635d12928b146107e35780635f84f302146107eb5780635ff09ac2146107fe57600080fd5b806342966c681461072f57806342f371c6146107425780634c19386c146107555780634f558e791461075e5780634f6ccce7146107715780635357b9891461078457600080fd5b806321a78f68116104b65780633128ef271161046f5780633128ef27146106bd578063379394d0146106d057806338536275146106e35780633db99177146106f6578063408038541461070957806342842e0e1461071c57600080fd5b806321a78f681461065257806323b872dd14610665578063241a545a146106785780632df87573146106815780632f745c59146106a1578063311f392a146106b457600080fd5b8063081812fc11610508578063081812fc146105e7578063095ea7b3146105fa5780630b78f9c01461060d57806311b4a8321461062057806318160ddd146106415780631c883e7b1461064957600080fd5b806263750c1461054f57806301ffc9a714610559578063048c661d1461058157806304d7aef2146105ac57806306fdde03146105bf57806307960532146105d4575b600080fd5b610557610c21565b005b61056c610567366004614fd8565b610e44565b60405190151581526020015b60405180910390f35b602454610594906001600160a01b031681565b6040516001600160a01b039091168152602001610578565b602554610594906001600160a01b031681565b6105c7610e55565b604051610578919061504d565b6105576105e236600461507c565b610ee7565b6105946105f5366004615097565b610fa8565b6105576106083660046150b0565b610fcf565b61055761061b3660046150da565b6110e5565b61063361062e366004615097565b61118f565b604051908152602001610578565b600954610633565b61063360105481565b602654610594906001600160a01b031681565b6105576106733660046150fc565b611241565b61063360145481565b61063361068f366004615097565b60166020526000908152604090205481565b6106336106af3660046150b0565b611272565b610633601c5481565b6105576106cb366004615138565b611308565b6105576106de366004615172565b611625565b6105576106f1366004615097565b611674565b610557610704366004615097565b6116b1565b610557610717366004615097565b61174e565b61055761072a3660046150fc565b611856565b61055761073d366004615097565b611871565b600d54610594906001600160a01b031681565b61063360215481565b61056c61076c366004615097565b611a30565b61063361077f366004615097565b611a3b565b610633610792366004615138565b611ace565b6027546107ab90600160a01b900460ff1681565b60405160ff9091168152602001610578565b6106336107cb366004615097565b611b7d565b601e54610594906001600160a01b031681565b610633611c6e565b6105576107f9366004615097565b611cd7565b61055761080c366004615097565b611d14565b61055761081f366004615097565b611e8a565b610594610832366004615097565b611ec7565b61055761084536600461507c565b611f27565b610557610858366004615097565b611fd1565b61056c61086b3660046150da565b61200e565b61055761087e36600461507c565b61203d565b61055761089136600461507c565b6120e9565b6106336108a436600461507c565b612195565b61055761221b565b61063360115481565b6105576108c83660046150da565b61222d565b6105576108db366004615097565b61240f565b6105576108ee366004615097565b612575565b6028546001600160a01b0316610594565b610633610912366004615097565b612612565b610633610925366004615097565b61299a565b610633612a01565b6105576109403660046150da565b612a73565b6105c7612f57565b61055761095b366004615138565b612f66565b61063361096e366004615097565b60176020526000908152604090205481565b61063361332c565b61055761099636600461507c565b613376565b61063360195481565b6105576109b236600461518f565b61342e565b610633601f5481565b601054610633565b610633600f5481565b6105576109df366004615252565b613439565b6106336109f236600461507c565b60226020526000908152604090205481565b610633613484565b61056c610a1a366004615097565b613510565b61056c610a2d366004615097565b6135ca565b610557610a4036600461529b565b61366d565b610557610a5336600461507c565b6136a5565b600b5461056c9060ff1681565b61063360205481565b6105c7610a7c366004615097565b6136fb565b610557610a8f3660046150da565b61376e565b6305f5e100610633565b6106336305f5e10081565b610633601b5481565b6105576138e3565b610557610ac8366004615138565b61397f565b61063360135481565b610633610ae4366004615097565b613acd565b610633610af7366004615097565b60156020526000908152604090205481565b610633610b17366004615097565b60186020526000908152604090205481565b601d54610594906001600160a01b031681565b610633610b4a366004615097565b613ad9565b610557610b5d366004615317565b613b6b565b610633600e5481565b61056c610b79366004615389565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b610557610bb5366004615097565b613bb0565b610633601a5481565b610557610bd13660046150da565b613c33565b61063360125481565b61063360235481565b610557610bf636600461507c565b613d2e565b602754610594906001600160a01b031681565b610557610c1c366004615097565b613da4565b6026546001600160a01b0316331480610c4457506025546001600160a01b031633145b80610c68575033610c5d6028546001600160a01b031690565b6001600160a01b0316145b610cb95760405162461bcd60e51b815260206004820152601f60248201527f4e6565647320746f2062652063616c6c6564206279206f70657261746f72730060448201526064015b60405180910390fd5b610cc1613f77565b6000612710601954602354610cd691906153d2565b610ce091906153f1565b601e546026546023549293506001600160a01b039182169263a9059cbb9290911690610d0d908590615413565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610d58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7c919061542a565b50601e5460255460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af1158015610dd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df6919061542a565b507fc73fb14682b9d51008c1faff296cc9b351c0597de5e25b4ffa158f47f8254e4c602354604051610e2a91815260200190565b60405180910390a1506000602355610e426001600055565b565b6000610e4f82613fd1565b92915050565b606060018054610e6490615447565b80601f0160208091040260200160405190810160405280929190818152602001828054610e9090615447565b8015610edd5780601f10610eb257610100808354040283529160200191610edd565b820191906000526020600020905b815481529060010190602001808311610ec057829003601f168201915b5050505050905090565b610eef613ff6565b6001600160a01b038116610f535760405162461bcd60e51b815260206004820152602560248201527f4574687072696365736f757263652063616e6e6f74206265207a65726f206164604482015264647265737360d81b6064820152608401610cb0565b600d80546001600160a01b0319166001600160a01b0383169081179091556040519081527fc525e5fed1508c998d3f14bf52f933df1dd16dbf48e2944c426be721e268b755906020015b60405180910390a150565b6000610fb382614050565b506000908152600560205260409020546001600160a01b031690565b6000610fda82611ec7565b9050806001600160a01b0316836001600160a01b031614156110485760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cb0565b336001600160a01b038216148061106457506110648133610b79565b6110d65760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610cb0565b6110e083836140a0565b505050565b6110ed613ff6565b6127106110fa828461547c565b146111475760405162461bcd60e51b815260206004820152601a60248201527f736574466565733a206d75737420657175616c2031303030302e0000000000006044820152606401610cb0565b6019829055601a81905560408051838152602081018390527f4d32f38862d5eb71edfefb7955873bd55920dc98159b6f53f8be62fbf0bebb4b91015b60405180910390a15050565b60008061119b83613acd565b60008481526015602052604090205490915015806111b7575080155b806111c857506111c6836135ca565b155b156111d65750600092915050565b6000838152601560205260408120546111ef908361410e565b91505080611201575060009392505050565b60205461120f90600a615578565b61121990826153f1565b90506000601b548261122b91906153f1565b905060125481116112395750805b949350505050565b61124b3382614197565b6112675760405162461bcd60e51b8152600401610cb090615584565b6110e0838383614215565b600061127d83612195565b82106112df5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610cb0565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b8061131281614386565b61132e5760405162461bcd60e51b8152600401610cb0906155d1565b6000818152601860205260409020546127101080159061135b575060008181526018602052604090205415155b6113775760405162461bcd60e51b8152600401610cb090615608565b8361138181614386565b61139d5760405162461bcd60e51b8152600401610cb090615635565b6027546001600160a01b031615806113bf57506027546001600160a01b031633145b6113db5760405162461bcd60e51b8152600401610cb090615663565b601e546040516370a0823160e01b815233600482015285916001600160a01b0316906370a0823190602401602060405180830381865afa158015611423573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611447919061568c565b101561148d5760405162461bcd60e51b8152602060048201526015602482015274546f6b656e2062616c616e636520746f6f206c6f7760581b6044820152606401610cb0565b60006114988661299a565b9050848110156114fa5760405162461bcd60e51b815260206004820152602760248201527f5661756c742064656274206c657373207468616e20616d6f756e7420746f20706044820152666179206261636b60c81b6064820152608401610cb0565b6012546115078683615413565b10158061151357508085145b61152f5760405162461bcd60e51b8152600401610cb0906156a5565b601054600085815260186020526040812054909161154e918890611ace565b905061155a8683615413565b600088815260166020908152604080832093909355601590522054611580908290615413565b6000888152601560205260408082209290925586815220546115a390829061547c565b6000868152601560205260409020556021546115c0908790615413565b602155601e546115db906001600160a01b03163330896143a3565b60408051888152602081018890529081018290527f31f96762af4051f367185773cc2f55bfb112a6c114b3407ded1f321a9eb199ac9060600160405180910390a150505050505050565b61162d613ff6565b600b805460ff191682151590811790915560405160ff909116151581527f24d10a0e2bca30afd85b6fcbdae412b32757c23f2d09434b3748b5980c7133d590602001610f9d565b61167c613ff6565b600e8190556040518181527fc0880963f3abc486dbb8b8f04ba4ce47c5b5cd3c59b6b7655f6011da0bf3365090602001610f9d565b6116b9613ff6565b6101f48111156117195760405162461bcd60e51b815260206004820152602560248201527f736574436c6f73696e674665653a2063616e6e6f74206265206d6f7265207468604482015264616e20352560d81b6064820152608401610cb0565b60108190556040518181527fc1b83121984ef8e824a0babc08fc162077c0716a4dc307121f306e6dfb13806c90602001610f9d565b611756613ff6565b61175f81614386565b6117b55760405162461bcd60e51b815260206004820152602160248201527f61646446726f6e74456e643a205661756c7420646f6573206e6f7420657869736044820152601d60fa1b6064820152608401610cb0565b600081815260186020526040902054156118115760405162461bcd60e51b815260206004820152601a60248201527f61646446726f6e74456e643a20616c72656164792061646465640000000000006044820152606401610cb0565b600081815260186020526040908190206127109055517f9d7c7013bbd38c45562efb3f7031f740c1f8b8886dbbf421142755ed68339f4c90610f9d9083815260200190565b6110e08383836040518060200160405280600081525061366d565b6025546001600160a01b031633146118cb5760405162461bcd60e51b815260206004820152601b60248201527f4e6565647320746f2062652063616c6c65642062792061646d696e00000000006044820152606401610cb0565b601e546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611913573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611937919061568c565b8111156119865760405162461bcd60e51b815260206004820152601860248201527f6275726e3a2042616c616e6365206e6f7420656e6f75676800000000000000006044820152606401610cb0565b601e5460265460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af11580156119db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ff919061542a565b506040518181527fb1f67ade07cda330ac167f4fcc4c01b94fdfc04d401cf85e487f0a5b8b98e75f90602001610f9d565b6000610e4f82614386565b6000611a4660095490565b8210611aa95760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610cb0565b60098281548110611abc57611abc6156e6565b90600052602060002001549050919050565b6000808215611b2c5761271080611ae361332c565b611aed91906153d2565b611af791906153d2565b836305f5e100611b0788886153d2565b611b1191906153d2565b611b1b91906153d2565b611b2591906153f1565b9050611b67565b612710611b3761332c565b611b4191906153d2565b6305f5e100611b5087876153d2565b611b5a91906153d2565b611b6491906153f1565b90505b601f54611b7490826153f1565b95945050505050565b6000818152601560205260408120541580611b9e5750611b9c826135ca565b155b15611bab57506000919050565b6000611bb683613acd565b60008481526015602052604081205491925090611bd3908361410e565b9150506000601b5482611be691906153f1565b905080611bf857506000949350505050565b601254602054611c0990600a615578565b611c1390836153f1565b11611c5257601f54611c2361332c565b6103e8601c5485611c3491906153d2565b611c3e91906153f1565b611c4891906153f1565b611b7491906153f1565b601f54611c5d61332c565b6103e8601c5484611c3491906153d2565b600f54600090611c7f81600161547c565b600f819055811115611c9057600080fd5b611c9a338261440e565b604080518281523360208201527f8b6c1d05c678fa59695e26465a85918ce0fc63a88f74af53d1daef8f0a9c7804910160405180910390a1919050565b611cdf613ff6565b60148190556040518181527f323264e3ca065ee856fe1b11204d8896a783bccf148380ac5d7362eb5c4c36a890602001610f9d565b80611d1e81614386565b611d3a5760405162461bcd60e51b8152600401610cb0906155d1565b60008181526018602052604090205461271010801590611d67575060008181526018602052604090205415155b611d835760405162461bcd60e51b8152600401610cb090615608565b611d8b613ff6565b611d9482614386565b611dec5760405162461bcd60e51b8152602060048201526024808201527f72656d6f766546726f6e74456e643a205661756c7420646f6573206e6f7420656044820152631e1a5cdd60e21b6064820152608401610cb0565b600082815260186020526040902054611e475760405162461bcd60e51b815260206004820152601f60248201527f72656d6f766546726f6e74456e643a206e6f7420612066726f6e7420656e64006044820152606401610cb0565b60008281526018602052604080822091909155517f9b9f950fb3755096dbbe8b1519e73f7c6d1a0507f514fced444919530c00d719906111839084815260200190565b611e92613ff6565b60128190556040518181527f4533506fbaba6b18743358b6e6fb9392e8cb21757487b68d232a01b140bbec0190602001610f9d565b6000818152600360205260408120546001600160a01b031680610e4f5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610cb0565b611f2f613f77565b6001600160a01b038116600090815260226020526040902054611f945760405162461bcd60e51b815260206004820152601c60248201527f446f6e2774206861766520616e797468696e6720666f7220796f752e000000006044820152606401610cb0565b6001600160a01b0380821660009081526022602052604081208054919055601d549091611fc391168383614589565b50611fce6001600055565b50565b611fd9613ff6565b60138190556040518181527f1dd8f42ee4750a70f6662d1383372472422592497256d506437e35b3fa914d9b90602001610f9d565b600080600061201d858561410e565b9092509050600061202e82846153f1565b600e5411159695505050505050565b612045613ff6565b6001600160a01b03811661209b5760405162461bcd60e51b815260206004820181905260248201527f5265666572656e636520416464726573732063616e6e6f74206265207a65726f6044820152606401610cb0565b602680546001600160a01b0319166001600160a01b0383169081179091556040519081527f8ed6553fa1e634b0152cd3539c572bee8c662e446820646d73a0e1b47776af9390602001610f9d565b6120f1613ff6565b6001600160a01b0381166121475760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20416464726573732063616e6e6f74206265207a65726f000000006044820152606401610cb0565b602580546001600160a01b0319166001600160a01b0383169081179091556040519081527ffce52dd00c7849a7f2602c1f189745238d6a2db16fabf54376ce24cc2fa3d57f90602001610f9d565b60006001600160a01b0382166121ff5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610cb0565b506001600160a01b031660009081526004602052604090205490565b612223613ff6565b610e4260006145b9565b8161223781614386565b6122535760405162461bcd60e51b8152600401610cb090615635565b3361225d82611ec7565b6001600160a01b0316146122835760405162461bcd60e51b8152600401610cb0906156fc565b61228b613f77565b6000838152601560205260409020548211156122f75760405162461bcd60e51b815260206004820152602560248201527f5661756c7420646f6573206e6f74206861766520656e6f75676820636f6c6c616044820152641d195c985b60da1b6064820152608401610cb0565b600083815260156020526040812054612311908490615413565b9050600061231e8561299a565b905080156123a257612330828261200e565b6123a25760405162461bcd60e51b815260206004820152603e60248201527f5769746864726177616c20776f756c6420707574207661756c742062656c6f7760448201527f206d696e696d756d20636f6c6c61746572616c2070657263656e7461676500006064820152608401610cb0565b6000858152601560205260409020829055601d546123ca906001600160a01b03163386614589565b60408051868152602081018690527f6c0ea3bea9dd66afa8f9d39d6eb93d833466190330813b42835efc650dca4cb9910160405180910390a150506110e06001600055565b8061241981614386565b6124355760405162461bcd60e51b8152600401610cb090615635565b3361243f82611ec7565b6001600160a01b0316146124655760405162461bcd60e51b8152600401610cb0906156fc565b61246d613f77565b61247682613acd565b156124c35760405162461bcd60e51b815260206004820152601a60248201527f5661756c7420686173206f75747374616e64696e6720646562740000000000006044820152606401610cb0565b60008281526015602052604090205415612505576125056124e383611ec7565b600084815260156020526040902054601d546001600160a01b03169190614589565b61250e8261460b565b600082815260156020908152604080832083905560168252808320839055601782528083209290925590518381527f4fe08624ee65b341c38ab9693d216b909d4ddee1bc8d3fe0fea14026c361b465910160405180910390a16125716001600055565b5050565b61257d613ff6565b6101f48111156125dd5760405162461bcd60e51b815260206004820152602560248201527f7365744f70656e696e674665653a2063616e6e6f74206265206d6f7265207468604482015264616e20352560d81b6064820152608401610cb0565b60118190556040518181527fc4ced91ca77dc4287a54d9bd9b15c69b3aba262e30eba7c93301c48606019c9490602001610f9d565b60008161261e81614386565b61263a5760405162461bcd60e51b8152600401610cb090615635565b612642613f77565b6024546001600160a01b0316158061266457506024546001600160a01b031633145b6126b05760405162461bcd60e51b815260206004820181905260248201527f627579207269736b792069732064697361626c656420666f72207075626c69636044820152606401610cb0565b60006126bb8461299a565b9050806126fc5760405162461bcd60e51b815260206004820152600f60248201526e05661756c742064656274206973203608c1b6044820152606401610cb0565b6000848152601560205260408120548190612717908461410e565b9092509050600061272882846153f1565b601c5490915061273982600a6153d2565b111561279e5760405162461bcd60e51b815260206004820152602e60248201527f5661756c74206973206e6f742062656c6f77207269736b7920636f6c6c61746560448201526d72616c2070657263656e7461676560901b6064820152608401610cb0565b6000602054600a6127af9190615578565b600e546127bc91906153d2565b6127c690856153f1565b6020546127d490600a615578565b6127de90856153f1565b6127e89190615413565b601e546040516370a0823160e01b815233600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa158015612835573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612859919061568c565b10156128b55760405162461bcd60e51b815260206004820152602560248201527f4e6f7420656e6f756768206d616920746f2062757920746865207269736b79206044820152641d985d5b1d60da1b6064820152608401610cb0565b601e546128cd906001600160a01b03163330846143a3565b806021546128db9190615413565b60215560006128e8611c6e565b60008a81526015602052604080822054838352912055905061290a8287615413565b600082815260166020818152604080842094909455601781528383204290558c8352601581528383208390559081528282209190915581518b815290810183905233818301526060810184905290517fa4cf7276e26bb566de2c7540759e85736eb743807343fd27e6e679b20e8814419181900360800190a1965050505050506129946001600055565b50919050565b60008060006129a8846146ae565b91509150816023546129ba919061547c565b6023556021546129cb90839061547c565b602155601454156129e85760008481526017602052604090204290555b6000938452601660205260409093208390555090919050565b601e546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612a4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6e919061568c565b905090565b80612a7d81614386565b612a995760405162461bcd60e51b8152600401610cb0906155d1565b60008181526018602052604090205461271010801590612ac6575060008181526018602052604090205415155b612ae25760405162461bcd60e51b8152600401610cb090615608565b82612aec81614386565b612b085760405162461bcd60e51b8152600401610cb090615635565b6024546001600160a01b03161580612b2a57506024546001600160a01b031633145b612b815760405162461bcd60e51b815260206004820152602260248201527f6c69717569646174696f6e2069732064697361626c656420666f72207075626c604482015261696360f01b6064820152608401610cb0565b6000612b8c8561299a565b600086815260156020526040812054919250908190612bab908461410e565b915091508260001415612bf25760405162461bcd60e51b815260206004820152600f60248201526e05661756c742064656274206973203608c1b6044820152606401610cb0565b6000612bfe82846153f1565b9050600e548110612c6a5760405162461bcd60e51b815260206004820152603060248201527f5661756c74206973206e6f742062656c6f77206d696e696d756d20636f6c6c6160448201526f746572616c2070657263656e7461676560801b6064820152608401610cb0565b601c54612c7882600a6153d2565b11612cc55760405162461bcd60e51b815260206004820152601d60248201527f5661756c74206973206e6f742061626f7665206761696e20726174696f0000006044820152606401610cb0565b602054612cd390600a615578565b612cdd90836153f1565b91506000601b5483612cef91906153f1565b90506012548111612cfd5750815b601e546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015612d45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d69919061568c565b1015612dd15760405162461bcd60e51b815260206004820152603160248201527f546f6b656e2062616c616e636520746f6f206c6f7720746f20706179206f6666604482015270081bdd5d1cdd185b991a5b99c81919589d607a1b6064820152608401610cb0565b80602154612ddf9190615413565b6021556000612ded8a611b7d565b9050612df98287615413565b60008b8152601660209081526040808320939093556010548c83526018909152918120549091612e2a918590611ace565b60008c815260156020526040902054909150612e47908290615413565b60008c815260156020526040808220929092558b81522054612e6a90829061547c565b60008b815260156020526040808220929092558c81522054612e8d908390615413565b60008c815260156020908152604080832093909355338252602290522054612eb690839061547c565b33600081815260226020526040902091909155601e54612ee3916001600160a01b039091169030866143a3565b7f4d151d3a98b83151d51917640c221f8c8e3c054422ea1b48dcbbd57e3f4210d58b612f0e8d611ec7565b604080519283526001600160a01b0390911660208301523390820152606081018590526080810184905260a0810183905260c00160405180910390a15050505050505050505050565b606060028054610e6490615447565b80612f7081614386565b612f8c5760405162461bcd60e51b8152600401610cb0906155d1565b60008181526018602052604090205461271010801590612fb9575060008181526018602052604090205415155b612fd55760405162461bcd60e51b8152600401610cb090615608565b83612fdf81614386565b612ffb5760405162461bcd60e51b8152600401610cb090615635565b3361300582611ec7565b6001600160a01b03161461302b5760405162461bcd60e51b8152600401610cb0906156fc565b613033613f77565b600084116130835760405162461bcd60e51b815260206004820152601b60248201527f4d75737420626f72726f77206e6f6e2d7a65726f20616d6f756e7400000000006044820152606401610cb0565b61308b612a01565b8411156130f25760405162461bcd60e51b815260206004820152602f60248201527f626f72726f77546f6b656e3a2043616e6e6f74206d696e74206f76657220617660448201526e30b4b630b136329039bab838363c9760891b6064820152608401610cb0565b6000846130fe8761299a565b613108919061547c565b90506013548111156131675760405162461bcd60e51b815260206004820152602260248201527f626f72726f77546f6b656e3a206d6178206c6f616e2063617020726561636865604482015261321760f11b6064820152608401610cb0565b61317086613acd565b811161317b57600080fd5b600086815260156020526040902054613194908261200e565b6132065760405162461bcd60e51b815260206004820152603a60248201527f426f72726f7720776f756c6420707574207661756c742062656c6f77206d696e60448201527f696d756d20636f6c6c61746572616c2070657263656e746167650000000000006064820152608401610cb0565b6012548561321388613acd565b61321d919061547c565b101561323b5760405162461bcd60e51b8152600401610cb0906156a5565b6000868152601660209081526040808320849055601154878452601890925282205461326991908490611ace565b600088815260156020526040902054909150613286908290615413565b6000888152601560205260408082209290925586815220546132a990829061547c565b600086815260156020526040902055601e546132cf906001600160a01b03163388614589565b856021546132dd919061547c565b60215560408051888152602081018890527f3e08df88d8e28f37df9bf227d3142ac506a364403445661a60891a49ed6792ca910160405180910390a150506133256001600055565b5050505050565b600d54604080516350d25bcd60e01b815290516000926001600160a01b0316916350d25bcd9160048083019260209291908290030181865afa158015612a4a573d6000803e3d6000fd5b61337e613ff6565b6001600160a01b0381166133e05760405162461bcd60e51b8152602060048201526024808201527f53746162696c697479506f6f6c2063616e6e6f74206265207a65726f206164646044820152637265737360e01b6064820152608401610cb0565b602480546001600160a01b0319166001600160a01b0383169081179091556040519081527f0644c4f539d7f787d2287c12d9425e80aefc8bdae99c70af4ca66fb0742577e890602001610f9d565b612571338383614753565b613441613ff6565b8051613454906029906020840190614eb5565b507f0d82453dd4ad18b5ce3db08c34a39340ad2bf15046a7d0e86aa075483eb121d881604051610f9d919061504d565b601d546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156134cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134f1919061568c565b601f546134fc61332c565b61350691906153d2565b612a6e91906153d2565b60008161351c81614386565b6135385760405162461bcd60e51b8152600401610cb090615635565b600061354384613acd565b600085815260156020526040902054909150158061355f575080155b1561356e576000925050612994565b6000848152601560205260408120548190613589908461410e565b9092509050600061359a82846153f1565b601c549091506135ab82600a6153d2565b116135bd576001955050505050612994565b6000955050505050612994565b6000816135d681614386565b6135f25760405162461bcd60e51b8152600401610cb090615635565b60006135fd84613acd565b6000858152601560205260409020549091501580613619575080155b15613628576000925050612994565b6000848152601560205260408120548190613643908461410e565b9092509050600061365482846153f1565b9050600e548110156135bd576001955050505050612994565b6136773383614197565b6136935760405162461bcd60e51b8152600401610cb090615584565b61369f84848484614822565b50505050565b6136ad613ff6565b602780546001600160a01b0319166001600160a01b0383169081179091556040519081527f66fc0187dfabf79860e1b18e6c175c92baf9ed88c8a01d0bfdb97d1f0450f7f790602001610f9d565b606061370682614050565b6000613710614855565b600b5490915060ff1615610e4f57600081511161373c5760405180602001604052806000815250613767565b8061374684614864565b604051602001613757929190615733565b6040516020818303038152906040525b9392505050565b8161377881614386565b6137945760405162461bcd60e51b8152600401610cb0906155d1565b600081815260186020526040902054612710108015906137c1575060008181526018602052604090205415155b6137dd5760405162461bcd60e51b8152600401610cb090615608565b826137e781614386565b6138035760405162461bcd60e51b8152600401610cb090615635565b3361380d82611ec7565b6001600160a01b0316146138335760405162461bcd60e51b8152600401610cb0906156fc565b60008311801561384557506127108311155b6138915760405162461bcd60e51b815260206004820152601b60248201527f75706461746546726f6e74456e643a2063616e6e6f74206265203000000000006044820152606401610cb0565b60008481526018602090815260409182902085905581518681529081018590527fbfdd5aecf44aa804bf11f070a41765d280dab82adbfd1c55e1e85b7d5b7920b491015b60405180910390a150505050565b6138eb613f77565b336000908152602260205260409020546139475760405162461bcd60e51b815260206004820152601c60248201527f446f6e2774206861766520616e797468696e6720666f7220796f752e000000006044820152606401610cb0565b3360008181526022602052604081208054919055601d549091613974916001600160a01b03169083614589565b50610e426001600055565b8061398981614386565b6139a55760405162461bcd60e51b8152600401610cb0906155d1565b600081815260186020526040902054612710108015906139d2575060008181526018602052604090205415155b6139ee5760405162461bcd60e51b8152600401610cb090615608565b836139f881614386565b613a145760405162461bcd60e51b8152600401610cb090615635565b6027546001600160a01b03161580613a3657506027546001600160a01b031633145b613a525760405162461bcd60e51b8152600401610cb090615663565b42841015613aad5760405162461bcd60e51b815260206004820152602260248201527f7061796261636b546f6b656e416c6c3a20646561646c696e6520657870697265604482015261321760f11b6064820152608401610cb0565b6000613ab88661299a565b9050613ac5868286611308565b505050505050565b600080611239836146ae565b600081613ae581614386565b613b015760405162461bcd60e51b8152600401610cb090615635565b6000613b0c84613acd565b6000858152601560205260409020549091501580613b28575080155b15613b37576000925050612994565b6000848152601560205260408120548190613b52908461410e565b9092509050613b6181836153f1565b9695505050505050565b613b73613ff6565b613b7f600c8383614f39565b507ffda45751019c07e08a3ebf7d73a4aea1a6c36bee12d87089096012911a756ab5600c6040516111839190615762565b613bb8613ff6565b80613bfe5760405162461bcd60e51b815260206004820152601660248201527504465627420526174696f2063616e6e6f7420626520360541b6044820152606401610cb0565b601b8190556040518181527f199e93b2fae27b389e2d09761871573f60121b8521be96b8f28c83bf94846ac290602001610f9d565b81613c3d81614386565b613c595760405162461bcd60e51b8152600401610cb090615635565b6027546001600160a01b03161580613c7b57506027546001600160a01b031633145b613c975760405162461bcd60e51b8152600401610cb090615663565b600083815260156020526040812054613cb190849061547c565b600085815260156020526040902054909150811015613ccf57600080fd5b6000848152601560205260409020819055601d54613cf8906001600160a01b03163330866143a3565b60408051858152602081018590527f52c4e7127ec34e8fc95f09ce2d06b4f00acca12ccbcdfb246ef67ee6aefe068d91016138d5565b613d36613ff6565b6001600160a01b038116613d9b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cb0565b611fce816145b9565b613dac613ff6565b6103e8811015613e155760405162461bcd60e51b815260206004820152602e60248201527f6761696e526174696f2063616e6e6f74206265206c657373207468616e206f7260448201526d020657175616c20746f20313030360941b6064820152608401610cb0565b601c8190556040518181527fb6d384ad48d9c5c042c81fa0f88d8061ef87b38475101d6aa5f9ae5a8274a64e90602001610f9d565b6001811115613eb95760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b6064820152608401610cb0565b816001600160a01b038516613f1557613f1081600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613f38565b836001600160a01b0316856001600160a01b031614613f3857613f388582614901565b6001600160a01b038416613f5457613f4f8161499e565b613325565b846001600160a01b0316846001600160a01b031614613325576133258482614a4d565b60026000541415613fca5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cb0565b6002600055565b60006001600160e01b0319821663780e9d6360e01b1480610e4f5750610e4f82614a91565b6028546001600160a01b03163314610e425760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb0565b61405981614386565b611fce5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610cb0565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906140d582611ec7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061411961332c565b61412257600080fd5b6000601f5461412f61332c565b61413990876153d2565b61414391906153d2565b90508481101561415257600080fd5b60006141626305f5e100866153d2565b90508481101561417157600080fd5b600061417e8360646153d2565b905082811161418c57600080fd5b969095509350505050565b6000806141a383611ec7565b9050806001600160a01b0316846001600160a01b031614806141ea57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b806112395750836001600160a01b031661420384610fa8565b6001600160a01b031614949350505050565b826001600160a01b031661422882611ec7565b6001600160a01b03161461424e5760405162461bcd60e51b8152600401610cb09061580a565b6001600160a01b0382166142b05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cb0565b6142bd8383836001614ae1565b826001600160a01b03166142d082611ec7565b6001600160a01b0316146142f65760405162461bcd60e51b8152600401610cb09061580a565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000908152600360205260409020546001600160a01b0316151590565b6040516001600160a01b038085166024830152831660448201526064810182905261369f9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152614aed565b6001600160a01b0382166144645760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cb0565b61446d81614386565b156144ba5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cb0565b6144c8600083836001614ae1565b6144d181614386565b1561451e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cb0565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040516001600160a01b0383166024820152604481018290526110e090849063a9059cbb60e01b906064016143d7565b602880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061461682611ec7565b9050614626816000846001614ae1565b61462f82611ec7565b600083815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526004845282852080546000190190558785526003909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000818152601660209081526040808320546017909252822054829142918390158015906146de57506000601454115b15614749576000868152601760205260408120546146fc9085615413565b905060006127106301e18558838660145461471791906153d2565b61472191906153d2565b61472b91906153f1565b61473591906153f1565b9250829050614744848261547c565b935050505b9590945092505050565b816001600160a01b0316836001600160a01b031614156147b55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cb0565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61482d848484614215565b61483984848484614bbf565b61369f5760405162461bcd60e51b8152600401610cb09061584f565b6060600c8054610e6490615447565b6060600061487183614cbd565b600101905060008167ffffffffffffffff811115614891576148916151c6565b6040519080825280601f01601f1916602001820160405280156148bb576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846148f4576148f9565b6148c5565b509392505050565b6000600161490e84612195565b6149189190615413565b60008381526008602052604090205490915080821461496b576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906149b090600190615413565b6000838152600a6020526040812054600980549394509092849081106149d8576149d86156e6565b9060005260206000200154905080600983815481106149f9576149f96156e6565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480614a3157614a316158a1565b6001900381819060005260206000200160009055905550505050565b6000614a5883612195565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b60006001600160e01b031982166380ac58cd60e01b1480614ac257506001600160e01b03198216635b5e139f60e01b145b80610e4f57506301ffc9a760e01b6001600160e01b0319831614610e4f565b61369f84848484613e4a565b6000614b42826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614d959092919063ffffffff16565b8051909150156110e05780806020019051810190614b60919061542a565b6110e05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610cb0565b60006001600160a01b0384163b15614cb257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290614c039033908990889088906004016158b7565b6020604051808303816000875af1925050508015614c3e575060408051601f3d908101601f19168201909252614c3b918101906158ea565b60015b614c98573d808015614c6c576040519150601f19603f3d011682016040523d82523d6000602084013e614c71565b606091505b508051614c905760405162461bcd60e51b8152600401610cb09061584f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611239565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310614cfc5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310614d28576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310614d4657662386f26fc10000830492506010015b6305f5e1008310614d5e576305f5e100830492506008015b6127108310614d7257612710830492506004015b60648310614d84576064830492506002015b600a8310610e4f5760010192915050565b6060611239848460008585600080866001600160a01b03168587604051614dbc9190615907565b60006040518083038185875af1925050503d8060008114614df9576040519150601f19603f3d011682016040523d82523d6000602084013e614dfe565b606091505b5091509150614e0f87838387614e1a565b979650505050505050565b60608315614e86578251614e7f576001600160a01b0385163b614e7f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610cb0565b5081611239565b6112398383815115614e9b5781518083602001fd5b8060405162461bcd60e51b8152600401610cb0919061504d565b828054614ec190615447565b90600052602060002090601f016020900481019282614ee35760008555614f29565b82601f10614efc57805160ff1916838001178555614f29565b82800160010185558215614f29579182015b82811115614f29578251825591602001919060010190614f0e565b50614f35929150614fad565b5090565b828054614f4590615447565b90600052602060002090601f016020900481019282614f675760008555614f29565b82601f10614f805782800160ff19823516178555614f29565b82800160010185558215614f29579182015b82811115614f29578235825591602001919060010190614f92565b5b80821115614f355760008155600101614fae565b6001600160e01b031981168114611fce57600080fd5b600060208284031215614fea57600080fd5b813561376781614fc2565b60005b83811015615010578181015183820152602001614ff8565b8381111561369f5750506000910152565b60008151808452615039816020860160208601614ff5565b601f01601f19169290920160200192915050565b6020815260006137676020830184615021565b80356001600160a01b038116811461507757600080fd5b919050565b60006020828403121561508e57600080fd5b61376782615060565b6000602082840312156150a957600080fd5b5035919050565b600080604083850312156150c357600080fd5b6150cc83615060565b946020939093013593505050565b600080604083850312156150ed57600080fd5b50508035926020909101359150565b60008060006060848603121561511157600080fd5b61511a84615060565b925061512860208501615060565b9150604084013590509250925092565b60008060006060848603121561514d57600080fd5b505081359360208301359350604090920135919050565b8015158114611fce57600080fd5b60006020828403121561518457600080fd5b813561376781615164565b600080604083850312156151a257600080fd5b6151ab83615060565b915060208301356151bb81615164565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156151f7576151f76151c6565b604051601f8501601f19908116603f0116810190828211818310171561521f5761521f6151c6565b8160405280935085815286868601111561523857600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561526457600080fd5b813567ffffffffffffffff81111561527b57600080fd5b8201601f8101841361528c57600080fd5b611239848235602084016151dc565b600080600080608085870312156152b157600080fd5b6152ba85615060565b93506152c860208601615060565b925060408501359150606085013567ffffffffffffffff8111156152eb57600080fd5b8501601f810187136152fc57600080fd5b61530b878235602084016151dc565b91505092959194509250565b6000806020838503121561532a57600080fd5b823567ffffffffffffffff8082111561534257600080fd5b818501915085601f83011261535657600080fd5b81358181111561536557600080fd5b86602082850101111561537757600080fd5b60209290920196919550909350505050565b6000806040838503121561539c57600080fd5b6153a583615060565b91506153b360208401615060565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156153ec576153ec6153bc565b500290565b60008261540e57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015615425576154256153bc565b500390565b60006020828403121561543c57600080fd5b815161376781615164565b600181811c9082168061545b57607f821691505b6020821081141561299457634e487b7160e01b600052602260045260246000fd5b6000821982111561548f5761548f6153bc565b500190565b600181815b808511156154cf5781600019048211156154b5576154b56153bc565b808516156154c257918102915b93841c9390800290615499565b509250929050565b6000826154e657506001610e4f565b816154f357506000610e4f565b816001811461550957600281146155135761552f565b6001915050610e4f565b60ff841115615524576155246153bc565b50506001821b610e4f565b5060208310610133831016604e8410600b8410161715615552575081810a610e4f565b61555c8383615494565b8060001904821115615570576155706153bc565b029392505050565b600061376783836154d7565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b6020808252601e908201527f66726f6e7420656e64207661756c7420646f6573206e6f742065786973740000604082015260600190565b602080825260139082015272119c9bdb9d08195b99081b9bdd081859191959606a1b604082015260600190565b60208082526014908201527315985d5b1d08191bd95cc81b9bdd08195e1a5cdd60621b604082015260600190565b6020808252600f908201526e36bab9ba103ab9b2903937baba32b960891b604082015260600190565b60006020828403121561569e57600080fd5b5051919050565b60208082526021908201527f5661756c7420646562742063616e277420626520756e646572206d696e4465626040820152601d60fa1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60208082526019908201527f5661756c74206973206e6f74206f776e656420627920796f7500000000000000604082015260600190565b60008351615745818460208801614ff5565b835190830190615759818360208801614ff5565b01949350505050565b600060208083526000845481600182811c91508083168061578457607f831692505b8583108114156157a257634e487b7160e01b85526022600452602485fd5b8786018381526020018180156157bf57600181146157d0576157fb565b60ff198616825287820196506157fb565b60008b81526020902060005b868110156157f5578154848201529085019089016157dc565b83019750505b50949998505050505050505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613b6190830184615021565b6000602082840312156158fc57600080fd5b815161376781614fc2565b60008251615919818460208701614ff5565b919091019291505056fea2646970667358221220ce9522f486b172fa01b2c77f1b22155e86a6770c70fce15dcabf3b4dc73b32a064736f6c634300080b00330000000000000000000000007f059d9867981671fb9284358abe93b1cff493fb000000000000000000000000000000000000000000000000000000000000007d00000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001400000000000000000000000008d6cebd76f18e1558d4db88138e2defb3909fad60000000000000000000000003c82a9514327a93928108e9f00d89877f4beb6e30000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000002b426565667920436f6e76657820437572766520737445544820457468657265756d204d4149205661756c74000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000842434353454d56540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d584d696466764b7a355974484778364e374571576a375175797a734a7a4875696e5437597643644d786a446e0000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061054a5760003560e01c806386375994116102ca578063c71abb321161018d578063d8dfeb45116100f4578063ec2e0ab3116100ad578063f1c91fa611610087578063f1c91fa614610bdf578063f2fde38b14610be8578063f887ea4014610bfb578063ffc73da714610c0e57600080fd5b8063ec2e0ab314610bba578063ece1373214610bc3578063f17336d714610bd657600080fd5b8063d8dfeb4514610b29578063df98784614610b3c578063e0df5b6f14610b4f578063e5f4dc9214610b62578063e985e9c514610b6b578063eb6a887d14610ba757600080fd5b8063cf41d6f811610146578063cf41d6f814610ab2578063cf5f0f3c14610aba578063d0064c0014610acd578063d310f49b14610ad6578063d4a9b2c514610ae9578063d73464cc14610b0957600080fd5b8063c71abb3214610a65578063c87b56dd14610a6e578063cc02ce2214610a81578063cd44db1b14610a94578063cdfedd6314610a9e578063cea55f5714610aa957600080fd5b8063a22cb46511610231578063b26025aa116101ea578063b26025aa14610a04578063b3229a6314610a0c578063b86f6aef14610a1f578063b88d4fde14610a32578063c0d7865514610a45578063c231aa3014610a5857600080fd5b8063a22cb465146109a4578063a57ff503146109b7578063a5e98837146109c0578063a7c6a100146109c8578063a9c904b5146109d1578063b165ff0b146109e457600080fd5b806395d89b411161028357806395d89b411461094557806397a41b8e1461094d57806397ff37b91461096057806398c3f2db1461098057806398d721e014610988578063a0be06f91461099b57600080fd5b806386375994146108e05780638da5cb5b146108f35780639035e4cb1461090457806393ee476a1461091757806394cd4ba71461092a578063952cc86a1461093257600080fd5b806342966c68116104125780636234dc2111610379578063704b6c0211610332578063704b6c021461088357806370a0823114610896578063715018a6146108a9578063728bbbb5146108b1578063767a7b05146108ba57806385e290a3146108cd57600080fd5b80636234dc21146108115780636352211e1461082457806363b8817c146108375780636526941b1461084a578063687e8c171461085d5780636bc855cc1461087057600080fd5b806354fd4d50116103cb57806354fd4d501461079757806356572ac0146107bd578063570b2b84146107d05780635d12928b146107e35780635f84f302146107eb5780635ff09ac2146107fe57600080fd5b806342966c681461072f57806342f371c6146107425780634c19386c146107555780634f558e791461075e5780634f6ccce7146107715780635357b9891461078457600080fd5b806321a78f68116104b65780633128ef271161046f5780633128ef27146106bd578063379394d0146106d057806338536275146106e35780633db99177146106f6578063408038541461070957806342842e0e1461071c57600080fd5b806321a78f681461065257806323b872dd14610665578063241a545a146106785780632df87573146106815780632f745c59146106a1578063311f392a146106b457600080fd5b8063081812fc11610508578063081812fc146105e7578063095ea7b3146105fa5780630b78f9c01461060d57806311b4a8321461062057806318160ddd146106415780631c883e7b1461064957600080fd5b806263750c1461054f57806301ffc9a714610559578063048c661d1461058157806304d7aef2146105ac57806306fdde03146105bf57806307960532146105d4575b600080fd5b610557610c21565b005b61056c610567366004614fd8565b610e44565b60405190151581526020015b60405180910390f35b602454610594906001600160a01b031681565b6040516001600160a01b039091168152602001610578565b602554610594906001600160a01b031681565b6105c7610e55565b604051610578919061504d565b6105576105e236600461507c565b610ee7565b6105946105f5366004615097565b610fa8565b6105576106083660046150b0565b610fcf565b61055761061b3660046150da565b6110e5565b61063361062e366004615097565b61118f565b604051908152602001610578565b600954610633565b61063360105481565b602654610594906001600160a01b031681565b6105576106733660046150fc565b611241565b61063360145481565b61063361068f366004615097565b60166020526000908152604090205481565b6106336106af3660046150b0565b611272565b610633601c5481565b6105576106cb366004615138565b611308565b6105576106de366004615172565b611625565b6105576106f1366004615097565b611674565b610557610704366004615097565b6116b1565b610557610717366004615097565b61174e565b61055761072a3660046150fc565b611856565b61055761073d366004615097565b611871565b600d54610594906001600160a01b031681565b61063360215481565b61056c61076c366004615097565b611a30565b61063361077f366004615097565b611a3b565b610633610792366004615138565b611ace565b6027546107ab90600160a01b900460ff1681565b60405160ff9091168152602001610578565b6106336107cb366004615097565b611b7d565b601e54610594906001600160a01b031681565b610633611c6e565b6105576107f9366004615097565b611cd7565b61055761080c366004615097565b611d14565b61055761081f366004615097565b611e8a565b610594610832366004615097565b611ec7565b61055761084536600461507c565b611f27565b610557610858366004615097565b611fd1565b61056c61086b3660046150da565b61200e565b61055761087e36600461507c565b61203d565b61055761089136600461507c565b6120e9565b6106336108a436600461507c565b612195565b61055761221b565b61063360115481565b6105576108c83660046150da565b61222d565b6105576108db366004615097565b61240f565b6105576108ee366004615097565b612575565b6028546001600160a01b0316610594565b610633610912366004615097565b612612565b610633610925366004615097565b61299a565b610633612a01565b6105576109403660046150da565b612a73565b6105c7612f57565b61055761095b366004615138565b612f66565b61063361096e366004615097565b60176020526000908152604090205481565b61063361332c565b61055761099636600461507c565b613376565b61063360195481565b6105576109b236600461518f565b61342e565b610633601f5481565b601054610633565b610633600f5481565b6105576109df366004615252565b613439565b6106336109f236600461507c565b60226020526000908152604090205481565b610633613484565b61056c610a1a366004615097565b613510565b61056c610a2d366004615097565b6135ca565b610557610a4036600461529b565b61366d565b610557610a5336600461507c565b6136a5565b600b5461056c9060ff1681565b61063360205481565b6105c7610a7c366004615097565b6136fb565b610557610a8f3660046150da565b61376e565b6305f5e100610633565b6106336305f5e10081565b610633601b5481565b6105576138e3565b610557610ac8366004615138565b61397f565b61063360135481565b610633610ae4366004615097565b613acd565b610633610af7366004615097565b60156020526000908152604090205481565b610633610b17366004615097565b60186020526000908152604090205481565b601d54610594906001600160a01b031681565b610633610b4a366004615097565b613ad9565b610557610b5d366004615317565b613b6b565b610633600e5481565b61056c610b79366004615389565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b610557610bb5366004615097565b613bb0565b610633601a5481565b610557610bd13660046150da565b613c33565b61063360125481565b61063360235481565b610557610bf636600461507c565b613d2e565b602754610594906001600160a01b031681565b610557610c1c366004615097565b613da4565b6026546001600160a01b0316331480610c4457506025546001600160a01b031633145b80610c68575033610c5d6028546001600160a01b031690565b6001600160a01b0316145b610cb95760405162461bcd60e51b815260206004820152601f60248201527f4e6565647320746f2062652063616c6c6564206279206f70657261746f72730060448201526064015b60405180910390fd5b610cc1613f77565b6000612710601954602354610cd691906153d2565b610ce091906153f1565b601e546026546023549293506001600160a01b039182169263a9059cbb9290911690610d0d908590615413565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610d58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7c919061542a565b50601e5460255460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af1158015610dd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df6919061542a565b507fc73fb14682b9d51008c1faff296cc9b351c0597de5e25b4ffa158f47f8254e4c602354604051610e2a91815260200190565b60405180910390a1506000602355610e426001600055565b565b6000610e4f82613fd1565b92915050565b606060018054610e6490615447565b80601f0160208091040260200160405190810160405280929190818152602001828054610e9090615447565b8015610edd5780601f10610eb257610100808354040283529160200191610edd565b820191906000526020600020905b815481529060010190602001808311610ec057829003601f168201915b5050505050905090565b610eef613ff6565b6001600160a01b038116610f535760405162461bcd60e51b815260206004820152602560248201527f4574687072696365736f757263652063616e6e6f74206265207a65726f206164604482015264647265737360d81b6064820152608401610cb0565b600d80546001600160a01b0319166001600160a01b0383169081179091556040519081527fc525e5fed1508c998d3f14bf52f933df1dd16dbf48e2944c426be721e268b755906020015b60405180910390a150565b6000610fb382614050565b506000908152600560205260409020546001600160a01b031690565b6000610fda82611ec7565b9050806001600160a01b0316836001600160a01b031614156110485760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cb0565b336001600160a01b038216148061106457506110648133610b79565b6110d65760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610cb0565b6110e083836140a0565b505050565b6110ed613ff6565b6127106110fa828461547c565b146111475760405162461bcd60e51b815260206004820152601a60248201527f736574466565733a206d75737420657175616c2031303030302e0000000000006044820152606401610cb0565b6019829055601a81905560408051838152602081018390527f4d32f38862d5eb71edfefb7955873bd55920dc98159b6f53f8be62fbf0bebb4b91015b60405180910390a15050565b60008061119b83613acd565b60008481526015602052604090205490915015806111b7575080155b806111c857506111c6836135ca565b155b156111d65750600092915050565b6000838152601560205260408120546111ef908361410e565b91505080611201575060009392505050565b60205461120f90600a615578565b61121990826153f1565b90506000601b548261122b91906153f1565b905060125481116112395750805b949350505050565b61124b3382614197565b6112675760405162461bcd60e51b8152600401610cb090615584565b6110e0838383614215565b600061127d83612195565b82106112df5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610cb0565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b8061131281614386565b61132e5760405162461bcd60e51b8152600401610cb0906155d1565b6000818152601860205260409020546127101080159061135b575060008181526018602052604090205415155b6113775760405162461bcd60e51b8152600401610cb090615608565b8361138181614386565b61139d5760405162461bcd60e51b8152600401610cb090615635565b6027546001600160a01b031615806113bf57506027546001600160a01b031633145b6113db5760405162461bcd60e51b8152600401610cb090615663565b601e546040516370a0823160e01b815233600482015285916001600160a01b0316906370a0823190602401602060405180830381865afa158015611423573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611447919061568c565b101561148d5760405162461bcd60e51b8152602060048201526015602482015274546f6b656e2062616c616e636520746f6f206c6f7760581b6044820152606401610cb0565b60006114988661299a565b9050848110156114fa5760405162461bcd60e51b815260206004820152602760248201527f5661756c742064656274206c657373207468616e20616d6f756e7420746f20706044820152666179206261636b60c81b6064820152608401610cb0565b6012546115078683615413565b10158061151357508085145b61152f5760405162461bcd60e51b8152600401610cb0906156a5565b601054600085815260186020526040812054909161154e918890611ace565b905061155a8683615413565b600088815260166020908152604080832093909355601590522054611580908290615413565b6000888152601560205260408082209290925586815220546115a390829061547c565b6000868152601560205260409020556021546115c0908790615413565b602155601e546115db906001600160a01b03163330896143a3565b60408051888152602081018890529081018290527f31f96762af4051f367185773cc2f55bfb112a6c114b3407ded1f321a9eb199ac9060600160405180910390a150505050505050565b61162d613ff6565b600b805460ff191682151590811790915560405160ff909116151581527f24d10a0e2bca30afd85b6fcbdae412b32757c23f2d09434b3748b5980c7133d590602001610f9d565b61167c613ff6565b600e8190556040518181527fc0880963f3abc486dbb8b8f04ba4ce47c5b5cd3c59b6b7655f6011da0bf3365090602001610f9d565b6116b9613ff6565b6101f48111156117195760405162461bcd60e51b815260206004820152602560248201527f736574436c6f73696e674665653a2063616e6e6f74206265206d6f7265207468604482015264616e20352560d81b6064820152608401610cb0565b60108190556040518181527fc1b83121984ef8e824a0babc08fc162077c0716a4dc307121f306e6dfb13806c90602001610f9d565b611756613ff6565b61175f81614386565b6117b55760405162461bcd60e51b815260206004820152602160248201527f61646446726f6e74456e643a205661756c7420646f6573206e6f7420657869736044820152601d60fa1b6064820152608401610cb0565b600081815260186020526040902054156118115760405162461bcd60e51b815260206004820152601a60248201527f61646446726f6e74456e643a20616c72656164792061646465640000000000006044820152606401610cb0565b600081815260186020526040908190206127109055517f9d7c7013bbd38c45562efb3f7031f740c1f8b8886dbbf421142755ed68339f4c90610f9d9083815260200190565b6110e08383836040518060200160405280600081525061366d565b6025546001600160a01b031633146118cb5760405162461bcd60e51b815260206004820152601b60248201527f4e6565647320746f2062652063616c6c65642062792061646d696e00000000006044820152606401610cb0565b601e546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611913573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611937919061568c565b8111156119865760405162461bcd60e51b815260206004820152601860248201527f6275726e3a2042616c616e6365206e6f7420656e6f75676800000000000000006044820152606401610cb0565b601e5460265460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af11580156119db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ff919061542a565b506040518181527fb1f67ade07cda330ac167f4fcc4c01b94fdfc04d401cf85e487f0a5b8b98e75f90602001610f9d565b6000610e4f82614386565b6000611a4660095490565b8210611aa95760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610cb0565b60098281548110611abc57611abc6156e6565b90600052602060002001549050919050565b6000808215611b2c5761271080611ae361332c565b611aed91906153d2565b611af791906153d2565b836305f5e100611b0788886153d2565b611b1191906153d2565b611b1b91906153d2565b611b2591906153f1565b9050611b67565b612710611b3761332c565b611b4191906153d2565b6305f5e100611b5087876153d2565b611b5a91906153d2565b611b6491906153f1565b90505b601f54611b7490826153f1565b95945050505050565b6000818152601560205260408120541580611b9e5750611b9c826135ca565b155b15611bab57506000919050565b6000611bb683613acd565b60008481526015602052604081205491925090611bd3908361410e565b9150506000601b5482611be691906153f1565b905080611bf857506000949350505050565b601254602054611c0990600a615578565b611c1390836153f1565b11611c5257601f54611c2361332c565b6103e8601c5485611c3491906153d2565b611c3e91906153f1565b611c4891906153f1565b611b7491906153f1565b601f54611c5d61332c565b6103e8601c5484611c3491906153d2565b600f54600090611c7f81600161547c565b600f819055811115611c9057600080fd5b611c9a338261440e565b604080518281523360208201527f8b6c1d05c678fa59695e26465a85918ce0fc63a88f74af53d1daef8f0a9c7804910160405180910390a1919050565b611cdf613ff6565b60148190556040518181527f323264e3ca065ee856fe1b11204d8896a783bccf148380ac5d7362eb5c4c36a890602001610f9d565b80611d1e81614386565b611d3a5760405162461bcd60e51b8152600401610cb0906155d1565b60008181526018602052604090205461271010801590611d67575060008181526018602052604090205415155b611d835760405162461bcd60e51b8152600401610cb090615608565b611d8b613ff6565b611d9482614386565b611dec5760405162461bcd60e51b8152602060048201526024808201527f72656d6f766546726f6e74456e643a205661756c7420646f6573206e6f7420656044820152631e1a5cdd60e21b6064820152608401610cb0565b600082815260186020526040902054611e475760405162461bcd60e51b815260206004820152601f60248201527f72656d6f766546726f6e74456e643a206e6f7420612066726f6e7420656e64006044820152606401610cb0565b60008281526018602052604080822091909155517f9b9f950fb3755096dbbe8b1519e73f7c6d1a0507f514fced444919530c00d719906111839084815260200190565b611e92613ff6565b60128190556040518181527f4533506fbaba6b18743358b6e6fb9392e8cb21757487b68d232a01b140bbec0190602001610f9d565b6000818152600360205260408120546001600160a01b031680610e4f5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610cb0565b611f2f613f77565b6001600160a01b038116600090815260226020526040902054611f945760405162461bcd60e51b815260206004820152601c60248201527f446f6e2774206861766520616e797468696e6720666f7220796f752e000000006044820152606401610cb0565b6001600160a01b0380821660009081526022602052604081208054919055601d549091611fc391168383614589565b50611fce6001600055565b50565b611fd9613ff6565b60138190556040518181527f1dd8f42ee4750a70f6662d1383372472422592497256d506437e35b3fa914d9b90602001610f9d565b600080600061201d858561410e565b9092509050600061202e82846153f1565b600e5411159695505050505050565b612045613ff6565b6001600160a01b03811661209b5760405162461bcd60e51b815260206004820181905260248201527f5265666572656e636520416464726573732063616e6e6f74206265207a65726f6044820152606401610cb0565b602680546001600160a01b0319166001600160a01b0383169081179091556040519081527f8ed6553fa1e634b0152cd3539c572bee8c662e446820646d73a0e1b47776af9390602001610f9d565b6120f1613ff6565b6001600160a01b0381166121475760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20416464726573732063616e6e6f74206265207a65726f000000006044820152606401610cb0565b602580546001600160a01b0319166001600160a01b0383169081179091556040519081527ffce52dd00c7849a7f2602c1f189745238d6a2db16fabf54376ce24cc2fa3d57f90602001610f9d565b60006001600160a01b0382166121ff5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610cb0565b506001600160a01b031660009081526004602052604090205490565b612223613ff6565b610e4260006145b9565b8161223781614386565b6122535760405162461bcd60e51b8152600401610cb090615635565b3361225d82611ec7565b6001600160a01b0316146122835760405162461bcd60e51b8152600401610cb0906156fc565b61228b613f77565b6000838152601560205260409020548211156122f75760405162461bcd60e51b815260206004820152602560248201527f5661756c7420646f6573206e6f74206861766520656e6f75676820636f6c6c616044820152641d195c985b60da1b6064820152608401610cb0565b600083815260156020526040812054612311908490615413565b9050600061231e8561299a565b905080156123a257612330828261200e565b6123a25760405162461bcd60e51b815260206004820152603e60248201527f5769746864726177616c20776f756c6420707574207661756c742062656c6f7760448201527f206d696e696d756d20636f6c6c61746572616c2070657263656e7461676500006064820152608401610cb0565b6000858152601560205260409020829055601d546123ca906001600160a01b03163386614589565b60408051868152602081018690527f6c0ea3bea9dd66afa8f9d39d6eb93d833466190330813b42835efc650dca4cb9910160405180910390a150506110e06001600055565b8061241981614386565b6124355760405162461bcd60e51b8152600401610cb090615635565b3361243f82611ec7565b6001600160a01b0316146124655760405162461bcd60e51b8152600401610cb0906156fc565b61246d613f77565b61247682613acd565b156124c35760405162461bcd60e51b815260206004820152601a60248201527f5661756c7420686173206f75747374616e64696e6720646562740000000000006044820152606401610cb0565b60008281526015602052604090205415612505576125056124e383611ec7565b600084815260156020526040902054601d546001600160a01b03169190614589565b61250e8261460b565b600082815260156020908152604080832083905560168252808320839055601782528083209290925590518381527f4fe08624ee65b341c38ab9693d216b909d4ddee1bc8d3fe0fea14026c361b465910160405180910390a16125716001600055565b5050565b61257d613ff6565b6101f48111156125dd5760405162461bcd60e51b815260206004820152602560248201527f7365744f70656e696e674665653a2063616e6e6f74206265206d6f7265207468604482015264616e20352560d81b6064820152608401610cb0565b60118190556040518181527fc4ced91ca77dc4287a54d9bd9b15c69b3aba262e30eba7c93301c48606019c9490602001610f9d565b60008161261e81614386565b61263a5760405162461bcd60e51b8152600401610cb090615635565b612642613f77565b6024546001600160a01b0316158061266457506024546001600160a01b031633145b6126b05760405162461bcd60e51b815260206004820181905260248201527f627579207269736b792069732064697361626c656420666f72207075626c69636044820152606401610cb0565b60006126bb8461299a565b9050806126fc5760405162461bcd60e51b815260206004820152600f60248201526e05661756c742064656274206973203608c1b6044820152606401610cb0565b6000848152601560205260408120548190612717908461410e565b9092509050600061272882846153f1565b601c5490915061273982600a6153d2565b111561279e5760405162461bcd60e51b815260206004820152602e60248201527f5661756c74206973206e6f742062656c6f77207269736b7920636f6c6c61746560448201526d72616c2070657263656e7461676560901b6064820152608401610cb0565b6000602054600a6127af9190615578565b600e546127bc91906153d2565b6127c690856153f1565b6020546127d490600a615578565b6127de90856153f1565b6127e89190615413565b601e546040516370a0823160e01b815233600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa158015612835573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612859919061568c565b10156128b55760405162461bcd60e51b815260206004820152602560248201527f4e6f7420656e6f756768206d616920746f2062757920746865207269736b79206044820152641d985d5b1d60da1b6064820152608401610cb0565b601e546128cd906001600160a01b03163330846143a3565b806021546128db9190615413565b60215560006128e8611c6e565b60008a81526015602052604080822054838352912055905061290a8287615413565b600082815260166020818152604080842094909455601781528383204290558c8352601581528383208390559081528282209190915581518b815290810183905233818301526060810184905290517fa4cf7276e26bb566de2c7540759e85736eb743807343fd27e6e679b20e8814419181900360800190a1965050505050506129946001600055565b50919050565b60008060006129a8846146ae565b91509150816023546129ba919061547c565b6023556021546129cb90839061547c565b602155601454156129e85760008481526017602052604090204290555b6000938452601660205260409093208390555090919050565b601e546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612a4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6e919061568c565b905090565b80612a7d81614386565b612a995760405162461bcd60e51b8152600401610cb0906155d1565b60008181526018602052604090205461271010801590612ac6575060008181526018602052604090205415155b612ae25760405162461bcd60e51b8152600401610cb090615608565b82612aec81614386565b612b085760405162461bcd60e51b8152600401610cb090615635565b6024546001600160a01b03161580612b2a57506024546001600160a01b031633145b612b815760405162461bcd60e51b815260206004820152602260248201527f6c69717569646174696f6e2069732064697361626c656420666f72207075626c604482015261696360f01b6064820152608401610cb0565b6000612b8c8561299a565b600086815260156020526040812054919250908190612bab908461410e565b915091508260001415612bf25760405162461bcd60e51b815260206004820152600f60248201526e05661756c742064656274206973203608c1b6044820152606401610cb0565b6000612bfe82846153f1565b9050600e548110612c6a5760405162461bcd60e51b815260206004820152603060248201527f5661756c74206973206e6f742062656c6f77206d696e696d756d20636f6c6c6160448201526f746572616c2070657263656e7461676560801b6064820152608401610cb0565b601c54612c7882600a6153d2565b11612cc55760405162461bcd60e51b815260206004820152601d60248201527f5661756c74206973206e6f742061626f7665206761696e20726174696f0000006044820152606401610cb0565b602054612cd390600a615578565b612cdd90836153f1565b91506000601b5483612cef91906153f1565b90506012548111612cfd5750815b601e546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015612d45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d69919061568c565b1015612dd15760405162461bcd60e51b815260206004820152603160248201527f546f6b656e2062616c616e636520746f6f206c6f7720746f20706179206f6666604482015270081bdd5d1cdd185b991a5b99c81919589d607a1b6064820152608401610cb0565b80602154612ddf9190615413565b6021556000612ded8a611b7d565b9050612df98287615413565b60008b8152601660209081526040808320939093556010548c83526018909152918120549091612e2a918590611ace565b60008c815260156020526040902054909150612e47908290615413565b60008c815260156020526040808220929092558b81522054612e6a90829061547c565b60008b815260156020526040808220929092558c81522054612e8d908390615413565b60008c815260156020908152604080832093909355338252602290522054612eb690839061547c565b33600081815260226020526040902091909155601e54612ee3916001600160a01b039091169030866143a3565b7f4d151d3a98b83151d51917640c221f8c8e3c054422ea1b48dcbbd57e3f4210d58b612f0e8d611ec7565b604080519283526001600160a01b0390911660208301523390820152606081018590526080810184905260a0810183905260c00160405180910390a15050505050505050505050565b606060028054610e6490615447565b80612f7081614386565b612f8c5760405162461bcd60e51b8152600401610cb0906155d1565b60008181526018602052604090205461271010801590612fb9575060008181526018602052604090205415155b612fd55760405162461bcd60e51b8152600401610cb090615608565b83612fdf81614386565b612ffb5760405162461bcd60e51b8152600401610cb090615635565b3361300582611ec7565b6001600160a01b03161461302b5760405162461bcd60e51b8152600401610cb0906156fc565b613033613f77565b600084116130835760405162461bcd60e51b815260206004820152601b60248201527f4d75737420626f72726f77206e6f6e2d7a65726f20616d6f756e7400000000006044820152606401610cb0565b61308b612a01565b8411156130f25760405162461bcd60e51b815260206004820152602f60248201527f626f72726f77546f6b656e3a2043616e6e6f74206d696e74206f76657220617660448201526e30b4b630b136329039bab838363c9760891b6064820152608401610cb0565b6000846130fe8761299a565b613108919061547c565b90506013548111156131675760405162461bcd60e51b815260206004820152602260248201527f626f72726f77546f6b656e3a206d6178206c6f616e2063617020726561636865604482015261321760f11b6064820152608401610cb0565b61317086613acd565b811161317b57600080fd5b600086815260156020526040902054613194908261200e565b6132065760405162461bcd60e51b815260206004820152603a60248201527f426f72726f7720776f756c6420707574207661756c742062656c6f77206d696e60448201527f696d756d20636f6c6c61746572616c2070657263656e746167650000000000006064820152608401610cb0565b6012548561321388613acd565b61321d919061547c565b101561323b5760405162461bcd60e51b8152600401610cb0906156a5565b6000868152601660209081526040808320849055601154878452601890925282205461326991908490611ace565b600088815260156020526040902054909150613286908290615413565b6000888152601560205260408082209290925586815220546132a990829061547c565b600086815260156020526040902055601e546132cf906001600160a01b03163388614589565b856021546132dd919061547c565b60215560408051888152602081018890527f3e08df88d8e28f37df9bf227d3142ac506a364403445661a60891a49ed6792ca910160405180910390a150506133256001600055565b5050505050565b600d54604080516350d25bcd60e01b815290516000926001600160a01b0316916350d25bcd9160048083019260209291908290030181865afa158015612a4a573d6000803e3d6000fd5b61337e613ff6565b6001600160a01b0381166133e05760405162461bcd60e51b8152602060048201526024808201527f53746162696c697479506f6f6c2063616e6e6f74206265207a65726f206164646044820152637265737360e01b6064820152608401610cb0565b602480546001600160a01b0319166001600160a01b0383169081179091556040519081527f0644c4f539d7f787d2287c12d9425e80aefc8bdae99c70af4ca66fb0742577e890602001610f9d565b612571338383614753565b613441613ff6565b8051613454906029906020840190614eb5565b507f0d82453dd4ad18b5ce3db08c34a39340ad2bf15046a7d0e86aa075483eb121d881604051610f9d919061504d565b601d546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156134cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134f1919061568c565b601f546134fc61332c565b61350691906153d2565b612a6e91906153d2565b60008161351c81614386565b6135385760405162461bcd60e51b8152600401610cb090615635565b600061354384613acd565b600085815260156020526040902054909150158061355f575080155b1561356e576000925050612994565b6000848152601560205260408120548190613589908461410e565b9092509050600061359a82846153f1565b601c549091506135ab82600a6153d2565b116135bd576001955050505050612994565b6000955050505050612994565b6000816135d681614386565b6135f25760405162461bcd60e51b8152600401610cb090615635565b60006135fd84613acd565b6000858152601560205260409020549091501580613619575080155b15613628576000925050612994565b6000848152601560205260408120548190613643908461410e565b9092509050600061365482846153f1565b9050600e548110156135bd576001955050505050612994565b6136773383614197565b6136935760405162461bcd60e51b8152600401610cb090615584565b61369f84848484614822565b50505050565b6136ad613ff6565b602780546001600160a01b0319166001600160a01b0383169081179091556040519081527f66fc0187dfabf79860e1b18e6c175c92baf9ed88c8a01d0bfdb97d1f0450f7f790602001610f9d565b606061370682614050565b6000613710614855565b600b5490915060ff1615610e4f57600081511161373c5760405180602001604052806000815250613767565b8061374684614864565b604051602001613757929190615733565b6040516020818303038152906040525b9392505050565b8161377881614386565b6137945760405162461bcd60e51b8152600401610cb0906155d1565b600081815260186020526040902054612710108015906137c1575060008181526018602052604090205415155b6137dd5760405162461bcd60e51b8152600401610cb090615608565b826137e781614386565b6138035760405162461bcd60e51b8152600401610cb090615635565b3361380d82611ec7565b6001600160a01b0316146138335760405162461bcd60e51b8152600401610cb0906156fc565b60008311801561384557506127108311155b6138915760405162461bcd60e51b815260206004820152601b60248201527f75706461746546726f6e74456e643a2063616e6e6f74206265203000000000006044820152606401610cb0565b60008481526018602090815260409182902085905581518681529081018590527fbfdd5aecf44aa804bf11f070a41765d280dab82adbfd1c55e1e85b7d5b7920b491015b60405180910390a150505050565b6138eb613f77565b336000908152602260205260409020546139475760405162461bcd60e51b815260206004820152601c60248201527f446f6e2774206861766520616e797468696e6720666f7220796f752e000000006044820152606401610cb0565b3360008181526022602052604081208054919055601d549091613974916001600160a01b03169083614589565b50610e426001600055565b8061398981614386565b6139a55760405162461bcd60e51b8152600401610cb0906155d1565b600081815260186020526040902054612710108015906139d2575060008181526018602052604090205415155b6139ee5760405162461bcd60e51b8152600401610cb090615608565b836139f881614386565b613a145760405162461bcd60e51b8152600401610cb090615635565b6027546001600160a01b03161580613a3657506027546001600160a01b031633145b613a525760405162461bcd60e51b8152600401610cb090615663565b42841015613aad5760405162461bcd60e51b815260206004820152602260248201527f7061796261636b546f6b656e416c6c3a20646561646c696e6520657870697265604482015261321760f11b6064820152608401610cb0565b6000613ab88661299a565b9050613ac5868286611308565b505050505050565b600080611239836146ae565b600081613ae581614386565b613b015760405162461bcd60e51b8152600401610cb090615635565b6000613b0c84613acd565b6000858152601560205260409020549091501580613b28575080155b15613b37576000925050612994565b6000848152601560205260408120548190613b52908461410e565b9092509050613b6181836153f1565b9695505050505050565b613b73613ff6565b613b7f600c8383614f39565b507ffda45751019c07e08a3ebf7d73a4aea1a6c36bee12d87089096012911a756ab5600c6040516111839190615762565b613bb8613ff6565b80613bfe5760405162461bcd60e51b815260206004820152601660248201527504465627420526174696f2063616e6e6f7420626520360541b6044820152606401610cb0565b601b8190556040518181527f199e93b2fae27b389e2d09761871573f60121b8521be96b8f28c83bf94846ac290602001610f9d565b81613c3d81614386565b613c595760405162461bcd60e51b8152600401610cb090615635565b6027546001600160a01b03161580613c7b57506027546001600160a01b031633145b613c975760405162461bcd60e51b8152600401610cb090615663565b600083815260156020526040812054613cb190849061547c565b600085815260156020526040902054909150811015613ccf57600080fd5b6000848152601560205260409020819055601d54613cf8906001600160a01b03163330866143a3565b60408051858152602081018590527f52c4e7127ec34e8fc95f09ce2d06b4f00acca12ccbcdfb246ef67ee6aefe068d91016138d5565b613d36613ff6565b6001600160a01b038116613d9b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cb0565b611fce816145b9565b613dac613ff6565b6103e8811015613e155760405162461bcd60e51b815260206004820152602e60248201527f6761696e526174696f2063616e6e6f74206265206c657373207468616e206f7260448201526d020657175616c20746f20313030360941b6064820152608401610cb0565b601c8190556040518181527fb6d384ad48d9c5c042c81fa0f88d8061ef87b38475101d6aa5f9ae5a8274a64e90602001610f9d565b6001811115613eb95760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b6064820152608401610cb0565b816001600160a01b038516613f1557613f1081600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613f38565b836001600160a01b0316856001600160a01b031614613f3857613f388582614901565b6001600160a01b038416613f5457613f4f8161499e565b613325565b846001600160a01b0316846001600160a01b031614613325576133258482614a4d565b60026000541415613fca5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cb0565b6002600055565b60006001600160e01b0319821663780e9d6360e01b1480610e4f5750610e4f82614a91565b6028546001600160a01b03163314610e425760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb0565b61405981614386565b611fce5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610cb0565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906140d582611ec7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061411961332c565b61412257600080fd5b6000601f5461412f61332c565b61413990876153d2565b61414391906153d2565b90508481101561415257600080fd5b60006141626305f5e100866153d2565b90508481101561417157600080fd5b600061417e8360646153d2565b905082811161418c57600080fd5b969095509350505050565b6000806141a383611ec7565b9050806001600160a01b0316846001600160a01b031614806141ea57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b806112395750836001600160a01b031661420384610fa8565b6001600160a01b031614949350505050565b826001600160a01b031661422882611ec7565b6001600160a01b03161461424e5760405162461bcd60e51b8152600401610cb09061580a565b6001600160a01b0382166142b05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cb0565b6142bd8383836001614ae1565b826001600160a01b03166142d082611ec7565b6001600160a01b0316146142f65760405162461bcd60e51b8152600401610cb09061580a565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000908152600360205260409020546001600160a01b0316151590565b6040516001600160a01b038085166024830152831660448201526064810182905261369f9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152614aed565b6001600160a01b0382166144645760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cb0565b61446d81614386565b156144ba5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cb0565b6144c8600083836001614ae1565b6144d181614386565b1561451e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cb0565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040516001600160a01b0383166024820152604481018290526110e090849063a9059cbb60e01b906064016143d7565b602880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061461682611ec7565b9050614626816000846001614ae1565b61462f82611ec7565b600083815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526004845282852080546000190190558785526003909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000818152601660209081526040808320546017909252822054829142918390158015906146de57506000601454115b15614749576000868152601760205260408120546146fc9085615413565b905060006127106301e18558838660145461471791906153d2565b61472191906153d2565b61472b91906153f1565b61473591906153f1565b9250829050614744848261547c565b935050505b9590945092505050565b816001600160a01b0316836001600160a01b031614156147b55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cb0565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61482d848484614215565b61483984848484614bbf565b61369f5760405162461bcd60e51b8152600401610cb09061584f565b6060600c8054610e6490615447565b6060600061487183614cbd565b600101905060008167ffffffffffffffff811115614891576148916151c6565b6040519080825280601f01601f1916602001820160405280156148bb576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846148f4576148f9565b6148c5565b509392505050565b6000600161490e84612195565b6149189190615413565b60008381526008602052604090205490915080821461496b576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906149b090600190615413565b6000838152600a6020526040812054600980549394509092849081106149d8576149d86156e6565b9060005260206000200154905080600983815481106149f9576149f96156e6565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480614a3157614a316158a1565b6001900381819060005260206000200160009055905550505050565b6000614a5883612195565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b60006001600160e01b031982166380ac58cd60e01b1480614ac257506001600160e01b03198216635b5e139f60e01b145b80610e4f57506301ffc9a760e01b6001600160e01b0319831614610e4f565b61369f84848484613e4a565b6000614b42826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614d959092919063ffffffff16565b8051909150156110e05780806020019051810190614b60919061542a565b6110e05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610cb0565b60006001600160a01b0384163b15614cb257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290614c039033908990889088906004016158b7565b6020604051808303816000875af1925050508015614c3e575060408051601f3d908101601f19168201909252614c3b918101906158ea565b60015b614c98573d808015614c6c576040519150601f19603f3d011682016040523d82523d6000602084013e614c71565b606091505b508051614c905760405162461bcd60e51b8152600401610cb09061584f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611239565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310614cfc5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310614d28576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310614d4657662386f26fc10000830492506010015b6305f5e1008310614d5e576305f5e100830492506008015b6127108310614d7257612710830492506004015b60648310614d84576064830492506002015b600a8310610e4f5760010192915050565b6060611239848460008585600080866001600160a01b03168587604051614dbc9190615907565b60006040518083038185875af1925050503d8060008114614df9576040519150601f19603f3d011682016040523d82523d6000602084013e614dfe565b606091505b5091509150614e0f87838387614e1a565b979650505050505050565b60608315614e86578251614e7f576001600160a01b0385163b614e7f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610cb0565b5081611239565b6112398383815115614e9b5781518083602001fd5b8060405162461bcd60e51b8152600401610cb0919061504d565b828054614ec190615447565b90600052602060002090601f016020900481019282614ee35760008555614f29565b82601f10614efc57805160ff1916838001178555614f29565b82800160010185558215614f29579182015b82811115614f29578251825591602001919060010190614f0e565b50614f35929150614fad565b5090565b828054614f4590615447565b90600052602060002090601f016020900481019282614f675760008555614f29565b82601f10614f805782800160ff19823516178555614f29565b82800160010185558215614f29579182015b82811115614f29578235825591602001919060010190614f92565b5b80821115614f355760008155600101614fae565b6001600160e01b031981168114611fce57600080fd5b600060208284031215614fea57600080fd5b813561376781614fc2565b60005b83811015615010578181015183820152602001614ff8565b8381111561369f5750506000910152565b60008151808452615039816020860160208601614ff5565b601f01601f19169290920160200192915050565b6020815260006137676020830184615021565b80356001600160a01b038116811461507757600080fd5b919050565b60006020828403121561508e57600080fd5b61376782615060565b6000602082840312156150a957600080fd5b5035919050565b600080604083850312156150c357600080fd5b6150cc83615060565b946020939093013593505050565b600080604083850312156150ed57600080fd5b50508035926020909101359150565b60008060006060848603121561511157600080fd5b61511a84615060565b925061512860208501615060565b9150604084013590509250925092565b60008060006060848603121561514d57600080fd5b505081359360208301359350604090920135919050565b8015158114611fce57600080fd5b60006020828403121561518457600080fd5b813561376781615164565b600080604083850312156151a257600080fd5b6151ab83615060565b915060208301356151bb81615164565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156151f7576151f76151c6565b604051601f8501601f19908116603f0116810190828211818310171561521f5761521f6151c6565b8160405280935085815286868601111561523857600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561526457600080fd5b813567ffffffffffffffff81111561527b57600080fd5b8201601f8101841361528c57600080fd5b611239848235602084016151dc565b600080600080608085870312156152b157600080fd5b6152ba85615060565b93506152c860208601615060565b925060408501359150606085013567ffffffffffffffff8111156152eb57600080fd5b8501601f810187136152fc57600080fd5b61530b878235602084016151dc565b91505092959194509250565b6000806020838503121561532a57600080fd5b823567ffffffffffffffff8082111561534257600080fd5b818501915085601f83011261535657600080fd5b81358181111561536557600080fd5b86602082850101111561537757600080fd5b60209290920196919550909350505050565b6000806040838503121561539c57600080fd5b6153a583615060565b91506153b360208401615060565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156153ec576153ec6153bc565b500290565b60008261540e57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015615425576154256153bc565b500390565b60006020828403121561543c57600080fd5b815161376781615164565b600181811c9082168061545b57607f821691505b6020821081141561299457634e487b7160e01b600052602260045260246000fd5b6000821982111561548f5761548f6153bc565b500190565b600181815b808511156154cf5781600019048211156154b5576154b56153bc565b808516156154c257918102915b93841c9390800290615499565b509250929050565b6000826154e657506001610e4f565b816154f357506000610e4f565b816001811461550957600281146155135761552f565b6001915050610e4f565b60ff841115615524576155246153bc565b50506001821b610e4f565b5060208310610133831016604e8410600b8410161715615552575081810a610e4f565b61555c8383615494565b8060001904821115615570576155706153bc565b029392505050565b600061376783836154d7565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b6020808252601e908201527f66726f6e7420656e64207661756c7420646f6573206e6f742065786973740000604082015260600190565b602080825260139082015272119c9bdb9d08195b99081b9bdd081859191959606a1b604082015260600190565b60208082526014908201527315985d5b1d08191bd95cc81b9bdd08195e1a5cdd60621b604082015260600190565b6020808252600f908201526e36bab9ba103ab9b2903937baba32b960891b604082015260600190565b60006020828403121561569e57600080fd5b5051919050565b60208082526021908201527f5661756c7420646562742063616e277420626520756e646572206d696e4465626040820152601d60fa1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60208082526019908201527f5661756c74206973206e6f74206f776e656420627920796f7500000000000000604082015260600190565b60008351615745818460208801614ff5565b835190830190615759818360208801614ff5565b01949350505050565b600060208083526000845481600182811c91508083168061578457607f831692505b8583108114156157a257634e487b7160e01b85526022600452602485fd5b8786018381526020018180156157bf57600181146157d0576157fb565b60ff198616825287820196506157fb565b60008b81526020902060005b868110156157f5578154848201529085019089016157dc565b83019750505b50949998505050505050505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613b6190830184615021565b6000602082840312156158fc57600080fd5b815161376781614fc2565b60008251615919818460208701614ff5565b919091019291505056fea2646970667358221220ce9522f486b172fa01b2c77f1b22155e86a6770c70fce15dcabf3b4dc73b32a064736f6c634300080b0033
Deployed Bytecode Sourcemap
118034:11026:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;127418:332;;;:::i;:::-;;60009:171;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;60009:171:0;;;;;;;;88582:28;;;;;-1:-1:-1;;;;;88582:28:0;;;;;;-1:-1:-1;;;;;756:32:1;;;738:51;;726:2;711:18;88582:28:0;592:203:1;88617:18:0;;;;;-1:-1:-1;;;;;88617:18:0;;;36465:100;;;:::i;:::-;;;;;;;:::i;121545:331::-;;;;;;:::i;:::-;;:::i;37977:171::-;;;;;;:::i;:::-;;:::i;37495:416::-;;;;;;:::i;:::-;;:::i;122687:244::-;;;;;;:::i;:::-;;:::i;105427:799::-;;;;;;:::i;:::-;;:::i;:::-;;;2918:25:1;;;2906:2;2891:18;105427:799:0;2772:177:1;54315:113:0;54403:10;:17;54315:113;;87699:25;;;;;;88642:18;;;;;-1:-1:-1;;;;;88642:18:0;;;38677:335;;;;;;:::i;:::-;;:::i;87878:17::-;;;;;;87961:55;;;;;;:::i;:::-;;;;;;;;;;;;;;53983:256;;;;;;:::i;:::-;;:::i;88282:24::-;;;;;;103256:1151;;;;;;:::i;:::-;;:::i;128929:128::-;;;;;;:::i;:::-;;:::i;123109:258::-;;;;;;:::i;:::-;;:::i;125526:277::-;;;;;;:::i;:::-;;:::i;126017:303::-;;;;;;:::i;:::-;;:::i;39083:185::-;;;;;;:::i;:::-;;:::i;128246:251::-;;;;;;:::i;:::-;;:::i;87566:34::-;;;;;-1:-1:-1;;;;;87566:34:0;;;88463:28;;;;;;91911:104;;;;;;:::i;:::-;;:::i;54505:233::-;;;;;;:::i;:::-;;:::i;97313:533::-;;;;;;:::i;:::-;;:::i;88695:24::-;;;;;-1:-1:-1;;;88695:24:0;;;;;;;;;4376:4:1;4364:17;;;4346:36;;4334:2;4319:18;88695:24:0;4204:184:1;106460:896:0;;;;;;:::i;:::-;;:::i;88345:16::-;;;;;-1:-1:-1;;;;;88345:16:0;;;97962:259;;;:::i;127874:123::-;;;;;;:::i;:::-;;:::i;127032:325::-;;;;;;:::i;:::-;;:::i;123518:219::-;;;;;;:::i;:::-;;:::i;36175:223::-;;;;;;:::i;:::-;;:::i;104961:249::-;;;;;;:::i;:::-;;:::i;123904:219::-;;;;;;:::i;:::-;;:::i;96486:429::-;;;;;;:::i;:::-;;:::i;124324:183::-;;;;;;:::i;:::-;;:::i;124713:::-;;;;;;:::i;:::-;;:::i;35906:207::-;;;;;;:::i;:::-;;:::i;117078:103::-;;;:::i;87731:25::-;;;;;;100003:775;;;;;;:::i;:::-;;:::i;98399:578::-;;;;;;:::i;:::-;;:::i;125073:277::-;;;;;;:::i;:::-;;:::i;116430:87::-;116503:6;;-1:-1:-1;;;;;116503:6:0;116430:87;;113148:2095;;;;;;:::i;:::-;;:::i;94660:454::-;;;;;;:::i;:::-;;:::i;91563:110::-;;;:::i;110339:2349::-;;;;;;:::i;:::-;;:::i;36634:104::-;;;:::i;101139:1365::-;;;;;;:::i;:::-;;:::i;88025:47::-;;;;;;:::i;:::-;;;;;;;;;;;;;;93078:114;;;:::i;122113:231::-;;;;;;:::i;:::-;;:::i;88131:23::-;;;;;;38220:155;;;;;;:::i;:::-;;:::i;88370:43::-;;;;;;92558:93;92633:10;;92558:93;;87661:25;;;;;;120299:149;;;;;;:::i;:::-;;:::i;88500:44::-;;;;;;:::i;:::-;;;;;;;;;;;;;;92165:252;;;:::i;109238:702::-;;;;;;:::i;:::-;;:::i;108286:753::-;;;;;;:::i;:::-;;:::i;39339:322::-;;;;;;:::i;:::-;;:::i;128796:125::-;;;;;;:::i;:::-;;:::i;59731:18::-;;;;;;;;;88422:34;;;;;;60525:370;;;;;;:::i;:::-;;:::i;126589:311::-;;;;;;:::i;:::-;;:::i;92805:95::-;87860:3;92805:95;;87825:38;;87860:3;87825:38;;88251:24;;;;;;104523:266;;;:::i;102512:405::-;;;;;;:::i;:::-;;:::i;87794:22::-;;;;;;94303:151;;;;;;:::i;:::-;;:::i;87904:50::-;;;;;;:::i;:::-;;;;;;;;;;;;;;88079:43;;;;;;:::i;:::-;;;;;;;;;;;;;;88315:23;;;;;-1:-1:-1;;;;;88315:23:0;;;107506:585;;;;;;:::i;:::-;;:::i;128645:143::-;;;;;;:::i;:::-;;:::i;87609:43::-;;;;;;38446:164;;;;;;:::i;:::-;-1:-1:-1;;;;;38567:25:0;;;38543:4;38567:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;38446:164;121070:206;;;;;;:::i;:::-;;:::i;88191:21::-;;;;;;99255:454;;;;;;:::i;:::-;;:::i;87765:22::-;;;;;;88551;;;;;;117336:201;;;;;;:::i;:::-;;:::i;88667:21::-;;;;;-1:-1:-1;;;;;88667:21:0;;;120645:233;;;;;;:::i;:::-;;:::i;127418:332::-;119910:3;;-1:-1:-1;;;;;119910:3:0;119917:10;119910:17;;:38;;-1:-1:-1;119931:3:0;;-1:-1:-1;;;;;119931:3:0;119938:10;119931:17;119910:38;:63;;;-1:-1:-1;119963:10:0;119952:7;116503:6;;-1:-1:-1;;;;;116503:6:0;;116430:87;119952:7;-1:-1:-1;;;;;119952:21:0;;119910:63;119902:107;;;;-1:-1:-1;;;119902:107:0;;7896:2:1;119902:107:0;;;7878:21:1;7935:2;7915:18;;;7908:30;7974:33;7954:18;;;7947:61;8025:18;;119902:107:0;;;;;;;;;63184:21:::1;:19;:21::i;:::-;127495:15:::2;87470:5;127521:8;;127513:7;;:16;;;;:::i;:::-;:31;;;;:::i;:::-;127578:3;::::0;127591::::2;::::0;127597:7:::2;::::0;127495:49;;-1:-1:-1;;;;;;127578:3:0;;::::2;::::0;:12:::2;::::0;127591:3;;::::2;::::0;127597:15:::2;::::0;127495:49;;127597:15:::2;:::i;:::-;127578:37;::::0;-1:-1:-1;;;;;;127578:37:0::2;::::0;;;;;;-1:-1:-1;;;;;9035:32:1;;;127578:37:0::2;::::0;::::2;9017:51:1::0;9084:18;;;9077:34;8990:18;;127578:37:0::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;127653:3:0::2;::::0;127666::::2;::::0;127653:26:::2;::::0;-1:-1:-1;;;127653:26:0;;-1:-1:-1;;;;;127666:3:0;;::::2;127653:26;::::0;::::2;9017:51:1::0;9084:18;;;9077:34;;;127653:3:0;::::2;::::0;:12:::2;::::0;8990:18:1;;127653:26:0::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;127695:25;127712:7;;127695:25;;;;2918::1::0;;2906:2;2891:18;;2772:177;127695:25:0::2;;;;;;;;-1:-1:-1::0;127741:1:0::2;127731:7;:11:::0;63228:20:::1;62622:1:::0;63748:7;:22;63565:213;63228:20:::1;127418:332::o:0;60009:171::-;60112:4;60136:36;60160:11;60136:23;:36::i;:::-;60129:43;60009:171;-1:-1:-1;;60009:171:0:o;36465:100::-;36519:13;36552:5;36545:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36465:100;:::o;121545:331::-;116316:13;:11;:13::i;:::-;-1:-1:-1;;;;;121667:35:0;::::1;121659:86;;;::::0;-1:-1:-1;;;121659:86:0;;9959:2:1;121659:86:0::1;::::0;::::1;9941:21:1::0;9998:2;9978:18;;;9971:30;10037:34;10017:18;;;10010:62;-1:-1:-1;;;10088:18:1;;;10081:35;10133:19;;121659:86:0::1;9757:401:1::0;121659:86:0::1;121756:14;:52:::0;;-1:-1:-1;;;;;;121756:52:0::1;-1:-1:-1::0;;;;;121756:52:0;::::1;::::0;;::::1;::::0;;;121824:44:::1;::::0;738:51:1;;;121824:44:0::1;::::0;726:2:1;711:18;121824:44:0::1;;;;;;;;121545:331:::0;:::o;37977:171::-;38053:7;38073:23;38088:7;38073:14;:23::i;:::-;-1:-1:-1;38116:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;38116:24:0;;37977:171::o;37495:416::-;37576:13;37592:23;37607:7;37592:14;:23::i;:::-;37576:39;;37640:5;-1:-1:-1;;;;;37634:11:0;:2;-1:-1:-1;;;;;37634:11:0;;;37626:57;;;;-1:-1:-1;;;37626:57:0;;10365:2:1;37626:57:0;;;10347:21:1;10404:2;10384:18;;;10377:30;10443:34;10423:18;;;10416:62;-1:-1:-1;;;10494:18:1;;;10487:31;10535:19;;37626:57:0;10163:397:1;37626:57:0;16104:10;-1:-1:-1;;;;;37718:21:0;;;;:62;;-1:-1:-1;37743:37:0;37760:5;16104:10;38446:164;:::i;37743:37::-;37696:173;;;;-1:-1:-1;;;37696:173:0;;10767:2:1;37696:173:0;;;10749:21:1;10806:2;10786:18;;;10779:30;10845:34;10825:18;;;10818:62;10916:31;10896:18;;;10889:59;10965:19;;37696:173:0;10565:425:1;37696:173:0;37882:21;37891:2;37895:7;37882:8;:21::i;:::-;37565:346;37495:416;;:::o;122687:244::-;116316:13;:11;:13::i;:::-;87470:5:::1;122773:11;122780:4:::0;122773:6;:11:::1;:::i;:::-;122772:27;122764:66;;;::::0;-1:-1:-1;;;122764:66:0;;11330:2:1;122764:66:0::1;::::0;::::1;11312:21:1::0;11369:2;11349:18;;;11342:30;11408:28;11388:18;;;11381:56;11454:18;;122764:66:0::1;11128:350:1::0;122764:66:0::1;122841:8;:15:::0;;;122867:6:::1;:11:::0;;;122894:29:::1;::::0;;11657:25:1;;;11713:2;11698:18;;11691:34;;;122894:29:0::1;::::0;11630:18:1;122894:29:0::1;;;;;;;;122687:244:::0;;:::o;105427:799::-;105484:7;105504:20;105527:18;105537:7;105527:9;:18::i;:::-;105576:24;;;;:15;:24;;;;;;105504:41;;-1:-1:-1;105576:29:0;;:63;;-1:-1:-1;105622:17:0;;105576:63;:106;;;;105657:25;105674:7;105657:16;:25::i;:::-;105656:26;105576:106;105558:171;;;-1:-1:-1;105716:1:0;;105427:799;-1:-1:-1;;105427:799:0:o;105558:171::-;105757:17;105836:24;;;:15;:24;;;;;;105788:118;;105879:12;105788:29;:118::i;:::-;105741:165;-1:-1:-1;;105923:14:0;105919:55;;-1:-1:-1;105961:1:0;;105427:799;-1:-1:-1;;;105427:799:0:o;105919:55::-;106015:19;;106011:23;;:2;:23;:::i;:::-;105998:37;;:9;:37;:::i;:::-;105986:49;;106048:16;106079:9;;106067;:21;;;;:::i;:::-;106048:40;;106133:7;;106121:8;:19;106117:72;;-1:-1:-1;106168:9:0;106117:72;106209:8;105427:799;-1:-1:-1;;;;105427:799:0:o;38677:335::-;38872:41;16104:10;38905:7;38872:18;:41::i;:::-;38864:99;;;;-1:-1:-1;;;38864:99:0;;;;;;;:::i;:::-;38976:28;38986:4;38992:2;38996:7;38976:9;:28::i;53983:256::-;54080:7;54116:23;54133:5;54116:16;:23::i;:::-;54108:5;:31;54100:87;;;;-1:-1:-1;;;54100:87:0;;13726:2:1;54100:87:0;;;13708:21:1;13765:2;13745:18;;;13738:30;13804:34;13784:18;;;13777:62;-1:-1:-1;;;13855:18:1;;;13848:41;13906:19;;54100:87:0;13524:407:1;54100:87:0;-1:-1:-1;;;;;;54205:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;53983:256::o;103256:1151::-;103380:6;91175:16;91183:7;91175;:16::i;:::-;91167:59;;;;-1:-1:-1;;;91167:59:0;;;;;;;:::i;:::-;91245:17;;;;:8;:17;;;;;;87470:5;-1:-1:-1;91245:33:0;;;:58;;-1:-1:-1;91302:1:0;91282:17;;;:8;:17;;;;;;:21;;91245:58;91237:90;;;;-1:-1:-1;;;91237:90:0;;;;;;;:::i;:::-;103400:7:::1;91049:16;91057:7;91049;:16::i;:::-;91041:49;;;;-1:-1:-1::0;;;91041:49:0::1;;;;;;;:::i;:::-;90877:6:::2;::::0;-1:-1:-1;;;;;90877:6:0::2;:20:::0;;:44:::2;;-1:-1:-1::0;90915:6:0::2;::::0;-1:-1:-1;;;;;90915:6:0::2;90901:10;:20;90877:44;90855:109;;;;-1:-1:-1::0;;;90855:109:0::2;;;;;;;:::i;:::-;103439:3:::3;::::0;:25:::3;::::0;-1:-1:-1;;;103439:25:0;;103453:10:::3;103439:25;::::0;::::3;738:51:1::0;103468:6:0;;-1:-1:-1;;;;;103439:3:0::3;::::0;:13:::3;::::0;711:18:1;;103439:25:0::3;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:35;;103431:69;;;::::0;-1:-1:-1;;;103431:69:0;;15727:2:1;103431:69:0::3;::::0;::::3;15709:21:1::0;15766:2;15746:18;;;15739:30;-1:-1:-1;;;15785:18:1;;;15778:51;15846:18;;103431:69:0::3;15525:345:1::0;103431:69:0::3;103513:20;103536:24;103552:7;103536:15;:24::i;:::-;103513:47;;103611:6;103595:12;:22;;103573:111;;;::::0;-1:-1:-1;;;103573:111:0;;16077:2:1;103573:111:0::3;::::0;::::3;16059:21:1::0;16116:2;16096:18;;;16089:30;16155:34;16135:18;;;16128:62;-1:-1:-1;;;16206:18:1;;;16199:37;16253:19;;103573:111:0::3;15875:403:1::0;103573:111:0::3;103748:7;::::0;103720:23:::3;103737:6:::0;103721:12;103720:23:::3;:::i;:::-;103719:36;;:64;;;;103770:12;103759:6;:24;103719:64;103697:147;;;;-1:-1:-1::0;;;103697:147:0::3;;;;;;;:::i;:::-;103906:10;::::0;103857:19:::3;103952:16:::0;;;:8:::3;:16;::::0;;;;;103857:19;;103879:100:::3;::::0;103931:6;;103879:12:::3;:100::i;:::-;103857:122:::0;-1:-1:-1;104024:21:0::3;104039:6:::0;104024:12;:21:::3;:::i;:::-;103992:29;::::0;;;:20:::3;:29;::::0;;;;;;;:53;;;;104085:15:::3;:24:::0;;;;:38:::3;::::0;104112:11;;104085:38:::3;:::i;:::-;104058:24;::::0;;;:15:::3;:24;::::0;;;;;:65;;;;104160:23;;;;;:37:::3;::::0;104186:11;;104160:37:::3;:::i;:::-;104134:23;::::0;;;:15:::3;:23;::::0;;;;:63;104226:13:::3;::::0;:22:::3;::::0;104242:6;;104226:22:::3;:::i;:::-;104210:13;:38:::0;104276:3:::3;::::0;:55:::3;::::0;-1:-1:-1;;;;;104276:3:0::3;104297:10;104317:4;104324:6:::0;104276:20:::3;:55::i;:::-;104357:42;::::0;;16887:25:1;;;16943:2;16928:18;;16921:34;;;16971:18;;;16964:34;;;104357:42:0::3;::::0;16875:2:1;16860:18;104357:42:0::3;;;;;;;103420:987;;91338:1:::1;103256:1151:::0;;;;:::o;128929:128::-;116316:13;:11;:13::i;:::-;128995:6:::1;:14:::0;;-1:-1:-1;;128995:14:0::1;::::0;::::1;;::::0;;::::1;::::0;;;129025:24:::1;::::0;128995:14:::1;129042:6:::0;;;565:14:1;558:22;540:41;;129025:24:0::1;::::0;528:2:1;513:18;129025:24:0::1;400:187:1::0;123109:258:0;116316:13;:11;:13::i;:::-;123230:28:::1;:58:::0;;;123304:55:::1;::::0;2918:25:1;;;123304:55:0::1;::::0;2906:2:1;2891:18;123304:55:0::1;2772:177:1::0;125526:277:0;116316:13;:11;:13::i;:::-;118192:3:::1;125628:11;:22;;125600:92;;;::::0;-1:-1:-1;;;125600:92:0;;17211:2:1;125600:92:0::1;::::0;::::1;17193:21:1::0;17250:2;17230:18;;;17223:30;17289:34;17269:18;;;17262:62;-1:-1:-1;;;17340:18:1;;;17333:35;17385:19;;125600:92:0::1;17009:401:1::0;125600:92:0::1;125703:10;:24:::0;;;125766:29:::1;::::0;2918:25:1;;;125766:29:0::1;::::0;2906:2:1;2891:18;125766:29:0::1;2772:177:1::0;126017:303:0;116316:13;:11;:13::i;:::-;126093:18:::1;126101:9;126093:7;:18::i;:::-;126085:64;;;::::0;-1:-1:-1;;;126085:64:0;;17617:2:1;126085:64:0::1;::::0;::::1;17599:21:1::0;17656:2;17636:18;;;17629:30;17695:34;17675:18;;;17668:62;-1:-1:-1;;;17746:18:1;;;17739:31;17787:19;;126085:64:0::1;17415:397:1::0;126085:64:0::1;126172:19;::::0;;;:8:::1;:19;::::0;;;;;:24;126164:63:::1;;;::::0;-1:-1:-1;;;126164:63:0;;18019:2:1;126164:63:0::1;::::0;::::1;18001:21:1::0;18058:2;18038:18;;;18031:30;18097:28;18077:18;;;18070:56;18143:18;;126164:63:0::1;17817:350:1::0;126164:63:0::1;126238:19;::::0;;;:8:::1;:19;::::0;;;;;;87470:5:::1;126238:34:::0;;126288:24;::::1;::::0;::::1;::::0;126247:9;2918:25:1;;2906:2;2891:18;;2772:177;39083:185:0;39221:39;39238:4;39244:2;39248:7;39221:39;;;;;;;;;;;;:16;:39::i;128246:251::-;120077:3;;-1:-1:-1;;;;;120077:3:0;120084:10;120077:17;120069:57;;;;-1:-1:-1;;;120069:57:0;;18374:2:1;120069:57:0;;;18356:21:1;18413:2;18393:18;;;18386:30;18452:29;18432:18;;;18425:57;18499:18;;120069:57:0;18172:351:1;120069:57:0;128351:3:::1;::::0;:28:::1;::::0;-1:-1:-1;;;128351:28:0;;128373:4:::1;128351:28;::::0;::::1;738:51:1::0;-1:-1:-1;;;;;128351:3:0;;::::1;::::0;:13:::1;::::0;711:18:1;;128351:28:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;128336:11;:43;;128328:80;;;::::0;-1:-1:-1;;;128328:80:0;;18730:2:1;128328:80:0::1;::::0;::::1;18712:21:1::0;18769:2;18749:18;;;18742:30;18808:26;18788:18;;;18781:54;18852:18;;128328:80:0::1;18528:348:1::0;128328:80:0::1;128419:3;::::0;128432::::1;::::0;128419:30:::1;::::0;-1:-1:-1;;;128419:30:0;;-1:-1:-1;;;;;128432:3:0;;::::1;128419:30;::::0;::::1;9017:51:1::0;9084:18;;;9077:34;;;128419:3:0;::::1;::::0;:12:::1;::::0;8990:18:1;;128419:30:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;128465:24:0::1;::::0;2918:25:1;;;128465:24:0::1;::::0;2906:2:1;2891:18;128465:24:0::1;2772:177:1::0;91911:104:0;91967:4;91991:16;91999:7;91991;:16::i;54505:233::-;54580:7;54616:30;54403:10;:17;;54315:113;54616:30;54608:5;:38;54600:95;;;;-1:-1:-1;;;54600:95:0;;19083:2:1;54600:95:0;;;19065:21:1;19122:2;19102:18;;;19095:30;19161:34;19141:18;;;19134:62;-1:-1:-1;;;19212:18:1;;;19205:42;19264:19;;54600:95:0;18881:408:1;54600:95:0;54713:10;54724:5;54713:17;;;;;;;;:::i;:::-;;;;;;;;;54706:24;;54505:233;;;:::o;97313:533::-;97437:7;;97484:10;;97480:306;;87470:5;;97589:19;:17;:19::i;:::-;:34;;;;:::i;:::-;:49;;;;:::i;:::-;97559:8;87860:3;97520:12;97529:3;97520:6;:12;:::i;:::-;:36;;;;:::i;:::-;:47;;;;:::i;:::-;97519:120;;;;:::i;:::-;97511:129;;97480:306;;;87470:5;97739:19;:17;:19::i;:::-;:34;;;;:::i;:::-;87860:3;97681:12;97690:3;97681:6;:12;:::i;:::-;:36;;;;:::i;:::-;97680:94;;;;:::i;:::-;97673:101;;97480:306;97810:28;;97803:35;;:4;:35;:::i;:::-;97796:42;97313:533;-1:-1:-1;;;;;97313:533:0:o;106460:896::-;106520:7;106544:24;;;:15;:24;;;;;;:29;;:59;;;106578:25;106595:7;106578:16;:25::i;:::-;106577:26;106544:59;106540:100;;;-1:-1:-1;106627:1:0;;106460:896;-1:-1:-1;106460:896:0:o;106540:100::-;106650:20;106673:18;106683:7;106673:9;:18::i;:::-;106707:17;106772:24;;;:15;:24;;;;;;106650:41;;-1:-1:-1;106707:17:0;106728:106;;106650:41;106728:29;:106::i;:::-;106704:130;;;106847:16;106878:9;;106866;:21;;;;:::i;:::-;106847:40;-1:-1:-1;106920:13:0;106916:54;;-1:-1:-1;106957:1:0;;106460:896;-1:-1:-1;;;;106460:896:0:o;106916:54::-;107026:7;;107002:19;;106998:23;;:2;:23;:::i;:::-;106984:38;;106985:8;106984:38;:::i;:::-;:49;106980:369;;107179:28;;107156:19;:17;:19::i;:::-;87553:4;107128:9;;107114;:24;;;;:::i;:::-;107113:39;;;;:::i;:::-;:63;;;;:::i;:::-;:94;;;;:::i;106980:369::-;107309:28;;107286:19;:17;:19::i;:::-;87553:4;107260:9;;107248:8;:22;;;;:::i;97962:259::-;98034:10;;98001:7;;98068:14;98034:10;98081:1;98068:14;:::i;:::-;98055:10;:27;;;98101:16;-1:-1:-1;98101:16:0;98093:25;;;;;;98129:21;98135:10;98147:2;98129:5;:21::i;:::-;98166:27;;;19600:25:1;;;98182:10:0;19656:2:1;19641:18;;19634:60;98166:27:0;;19573:18:1;98166:27:0;;;;;;;98211:2;97962:259;-1:-1:-1;97962:259:0:o;127874:123::-;116316:13;:11;:13::i;:::-;127942:2:::1;:8:::0;;;127966:23:::1;::::0;2918:25:1;;;127966:23:0::1;::::0;2906:2:1;2891:18;127966:23:0::1;2772:177:1::0;127032:325:0;127096:9;91175:16;91183:7;91175;:16::i;:::-;91167:59;;;;-1:-1:-1;;;91167:59:0;;;;;;;:::i;:::-;91245:17;;;;:8;:17;;;;;;87470:5;-1:-1:-1;91245:33:0;;;:58;;-1:-1:-1;91302:1:0;91282:17;;;:8;:17;;;;;;:21;;91245:58;91237:90;;;;-1:-1:-1;;;91237:90:0;;;;;;;:::i;:::-;116316:13:::1;:11;:13::i;:::-;127136:18:::2;127144:9;127136:7;:18::i;:::-;127128:67;;;::::0;-1:-1:-1;;;127128:67:0;;19907:2:1;127128:67:0::2;::::0;::::2;19889:21:1::0;19946:2;19926:18;;;19919:30;19985:34;19965:18;;;19958:62;-1:-1:-1;;;20036:18:1;;;20029:34;20080:19;;127128:67:0::2;19705:400:1::0;127128:67:0::2;127236:1;127214:19:::0;;;:8:::2;:19;::::0;;;;;127206:67:::2;;;::::0;-1:-1:-1;;;127206:67:0;;20312:2:1;127206:67:0::2;::::0;::::2;20294:21:1::0;20351:2;20331:18;;;20324:30;20390:33;20370:18;;;20363:61;20441:18;;127206:67:0::2;20110:355:1::0;127206:67:0::2;127306:1;127284:19:::0;;;:8:::2;:19;::::0;;;;;:23;;;;127323:26;::::2;::::0;::::2;::::0;127293:9;2918:25:1;;2906:2;2891:18;;2772:177;123518:219:0;116316:13;:11;:13::i;:::-;123672:7:::1;:18:::0;;;123706:23:::1;::::0;2918:25:1;;;123706:23:0::1;::::0;2906:2:1;2891:18;123706:23:0::1;2772:177:1::0;36175:223:0;36247:7;41062:16;;;:7;:16;;;;;;-1:-1:-1;;;;;41062:16:0;;36311:56;;;;-1:-1:-1;;;36311:56:0;;21028:2:1;36311:56:0;;;21010:21:1;21067:2;21047:18;;;21040:30;-1:-1:-1;;;21086:18:1;;;21079:54;21150:18;;36311:56:0;20826:348:1;104961:249:0;63184:21;:19;:21::i;:::-;-1:-1:-1;;;;;105032:14:0;::::1;;::::0;;;:9:::1;:14;::::0;;;;;105024:60:::1;;;::::0;-1:-1:-1;;;105024:60:0;;21381:2:1;105024:60:0::1;::::0;::::1;21363:21:1::0;21420:2;21400:18;;;21393:30;21459;21439:18;;;21432:58;21507:18;;105024:60:0::1;21179:352:1::0;105024:60:0::1;-1:-1:-1::0;;;;;105112:14:0;;::::1;105095;105112::::0;;;:9:::1;:14;::::0;;;;;;105137:18;;;105166:10:::1;::::0;105112:14;;105166:36:::1;::::0;:10:::1;105122:3:::0;105112:14;105166:23:::1;:36::i;:::-;105013:197;63228:20:::0;62622:1;63748:7;:22;63565:213;63228:20;104961:249;:::o;123904:219::-;116316:13;:11;:13::i;:::-;124058:7:::1;:18:::0;;;124092:23:::1;::::0;2918:25:1;;;124092:23:0::1;::::0;2906:2:1;2891:18;124092:23:0::1;2772:177:1::0;96486:429:0;96596:4;96633:31;96679:17;96710:48;96740:11;96753:4;96710:29;:48::i;:::-;96618:140;;-1:-1:-1;96618:140:0;-1:-1:-1;96771:28:0;96802:35;96618:140;;96802:35;:::i;:::-;96879:28;;-1:-1:-1;96855:52:0;;96486:429;-1:-1:-1;;;;;;96486:429:0:o;124324:183::-;116316:13;:11;:13::i;:::-;-1:-1:-1;;;;;124392:18:0;::::1;124384:63;;;::::0;-1:-1:-1;;;124384:63:0;;22094:2:1;124384:63:0::1;::::0;::::1;22076:21:1::0;;;22113:18;;;22106:30;22172:34;22152:18;;;22145:62;22224:18;;124384:63:0::1;21892:356:1::0;124384:63:0::1;124458:3;:10:::0;;-1:-1:-1;;;;;;124458:10:0::1;-1:-1:-1::0;;;;;124458:10:0;::::1;::::0;;::::1;::::0;;;124484:15:::1;::::0;738:51:1;;;124484:15:0::1;::::0;726:2:1;711:18;124484:15:0::1;592:203:1::0;124713:183:0;116316:13;:11;:13::i;:::-;-1:-1:-1;;;;;124783:18:0;::::1;124775:59;;;::::0;-1:-1:-1;;;124775:59:0;;22455:2:1;124775:59:0::1;::::0;::::1;22437:21:1::0;22494:2;22474:18;;;22467:30;22533;22513:18;;;22506:58;22581:18;;124775:59:0::1;22253:352:1::0;124775:59:0::1;124845:3;:10:::0;;-1:-1:-1;;;;;;124845:10:0::1;-1:-1:-1::0;;;;;124845:10:0;::::1;::::0;;::::1;::::0;;;124871:17:::1;::::0;738:51:1;;;124871:17:0::1;::::0;726:2:1;711:18;124871:17:0::1;592:203:1::0;35906:207:0;35978:7;-1:-1:-1;;;;;36006:19:0;;35998:73;;;;-1:-1:-1;;;35998:73:0;;22812:2:1;35998:73:0;;;22794:21:1;22851:2;22831:18;;;22824:30;22890:34;22870:18;;;22863:62;-1:-1:-1;;;22941:18:1;;;22934:39;22990:19;;35998:73:0;22610:405:1;35998:73:0;-1:-1:-1;;;;;;36089:16:0;;;;;:9;:16;;;;;;;35906:207::o;117078:103::-;116316:13;:11;:13::i;:::-;117143:30:::1;117170:1;117143:18;:30::i;100003:775::-:0;100106:7;90674:16;90682:7;90674;:16::i;:::-;90666:49;;;;-1:-1:-1;;;90666:49:0;;;;;;;:::i;:::-;90754:10;90734:16;90742:7;90734;:16::i;:::-;-1:-1:-1;;;;;90734:30:0;;90726:68;;;;-1:-1:-1;;;90726:68:0;;;;;;;:::i;:::-;63184:21:::1;:19;:21::i;:::-;100175:24:::2;::::0;;;:15:::2;:24;::::0;;;;;:34;-1:-1:-1;100175:34:0::2;100153:121;;;::::0;-1:-1:-1;;;100153:121:0;;23576:2:1;100153:121:0::2;::::0;::::2;23558:21:1::0;23615:2;23595:18;;;23588:30;23654:34;23634:18;;;23627:62;-1:-1:-1;;;23705:18:1;;;23698:35;23750:19;;100153:121:0::2;23374:401:1::0;100153:121:0::2;100287:21;100311:24:::0;;;:15:::2;:24;::::0;;;;;:33:::2;::::0;100338:6;;100311:33:::2;:::i;:::-;100287:57;;100355:12;100370:24;100386:7;100370:15;:24::i;:::-;100355:39:::0;-1:-1:-1;100411:9:0;;100407:204:::2;;100463:38;100481:13;100496:4;100463:17;:38::i;:::-;100437:162;;;::::0;-1:-1:-1;;;100437:162:0;;23982:2:1;100437:162:0::2;::::0;::::2;23964:21:1::0;24021:2;24001:18;;;23994:30;24060:34;24040:18;;;24033:62;24131:32;24111:18;;;24104:60;24181:19;;100437:162:0::2;23780:426:1::0;100437:162:0::2;100623:24;::::0;;;:15:::2;:24;::::0;;;;:40;;;100674:10:::2;::::0;:43:::2;::::0;-1:-1:-1;;;;;100674:10:0::2;100698;100710:6:::0;100674:23:::2;:43::i;:::-;100735:35;::::0;;11657:25:1;;;11713:2;11698:18;;11691:34;;;100735:35:0::2;::::0;11630:18:1;100735:35:0::2;;;;;;;100142:636;;63228:20:::1;62622:1:::0;63748:7;:22;63565:213;98399:578;98480:7;90674:16;90682:7;90674;:16::i;:::-;90666:49;;;;-1:-1:-1;;;90666:49:0;;;;;;;:::i;:::-;90754:10;90734:16;90742:7;90734;:16::i;:::-;-1:-1:-1;;;;;90734:30:0;;90726:68;;;;-1:-1:-1;;;90726:68:0;;;;;;;:::i;:::-;63184:21:::1;:19;:21::i;:::-;98535:18:::2;98545:7;98535:9;:18::i;:::-;:23:::0;98527:62:::2;;;::::0;-1:-1:-1;;;98527:62:0;;24413:2:1;98527:62:0::2;::::0;::::2;24395:21:1::0;24452:2;24432:18;;;24425:30;24491:28;24471:18;;;24464:56;24537:18;;98527:62:0::2;24211:350:1::0;98527:62:0::2;98606:24;::::0;;;:15:::2;:24;::::0;;;;;:29;98602:174:::2;;98697:67;98721:16;98729:7;98721;:16::i;:::-;98739:24;::::0;;;:15:::2;:24;::::0;;;;;98697:10:::2;::::0;-1:-1:-1;;;;;98697:10:0::2;::::0;:67;:23:::2;:67::i;:::-;98788:14;98794:7;98788:5;:14::i;:::-;98822:24;::::0;;;:15:::2;:24;::::0;;;;;;;98815:31;;;98864:20:::2;:29:::0;;;;;98857:36;;;98911:12:::2;:21:::0;;;;;98904:28;;;;98948:21;;2918:25:1;;;98948:21:0::2;::::0;2891:18:1;98948:21:0::2;;;;;;;63228:20:::1;62622:1:::0;63748:7;:22;63565:213;63228:20:::1;98399:578:::0;;:::o;125073:277::-;116316:13;:11;:13::i;:::-;118192:3:::1;125175:11;:22;;125147:92;;;::::0;-1:-1:-1;;;125147:92:0;;24768:2:1;125147:92:0::1;::::0;::::1;24750:21:1::0;24807:2;24787:18;;;24780:30;24846:34;24826:18;;;24819:62;-1:-1:-1;;;24897:18:1;;;24890:35;24942:19;;125147:92:0::1;24566:401:1::0;125147:92:0::1;125250:10;:24:::0;;;125313:29:::1;::::0;2918:25:1;;;125313:29:0::1;::::0;2906:2:1;2891:18;125313:29:0::1;2772:177:1::0;113148:2095:0;113242:7;113212;91049:16;91057:7;91049;:16::i;:::-;91041:49;;;;-1:-1:-1;;;91041:49:0;;;;;;;:::i;:::-;63184:21:::1;:19;:21::i;:::-;113284:13:::2;::::0;-1:-1:-1;;;;;113284:13:0::2;:27:::0;;:58:::2;;-1:-1:-1::0;113329:13:0::2;::::0;-1:-1:-1;;;;;113329:13:0::2;113315:10;:27;113284:58;113262:140;;;::::0;-1:-1:-1;;;113262:140:0;;25174:2:1;113262:140:0::2;::::0;::::2;25156:21:1::0;;;25193:18;;;25186:30;25252:34;25232:18;;;25225:62;25304:18;;113262:140:0::2;24972:356:1::0;113262:140:0::2;113423:20;113446:24;113462:7;113446:15;:24::i;:::-;113423:47:::0;-1:-1:-1;113491:17:0;113483:45:::2;;;::::0;-1:-1:-1;;;113483:45:0;;25535:2:1;113483:45:0::2;::::0;::::2;25517:21:1::0;25574:2;25554:18;;;25547:30;-1:-1:-1;;;25593:18:1;;;25586:45;25648:18;;113483:45:0::2;25333:339:1::0;113483:45:0::2;113556:31;113681:24:::0;;;:15:::2;:24;::::0;;;;;113556:31;;113633:118:::2;::::0;113724:12;113633:29:::2;:118::i;:::-;113541:210:::0;;-1:-1:-1;113541:210:0;-1:-1:-1;113764:28:0::2;113795:37;113541:210:::0;;113795:37:::2;:::i;:::-;113894:9;::::0;113764:68;;-1:-1:-1;113866:23:0::2;113764:68:::0;113887:2:::2;113866:23;:::i;:::-;113865:38;;113843:134;;;::::0;-1:-1:-1;;;113843:134:0;;25879:2:1;113843:134:0::2;::::0;::::2;25861:21:1::0;25918:2;25898:18;;;25891:30;25957:34;25937:18;;;25930:62;-1:-1:-1;;;26008:18:1;;;26001:44;26062:19;;113843:134:0::2;25677:410:1::0;113843:134:0::2;113990:23;114199:19;;114195:2;:23;;;;:::i;:::-;114163:28;;:56;;;;:::i;:::-;114097:123;::::0;:23;:123:::2;:::i;:::-;114034:19;::::0;114030:23:::2;::::0;:2:::2;:23;:::i;:::-;114017:37;::::0;:9;:37:::2;:::i;:::-;114016:205;;;;:::i;:::-;114310:3;::::0;:25:::2;::::0;-1:-1:-1;;;114310:25:0;;114324:10:::2;114310:25;::::0;::::2;738:51:1::0;113990:231:0;;-1:-1:-1;113990:231:0;;-1:-1:-1;;;;;114310:3:0;;::::2;::::0;:13:::2;::::0;711:18:1;;114310:25:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;;114302:94;;;::::0;-1:-1:-1;;;114302:94:0;;26294:2:1;114302:94:0::2;::::0;::::2;26276:21:1::0;26333:2;26313:18;;;26306:30;26372:34;26352:18;;;26345:62;-1:-1:-1;;;26423:18:1;;;26416:35;26468:19;;114302:94:0::2;26092:401:1::0;114302:94:0::2;114422:3;::::0;:64:::2;::::0;-1:-1:-1;;;;;114422:3:0::2;114443:10;114463:4;114470:15:::0;114422:20:::2;:64::i;:::-;114530:15;114513:13;;:33;;;;:::i;:::-;114497:13;:49:::0;114593:16:::2;114612:13;:11;:13::i;:::-;114751:24;::::0;;;:15:::2;:24;::::0;;;;;;114723:25;;;;;:52;114593:32;-1:-1:-1;114819:30:0::2;114834:15:::0;114819:12;:30:::2;:::i;:::-;114786;::::0;;;:20:::2;:30;::::0;;;;;;;:63;;;;114860:12:::2;:22:::0;;;;;114885:15:::2;114860:40:::0;;114963:24;;;:15:::2;:24:::0;;;;;114956:31;;;115005:29;;;;;;114998:36;;;;115139:68;;26729:25:1;;;26770:18;;;26763:34;;;115179:10:0::2;26813:18:1::0;;;26806:60;26897:2;26882:18;;26875:34;;;115139:68:0;;::::2;::::0;;;;26716:3:1;115139:68:0;;::::2;115225:8:::0;-1:-1:-1;;;;;;63228:20:0::1;62622:1:::0;63748:7;:22;63565:213;63228:20:::1;113148:2095:::0;;;;:::o;94660:454::-;94718:7;94739:11;94752:12;94768:25;94785:7;94768:16;:25::i;:::-;94738:55;;;;94826:3;94816:7;;:13;;;;:::i;:::-;94806:7;:23;94858:13;;:19;;94874:3;;94858:19;:::i;:::-;94842:13;:35;94893:2;;:6;94890:77;;94916:21;;;;:12;:21;;;;;94940:15;94916:39;;94890:77;95046:29;;;;:20;:29;;;;;;:36;;;-1:-1:-1;95078:4:0;;94660:454;-1:-1:-1;94660:454:0:o;91563:110::-;91637:3;;:28;;-1:-1:-1;;;91637:28:0;;91659:4;91637:28;;;738:51:1;91610:7:0;;-1:-1:-1;;;;;91637:3:0;;:13;;711:18:1;;91637:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;91630:35;;91563:110;:::o;110339:2349::-;110435:6;91175:16;91183:7;91175;:16::i;:::-;91167:59;;;;-1:-1:-1;;;91167:59:0;;;;;;;:::i;:::-;91245:17;;;;:8;:17;;;;;;87470:5;-1:-1:-1;91245:33:0;;;:58;;-1:-1:-1;91302:1:0;91282:17;;;:8;:17;;;;;;:21;;91245:58;91237:90;;;;-1:-1:-1;;;91237:90:0;;;;;;;:::i;:::-;110464:7:::1;91049:16;91057:7;91049;:16::i;:::-;91041:49;;;;-1:-1:-1::0;;;91041:49:0::1;;;;;;;:::i;:::-;110511:13:::2;::::0;-1:-1:-1;;;;;110511:13:0::2;:27:::0;;:58:::2;;-1:-1:-1::0;110556:13:0::2;::::0;-1:-1:-1;;;;;110556:13:0::2;110542:10;:27;110511:58;110489:142;;;::::0;-1:-1:-1;;;110489:142:0;;27122:2:1;110489:142:0::2;::::0;::::2;27104:21:1::0;27161:2;27141:18;;;27134:30;27200:34;27180:18;;;27173:62;-1:-1:-1;;;27251:18:1;;;27244:32;27293:19;;110489:142:0::2;26920:398:1::0;110489:142:0::2;110644:20;110667:24;110683:7;110667:15;:24::i;:::-;110717:31;110842:24:::0;;;:15:::2;:24;::::0;;;;;110644:47;;-1:-1:-1;110717:31:0;;;110794:118:::2;::::0;110644:47;110794:29:::2;:118::i;:::-;110702:210;;;;110931:12;110947:1;110931:17;;110923:45;;;::::0;-1:-1:-1;;;110923:45:0;;25535:2:1;110923:45:0::2;::::0;::::2;25517:21:1::0;25574:2;25554:18;;;25547:30;-1:-1:-1;;;25593:18:1;;;25586:45;25648:18;;110923:45:0::2;25333:339:1::0;110923:45:0::2;110981:28;111012:37;111039:9:::0;111012:23;:37:::2;:::i;:::-;110981:68;;111107:28;;111084:20;:51;111062:149;;;::::0;-1:-1:-1;;;111062:149:0;;27525:2:1;111062:149:0::2;::::0;::::2;27507:21:1::0;27564:2;27544:18;;;27537:30;27603:34;27583:18;;;27576:62;-1:-1:-1;;;27654:18:1;;;27647:46;27710:19;;111062:149:0::2;27323:412:1::0;111062:149:0::2;111260:9;::::0;111232:25:::2;:20:::0;111255:2:::2;111232:25;:::i;:::-;:37;111224:80;;;::::0;-1:-1:-1;;;111224:80:0;;27942:2:1;111224:80:0::2;::::0;::::2;27924:21:1::0;27981:2;27961:18;;;27954:30;28020:31;28000:18;;;27993:59;28069:18;;111224:80:0::2;27740:353:1::0;111224:80:0::2;111346:19;::::0;111342:23:::2;::::0;:2:::2;:23;:::i;:::-;111329:37;::::0;:9;:37:::2;:::i;:::-;111317:49;;111379:16;111411:9;;111398;:23;;;;:::i;:::-;111379:42;;111466:7;;111454:8;:19;111450:72;;-1:-1:-1::0;111501:9:0;111450:72:::2;111556:3;::::0;:25:::2;::::0;-1:-1:-1;;;111556:25:0;;111570:10:::2;111556:25;::::0;::::2;738:51:1::0;111585:8:0;;-1:-1:-1;;;;;111556:3:0::2;::::0;:13:::2;::::0;711:18:1;;111556:25:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:37;;111534:136;;;::::0;-1:-1:-1;;;111534:136:0;;28300:2:1;111534:136:0::2;::::0;::::2;28282:21:1::0;28339:2;28319:18;;;28312:30;28378:34;28358:18;;;28351:62;-1:-1:-1;;;28429:18:1;;;28422:47;28486:19;;111534:136:0::2;28098:413:1::0;111534:136:0::2;111716:8;111699:13;;:26;;;;:::i;:::-;111683:13;:42:::0;111738:20:::2;111761:21;111774:7:::0;111761:12:::2;:21::i;:::-;111738:44:::0;-1:-1:-1;111827:25:0::2;111843:8:::0;111827:12;:25:::2;:::i;:::-;111795:29;::::0;;;:20:::2;:29;::::0;;;;;;;:57;;;;111934:10:::2;::::0;111956:16;;;:8:::2;:16:::0;;;;;;;111795:29;;111921:52:::2;::::0;111946:8;;111921:12:::2;:52::i;:::-;112011:24;::::0;;;:15:::2;:24;::::0;;;;;111899:74;;-1:-1:-1;112011:40:0::2;::::0;111899:74;;112011:40:::2;:::i;:::-;111984:24;::::0;;;:15:::2;:24;::::0;;;;;:67;;;;112088:23;;;;;:39:::2;::::0;112115:11;;112088:39:::2;:::i;:::-;112062:23;::::0;;;:15:::2;:23;::::0;;;;;:65;;;;112235:24;;;;;:41:::2;::::0;112263:12;;112235:41:::2;:::i;:::-;112208:24;::::0;;;:15:::2;:24;::::0;;;;;;;:68;;;;112370:10:::2;112360:21:::0;;:9:::2;:21:::0;;;;:38:::2;::::0;112385:12;;112360:38:::2;:::i;:::-;112346:10;112336:21;::::0;;;:9:::2;:21;::::0;;;;:62;;;;112426:3:::2;::::0;:57:::2;::::0;-1:-1:-1;;;;;112426:3:0;;::::2;::::0;112467:4:::2;112474:8:::0;112426:20:::2;:57::i;:::-;112501:179;112530:7;112552:16;112560:7;112552;:16::i;:::-;112501:179;::::0;;28803:25:1;;;-1:-1:-1;;;;;28902:15:1;;;28897:2;28882:18;;28875:43;112583:10:0::2;28934:18:1::0;;;28927:43;29001:2;28986:18;;28979:34;;;29044:3;29029:19;;29022:35;;;28855:3;29073:19;;29066:35;;;28790:3;28775:19;112501:179:0::2;;;;;;;110478:2210;;;;;;;91338:1:::1;110339:2349:::0;;;:::o;36634:104::-;36690:13;36723:7;36716:14;;;;;:::i;101139:1365::-;101270:6;91175:16;91183:7;91175;:16::i;:::-;91167:59;;;;-1:-1:-1;;;91167:59:0;;;;;;;:::i;:::-;91245:17;;;;:8;:17;;;;;;87470:5;-1:-1:-1;91245:33:0;;;:58;;-1:-1:-1;91302:1:0;91282:17;;;:8;:17;;;;;;:21;;91245:58;91237:90;;;;-1:-1:-1;;;91237:90:0;;;;;;;:::i;:::-;101299:7:::1;90674:16;90682:7;90674;:16::i;:::-;90666:49;;;;-1:-1:-1::0;;;90666:49:0::1;;;;;;;:::i;:::-;90754:10;90734:16;90742:7:::0;90734::::1;:16::i;:::-;-1:-1:-1::0;;;;;90734:30:0::1;;90726:68;;;;-1:-1:-1::0;;;90726:68:0::1;;;;;;;:::i;:::-;63184:21:::2;:19;:21::i;:::-;101362:1:::3;101353:6;:10;101345:50;;;::::0;-1:-1:-1;;;101345:50:0;;29314:2:1;101345:50:0::3;::::0;::::3;29296:21:1::0;29353:2;29333:18;;;29326:30;29392:29;29372:18;;;29365:57;29439:18;;101345:50:0::3;29112:351:1::0;101345:50:0::3;101438:16;:14;:16::i;:::-;101428:6;:26;;101406:123;;;::::0;-1:-1:-1;;;101406:123:0;;29670:2:1;101406:123:0::3;::::0;::::3;29652:21:1::0;29709:2;29689:18;;;29682:30;29748:34;29728:18;;;29721:62;-1:-1:-1;;;29799:18:1;;;29792:45;29854:19;;101406:123:0::3;29468:411:1::0;101406:123:0::3;101542:15;101587:6;101560:24;101576:7;101560:15;:24::i;:::-;:33;;;;:::i;:::-;101542:51;;101623:7;;101614;:16;;101606:63;;;::::0;-1:-1:-1;;;101606:63:0;;30086:2:1;101606:63:0::3;::::0;::::3;30068:21:1::0;30125:2;30105:18;;;30098:30;30164:34;30144:18;;;30137:62;-1:-1:-1;;;30215:18:1;;;30208:32;30257:19;;101606:63:0::3;29884:398:1::0;101606:63:0::3;101700:18;101710:7;101700:9;:18::i;:::-;101690:7;:28;101682:37;;;::::0;::::3;;101774:24;::::0;;;:15:::3;:24;::::0;;;;;101756:52:::3;::::0;101800:7;101756:17:::3;:52::i;:::-;101734:160;;;::::0;-1:-1:-1;;;101734:160:0;;30489:2:1;101734:160:0::3;::::0;::::3;30471:21:1::0;30528:2;30508:18;;;30501:30;30567:34;30547:18;;;30540:62;30638:28;30618:18;;;30611:56;30684:19;;101734:160:0::3;30287:422:1::0;101734:160:0::3;101964:7;;101953:6;101931:18;101941:7;101931:9;:18::i;:::-;101930:29;;;;:::i;:::-;101929:42;;101907:125;;;;-1:-1:-1::0;;;101907:125:0::3;;;;;;;:::i;:::-;102045:29;::::0;;;:20:::3;:29;::::0;;;;;;;:39;;;102132:10:::3;::::0;102153:16;;;:8:::3;:16:::0;;;;;;102119:51:::3;::::0;102132:10;102077:7;;102119:12:::3;:51::i;:::-;102210:24;::::0;;;:15:::3;:24;::::0;;;;;102097:73;;-1:-1:-1;102210:40:0::3;::::0;102097:73;;102210:40:::3;:::i;:::-;102183:24;::::0;;;:15:::3;:24;::::0;;;;;:67;;;;102287:23;;;;;:39:::3;::::0;102314:11;;102287:39:::3;:::i;:::-;102261:23;::::0;;;:15:::3;:23;::::0;;;;:65;102363:3:::3;::::0;:36:::3;::::0;-1:-1:-1;;;;;102363:3:0::3;102380:10;102392:6:::0;102363:16:::3;:36::i;:::-;102443:6;102426:13;;:24;;;;:::i;:::-;102410:13;:40:::0;102468:28:::3;::::0;;11657:25:1;;;11713:2;11698:18;;11691:34;;;102468:28:0::3;::::0;11630:18:1;102468:28:0::3;;;;;;;101332:1172;;63228:20:::2;62622:1:::0;63748:7;:22;63565:213;63228:20:::2;91338:1:::1;101139:1365:::0;;;;:::o;93078:114::-;93155:14;;:29;;;-1:-1:-1;;;93155:29:0;;;;93128:7;;-1:-1:-1;;;;;93155:14:0;;:27;;:29;;;;;;;;;;;;;;:14;:29;;;;;;;;;;;;;;122113:231;116316:13;:11;:13::i;:::-;-1:-1:-1;;;;;122192:19:0;::::1;122184:69;;;::::0;-1:-1:-1;;;122184:69:0;;30916:2:1;122184:69:0::1;::::0;::::1;30898:21:1::0;30955:2;30935:18;;;30928:30;30994:34;30974:18;;;30967:62;-1:-1:-1;;;31045:18:1;;;31038:34;31089:19;;122184:69:0::1;30714:400:1::0;122184:69:0::1;122264:13;:21:::0;;-1:-1:-1;;;;;;122264:21:0::1;-1:-1:-1::0;;;;;122264:21:0;::::1;::::0;;::::1;::::0;;;122301:35:::1;::::0;738:51:1;;;122301:35:0::1;::::0;726:2:1;711:18;122301:35:0::1;592:203:1::0;38220:155:0;38315:52;16104:10;38348:8;38358;38315:18;:52::i;120299:149::-;116316:13;:11;:13::i;:::-;120378:20;;::::1;::::0;:10:::1;::::0;:20:::1;::::0;::::1;::::0;::::1;:::i;:::-;;120414:26;120432:7;120414:26;;;;;;:::i;92165:252::-:0;92301:10;;:35;;-1:-1:-1;;;92301:35:0;;92330:4;92301:35;;;738:51:1;92219:7:0;;-1:-1:-1;;;;;92301:10:0;;:20;;711:18:1;;92301:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;92270:28;;92248:19;:17;:19::i;:::-;:50;;;;:::i;:::-;:88;;;;:::i;109238:702::-;109322:4;109304:7;91049:16;91057:7;91049;:16::i;:::-;91041:49;;;;-1:-1:-1;;;91041:49:0;;;;;;;:::i;:::-;109341:20:::1;109364:18;109374:7;109364:9;:18::i;:::-;109399:24;::::0;;;:15:::1;:24;::::0;;;;;109341:41;;-1:-1:-1;109399:29:0;;:50:::1;;-1:-1:-1::0;109432:17:0;;109399:50:::1;109395:95;;;109473:5;109466:12;;;;;109395:95;109517:31;109642:24:::0;;;:15:::1;:24;::::0;;;;;109517:31;;109594:118:::1;::::0;109685:12;109594:29:::1;:118::i;:::-;109502:210:::0;;-1:-1:-1;109502:210:0;-1:-1:-1;109725:28:0::1;109756:37;109502:210:::0;;109756:37:::1;:::i;:::-;109839:9;::::0;109725:68;;-1:-1:-1;109811:23:0::1;109725:68:::0;109832:2:::1;109811:23;:::i;:::-;109810:38;109806:127;;109872:4;109865:11;;;;;;;;109806:127;109916:5;109909:12;;;;;;;;108286:753:::0;108407:4;108380:7;91049:16;91057:7;91049;:16::i;:::-;91041:49;;;;-1:-1:-1;;;91041:49:0;;;;;;;:::i;:::-;108429:20:::1;108452:18;108462:7;108452:9;:18::i;:::-;108487:24;::::0;;;:15:::1;:24;::::0;;;;;108429:41;;-1:-1:-1;108487:29:0;;:50:::1;;-1:-1:-1::0;108520:17:0;;108487:50:::1;108483:95;;;108561:5;108554:12;;;;;108483:95;108605:31;108730:24:::0;;;:15:::1;:24;::::0;;;;;108605:31;;108682:118:::1;::::0;108773:12;108682:29:::1;:118::i;:::-;108590:210:::0;;-1:-1:-1;108590:210:0;-1:-1:-1;108813:28:0::1;108844:37;108590:210:::0;;108844:37:::1;:::i;:::-;108813:68;;108919:28;;108896:20;:51;108892:140;;;108971:4;108964:11;;;;;;;;39339:322:::0;39513:41;16104:10;39546:7;39513:18;:41::i;:::-;39505:99;;;;-1:-1:-1;;;39505:99:0;;;;;;;:::i;:::-;39615:38;39629:4;39635:2;39639:7;39648:4;39615:13;:38::i;:::-;39339:322;;;;:::o;128796:125::-;116316:13;:11;:13::i;:::-;128862:6:::1;:14:::0;;-1:-1:-1;;;;;;128862:14:0::1;-1:-1:-1::0;;;;;128862:14:0;::::1;::::0;;::::1;::::0;;;128892:21:::1;::::0;738:51:1;;;128892:21:0::1;::::0;726:2:1;711:18;128892:21:0::1;592:203:1::0;60525:370:0;60598:13;60624:23;60639:7;60624:14;:23::i;:::-;60660:21;60684:10;:8;:10::i;:::-;60708:6;;60660:34;;-1:-1:-1;60708:6:0;;60705:183;;;60761:1;60743:7;60737:21;:25;:93;;;;;;;;;;;;;;;;;60789:7;60798:25;60815:7;60798:16;:25::i;:::-;60772:52;;;;;;;;;:::i;:::-;;;;;;;;;;;;;60737:93;60730:100;60525:370;-1:-1:-1;;;60525:370:0:o;126589:311::-;126671:9;91175:16;91183:7;91175;:16::i;:::-;91167:59;;;;-1:-1:-1;;;91167:59:0;;;;;;;:::i;:::-;91245:17;;;;:8;:17;;;;;;87470:5;-1:-1:-1;91245:33:0;;;:58;;-1:-1:-1;91302:1:0;91282:17;;;:8;:17;;;;;;:21;;91245:58;91237:90;;;;-1:-1:-1;;;91237:90:0;;;;;;;:::i;:::-;126697:9:::1;90674:16;90682:7;90674;:16::i;:::-;90666:49;;;;-1:-1:-1::0;;;90666:49:0::1;;;;;;;:::i;:::-;90754:10;90734:16;90742:7:::0;90734::::1;:16::i;:::-;-1:-1:-1::0;;;;;90734:30:0::1;;90726:68;;;;-1:-1:-1::0;;;90726:68:0::1;;;;;;;:::i;:::-;126738:1:::2;126727:8;:12;:40;;;;;87470:5;126743:8;:24;;126727:40;126719:80;;;::::0;-1:-1:-1;;;126719:80:0;;31796:2:1;126719:80:0::2;::::0;::::2;31778:21:1::0;31835:2;31815:18;;;31808:30;31874:29;31854:18;;;31847:57;31921:18;;126719:80:0::2;31594:351:1::0;126719:80:0::2;126810:19;::::0;;;:8:::2;:19;::::0;;;;;;;;:30;;;126856:36;;11657:25:1;;;11698:18;;;11691:34;;;126856:36:0::2;::::0;11630:18:1;126856:36:0::2;;;;;;;;91338:1:::1;126589:311:::0;;;:::o;104523:266::-;63184:21;:19;:21::i;:::-;104593:10:::1;104583:21;::::0;;;:9:::1;:21;::::0;;;;;104575:67:::1;;;::::0;-1:-1:-1;;;104575:67:0;;21381:2:1;104575:67:0::1;::::0;::::1;21363:21:1::0;21420:2;21400:18;;;21393:30;21459;21439:18;;;21432:58;21507:18;;104575:67:0::1;21179:352:1::0;104575:67:0::1;104680:10;104653:14;104670:21:::0;;;:9:::1;:21;::::0;;;;;;104702:25;;;104738:10:::1;::::0;104670:21;;104738:43:::1;::::0;-1:-1:-1;;;;;104738:10:0::1;::::0;104670:21;104738:23:::1;:43::i;:::-;104564:225;63228:20:::0;62622:1;63748:7;:22;63565:213;102512:405;102643:6;91175:16;91183:7;91175;:16::i;:::-;91167:59;;;;-1:-1:-1;;;91167:59:0;;;;;;;:::i;:::-;91245:17;;;;:8;:17;;;;;;87470:5;-1:-1:-1;91245:33:0;;;:58;;-1:-1:-1;91302:1:0;91282:17;;;:8;:17;;;;;;:21;;91245:58;91237:90;;;;-1:-1:-1;;;91237:90:0;;;;;;;:::i;:::-;102663:7:::1;91049:16;91057:7;91049;:16::i;:::-;91041:49;;;;-1:-1:-1::0;;;91041:49:0::1;;;;;;;:::i;:::-;90877:6:::2;::::0;-1:-1:-1;;;;;90877:6:0::2;:20:::0;;:44:::2;;-1:-1:-1::0;90915:6:0::2;::::0;-1:-1:-1;;;;;90915:6:0::2;90901:10;:20;90877:44;90855:109;;;;-1:-1:-1::0;;;90855:109:0::2;;;;;;;:::i;:::-;102728:15:::3;102716:8;:27;;102694:111;;;::::0;-1:-1:-1;;;102694:111:0;;32152:2:1;102694:111:0::3;::::0;::::3;32134:21:1::0;32191:2;32171:18;;;32164:30;32230:34;32210:18;;;32203:62;-1:-1:-1;;;32281:18:1;;;32274:32;32323:19;;102694:111:0::3;31950:398:1::0;102694:111:0::3;102818:15;102836:24;102852:7;102836:15;:24::i;:::-;102818:42;;102871:38;102884:7;102893;102902:6;102871:12;:38::i;:::-;102683:234;91338:1:::1;102512:405:::0;;;;:::o;94303:151::-;94360:7;94383:12;94399:25;94416:7;94399:16;:25::i;107506:585::-;107636:7;107609;91049:16;91057:7;91049;:16::i;:::-;91041:49;;;;-1:-1:-1;;;91041:49:0;;;;;;;:::i;:::-;107661:20:::1;107684:18;107694:7;107684:9;:18::i;:::-;107719:24;::::0;;;:15:::1;:24;::::0;;;;;107661:41;;-1:-1:-1;107719:29:0;;:50:::1;;-1:-1:-1::0;107752:17:0;;107719:50:::1;107715:91;;;107793:1;107786:8;;;;;107715:91;107831:31;107956:24:::0;;;:15:::1;:24;::::0;;;;;107831:31;;107908:118:::1;::::0;107999:12;107908:29:::1;:118::i;:::-;107816:210:::0;;-1:-1:-1;107816:210:0;-1:-1:-1;108046:37:0::1;107816:210:::0;;108046:37:::1;:::i;:::-;108039:44:::0;107506:585;-1:-1:-1;;;;;;107506:585:0:o;128645:143::-;116316:13;:11;:13::i;:::-;128722:18:::1;:7;128732:8:::0;;128722:18:::1;:::i;:::-;;128756:24;128772:7;128756:24;;;;;;:::i;121070:206::-:0;116316:13;:11;:13::i;:::-;121150:15;121142:50:::1;;;::::0;-1:-1:-1;;;121142:50:0;;33872:2:1;121142:50:0::1;::::0;::::1;33854:21:1::0;33911:2;33891:18;;;33884:30;-1:-1:-1;;;33930:18:1;;;33923:52;33992:18;;121142:50:0::1;33670:346:1::0;121142:50:0::1;121203:9;:22:::0;;;121241:27:::1;::::0;2918:25:1;;;121241:27:0::1;::::0;2906:2:1;2891:18;121241:27:0::1;2772:177:1::0;99255:454:0;99354:7;91049:16;91057:7;91049;:16::i;:::-;91041:49;;;;-1:-1:-1;;;91041:49:0;;;;;;;:::i;:::-;90877:6:::1;::::0;-1:-1:-1;;;;;90877:6:0::1;:20:::0;;:44:::1;;-1:-1:-1::0;90915:6:0::1;::::0;-1:-1:-1;;;;;90915:6:0::1;90901:10;:20;90877:44;90855:109;;;;-1:-1:-1::0;;;90855:109:0::1;;;;;;;:::i;:::-;99399:21:::2;99423:24:::0;;;:15:::2;:24;::::0;;;;;:35:::2;::::0;99451:6;;99423:35:::2;:::i;:::-;99496:24;::::0;;;:15:::2;:24;::::0;;;;;99399:59;;-1:-1:-1;99479:41:0;::::2;;99471:50;;;::::0;::::2;;99534:24;::::0;;;:15:::2;:24;::::0;;;;:40;;;99587:10:::2;::::0;:62:::2;::::0;-1:-1:-1;;;;;99587:10:0::2;99615;99635:4;99642:6:::0;99587:27:::2;:62::i;:::-;99667:34;::::0;;11657:25:1;;;11713:2;11698:18;;11691:34;;;99667::0::2;::::0;11630:18:1;99667:34:0::2;11483:248:1::0;117336:201:0;116316:13;:11;:13::i;:::-;-1:-1:-1;;;;;117425:22:0;::::1;117417:73;;;::::0;-1:-1:-1;;;117417:73:0;;34223:2:1;117417:73:0::1;::::0;::::1;34205:21:1::0;34262:2;34242:18;;;34235:30;34301:34;34281:18;;;34274:62;-1:-1:-1;;;34352:18:1;;;34345:36;34398:19;;117417:73:0::1;34021:402:1::0;117417:73:0::1;117501:28;117520:8;117501:18;:28::i;120645:233::-:0;116316:13;:11;:13::i;:::-;120739:4:::1;120725:10;:18;;120717:77;;;::::0;-1:-1:-1;;;120717:77:0;;34630:2:1;120717:77:0::1;::::0;::::1;34612:21:1::0;34669:2;34649:18;;;34642:30;34708:34;34688:18;;;34681:62;-1:-1:-1;;;34759:18:1;;;34752:44;34813:19;;120717:77:0::1;34428:410:1::0;120717:77:0::1;120805:9;:22:::0;;;120843:27:::1;::::0;2918:25:1;;;120843:27:0::1;::::0;2906:2:1;2891:18;120843:27:0::1;2772:177:1::0;54812:915:0;55079:1;55067:9;:13;55063:222;;;55210:63;;-1:-1:-1;;;55210:63:0;;35045:2:1;55210:63:0;;;35027:21:1;35084:2;35064:18;;;35057:30;35123:34;35103:18;;;35096:62;-1:-1:-1;;;35174:18:1;;;35167:51;35235:19;;55210:63:0;34843:417:1;55063:222:0;55315:12;-1:-1:-1;;;;;55344:18:0;;55340:187;;55379:40;55411:7;56554:10;:17;;56527:24;;;;:15;:24;;;;;:44;;;56582:24;;;;;;;;;;;;56450:164;55379:40;55340:187;;;55449:2;-1:-1:-1;;;;;55441:10:0;:4;-1:-1:-1;;;;;55441:10:0;;55437:90;;55468:47;55501:4;55507:7;55468:32;:47::i;:::-;-1:-1:-1;;;;;55541:16:0;;55537:183;;55574:45;55611:7;55574:36;:45::i;:::-;55537:183;;;55647:4;-1:-1:-1;;;;;55641:10:0;:2;-1:-1:-1;;;;;55641:10:0;;55637:83;;55668:40;55696:2;55700:7;55668:27;:40::i;63264:293::-;62666:1;63398:7;;:19;;63390:63;;;;-1:-1:-1;;;63390:63:0;;35467:2:1;63390:63:0;;;35449:21:1;35506:2;35486:18;;;35479:30;35545:33;35525:18;;;35518:61;35596:18;;63390:63:0;35265:355:1;63390:63:0;62666:1;63531:7;:18;63264:293::o;53675:224::-;53777:4;-1:-1:-1;;;;;;53801:50:0;;-1:-1:-1;;;53801:50:0;;:90;;;53855:36;53879:11;53855:23;:36::i;116595:132::-;116503:6;;-1:-1:-1;;;;;116503:6:0;16104:10;116659:23;116651:68;;;;-1:-1:-1;;;116651:68:0;;35827:2:1;116651:68:0;;;35809:21:1;;;35846:18;;;35839:30;35905:34;35885:18;;;35878:62;35957:18;;116651:68:0;35625:356:1;47796:135:0;47878:16;47886:7;47878;:16::i;:::-;47870:53;;;;-1:-1:-1;;;47870:53:0;;21028:2:1;47870:53:0;;;21010:21:1;21067:2;21047:18;;;21040:30;-1:-1:-1;;;21086:18:1;;;21079:54;21150:18;;47870:53:0;20826:348:1;47075:174:0;47150:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;47150:29:0;-1:-1:-1;;;;;47150:29:0;;;;;;;;:24;;47204:23;47150:24;47204:14;:23::i;:::-;-1:-1:-1;;;;;47195:46:0;;;;;;;;;;;47075:174;;:::o;95477:713::-;95601:7;95610;95643:19;:17;:19::i;:::-;95635:33;;;;;;95727:23;95815:28;;95780:19;:17;:19::i;:::-;95753:46;;:11;:46;:::i;:::-;:90;;;;:::i;:::-;95727:116;;95883:11;95864:15;:30;;95856:39;;;;;;95908:17;95928:29;87860:3;95928:5;:29;:::i;:::-;95908:49;;95991:5;95978:9;:18;;95970:27;;;;;;96010:31;96044:21;:15;96062:3;96044:21;:::i;:::-;96010:55;;96110:15;96084:23;:41;96076:50;;;;;;96147:23;96172:9;;-1:-1:-1;95477:713:0;-1:-1:-1;;;;95477:713:0:o;41694:264::-;41787:4;41804:13;41820:23;41835:7;41820:14;:23::i;:::-;41804:39;;41873:5;-1:-1:-1;;;;;41862:16:0;:7;-1:-1:-1;;;;;41862:16:0;;:52;;;-1:-1:-1;;;;;;38567:25:0;;;38543:4;38567:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;41882:32;41862:87;;;;41942:7;-1:-1:-1;;;;;41918:31:0;:20;41930:7;41918:11;:20::i;:::-;-1:-1:-1;;;;;41918:31:0;;41854:96;41694:264;-1:-1:-1;;;;41694:264:0:o;45693:1263::-;45852:4;-1:-1:-1;;;;;45825:31:0;:23;45840:7;45825:14;:23::i;:::-;-1:-1:-1;;;;;45825:31:0;;45817:81;;;;-1:-1:-1;;;45817:81:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;45917:16:0;;45909:65;;;;-1:-1:-1;;;45909:65:0;;36594:2:1;45909:65:0;;;36576:21:1;36633:2;36613:18;;;36606:30;36672:34;36652:18;;;36645:62;-1:-1:-1;;;36723:18:1;;;36716:34;36767:19;;45909:65:0;36392:400:1;45909:65:0;45987:42;46008:4;46014:2;46018:7;46027:1;45987:20;:42::i;:::-;46159:4;-1:-1:-1;;;;;46132:31:0;:23;46147:7;46132:14;:23::i;:::-;-1:-1:-1;;;;;46132:31:0;;46124:81;;;;-1:-1:-1;;;46124:81:0;;;;;;;:::i;:::-;46277:24;;;;:15;:24;;;;;;;;46270:31;;-1:-1:-1;;;;;;46270:31:0;;;;;;-1:-1:-1;;;;;46753:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;46753:20:0;;;46788:13;;;;;;;;;:18;;46270:31;46788:18;;;46828:16;;;:7;:16;;;;;;:21;;;;;;;;;;46867:27;;46293:7;;46867:27;;;37565:346;37495:416;;:::o;41399:128::-;41464:4;41062:16;;;:7;:16;;;;;;-1:-1:-1;;;;;41062:16:0;41488:31;;;41399:128::o;69757:248::-;69928:68;;-1:-1:-1;;;;;37055:15:1;;;69928:68:0;;;37037:34:1;37107:15;;37087:18;;;37080:43;37139:18;;;37132:34;;;69901:96:0;;69921:5;;-1:-1:-1;;;69951:27:0;36972:18:1;;69928:68:0;;;;-1:-1:-1;;69928:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;69928:68:0;-1:-1:-1;;;;;;69928:68:0;;;;;;;;;;69901:19;:96::i;43292:942::-;-1:-1:-1;;;;;43372:16:0;;43364:61;;;;-1:-1:-1;;;43364:61:0;;37379:2:1;43364:61:0;;;37361:21:1;;;37398:18;;;37391:30;37457:34;37437:18;;;37430:62;37509:18;;43364:61:0;37177:356:1;43364:61:0;43445:16;43453:7;43445;:16::i;:::-;43444:17;43436:58;;;;-1:-1:-1;;;43436:58:0;;37740:2:1;43436:58:0;;;37722:21:1;37779:2;37759:18;;;37752:30;37818;37798:18;;;37791:58;37866:18;;43436:58:0;37538:352:1;43436:58:0;43507:48;43536:1;43540:2;43544:7;43553:1;43507:20;:48::i;:::-;43654:16;43662:7;43654;:16::i;:::-;43653:17;43645:58;;;;-1:-1:-1;;;43645:58:0;;37740:2:1;43645:58:0;;;37722:21:1;37779:2;37759:18;;;37752:30;37818;37798:18;;;37791:58;37866:18;;43645:58:0;37538:352:1;43645:58:0;-1:-1:-1;;;;;44052:13:0;;;;;;:9;:13;;;;;;;;:18;;44069:1;44052:18;;;44094:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;44094:21:0;;;;;44133:33;44102:7;;44052:13;;44133:33;;44052:13;;44133:33;98399:578;;:::o;69538:211::-;69682:58;;-1:-1:-1;;;;;9035:32:1;;69682:58:0;;;9017:51:1;9084:18;;;9077:34;;;69655:86:0;;69675:5;;-1:-1:-1;;;69705:23:0;8990:18:1;;69682:58:0;8843:274:1;117697:191:0;117790:6;;;-1:-1:-1;;;;;117807:17:0;;;-1:-1:-1;;;;;;117807:17:0;;;;;;;117840:40;;117790:6;;;117807:17;117790:6;;117840:40;;117771:16;;117840:40;117760:128;117697:191;:::o;44573:783::-;44633:13;44649:23;44664:7;44649:14;:23::i;:::-;44633:39;;44685:51;44706:5;44721:1;44725:7;44734:1;44685:20;:51::i;:::-;44849:23;44864:7;44849:14;:23::i;:::-;44920:24;;;;:15;:24;;;;;;;;44913:31;;-1:-1:-1;;;;;;44913:31:0;;;;;;-1:-1:-1;;;;;45165:16:0;;;;;:9;:16;;;;;:21;;-1:-1:-1;;45165:21:0;;;45215:16;;;:7;:16;;;;;;45208:23;;;;;;;45249:36;44841:31;;-1:-1:-1;44936:7:0;;45249:36;;44920:24;;45249:36;98399:578;;:::o;93494:577::-;93587:7;93684:29;;;:20;:29;;;;;;;;;93754:12;:21;;;;;;93587:7;;93643:15;;93587:7;;93754:26;;;;:36;;;93789:1;93784:2;;:6;93754:36;93750:285;;;93807:17;93841:21;;;:12;:21;;;;;;93827:35;;:11;:35;:::i;:::-;93807:55;;93879:18;87470:5;87510:8;93916:9;93908:4;93903:2;;:9;;;;:::i;:::-;93902:23;;;;:::i;:::-;93901:36;;;;:::i;:::-;93900:53;;;;:::i;:::-;93879:74;-1:-1:-1;93879:74:0;;-1:-1:-1;94006:17:0;94019:4;93879:74;94006:17;:::i;:::-;93999:24;;93792:243;;93750:285;94053:3;94058:4;;-1:-1:-1;93494:577:0;-1:-1:-1;;;93494:577:0:o;47392:315::-;47547:8;-1:-1:-1;;;;;47538:17:0;:5;-1:-1:-1;;;;;47538:17:0;;;47530:55;;;;-1:-1:-1;;;47530:55:0;;38097:2:1;47530:55:0;;;38079:21:1;38136:2;38116:18;;;38109:30;38175:27;38155:18;;;38148:55;38220:18;;47530:55:0;37895:349:1;47530:55:0;-1:-1:-1;;;;;47596:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;47596:46:0;;;;;;;;;;47658:41;;540::1;;;47658::0;;513:18:1;47658:41:0;;;;;;;47392:315;;;:::o;40542:313::-;40698:28;40708:4;40714:2;40718:7;40698:9;:28::i;:::-;40745:47;40768:4;40774:2;40778:7;40787:4;40745:22;:47::i;:::-;40737:110;;;;-1:-1:-1;;;40737:110:0;;;;;;;:::i;60346:108::-;60406:13;60439:7;60432:14;;;;;:::i;13503:716::-;13559:13;13610:14;13627:17;13638:5;13627:10;:17::i;:::-;13647:1;13627:21;13610:38;;13663:20;13697:6;13686:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13686:18:0;-1:-1:-1;13663:41:0;-1:-1:-1;13828:28:0;;;13844:2;13828:28;13885:288;-1:-1:-1;;13917:5:0;-1:-1:-1;;;14054:2:0;14043:14;;14038:30;13917:5;14025:44;14115:2;14106:11;;;-1:-1:-1;14140:10:0;14136:21;;14152:5;;14136:21;13885:288;;;-1:-1:-1;14194:6:0;13503:716;-1:-1:-1;;;13503:716:0:o;57241:988::-;57507:22;57557:1;57532:22;57549:4;57532:16;:22::i;:::-;:26;;;;:::i;:::-;57569:18;57590:26;;;:17;:26;;;;;;57507:51;;-1:-1:-1;57723:28:0;;;57719:328;;-1:-1:-1;;;;;57790:18:0;;57768:19;57790:18;;;:12;:18;;;;;;;;:34;;;;;;;;;57841:30;;;;;;:44;;;57958:30;;:17;:30;;;;;:43;;;57719:328;-1:-1:-1;58143:26:0;;;;:17;:26;;;;;;;;58136:33;;;-1:-1:-1;;;;;58187:18:0;;;;;:12;:18;;;;;:34;;;;;;;58180:41;57241:988::o;58524:1079::-;58802:10;:17;58777:22;;58802:21;;58822:1;;58802:21;:::i;:::-;58834:18;58855:24;;;:15;:24;;;;;;59228:10;:26;;58777:46;;-1:-1:-1;58855:24:0;;58777:46;;59228:26;;;;;;:::i;:::-;;;;;;;;;59206:48;;59292:11;59267:10;59278;59267:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;59372:28;;;:15;:28;;;;;;;:41;;;59544:24;;;;;59537:31;59579:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;58595:1008;;;58524:1079;:::o;56028:221::-;56113:14;56130:20;56147:2;56130:16;:20::i;:::-;-1:-1:-1;;;;;56161:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;56206:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;56028:221:0:o;35537:305::-;35639:4;-1:-1:-1;;;;;;35676:40:0;;-1:-1:-1;;;35676:40:0;;:105;;-1:-1:-1;;;;;;;35733:48:0;;-1:-1:-1;;;35733:48:0;35676:105;:158;;;-1:-1:-1;;;;;;;;;;34135:40:0;;;35798:36;34026:157;59790:211;59937:56;59964:4;59970:2;59974:7;59983:9;59937:26;:56::i;72605:716::-;73029:23;73055:69;73083:4;73055:69;;;;;;;;;;;;;;;;;73063:5;-1:-1:-1;;;;;73055:27:0;;;:69;;;;;:::i;:::-;73139:17;;73029:95;;-1:-1:-1;73139:21:0;73135:179;;73236:10;73225:30;;;;;;;;;;;;:::i;:::-;73217:85;;;;-1:-1:-1;;;73217:85:0;;39002:2:1;73217:85:0;;;38984:21:1;39041:2;39021:18;;;39014:30;39080:34;39060:18;;;39053:62;-1:-1:-1;;;39131:18:1;;;39124:40;39181:19;;73217:85:0;38800:406:1;48495:853:0;48649:4;-1:-1:-1;;;;;48670:13:0;;18701:19;:23;48666:675;;48706:71;;-1:-1:-1;;;48706:71:0;;-1:-1:-1;;;;;48706:36:0;;;;;:71;;16104:10;;48757:4;;48763:7;;48772:4;;48706:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48706:71:0;;;;;;;;-1:-1:-1;;48706:71:0;;;;;;;;;;;;:::i;:::-;;;48702:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48947:13:0;;48943:328;;48990:60;;-1:-1:-1;;;48990:60:0;;;;;;;:::i;48943:328::-;49221:6;49215:13;49206:6;49202:2;49198:15;49191:38;48702:584;-1:-1:-1;;;;;;48828:51:0;-1:-1:-1;;;48828:51:0;;-1:-1:-1;48821:58:0;;48666:675;-1:-1:-1;49325:4:0;48495:853;;;;;;:::o;10423:922::-;10476:7;;-1:-1:-1;;;10554:15:0;;10550:102;;-1:-1:-1;;;10590:15:0;;;-1:-1:-1;10634:2:0;10624:12;10550:102;10679:6;10670:5;:15;10666:102;;10715:6;10706:15;;;-1:-1:-1;10750:2:0;10740:12;10666:102;10795:6;10786:5;:15;10782:102;;10831:6;10822:15;;;-1:-1:-1;10866:2:0;10856:12;10782:102;10911:5;10902;:14;10898:99;;10946:5;10937:14;;;-1:-1:-1;10980:1:0;10970:11;10898:99;11024:5;11015;:14;11011:99;;11059:5;11050:14;;;-1:-1:-1;11093:1:0;11083:11;11011:99;11137:5;11128;:14;11124:99;;11172:5;11163:14;;;-1:-1:-1;11206:1:0;11196:11;11124:99;11250:5;11241;:14;11237:66;;11286:1;11276:11;11331:6;10423:922;-1:-1:-1;;10423:922:0:o;21163:229::-;21300:12;21332:52;21354:6;21362:4;21368:1;21371:12;21300;22571;22585:23;22612:6;-1:-1:-1;;;;;22612:11:0;22631:5;22638:4;22612:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22570:73;;;;22661:69;22688:6;22696:7;22705:10;22717:12;22661:26;:69::i;:::-;22654:76;22283:455;-1:-1:-1;;;;;;;22283:455:0:o;24856:644::-;25041:12;25070:7;25066:427;;;25098:17;;25094:290;;-1:-1:-1;;;;;18701:19:0;;;25308:60;;;;-1:-1:-1;;;25308:60:0;;40847:2:1;25308:60:0;;;40829:21:1;40886:2;40866:18;;;40859:30;40925:31;40905:18;;;40898:59;40974:18;;25308:60:0;40645:353:1;25308:60:0;-1:-1:-1;25405:10:0;25398:17;;25066:427;25448:33;25456:10;25468:12;26203:17;;:21;26199:388;;26435:10;26429:17;26492:15;26479:10;26475:2;26471:19;26464:44;26199:388;26562:12;26555:20;;-1:-1:-1;;;26555:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;955:258::-;1027:1;1037:113;1051:6;1048:1;1045:13;1037:113;;;1127:11;;;1121:18;1108:11;;;1101:39;1073:2;1066:10;1037:113;;;1168:6;1165:1;1162:13;1159:48;;;-1:-1:-1;;1203:1:1;1185:16;;1178:27;955:258::o;1218:::-;1260:3;1298:5;1292:12;1325:6;1320:3;1313:19;1341:63;1397:6;1390:4;1385:3;1381:14;1374:4;1367:5;1363:16;1341:63;:::i;:::-;1458:2;1437:15;-1:-1:-1;;1433:29:1;1424:39;;;;1465:4;1420:50;;1218:258;-1:-1:-1;;1218:258:1:o;1481:220::-;1630:2;1619:9;1612:21;1593:4;1650:45;1691:2;1680:9;1676:18;1668:6;1650:45;:::i;1706:173::-;1774:20;;-1:-1:-1;;;;;1823:31:1;;1813:42;;1803:70;;1869:1;1866;1859:12;1803:70;1706:173;;;:::o;1884:186::-;1943:6;1996:2;1984:9;1975:7;1971:23;1967:32;1964:52;;;2012:1;2009;2002:12;1964:52;2035:29;2054:9;2035:29;:::i;2075:180::-;2134:6;2187:2;2175:9;2166:7;2162:23;2158:32;2155:52;;;2203:1;2200;2193:12;2155:52;-1:-1:-1;2226:23:1;;2075:180;-1:-1:-1;2075:180:1:o;2260:254::-;2328:6;2336;2389:2;2377:9;2368:7;2364:23;2360:32;2357:52;;;2405:1;2402;2395:12;2357:52;2428:29;2447:9;2428:29;:::i;:::-;2418:39;2504:2;2489:18;;;;2476:32;;-1:-1:-1;;;2260:254:1:o;2519:248::-;2587:6;2595;2648:2;2636:9;2627:7;2623:23;2619:32;2616:52;;;2664:1;2661;2654:12;2616:52;-1:-1:-1;;2687:23:1;;;2757:2;2742:18;;;2729:32;;-1:-1:-1;2519:248:1:o;2954:328::-;3031:6;3039;3047;3100:2;3088:9;3079:7;3075:23;3071:32;3068:52;;;3116:1;3113;3106:12;3068:52;3139:29;3158:9;3139:29;:::i;:::-;3129:39;;3187:38;3221:2;3210:9;3206:18;3187:38;:::i;:::-;3177:48;;3272:2;3261:9;3257:18;3244:32;3234:42;;2954:328;;;;;:::o;3287:316::-;3364:6;3372;3380;3433:2;3421:9;3412:7;3408:23;3404:32;3401:52;;;3449:1;3446;3439:12;3401:52;-1:-1:-1;;3472:23:1;;;3542:2;3527:18;;3514:32;;-1:-1:-1;3593:2:1;3578:18;;;3565:32;;3287:316;-1:-1:-1;3287:316:1:o;3608:118::-;3694:5;3687:13;3680:21;3673:5;3670:32;3660:60;;3716:1;3713;3706:12;3731:241;3787:6;3840:2;3828:9;3819:7;3815:23;3811:32;3808:52;;;3856:1;3853;3846:12;3808:52;3895:9;3882:23;3914:28;3936:5;3914:28;:::i;4615:315::-;4680:6;4688;4741:2;4729:9;4720:7;4716:23;4712:32;4709:52;;;4757:1;4754;4747:12;4709:52;4780:29;4799:9;4780:29;:::i;:::-;4770:39;;4859:2;4848:9;4844:18;4831:32;4872:28;4894:5;4872:28;:::i;:::-;4919:5;4909:15;;;4615:315;;;;;:::o;4935:127::-;4996:10;4991:3;4987:20;4984:1;4977:31;5027:4;5024:1;5017:15;5051:4;5048:1;5041:15;5067:632;5132:5;5162:18;5203:2;5195:6;5192:14;5189:40;;;5209:18;;:::i;:::-;5284:2;5278:9;5252:2;5338:15;;-1:-1:-1;;5334:24:1;;;5360:2;5330:33;5326:42;5314:55;;;5384:18;;;5404:22;;;5381:46;5378:72;;;5430:18;;:::i;:::-;5470:10;5466:2;5459:22;5499:6;5490:15;;5529:6;5521;5514:22;5569:3;5560:6;5555:3;5551:16;5548:25;5545:45;;;5586:1;5583;5576:12;5545:45;5636:6;5631:3;5624:4;5616:6;5612:17;5599:44;5691:1;5684:4;5675:6;5667;5663:19;5659:30;5652:41;;;;5067:632;;;;;:::o;5704:451::-;5773:6;5826:2;5814:9;5805:7;5801:23;5797:32;5794:52;;;5842:1;5839;5832:12;5794:52;5882:9;5869:23;5915:18;5907:6;5904:30;5901:50;;;5947:1;5944;5937:12;5901:50;5970:22;;6023:4;6015:13;;6011:27;-1:-1:-1;6001:55:1;;6052:1;6049;6042:12;6001:55;6075:74;6141:7;6136:2;6123:16;6118:2;6114;6110:11;6075:74;:::i;6160:667::-;6255:6;6263;6271;6279;6332:3;6320:9;6311:7;6307:23;6303:33;6300:53;;;6349:1;6346;6339:12;6300:53;6372:29;6391:9;6372:29;:::i;:::-;6362:39;;6420:38;6454:2;6443:9;6439:18;6420:38;:::i;:::-;6410:48;;6505:2;6494:9;6490:18;6477:32;6467:42;;6560:2;6549:9;6545:18;6532:32;6587:18;6579:6;6576:30;6573:50;;;6619:1;6616;6609:12;6573:50;6642:22;;6695:4;6687:13;;6683:27;-1:-1:-1;6673:55:1;;6724:1;6721;6714:12;6673:55;6747:74;6813:7;6808:2;6795:16;6790:2;6786;6782:11;6747:74;:::i;:::-;6737:84;;;6160:667;;;;;;;:::o;6832:592::-;6903:6;6911;6964:2;6952:9;6943:7;6939:23;6935:32;6932:52;;;6980:1;6977;6970:12;6932:52;7020:9;7007:23;7049:18;7090:2;7082:6;7079:14;7076:34;;;7106:1;7103;7096:12;7076:34;7144:6;7133:9;7129:22;7119:32;;7189:7;7182:4;7178:2;7174:13;7170:27;7160:55;;7211:1;7208;7201:12;7160:55;7251:2;7238:16;7277:2;7269:6;7266:14;7263:34;;;7293:1;7290;7283:12;7263:34;7338:7;7333:2;7324:6;7320:2;7316:15;7312:24;7309:37;7306:57;;;7359:1;7356;7349:12;7306:57;7390:2;7382:11;;;;;7412:6;;-1:-1:-1;6832:592:1;;-1:-1:-1;;;;6832:592:1:o;7429:260::-;7497:6;7505;7558:2;7546:9;7537:7;7533:23;7529:32;7526:52;;;7574:1;7571;7564:12;7526:52;7597:29;7616:9;7597:29;:::i;:::-;7587:39;;7645:38;7679:2;7668:9;7664:18;7645:38;:::i;:::-;7635:48;;7429:260;;;;;:::o;8054:127::-;8115:10;8110:3;8106:20;8103:1;8096:31;8146:4;8143:1;8136:15;8170:4;8167:1;8160:15;8186:168;8226:7;8292:1;8288;8284:6;8280:14;8277:1;8274:21;8269:1;8262:9;8255:17;8251:45;8248:71;;;8299:18;;:::i;:::-;-1:-1:-1;8339:9:1;;8186:168::o;8491:217::-;8531:1;8557;8547:132;;8601:10;8596:3;8592:20;8589:1;8582:31;8636:4;8633:1;8626:15;8664:4;8661:1;8654:15;8547:132;-1:-1:-1;8693:9:1;;8491:217::o;8713:125::-;8753:4;8781:1;8778;8775:8;8772:34;;;8786:18;;:::i;:::-;-1:-1:-1;8823:9:1;;8713:125::o;9122:245::-;9189:6;9242:2;9230:9;9221:7;9217:23;9213:32;9210:52;;;9258:1;9255;9248:12;9210:52;9290:9;9284:16;9309:28;9331:5;9309:28;:::i;9372:380::-;9451:1;9447:12;;;;9494;;;9515:61;;9569:4;9561:6;9557:17;9547:27;;9515:61;9622:2;9614:6;9611:14;9591:18;9588:38;9585:161;;;9668:10;9663:3;9659:20;9656:1;9649:31;9703:4;9700:1;9693:15;9731:4;9728:1;9721:15;10995:128;11035:3;11066:1;11062:6;11059:1;11056:13;11053:39;;;11072:18;;:::i;:::-;-1:-1:-1;11108:9:1;;10995:128::o;11736:422::-;11825:1;11868:5;11825:1;11882:270;11903:7;11893:8;11890:21;11882:270;;;11962:4;11958:1;11954:6;11950:17;11944:4;11941:27;11938:53;;;11971:18;;:::i;:::-;12021:7;12011:8;12007:22;12004:55;;;12041:16;;;;12004:55;12120:22;;;;12080:15;;;;11882:270;;;11886:3;11736:422;;;;;:::o;12163:806::-;12212:5;12242:8;12232:80;;-1:-1:-1;12283:1:1;12297:5;;12232:80;12331:4;12321:76;;-1:-1:-1;12368:1:1;12382:5;;12321:76;12413:4;12431:1;12426:59;;;;12499:1;12494:130;;;;12406:218;;12426:59;12456:1;12447:10;;12470:5;;;12494:130;12531:3;12521:8;12518:17;12515:43;;;12538:18;;:::i;:::-;-1:-1:-1;;12594:1:1;12580:16;;12609:5;;12406:218;;12708:2;12698:8;12695:16;12689:3;12683:4;12680:13;12676:36;12670:2;12660:8;12657:16;12652:2;12646:4;12643:12;12639:35;12636:77;12633:159;;;-1:-1:-1;12745:19:1;;;12777:5;;12633:159;12824:34;12849:8;12843:4;12824:34;:::i;:::-;12894:6;12890:1;12886:6;12882:19;12873:7;12870:32;12867:58;;;12905:18;;:::i;:::-;12943:20;;12163:806;-1:-1:-1;;;12163:806:1:o;12974:131::-;13034:5;13063:36;13090:8;13084:4;13063:36;:::i;13110:409::-;13312:2;13294:21;;;13351:2;13331:18;;;13324:30;13390:34;13385:2;13370:18;;13363:62;-1:-1:-1;;;13456:2:1;13441:18;;13434:43;13509:3;13494:19;;13110:409::o;13936:354::-;14138:2;14120:21;;;14177:2;14157:18;;;14150:30;14216:32;14211:2;14196:18;;14189:60;14281:2;14266:18;;13936:354::o;14295:343::-;14497:2;14479:21;;;14536:2;14516:18;;;14509:30;-1:-1:-1;;;14570:2:1;14555:18;;14548:49;14629:2;14614:18;;14295:343::o;14643:344::-;14845:2;14827:21;;;14884:2;14864:18;;;14857:30;-1:-1:-1;;;14918:2:1;14903:18;;14896:50;14978:2;14963:18;;14643:344::o;14992:339::-;15194:2;15176:21;;;15233:2;15213:18;;;15206:30;-1:-1:-1;;;15267:2:1;15252:18;;15245:45;15322:2;15307:18;;14992:339::o;15336:184::-;15406:6;15459:2;15447:9;15438:7;15434:23;15430:32;15427:52;;;15475:1;15472;15465:12;15427:52;-1:-1:-1;15498:16:1;;15336:184;-1:-1:-1;15336:184:1:o;16283:397::-;16485:2;16467:21;;;16524:2;16504:18;;;16497:30;16563:34;16558:2;16543:18;;16536:62;-1:-1:-1;;;16629:2:1;16614:18;;16607:31;16670:3;16655:19;;16283:397::o;19294:127::-;19355:10;19350:3;19346:20;19343:1;19336:31;19386:4;19383:1;19376:15;19410:4;19407:1;19400:15;23020:349;23222:2;23204:21;;;23261:2;23241:18;;;23234:30;23300:27;23295:2;23280:18;;23273:55;23360:2;23345:18;;23020:349::o;31119:470::-;31298:3;31336:6;31330:13;31352:53;31398:6;31393:3;31386:4;31378:6;31374:17;31352:53;:::i;:::-;31468:13;;31427:16;;;;31490:57;31468:13;31427:16;31524:4;31512:17;;31490:57;:::i;:::-;31563:20;;31119:470;-1:-1:-1;;;;31119:470:1:o;32479:1186::-;32588:4;32617:2;32646;32635:9;32628:21;32669:1;32702:6;32696:13;32732:3;32754:1;32782:9;32778:2;32774:18;32764:28;;32842:2;32831:9;32827:18;32864;32854:61;;32908:4;32900:6;32896:17;32886:27;;32854:61;32961:2;32953:6;32950:14;32930:18;32927:38;32924:165;;;-1:-1:-1;;;32988:33:1;;33044:4;33041:1;33034:15;33074:4;32995:3;33062:17;32924:165;33145:18;;;887:19;;;939:4;930:14;33188:18;33215:100;;;;33329:1;33324:315;;;;33181:458;;33215:100;-1:-1:-1;;33248:24:1;;33236:37;;33293:12;;;;-1:-1:-1;33215:100:1;;33324:315;32426:1;32419:14;;;32463:4;32450:18;;33419:1;33433:165;33447:6;33444:1;33441:13;33433:165;;;33525:14;;33512:11;;;33505:35;33568:16;;;;33462:10;;33433:165;;;33618:11;;;-1:-1:-1;;33181:458:1;-1:-1:-1;33656:3:1;;32479:1186;-1:-1:-1;;;;;;;;;32479:1186:1:o;35986:401::-;36188:2;36170:21;;;36227:2;36207:18;;;36200:30;36266:34;36261:2;36246:18;;36239:62;-1:-1:-1;;;36332:2:1;36317:18;;36310:35;36377:3;36362:19;;35986:401::o;38249:414::-;38451:2;38433:21;;;38490:2;38470:18;;;38463:30;38529:34;38524:2;38509:18;;38502:62;-1:-1:-1;;;38595:2:1;38580:18;;38573:48;38653:3;38638:19;;38249:414::o;38668:127::-;38729:10;38724:3;38720:20;38717:1;38710:31;38760:4;38757:1;38750:15;38784:4;38781:1;38774:15;39211:489;-1:-1:-1;;;;;39480:15:1;;;39462:34;;39532:15;;39527:2;39512:18;;39505:43;39579:2;39564:18;;39557:34;;;39627:3;39622:2;39607:18;;39600:31;;;39405:4;;39648:46;;39674:19;;39666:6;39648:46;:::i;39705:249::-;39774:6;39827:2;39815:9;39806:7;39802:23;39798:32;39795:52;;;39843:1;39840;39833:12;39795:52;39875:9;39869:16;39894:30;39918:5;39894:30;:::i;40366:274::-;40495:3;40533:6;40527:13;40549:53;40595:6;40590:3;40583:4;40575:6;40571:17;40549:53;:::i;:::-;40618:16;;;;;40366:274;-1:-1:-1;;40366:274:1:o
Swarm Source
ipfs://ce9522f486b172fa01b2c77f1b22155e86a6770c70fce15dcabf3b4dc73b32a0
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.