Token Staked Matic MAI Vault
Overview ERC-20
Price
$0.00 @ 0.000000 MATIC
Fully Diluted Market Cap
Total Supply:
1,406 STMMVT
Holders:
0 addresses
Transfers:
-
Contract:
Decimals:
0
[ Download CSV Export ]
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x636e7372e359421623318AC0DBc60496972656B4
Contract Name:
stableQiVault
Compiler Version
v0.8.11+commit.d7f03943
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-01-19 */ // Sources flattened with hardhat v2.12.2 https://hardhat.org // File contracts/interfaces/external/IPriceSourceAll.sol 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); } // File @openzeppelin/contracts/utils/math/[email protected] // 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); } } } // File @openzeppelin/contracts/utils/[email protected] // 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); } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @openzeppelin/contracts/token/ERC721/[email protected] // OpenZeppelin Contracts (last updated v4.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); } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File @openzeppelin/contracts/token/ERC721/[email protected] // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File @openzeppelin/contracts/utils/[email protected] // 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); } } } // File @openzeppelin/contracts/token/ERC721/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256, /* firstTokenId */ uint256 batchSize ) internal virtual { if (batchSize > 1) { if (from != address(0)) { _balances[from] -= batchSize; } if (to != address(0)) { _balances[to] += batchSize; } } } /** * @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 {} } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev See {ERC721-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual override { super._beforeTokenTransfer(from, to, firstTokenId, batchSize); if (batchSize > 1) { // Will only trigger during construction. Batch transferring (minting) is not available afterwards. revert("ERC721Enumerable: consecutive transfers not supported"); } uint256 tokenId = firstTokenId; if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } // File contracts/token/ERC721/MyVaultV5.sol // 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; } } } // File @openzeppelin/contracts/security/[email protected] // 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; } } // File @openzeppelin/contracts/token/ERC20/[email protected] // 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); } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // 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); } // File @openzeppelin/contracts/token/ERC20/utils/[email protected] // 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"); } } } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // 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); } // File @openzeppelin/contracts/token/ERC20/[email protected] // 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 {} } // File contracts/fixedInterestVaults/fixedVault.sol 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) 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; } } // File @openzeppelin/contracts/access/[email protected] // 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); } } // File contracts/fixedInterestVaults/fixedQiVault.sol 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
60806040526027805460ff60a01b1916600160a31b1790553480156200002457600080fd5b506040516200693b3803806200693b833981016040819052620000479162000c65565b868686868686868484828282600160008190555081600190805190602001906200007392919062000ad5565b5080516200008990600290602084019062000ad5565b50508151620000a19150600c90602084019062000ad5565b505050506001600160a01b038716620000b957600080fd5b85620000c457600080fd5b60326010556000601155600d80546001600160a01b03808a166001600160a01b03199283161790925560248054821690556969e10de76676d08000006013556002601b5561044c601c55600e889055601d80548584169083168117909155601e805493871693909216929092179055600860209081556040805163313ce56760e01b8152905163313ce567926004838101939192918290030181865afa15801562000173573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000199919062000d39565b601e60009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000213919062000d39565b6200021f919062000d7b565b6200022c90600a62000ea0565b601f55505060258054336001600160a01b03199182168117909255602680549091169091179055506200026f935062000269925062000293915050565b62000297565b62000279620002e9565b5062000286600062000357565b5050505050505062000f4f565b3390565b602880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600f54600090620002fc81600162000eb1565b600f8190558111156200030e57600080fd5b6200031a338262000484565b604080518281523360208201527f8b6c1d05c678fa59695e26465a85918ce0fc63a88f74af53d1daef8f0a9c7804910160405180910390a1919050565b6200036162000625565b6000818152600360205260409020546001600160a01b0316620003d55760405162461bcd60e51b815260206004820152602160248201527f61646446726f6e74456e643a205661756c7420646f6573206e6f7420657869736044820152601d60fa1b60648201526084015b60405180910390fd5b60008181526018602052604090205415620004335760405162461bcd60e51b815260206004820152601a60248201527f61646446726f6e74456e643a20616c72656164792061646465640000000000006044820152606401620003cc565b600081815260186020526040908190206127109055517f9d7c7013bbd38c45562efb3f7031f740c1f8b8886dbbf421142755ed68339f4c90620004799083815260200190565b60405180910390a150565b6001600160a01b038216620004dc5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401620003cc565b6000818152600360205260409020546001600160a01b031615620005435760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620003cc565b6200055360008383600162000683565b6000818152600360205260409020546001600160a01b031615620005ba5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620003cc565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6028546001600160a01b03163314620006815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620003cc565b565b6200069c84848484620006a260201b62003e391760201c565b50505050565b620006bb848484846200080660201b62003f721760201c565b6001811115620007345760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f7274656400000000000000000000006064820152608401620003cc565b816001600160a01b03851662000793576200078d81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b620007b9565b836001600160a01b0316856001600160a01b031614620007b957620007b9858262000895565b6001600160a01b038416620007d957620007d38162000942565b620007ff565b846001600160a01b0316846001600160a01b031614620007ff57620007ff8482620009fc565b5050505050565b60018111156200069c576001600160a01b0384161562000850576001600160a01b038416600090815260046020526040812080548392906200084a90849062000ecc565b90915550505b6001600160a01b038316156200069c576001600160a01b038316600090815260046020526040812080548392906200088a90849062000eb1565b909155505050505050565b60006001620008af8462000a4d60201b620021951760201c565b620008bb919062000ecc565b6000838152600860205260409020549091508082146200090f576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090620009569060019062000ecc565b6000838152600a60205260408120546009805493945090928490811062000981576200098162000ee6565b906000526020600020015490508060098381548110620009a557620009a562000ee6565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480620009e057620009e062000efc565b6001900381819060005260206000200160009055905550505050565b600062000a148362000a4d60201b620021951760201c565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b60006001600160a01b03821662000ab95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401620003cc565b506001600160a01b031660009081526004602052604090205490565b82805462000ae39062000f12565b90600052602060002090601f01602090048101928262000b07576000855562000b52565b82601f1062000b2257805160ff191683800117855562000b52565b8280016001018555821562000b52579182015b8281111562000b5257825182559160200191906001019062000b35565b5062000b6092915062000b64565b5090565b5b8082111562000b60576000815560010162000b65565b80516001600160a01b038116811462000b9357600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011262000bc057600080fd5b81516001600160401b038082111562000bdd5762000bdd62000b98565b604051601f8301601f19908116603f0116810190828211818310171562000c085762000c0862000b98565b8160405283815260209250868385880101111562000c2557600080fd5b600091505b8382101562000c49578582018301518183018401529082019062000c2a565b8382111562000c5b5760008385830101525b9695505050505050565b600080600080600080600060e0888a03121562000c8157600080fd5b62000c8c8862000b7b565b602089015160408a015191985096506001600160401b038082111562000cb157600080fd5b62000cbf8b838c0162000bae565b965060608a015191508082111562000cd657600080fd5b62000ce48b838c0162000bae565b955062000cf460808b0162000b7b565b945062000d0460a08b0162000b7b565b935060c08a015191508082111562000d1b57600080fd5b5062000d2a8a828b0162000bae565b91505092959891949750929550565b60006020828403121562000d4c57600080fd5b815160ff8116811462000d5e57600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff84168082101562000d985762000d9862000d65565b90039392505050565b600181815b8085111562000de257816000190482111562000dc65762000dc662000d65565b8085161562000dd457918102915b93841c939080029062000da6565b509250929050565b60008262000dfb5750600162000e9a565b8162000e0a5750600062000e9a565b816001811462000e23576002811462000e2e5762000e4e565b600191505062000e9a565b60ff84111562000e425762000e4262000d65565b50506001821b62000e9a565b5060208310610133831016604e8410600b841016171562000e73575081810a62000e9a565b62000e7f838362000da1565b806000190482111562000e965762000e9662000d65565b0290505b92915050565b600062000d5e60ff84168362000dea565b6000821982111562000ec75762000ec762000d65565b500190565b60008282101562000ee15762000ee162000d65565b500390565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600181811c9082168062000f2757607f821691505b6020821081141562000f4957634e487b7160e01b600052602260045260246000fd5b50919050565b6159dc8062000f5f6000396000f3fe608060405234801561001057600080fd5b506004361061054a5760003560e01c806386375994116102ca578063c71abb321161018d578063d8dfeb45116100f4578063ec2e0ab3116100ad578063f1c91fa611610087578063f1c91fa614610bdf578063f2fde38b14610be8578063f887ea4014610bfb578063ffc73da714610c0e57600080fd5b8063ec2e0ab314610bba578063ece1373214610bc3578063f17336d714610bd657600080fd5b8063d8dfeb4514610b29578063df98784614610b3c578063e0df5b6f14610b4f578063e5f4dc9214610b62578063e985e9c514610b6b578063eb6a887d14610ba757600080fd5b8063cf41d6f811610146578063cf41d6f814610ab2578063cf5f0f3c14610aba578063d0064c0014610acd578063d310f49b14610ad6578063d4a9b2c514610ae9578063d73464cc14610b0957600080fd5b8063c71abb3214610a65578063c87b56dd14610a6e578063cc02ce2214610a81578063cd44db1b14610a94578063cdfedd6314610a9e578063cea55f5714610aa957600080fd5b8063a22cb46511610231578063b26025aa116101ea578063b26025aa14610a04578063b3229a6314610a0c578063b86f6aef14610a1f578063b88d4fde14610a32578063c0d7865514610a45578063c231aa3014610a5857600080fd5b8063a22cb465146109a4578063a57ff503146109b7578063a5e98837146109c0578063a7c6a100146109c8578063a9c904b5146109d1578063b165ff0b146109e457600080fd5b806395d89b411161028357806395d89b411461094557806397a41b8e1461094d57806397ff37b91461096057806398c3f2db1461098057806398d721e014610988578063a0be06f91461099b57600080fd5b806386375994146108e05780638da5cb5b146108f35780639035e4cb1461090457806393ee476a1461091757806394cd4ba71461092a578063952cc86a1461093257600080fd5b806342966c68116104125780636234dc2111610379578063704b6c0211610332578063704b6c021461088357806370a0823114610896578063715018a6146108a9578063728bbbb5146108b1578063767a7b05146108ba57806385e290a3146108cd57600080fd5b80636234dc21146108115780636352211e1461082457806363b8817c146108375780636526941b1461084a578063687e8c171461085d5780636bc855cc1461087057600080fd5b806354fd4d50116103cb57806354fd4d501461079757806356572ac0146107bd578063570b2b84146107d05780635d12928b146107e35780635f84f302146107eb5780635ff09ac2146107fe57600080fd5b806342966c681461072f57806342f371c6146107425780634c19386c146107555780634f558e791461075e5780634f6ccce7146107715780635357b9891461078457600080fd5b806321a78f68116104b65780633128ef271161046f5780633128ef27146106bd578063379394d0146106d057806338536275146106e35780633db99177146106f6578063408038541461070957806342842e0e1461071c57600080fd5b806321a78f681461065257806323b872dd14610665578063241a545a146106785780632df87573146106815780632f745c59146106a1578063311f392a146106b457600080fd5b8063081812fc11610508578063081812fc146105e7578063095ea7b3146105fa5780630b78f9c01461060d57806311b4a8321461062057806318160ddd146106415780631c883e7b1461064957600080fd5b806263750c1461054f57806301ffc9a714610559578063048c661d1461058157806304d7aef2146105ac57806306fdde03146105bf57806307960532146105d4575b600080fd5b610557610c21565b005b61056c61056736600461505b565b610e44565b60405190151581526020015b60405180910390f35b602454610594906001600160a01b031681565b6040516001600160a01b039091168152602001610578565b602554610594906001600160a01b031681565b6105c7610e55565b60405161057891906150d0565b6105576105e23660046150ff565b610ee7565b6105946105f536600461511a565b610fa8565b610557610608366004615133565b610fcf565b61055761061b36600461515d565b6110e5565b61063361062e36600461511a565b61118f565b604051908152602001610578565b600954610633565b61063360105481565b602654610594906001600160a01b031681565b61055761067336600461517f565b611241565b61063360145481565b61063361068f36600461511a565b60166020526000908152604090205481565b6106336106af366004615133565b611272565b610633601c5481565b6105576106cb3660046151bb565b611308565b6105576106de3660046151f5565b611625565b6105576106f136600461511a565b611674565b61055761070436600461511a565b6116b1565b61055761071736600461511a565b61174e565b61055761072a36600461517f565b611856565b61055761073d36600461511a565b611871565b600d54610594906001600160a01b031681565b61063360215481565b61056c61076c36600461511a565b611a30565b61063361077f36600461511a565b611a3b565b6106336107923660046151bb565b611ace565b6027546107ab90600160a01b900460ff1681565b60405160ff9091168152602001610578565b6106336107cb36600461511a565b611b7d565b601e54610594906001600160a01b031681565b610633611c6e565b6105576107f936600461511a565b611cd7565b61055761080c36600461511a565b611d14565b61055761081f36600461511a565b611e8a565b61059461083236600461511a565b611ec7565b6105576108453660046150ff565b611f27565b61055761085836600461511a565b611fd1565b61056c61086b36600461515d565b61200e565b61055761087e3660046150ff565b61203d565b6105576108913660046150ff565b6120e9565b6106336108a43660046150ff565b612195565b61055761221b565b61063360115481565b6105576108c836600461515d565b61222d565b6105576108db36600461511a565b61240f565b6105576108ee36600461511a565b612575565b6028546001600160a01b0316610594565b61063361091236600461511a565b612612565b61063361092536600461511a565b612989565b6106336129f0565b61055761094036600461515d565b612a62565b6105c7612f46565b61055761095b3660046151bb565b612f55565b61063361096e36600461511a565b60176020526000908152604090205481565b61063361331b565b6105576109963660046150ff565b613365565b61063360195481565b6105576109b2366004615212565b61341d565b610633601f5481565b601054610633565b610633600f5481565b6105576109df3660046152d5565b613428565b6106336109f23660046150ff565b60226020526000908152604090205481565b610633613473565b61056c610a1a36600461511a565b6134ff565b61056c610a2d36600461511a565b6135b9565b610557610a4036600461531e565b61365c565b610557610a533660046150ff565b613694565b600b5461056c9060ff1681565b61063360205481565b6105c7610a7c36600461511a565b6136ea565b610557610a8f36600461515d565b61375d565b6305f5e100610633565b6106336305f5e10081565b610633601b5481565b6105576138d2565b610557610ac83660046151bb565b61396e565b61063360135481565b610633610ae436600461511a565b613abc565b610633610af736600461511a565b60156020526000908152604090205481565b610633610b1736600461511a565b60186020526000908152604090205481565b601d54610594906001600160a01b031681565b610633610b4a36600461511a565b613ac8565b610557610b5d36600461539a565b613b5a565b610633600e5481565b61056c610b7936600461540c565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b610557610bb536600461511a565b613b9f565b610633601a5481565b610557610bd136600461515d565b613c22565b61063360125481565b61063360235481565b610557610bf63660046150ff565b613d1d565b602754610594906001600160a01b031681565b610557610c1c36600461511a565b613d93565b6026546001600160a01b0316331480610c4457506025546001600160a01b031633145b80610c68575033610c5d6028546001600160a01b031690565b6001600160a01b0316145b610cb95760405162461bcd60e51b815260206004820152601f60248201527f4e6565647320746f2062652063616c6c6564206279206f70657261746f72730060448201526064015b60405180910390fd5b610cc1613ffa565b6000612710601954602354610cd69190615455565b610ce09190615474565b601e546026546023549293506001600160a01b039182169263a9059cbb9290911690610d0d908590615496565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610d58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7c91906154ad565b50601e5460255460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af1158015610dd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df691906154ad565b507fc73fb14682b9d51008c1faff296cc9b351c0597de5e25b4ffa158f47f8254e4c602354604051610e2a91815260200190565b60405180910390a1506000602355610e426001600055565b565b6000610e4f82614054565b92915050565b606060018054610e64906154ca565b80601f0160208091040260200160405190810160405280929190818152602001828054610e90906154ca565b8015610edd5780601f10610eb257610100808354040283529160200191610edd565b820191906000526020600020905b815481529060010190602001808311610ec057829003601f168201915b5050505050905090565b610eef614079565b6001600160a01b038116610f535760405162461bcd60e51b815260206004820152602560248201527f4574687072696365736f757263652063616e6e6f74206265207a65726f206164604482015264647265737360d81b6064820152608401610cb0565b600d80546001600160a01b0319166001600160a01b0383169081179091556040519081527fc525e5fed1508c998d3f14bf52f933df1dd16dbf48e2944c426be721e268b755906020015b60405180910390a150565b6000610fb3826140d3565b506000908152600560205260409020546001600160a01b031690565b6000610fda82611ec7565b9050806001600160a01b0316836001600160a01b031614156110485760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cb0565b336001600160a01b038216148061106457506110648133610b79565b6110d65760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610cb0565b6110e08383614123565b505050565b6110ed614079565b6127106110fa82846154ff565b146111475760405162461bcd60e51b815260206004820152601a60248201527f736574466565733a206d75737420657175616c2031303030302e0000000000006044820152606401610cb0565b6019829055601a81905560408051838152602081018390527f4d32f38862d5eb71edfefb7955873bd55920dc98159b6f53f8be62fbf0bebb4b91015b60405180910390a15050565b60008061119b83613abc565b60008481526015602052604090205490915015806111b7575080155b806111c857506111c6836135b9565b155b156111d65750600092915050565b6000838152601560205260408120546111ef9083614191565b91505080611201575060009392505050565b60205461120f90600a6155fb565b6112199082615474565b90506000601b548261122b9190615474565b905060125481116112395750805b949350505050565b61124b338261421a565b6112675760405162461bcd60e51b8152600401610cb090615607565b6110e0838383614298565b600061127d83612195565b82106112df5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610cb0565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b8061131281614409565b61132e5760405162461bcd60e51b8152600401610cb090615654565b6000818152601860205260409020546127101080159061135b575060008181526018602052604090205415155b6113775760405162461bcd60e51b8152600401610cb09061568b565b8361138181614409565b61139d5760405162461bcd60e51b8152600401610cb0906156b8565b6027546001600160a01b031615806113bf57506027546001600160a01b031633145b6113db5760405162461bcd60e51b8152600401610cb0906156e6565b601e546040516370a0823160e01b815233600482015285916001600160a01b0316906370a0823190602401602060405180830381865afa158015611423573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611447919061570f565b101561148d5760405162461bcd60e51b8152602060048201526015602482015274546f6b656e2062616c616e636520746f6f206c6f7760581b6044820152606401610cb0565b600061149886612989565b9050848110156114fa5760405162461bcd60e51b815260206004820152602760248201527f5661756c742064656274206c657373207468616e20616d6f756e7420746f20706044820152666179206261636b60c81b6064820152608401610cb0565b6012546115078683615496565b10158061151357508085145b61152f5760405162461bcd60e51b8152600401610cb090615728565b601054600085815260186020526040812054909161154e918890611ace565b905061155a8683615496565b600088815260166020908152604080832093909355601590522054611580908290615496565b6000888152601560205260408082209290925586815220546115a39082906154ff565b6000868152601560205260409020556021546115c0908790615496565b602155601e546115db906001600160a01b0316333089614426565b60408051888152602081018890529081018290527f31f96762af4051f367185773cc2f55bfb112a6c114b3407ded1f321a9eb199ac9060600160405180910390a150505050505050565b61162d614079565b600b805460ff191682151590811790915560405160ff909116151581527f24d10a0e2bca30afd85b6fcbdae412b32757c23f2d09434b3748b5980c7133d590602001610f9d565b61167c614079565b600e8190556040518181527fc0880963f3abc486dbb8b8f04ba4ce47c5b5cd3c59b6b7655f6011da0bf3365090602001610f9d565b6116b9614079565b6101f48111156117195760405162461bcd60e51b815260206004820152602560248201527f736574436c6f73696e674665653a2063616e6e6f74206265206d6f7265207468604482015264616e20352560d81b6064820152608401610cb0565b60108190556040518181527fc1b83121984ef8e824a0babc08fc162077c0716a4dc307121f306e6dfb13806c90602001610f9d565b611756614079565b61175f81614409565b6117b55760405162461bcd60e51b815260206004820152602160248201527f61646446726f6e74456e643a205661756c7420646f6573206e6f7420657869736044820152601d60fa1b6064820152608401610cb0565b600081815260186020526040902054156118115760405162461bcd60e51b815260206004820152601a60248201527f61646446726f6e74456e643a20616c72656164792061646465640000000000006044820152606401610cb0565b600081815260186020526040908190206127109055517f9d7c7013bbd38c45562efb3f7031f740c1f8b8886dbbf421142755ed68339f4c90610f9d9083815260200190565b6110e08383836040518060200160405280600081525061365c565b6025546001600160a01b031633146118cb5760405162461bcd60e51b815260206004820152601b60248201527f4e6565647320746f2062652063616c6c65642062792061646d696e00000000006044820152606401610cb0565b601e546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611913573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611937919061570f565b8111156119865760405162461bcd60e51b815260206004820152601860248201527f6275726e3a2042616c616e6365206e6f7420656e6f75676800000000000000006044820152606401610cb0565b601e5460265460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af11580156119db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ff91906154ad565b506040518181527fb1f67ade07cda330ac167f4fcc4c01b94fdfc04d401cf85e487f0a5b8b98e75f90602001610f9d565b6000610e4f82614409565b6000611a4660095490565b8210611aa95760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610cb0565b60098281548110611abc57611abc615769565b90600052602060002001549050919050565b6000808215611b2c5761271080611ae361331b565b611aed9190615455565b611af79190615455565b836305f5e100611b078888615455565b611b119190615455565b611b1b9190615455565b611b259190615474565b9050611b67565b612710611b3761331b565b611b419190615455565b6305f5e100611b508787615455565b611b5a9190615455565b611b649190615474565b90505b601f54611b749082615474565b95945050505050565b6000818152601560205260408120541580611b9e5750611b9c826135b9565b155b15611bab57506000919050565b6000611bb683613abc565b60008481526015602052604081205491925090611bd39083614191565b9150506000601b5482611be69190615474565b905080611bf857506000949350505050565b601254602054611c0990600a6155fb565b611c139083615474565b11611c5257601f54611c2361331b565b6103e8601c5485611c349190615455565b611c3e9190615474565b611c489190615474565b611b749190615474565b601f54611c5d61331b565b6103e8601c5484611c349190615455565b600f54600090611c7f8160016154ff565b600f819055811115611c9057600080fd5b611c9a3382614491565b604080518281523360208201527f8b6c1d05c678fa59695e26465a85918ce0fc63a88f74af53d1daef8f0a9c7804910160405180910390a1919050565b611cdf614079565b60148190556040518181527f323264e3ca065ee856fe1b11204d8896a783bccf148380ac5d7362eb5c4c36a890602001610f9d565b80611d1e81614409565b611d3a5760405162461bcd60e51b8152600401610cb090615654565b60008181526018602052604090205461271010801590611d67575060008181526018602052604090205415155b611d835760405162461bcd60e51b8152600401610cb09061568b565b611d8b614079565b611d9482614409565b611dec5760405162461bcd60e51b8152602060048201526024808201527f72656d6f766546726f6e74456e643a205661756c7420646f6573206e6f7420656044820152631e1a5cdd60e21b6064820152608401610cb0565b600082815260186020526040902054611e475760405162461bcd60e51b815260206004820152601f60248201527f72656d6f766546726f6e74456e643a206e6f7420612066726f6e7420656e64006044820152606401610cb0565b60008281526018602052604080822091909155517f9b9f950fb3755096dbbe8b1519e73f7c6d1a0507f514fced444919530c00d719906111839084815260200190565b611e92614079565b60128190556040518181527f4533506fbaba6b18743358b6e6fb9392e8cb21757487b68d232a01b140bbec0190602001610f9d565b6000818152600360205260408120546001600160a01b031680610e4f5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610cb0565b611f2f613ffa565b6001600160a01b038116600090815260226020526040902054611f945760405162461bcd60e51b815260206004820152601c60248201527f446f6e2774206861766520616e797468696e6720666f7220796f752e000000006044820152606401610cb0565b6001600160a01b0380821660009081526022602052604081208054919055601d549091611fc39116838361460c565b50611fce6001600055565b50565b611fd9614079565b60138190556040518181527f1dd8f42ee4750a70f6662d1383372472422592497256d506437e35b3fa914d9b90602001610f9d565b600080600061201d8585614191565b9092509050600061202e8284615474565b600e5411159695505050505050565b612045614079565b6001600160a01b03811661209b5760405162461bcd60e51b815260206004820181905260248201527f5265666572656e636520416464726573732063616e6e6f74206265207a65726f6044820152606401610cb0565b602680546001600160a01b0319166001600160a01b0383169081179091556040519081527f8ed6553fa1e634b0152cd3539c572bee8c662e446820646d73a0e1b47776af9390602001610f9d565b6120f1614079565b6001600160a01b0381166121475760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20416464726573732063616e6e6f74206265207a65726f000000006044820152606401610cb0565b602580546001600160a01b0319166001600160a01b0383169081179091556040519081527ffce52dd00c7849a7f2602c1f189745238d6a2db16fabf54376ce24cc2fa3d57f90602001610f9d565b60006001600160a01b0382166121ff5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610cb0565b506001600160a01b031660009081526004602052604090205490565b612223614079565b610e42600061463c565b8161223781614409565b6122535760405162461bcd60e51b8152600401610cb0906156b8565b3361225d82611ec7565b6001600160a01b0316146122835760405162461bcd60e51b8152600401610cb09061577f565b61228b613ffa565b6000838152601560205260409020548211156122f75760405162461bcd60e51b815260206004820152602560248201527f5661756c7420646f6573206e6f74206861766520656e6f75676820636f6c6c616044820152641d195c985b60da1b6064820152608401610cb0565b600083815260156020526040812054612311908490615496565b9050600061231e85612989565b905080156123a257612330828261200e565b6123a25760405162461bcd60e51b815260206004820152603e60248201527f5769746864726177616c20776f756c6420707574207661756c742062656c6f7760448201527f206d696e696d756d20636f6c6c61746572616c2070657263656e7461676500006064820152608401610cb0565b6000858152601560205260409020829055601d546123ca906001600160a01b0316338661460c565b60408051868152602081018690527f6c0ea3bea9dd66afa8f9d39d6eb93d833466190330813b42835efc650dca4cb9910160405180910390a150506110e06001600055565b8061241981614409565b6124355760405162461bcd60e51b8152600401610cb0906156b8565b3361243f82611ec7565b6001600160a01b0316146124655760405162461bcd60e51b8152600401610cb09061577f565b61246d613ffa565b61247682613abc565b156124c35760405162461bcd60e51b815260206004820152601a60248201527f5661756c7420686173206f75747374616e64696e6720646562740000000000006044820152606401610cb0565b60008281526015602052604090205415612505576125056124e383611ec7565b600084815260156020526040902054601d546001600160a01b0316919061460c565b61250e8261468e565b600082815260156020908152604080832083905560168252808320839055601782528083209290925590518381527f4fe08624ee65b341c38ab9693d216b909d4ddee1bc8d3fe0fea14026c361b465910160405180910390a16125716001600055565b5050565b61257d614079565b6101f48111156125dd5760405162461bcd60e51b815260206004820152602560248201527f7365744f70656e696e674665653a2063616e6e6f74206265206d6f7265207468604482015264616e20352560d81b6064820152608401610cb0565b60118190556040518181527fc4ced91ca77dc4287a54d9bd9b15c69b3aba262e30eba7c93301c48606019c9490602001610f9d565b60008161261e81614409565b61263a5760405162461bcd60e51b8152600401610cb0906156b8565b6024546001600160a01b0316158061265c57506024546001600160a01b031633145b6126a85760405162461bcd60e51b815260206004820181905260248201527f627579207269736b792069732064697361626c656420666f72207075626c69636044820152606401610cb0565b60006126b384612989565b9050806126f45760405162461bcd60e51b815260206004820152600f60248201526e05661756c742064656274206973203608c1b6044820152606401610cb0565b600084815260156020526040812054819061270f9084614191565b909250905060006127208284615474565b601c5490915061273182600a615455565b11156127965760405162461bcd60e51b815260206004820152602e60248201527f5661756c74206973206e6f742062656c6f77207269736b7920636f6c6c61746560448201526d72616c2070657263656e7461676560901b6064820152608401610cb0565b6000602054600a6127a791906155fb565b600e546127b49190615455565b6127be9085615474565b6020546127cc90600a6155fb565b6127d69085615474565b6127e09190615496565b601e546040516370a0823160e01b815233600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa15801561282d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612851919061570f565b10156128ad5760405162461bcd60e51b815260206004820152602560248201527f4e6f7420656e6f756768206d616920746f2062757920746865207269736b79206044820152641d985d5b1d60da1b6064820152608401610cb0565b601e546128c5906001600160a01b0316333084614426565b806021546128d39190615496565b60215560006128e0611c6e565b60008a8152601560205260408082205483835291205590506129028287615496565b600082815260166020818152604080842094909455601781528383204290558c8352601581528383208390559081528282209190915581518b815290810183905233818301526060810184905290517fa4cf7276e26bb566de2c7540759e85736eb743807343fd27e6e679b20e8814419181900360800190a1965050505050505b50919050565b600080600061299784614731565b91509150816023546129a991906154ff565b6023556021546129ba9083906154ff565b602155601454156129d75760008481526017602052604090204290555b6000938452601660205260409093208390555090919050565b601e546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612a39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a5d919061570f565b905090565b80612a6c81614409565b612a885760405162461bcd60e51b8152600401610cb090615654565b60008181526018602052604090205461271010801590612ab5575060008181526018602052604090205415155b612ad15760405162461bcd60e51b8152600401610cb09061568b565b82612adb81614409565b612af75760405162461bcd60e51b8152600401610cb0906156b8565b6024546001600160a01b03161580612b1957506024546001600160a01b031633145b612b705760405162461bcd60e51b815260206004820152602260248201527f6c69717569646174696f6e2069732064697361626c656420666f72207075626c604482015261696360f01b6064820152608401610cb0565b6000612b7b85612989565b600086815260156020526040812054919250908190612b9a9084614191565b915091508260001415612be15760405162461bcd60e51b815260206004820152600f60248201526e05661756c742064656274206973203608c1b6044820152606401610cb0565b6000612bed8284615474565b9050600e548110612c595760405162461bcd60e51b815260206004820152603060248201527f5661756c74206973206e6f742062656c6f77206d696e696d756d20636f6c6c6160448201526f746572616c2070657263656e7461676560801b6064820152608401610cb0565b601c54612c6782600a615455565b11612cb45760405162461bcd60e51b815260206004820152601d60248201527f5661756c74206973206e6f742061626f7665206761696e20726174696f0000006044820152606401610cb0565b602054612cc290600a6155fb565b612ccc9083615474565b91506000601b5483612cde9190615474565b90506012548111612cec5750815b601e546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015612d34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d58919061570f565b1015612dc05760405162461bcd60e51b815260206004820152603160248201527f546f6b656e2062616c616e636520746f6f206c6f7720746f20706179206f6666604482015270081bdd5d1cdd185b991a5b99c81919589d607a1b6064820152608401610cb0565b80602154612dce9190615496565b6021556000612ddc8a611b7d565b9050612de88287615496565b60008b8152601660209081526040808320939093556010548c83526018909152918120549091612e19918590611ace565b60008c815260156020526040902054909150612e36908290615496565b60008c815260156020526040808220929092558b81522054612e599082906154ff565b60008b815260156020526040808220929092558c81522054612e7c908390615496565b60008c815260156020908152604080832093909355338252602290522054612ea59083906154ff565b33600081815260226020526040902091909155601e54612ed2916001600160a01b03909116903086614426565b7f4d151d3a98b83151d51917640c221f8c8e3c054422ea1b48dcbbd57e3f4210d58b612efd8d611ec7565b604080519283526001600160a01b0390911660208301523390820152606081018590526080810184905260a0810183905260c00160405180910390a15050505050505050505050565b606060028054610e64906154ca565b80612f5f81614409565b612f7b5760405162461bcd60e51b8152600401610cb090615654565b60008181526018602052604090205461271010801590612fa8575060008181526018602052604090205415155b612fc45760405162461bcd60e51b8152600401610cb09061568b565b83612fce81614409565b612fea5760405162461bcd60e51b8152600401610cb0906156b8565b33612ff482611ec7565b6001600160a01b03161461301a5760405162461bcd60e51b8152600401610cb09061577f565b613022613ffa565b600084116130725760405162461bcd60e51b815260206004820152601b60248201527f4d75737420626f72726f77206e6f6e2d7a65726f20616d6f756e7400000000006044820152606401610cb0565b61307a6129f0565b8411156130e15760405162461bcd60e51b815260206004820152602f60248201527f626f72726f77546f6b656e3a2043616e6e6f74206d696e74206f76657220617660448201526e30b4b630b136329039bab838363c9760891b6064820152608401610cb0565b6000846130ed87612989565b6130f791906154ff565b90506013548111156131565760405162461bcd60e51b815260206004820152602260248201527f626f72726f77546f6b656e3a206d6178206c6f616e2063617020726561636865604482015261321760f11b6064820152608401610cb0565b61315f86613abc565b811161316a57600080fd5b600086815260156020526040902054613183908261200e565b6131f55760405162461bcd60e51b815260206004820152603a60248201527f426f72726f7720776f756c6420707574207661756c742062656c6f77206d696e60448201527f696d756d20636f6c6c61746572616c2070657263656e746167650000000000006064820152608401610cb0565b6012548561320288613abc565b61320c91906154ff565b101561322a5760405162461bcd60e51b8152600401610cb090615728565b6000868152601660209081526040808320849055601154878452601890925282205461325891908490611ace565b600088815260156020526040902054909150613275908290615496565b6000888152601560205260408082209290925586815220546132989082906154ff565b600086815260156020526040902055601e546132be906001600160a01b0316338861460c565b856021546132cc91906154ff565b60215560408051888152602081018890527f3e08df88d8e28f37df9bf227d3142ac506a364403445661a60891a49ed6792ca910160405180910390a150506133146001600055565b5050505050565b600d54604080516350d25bcd60e01b815290516000926001600160a01b0316916350d25bcd9160048083019260209291908290030181865afa158015612a39573d6000803e3d6000fd5b61336d614079565b6001600160a01b0381166133cf5760405162461bcd60e51b8152602060048201526024808201527f53746162696c697479506f6f6c2063616e6e6f74206265207a65726f206164646044820152637265737360e01b6064820152608401610cb0565b602480546001600160a01b0319166001600160a01b0383169081179091556040519081527f0644c4f539d7f787d2287c12d9425e80aefc8bdae99c70af4ca66fb0742577e890602001610f9d565b6125713383836147d6565b613430614079565b8051613443906029906020840190614f38565b507f0d82453dd4ad18b5ce3db08c34a39340ad2bf15046a7d0e86aa075483eb121d881604051610f9d91906150d0565b601d546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156134bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134e0919061570f565b601f546134eb61331b565b6134f59190615455565b612a5d9190615455565b60008161350b81614409565b6135275760405162461bcd60e51b8152600401610cb0906156b8565b600061353284613abc565b600085815260156020526040902054909150158061354e575080155b1561355d576000925050612983565b60008481526015602052604081205481906135789084614191565b909250905060006135898284615474565b601c5490915061359a82600a615455565b116135ac576001955050505050612983565b6000955050505050612983565b6000816135c581614409565b6135e15760405162461bcd60e51b8152600401610cb0906156b8565b60006135ec84613abc565b6000858152601560205260409020549091501580613608575080155b15613617576000925050612983565b60008481526015602052604081205481906136329084614191565b909250905060006136438284615474565b9050600e548110156135ac576001955050505050612983565b613666338361421a565b6136825760405162461bcd60e51b8152600401610cb090615607565b61368e848484846148a5565b50505050565b61369c614079565b602780546001600160a01b0319166001600160a01b0383169081179091556040519081527f66fc0187dfabf79860e1b18e6c175c92baf9ed88c8a01d0bfdb97d1f0450f7f790602001610f9d565b60606136f5826140d3565b60006136ff6148d8565b600b5490915060ff1615610e4f57600081511161372b5760405180602001604052806000815250613756565b80613735846148e7565b6040516020016137469291906157b6565b6040516020818303038152906040525b9392505050565b8161376781614409565b6137835760405162461bcd60e51b8152600401610cb090615654565b600081815260186020526040902054612710108015906137b0575060008181526018602052604090205415155b6137cc5760405162461bcd60e51b8152600401610cb09061568b565b826137d681614409565b6137f25760405162461bcd60e51b8152600401610cb0906156b8565b336137fc82611ec7565b6001600160a01b0316146138225760405162461bcd60e51b8152600401610cb09061577f565b60008311801561383457506127108311155b6138805760405162461bcd60e51b815260206004820152601b60248201527f75706461746546726f6e74456e643a2063616e6e6f74206265203000000000006044820152606401610cb0565b60008481526018602090815260409182902085905581518681529081018590527fbfdd5aecf44aa804bf11f070a41765d280dab82adbfd1c55e1e85b7d5b7920b491015b60405180910390a150505050565b6138da613ffa565b336000908152602260205260409020546139365760405162461bcd60e51b815260206004820152601c60248201527f446f6e2774206861766520616e797468696e6720666f7220796f752e000000006044820152606401610cb0565b3360008181526022602052604081208054919055601d549091613963916001600160a01b0316908361460c565b50610e426001600055565b8061397881614409565b6139945760405162461bcd60e51b8152600401610cb090615654565b600081815260186020526040902054612710108015906139c1575060008181526018602052604090205415155b6139dd5760405162461bcd60e51b8152600401610cb09061568b565b836139e781614409565b613a035760405162461bcd60e51b8152600401610cb0906156b8565b6027546001600160a01b03161580613a2557506027546001600160a01b031633145b613a415760405162461bcd60e51b8152600401610cb0906156e6565b42841015613a9c5760405162461bcd60e51b815260206004820152602260248201527f7061796261636b546f6b656e416c6c3a20646561646c696e6520657870697265604482015261321760f11b6064820152608401610cb0565b6000613aa786612989565b9050613ab4868286611308565b505050505050565b60008061123983614731565b600081613ad481614409565b613af05760405162461bcd60e51b8152600401610cb0906156b8565b6000613afb84613abc565b6000858152601560205260409020549091501580613b17575080155b15613b26576000925050612983565b6000848152601560205260408120548190613b419084614191565b9092509050613b508183615474565b9695505050505050565b613b62614079565b613b6e600c8383614fbc565b507ffda45751019c07e08a3ebf7d73a4aea1a6c36bee12d87089096012911a756ab5600c60405161118391906157e5565b613ba7614079565b80613bed5760405162461bcd60e51b815260206004820152601660248201527504465627420526174696f2063616e6e6f7420626520360541b6044820152606401610cb0565b601b8190556040518181527f199e93b2fae27b389e2d09761871573f60121b8521be96b8f28c83bf94846ac290602001610f9d565b81613c2c81614409565b613c485760405162461bcd60e51b8152600401610cb0906156b8565b6027546001600160a01b03161580613c6a57506027546001600160a01b031633145b613c865760405162461bcd60e51b8152600401610cb0906156e6565b600083815260156020526040812054613ca09084906154ff565b600085815260156020526040902054909150811015613cbe57600080fd5b6000848152601560205260409020819055601d54613ce7906001600160a01b0316333086614426565b60408051858152602081018590527f52c4e7127ec34e8fc95f09ce2d06b4f00acca12ccbcdfb246ef67ee6aefe068d91016138c4565b613d25614079565b6001600160a01b038116613d8a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cb0565b611fce8161463c565b613d9b614079565b6103e8811015613e045760405162461bcd60e51b815260206004820152602e60248201527f6761696e526174696f2063616e6e6f74206265206c657373207468616e206f7260448201526d020657175616c20746f20313030360941b6064820152608401610cb0565b601c8190556040518181527fb6d384ad48d9c5c042c81fa0f88d8061ef87b38475101d6aa5f9ae5a8274a64e90602001610f9d565b613e4584848484613f72565b6001811115613eb45760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b6064820152608401610cb0565b816001600160a01b038516613f1057613f0b81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613f33565b836001600160a01b0316856001600160a01b031614613f3357613f338582614984565b6001600160a01b038416613f4f57613f4a81614a21565b613314565b846001600160a01b0316846001600160a01b031614613314576133148482614ad0565b600181111561368e576001600160a01b03841615613fb8576001600160a01b03841660009081526004602052604081208054839290613fb2908490615496565b90915550505b6001600160a01b0383161561368e576001600160a01b03831660009081526004602052604081208054839290613fef9084906154ff565b909155505050505050565b6002600054141561404d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cb0565b6002600055565b60006001600160e01b0319821663780e9d6360e01b1480610e4f5750610e4f82614b14565b6028546001600160a01b03163314610e425760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb0565b6140dc81614409565b611fce5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610cb0565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061415882611ec7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061419c61331b565b6141a557600080fd5b6000601f546141b261331b565b6141bc9087615455565b6141c69190615455565b9050848110156141d557600080fd5b60006141e56305f5e10086615455565b9050848110156141f457600080fd5b6000614201836064615455565b905082811161420f57600080fd5b969095509350505050565b60008061422683611ec7565b9050806001600160a01b0316846001600160a01b0316148061426d57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b806112395750836001600160a01b031661428684610fa8565b6001600160a01b031614949350505050565b826001600160a01b03166142ab82611ec7565b6001600160a01b0316146142d15760405162461bcd60e51b8152600401610cb09061588d565b6001600160a01b0382166143335760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cb0565b6143408383836001614b64565b826001600160a01b031661435382611ec7565b6001600160a01b0316146143795760405162461bcd60e51b8152600401610cb09061588d565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000908152600360205260409020546001600160a01b0316151590565b6040516001600160a01b038085166024830152831660448201526064810182905261368e9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152614b70565b6001600160a01b0382166144e75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cb0565b6144f081614409565b1561453d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cb0565b61454b600083836001614b64565b61455481614409565b156145a15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cb0565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040516001600160a01b0383166024820152604481018290526110e090849063a9059cbb60e01b9060640161445a565b602880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061469982611ec7565b90506146a9816000846001614b64565b6146b282611ec7565b600083815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526004845282852080546000190190558785526003909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008181526016602090815260408083205460179092528220548291429183901580159061476157506000601454115b156147cc5760008681526017602052604081205461477f9085615496565b905060006127106301e18558838660145461479a9190615455565b6147a49190615455565b6147ae9190615474565b6147b89190615474565b92508290506147c784826154ff565b935050505b9590945092505050565b816001600160a01b0316836001600160a01b031614156148385760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cb0565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6148b0848484614298565b6148bc84848484614c42565b61368e5760405162461bcd60e51b8152600401610cb0906158d2565b6060600c8054610e64906154ca565b606060006148f483614d40565b600101905060008167ffffffffffffffff81111561491457614914615249565b6040519080825280601f01601f19166020018201604052801561493e576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846149775761497c565b614948565b509392505050565b6000600161499184612195565b61499b9190615496565b6000838152600860205260409020549091508082146149ee576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090614a3390600190615496565b6000838152600a602052604081205460098054939450909284908110614a5b57614a5b615769565b906000526020600020015490508060098381548110614a7c57614a7c615769565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480614ab457614ab4615924565b6001900381819060005260206000200160009055905550505050565b6000614adb83612195565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b60006001600160e01b031982166380ac58cd60e01b1480614b4557506001600160e01b03198216635b5e139f60e01b145b80610e4f57506301ffc9a760e01b6001600160e01b0319831614610e4f565b61368e84848484613e39565b6000614bc5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614e189092919063ffffffff16565b8051909150156110e05780806020019051810190614be391906154ad565b6110e05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610cb0565b60006001600160a01b0384163b15614d3557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290614c8690339089908890889060040161593a565b6020604051808303816000875af1925050508015614cc1575060408051601f3d908101601f19168201909252614cbe9181019061596d565b60015b614d1b573d808015614cef576040519150601f19603f3d011682016040523d82523d6000602084013e614cf4565b606091505b508051614d135760405162461bcd60e51b8152600401610cb0906158d2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611239565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310614d7f5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310614dab576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310614dc957662386f26fc10000830492506010015b6305f5e1008310614de1576305f5e100830492506008015b6127108310614df557612710830492506004015b60648310614e07576064830492506002015b600a8310610e4f5760010192915050565b6060611239848460008585600080866001600160a01b03168587604051614e3f919061598a565b60006040518083038185875af1925050503d8060008114614e7c576040519150601f19603f3d011682016040523d82523d6000602084013e614e81565b606091505b5091509150614e9287838387614e9d565b979650505050505050565b60608315614f09578251614f02576001600160a01b0385163b614f025760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610cb0565b5081611239565b6112398383815115614f1e5781518083602001fd5b8060405162461bcd60e51b8152600401610cb091906150d0565b828054614f44906154ca565b90600052602060002090601f016020900481019282614f665760008555614fac565b82601f10614f7f57805160ff1916838001178555614fac565b82800160010185558215614fac579182015b82811115614fac578251825591602001919060010190614f91565b50614fb8929150615030565b5090565b828054614fc8906154ca565b90600052602060002090601f016020900481019282614fea5760008555614fac565b82601f106150035782800160ff19823516178555614fac565b82800160010185558215614fac579182015b82811115614fac578235825591602001919060010190615015565b5b80821115614fb85760008155600101615031565b6001600160e01b031981168114611fce57600080fd5b60006020828403121561506d57600080fd5b813561375681615045565b60005b8381101561509357818101518382015260200161507b565b8381111561368e5750506000910152565b600081518084526150bc816020860160208601615078565b601f01601f19169290920160200192915050565b60208152600061375660208301846150a4565b80356001600160a01b03811681146150fa57600080fd5b919050565b60006020828403121561511157600080fd5b613756826150e3565b60006020828403121561512c57600080fd5b5035919050565b6000806040838503121561514657600080fd5b61514f836150e3565b946020939093013593505050565b6000806040838503121561517057600080fd5b50508035926020909101359150565b60008060006060848603121561519457600080fd5b61519d846150e3565b92506151ab602085016150e3565b9150604084013590509250925092565b6000806000606084860312156151d057600080fd5b505081359360208301359350604090920135919050565b8015158114611fce57600080fd5b60006020828403121561520757600080fd5b8135613756816151e7565b6000806040838503121561522557600080fd5b61522e836150e3565b9150602083013561523e816151e7565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561527a5761527a615249565b604051601f8501601f19908116603f011681019082821181831017156152a2576152a2615249565b816040528093508581528686860111156152bb57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156152e757600080fd5b813567ffffffffffffffff8111156152fe57600080fd5b8201601f8101841361530f57600080fd5b6112398482356020840161525f565b6000806000806080858703121561533457600080fd5b61533d856150e3565b935061534b602086016150e3565b925060408501359150606085013567ffffffffffffffff81111561536e57600080fd5b8501601f8101871361537f57600080fd5b61538e8782356020840161525f565b91505092959194509250565b600080602083850312156153ad57600080fd5b823567ffffffffffffffff808211156153c557600080fd5b818501915085601f8301126153d957600080fd5b8135818111156153e857600080fd5b8660208285010111156153fa57600080fd5b60209290920196919550909350505050565b6000806040838503121561541f57600080fd5b615428836150e3565b9150615436602084016150e3565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561546f5761546f61543f565b500290565b60008261549157634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156154a8576154a861543f565b500390565b6000602082840312156154bf57600080fd5b8151613756816151e7565b600181811c908216806154de57607f821691505b6020821081141561298357634e487b7160e01b600052602260045260246000fd5b600082198211156155125761551261543f565b500190565b600181815b808511156155525781600019048211156155385761553861543f565b8085161561554557918102915b93841c939080029061551c565b509250929050565b60008261556957506001610e4f565b8161557657506000610e4f565b816001811461558c5760028114615596576155b2565b6001915050610e4f565b60ff8411156155a7576155a761543f565b50506001821b610e4f565b5060208310610133831016604e8410600b84101617156155d5575081810a610e4f565b6155df8383615517565b80600019048211156155f3576155f361543f565b029392505050565b6000613756838361555a565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b6020808252601e908201527f66726f6e7420656e64207661756c7420646f6573206e6f742065786973740000604082015260600190565b602080825260139082015272119c9bdb9d08195b99081b9bdd081859191959606a1b604082015260600190565b60208082526014908201527315985d5b1d08191bd95cc81b9bdd08195e1a5cdd60621b604082015260600190565b6020808252600f908201526e36bab9ba103ab9b2903937baba32b960891b604082015260600190565b60006020828403121561572157600080fd5b5051919050565b60208082526021908201527f5661756c7420646562742063616e277420626520756e646572206d696e4465626040820152601d60fa1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60208082526019908201527f5661756c74206973206e6f74206f776e656420627920796f7500000000000000604082015260600190565b600083516157c8818460208801615078565b8351908301906157dc818360208801615078565b01949350505050565b600060208083526000845481600182811c91508083168061580757607f831692505b85831081141561582557634e487b7160e01b85526022600452602485fd5b87860183815260200181801561584257600181146158535761587e565b60ff1986168252878201965061587e565b60008b81526020902060005b868110156158785781548482015290850190890161585f565b83019750505b50949998505050505050505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613b50908301846150a4565b60006020828403121561597f57600080fd5b815161375681615045565b6000825161599c818460208701615078565b919091019291505056fea26469706673582212206f5de23012f434ce15ccff03ed6390624a6831140491a8e963078f1f788d21c364736f6c634300080b0033000000000000000000000000220909ed9801694db8ee8902733c3785b4db5170000000000000000000000000000000000000000000000000000000000000008700000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000a3fa99a148fa48d14ed51d610c367c61876997f1000000000000000000000000c13db18e2fa4ce478766ba6049387d6c689eca95000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000165374616b6564204d61746963204d4149205661756c7400000000000000000000000000000000000000000000000000000000000000000000000000000000000653544d4d56540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d54535050313736647842654d5242794c696a4673654b434d6e6a517931743557435357674338526658566f44000000000000000000000000000000000000
Deployed ByteCode Sourcemap
119197:11026:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;128581:332;;;:::i;:::-;;60593:171;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;60593:171:0;;;;;;;;89654:28;;;;;-1:-1:-1;;;;;89654:28:0;;;;;;-1:-1:-1;;;;;756:32:1;;;738:51;;726:2;711:18;89654:28:0;592:203:1;89689:18:0;;;;;-1:-1:-1;;;;;89689:18:0;;;37187:100;;;:::i;:::-;;;;;;;:::i;122708:331::-;;;;;;:::i;:::-;;:::i;38699:171::-;;;;;;:::i;:::-;;:::i;38217:416::-;;;;;;:::i;:::-;;:::i;123850:244::-;;;;;;:::i;:::-;;:::i;106499:799::-;;;;;;:::i;:::-;;:::i;:::-;;;2918:25:1;;;2906:2;2891:18;106499:799:0;2772:177:1;54853:113:0;54941:10;:17;54853:113;;88771:25;;;;;;89714:18;;;;;-1:-1:-1;;;;;89714:18:0;;;39399:335;;;;;;:::i;:::-;;:::i;88950:17::-;;;;;;89033:55;;;;;;:::i;:::-;;;;;;;;;;;;;;54521:256;;;;;;:::i;:::-;;:::i;89354:24::-;;;;;;104328:1151;;;;;;:::i;:::-;;:::i;130092:128::-;;;;;;:::i;:::-;;:::i;124272:258::-;;;;;;:::i;:::-;;:::i;126689:277::-;;;;;;:::i;:::-;;:::i;127180:303::-;;;;;;:::i;:::-;;:::i;39805:185::-;;;;;;:::i;:::-;;:::i;129409:251::-;;;;;;:::i;:::-;;:::i;88638:34::-;;;;;-1:-1:-1;;;;;88638:34:0;;;89535:28;;;;;;92983:104;;;;;;:::i;:::-;;:::i;55043:233::-;;;;;;:::i;:::-;;:::i;98385:533::-;;;;;;:::i;:::-;;:::i;89767:24::-;;;;;-1:-1:-1;;;89767:24:0;;;;;;;;;4376:4:1;4364:17;;;4346:36;;4334:2;4319:18;89767:24:0;4204:184:1;107532:896:0;;;;;;:::i;:::-;;:::i;89417:16::-;;;;;-1:-1:-1;;;;;89417:16:0;;;99034:259;;;:::i;129037:123::-;;;;;;:::i;:::-;;:::i;128195:325::-;;;;;;:::i;:::-;;:::i;124681:219::-;;;;;;:::i;:::-;;:::i;36897:223::-;;;;;;:::i;:::-;;:::i;106033:249::-;;;;;;:::i;:::-;;:::i;125067:219::-;;;;;;:::i;:::-;;:::i;97558:429::-;;;;;;:::i;:::-;;:::i;125487:183::-;;;;;;:::i;:::-;;:::i;125876:::-;;;;;;:::i;:::-;;:::i;36628:207::-;;;;;;:::i;:::-;;:::i;118185:103::-;;;:::i;88803:25::-;;;;;;101075:775;;;;;;:::i;:::-;;:::i;99471:578::-;;;;;;:::i;:::-;;:::i;126236:277::-;;;;;;:::i;:::-;;:::i;117537:87::-;117610:6;;-1:-1:-1;;;;;117610:6:0;117537:87;;114220:2071;;;;;;:::i;:::-;;:::i;95732:454::-;;;;;;:::i;:::-;;:::i;92635:110::-;;;:::i;111411:2349::-;;;;;;:::i;:::-;;:::i;37356:104::-;;;:::i;102211:1365::-;;;;;;:::i;:::-;;:::i;89097:47::-;;;;;;:::i;:::-;;;;;;;;;;;;;;94150:114;;;:::i;123276:231::-;;;;;;:::i;:::-;;:::i;89203:23::-;;;;;;38942:155;;;;;;:::i;:::-;;:::i;89442:43::-;;;;;;93630:93;93705:10;;93630:93;;88733:25;;;;;;121462:149;;;;;;:::i;:::-;;:::i;89572:44::-;;;;;;:::i;:::-;;;;;;;;;;;;;;93237:252;;;:::i;110310:702::-;;;;;;:::i;:::-;;:::i;109358:753::-;;;;;;:::i;:::-;;:::i;40061:322::-;;;;;;:::i;:::-;;:::i;129959:125::-;;;;;;:::i;:::-;;:::i;60315:18::-;;;;;;;;;89494:34;;;;;;61109:370;;;;;;:::i;:::-;;:::i;127752:311::-;;;;;;:::i;:::-;;:::i;93877:95::-;88932:3;93877:95;;88897:38;;88932:3;88897:38;;89323:24;;;;;;105595:266;;;:::i;103584:405::-;;;;;;:::i;:::-;;:::i;88866:22::-;;;;;;95375:151;;;;;;:::i;:::-;;:::i;88976:50::-;;;;;;:::i;:::-;;;;;;;;;;;;;;89151:43;;;;;;:::i;:::-;;;;;;;;;;;;;;89387:23;;;;;-1:-1:-1;;;;;89387:23:0;;;108578:585;;;;;;:::i;:::-;;:::i;129808:143::-;;;;;;:::i;:::-;;:::i;88681:43::-;;;;;;39168:164;;;;;;:::i;:::-;-1:-1:-1;;;;;39289:25:0;;;39265:4;39289:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;39168:164;122233:206;;;;;;:::i;:::-;;:::i;89263:21::-;;;;;;100327:454;;;;;;:::i;:::-;;:::i;88837:22::-;;;;;;89623;;;;;;118443:201;;;;;;:::i;:::-;;:::i;89739:21::-;;;;;-1:-1:-1;;;;;89739:21:0;;;121808:233;;;;;;:::i;:::-;;:::i;128581:332::-;121073:3;;-1:-1:-1;;;;;121073:3:0;121080:10;121073:17;;:38;;-1:-1:-1;121094:3:0;;-1:-1:-1;;;;;121094:3:0;121101:10;121094:17;121073:38;:63;;;-1:-1:-1;121126:10:0;121115:7;117610:6;;-1:-1:-1;;;;;117610:6:0;;117537:87;121115:7;-1:-1:-1;;;;;121115:21:0;;121073:63;121065:107;;;;-1:-1:-1;;;121065:107:0;;7896:2:1;121065:107:0;;;7878:21:1;7935:2;7915:18;;;7908:30;7974:33;7954:18;;;7947:61;8025:18;;121065:107:0;;;;;;;;;63837:21:::1;:19;:21::i;:::-;128658:15:::2;88542:5;128684:8;;128676:7;;:16;;;;:::i;:::-;:31;;;;:::i;:::-;128741:3;::::0;128754::::2;::::0;128760:7:::2;::::0;128658:49;;-1:-1:-1;;;;;;128741:3:0;;::::2;::::0;:12:::2;::::0;128754:3;;::::2;::::0;128760:15:::2;::::0;128658:49;;128760:15:::2;:::i;:::-;128741:37;::::0;-1:-1:-1;;;;;;128741:37:0::2;::::0;;;;;;-1:-1:-1;;;;;9035:32:1;;;128741:37:0::2;::::0;::::2;9017:51:1::0;9084:18;;;9077:34;8990:18;;128741:37:0::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;128816:3:0::2;::::0;128829::::2;::::0;128816:26:::2;::::0;-1:-1:-1;;;128816:26:0;;-1:-1:-1;;;;;128829:3:0;;::::2;128816:26;::::0;::::2;9017:51:1::0;9084:18;;;9077:34;;;128816:3:0;::::2;::::0;:12:::2;::::0;8990:18:1;;128816:26:0::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;128858:25;128875:7;;128858:25;;;;2918::1::0;;2906:2;2891:18;;2772:177;128858:25:0::2;;;;;;;;-1:-1:-1::0;128904:1:0::2;128894:7;:11:::0;63881:20:::1;63275:1:::0;64401:7;:22;64218:213;63881:20:::1;128581:332::o:0;60593:171::-;60696:4;60720:36;60744:11;60720:23;:36::i;:::-;60713:43;60593:171;-1:-1:-1;;60593:171:0:o;37187:100::-;37241:13;37274:5;37267:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37187:100;:::o;122708:331::-;117423:13;:11;:13::i;:::-;-1:-1:-1;;;;;122830:35:0;::::1;122822:86;;;::::0;-1:-1:-1;;;122822:86:0;;9959:2:1;122822: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;;122822:86:0::1;9757:401:1::0;122822:86:0::1;122919:14;:52:::0;;-1:-1:-1;;;;;;122919:52:0::1;-1:-1:-1::0;;;;;122919:52:0;::::1;::::0;;::::1;::::0;;;122987:44:::1;::::0;738:51:1;;;122987:44:0::1;::::0;726:2:1;711:18;122987:44:0::1;;;;;;;;122708:331:::0;:::o;38699:171::-;38775:7;38795:23;38810:7;38795:14;:23::i;:::-;-1:-1:-1;38838:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;38838:24:0;;38699:171::o;38217:416::-;38298:13;38314:23;38329:7;38314:14;:23::i;:::-;38298:39;;38362:5;-1:-1:-1;;;;;38356:11:0;:2;-1:-1:-1;;;;;38356:11:0;;;38348:57;;;;-1:-1:-1;;;38348:57:0;;10365:2:1;38348: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;;38348:57:0;10163:397:1;38348:57:0;16339:10;-1:-1:-1;;;;;38440:21:0;;;;:62;;-1:-1:-1;38465:37:0;38482:5;16339:10;39168:164;:::i;38465:37::-;38418:173;;;;-1:-1:-1;;;38418:173:0;;10767:2:1;38418: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;;38418:173:0;10565:425:1;38418:173:0;38604:21;38613:2;38617:7;38604:8;:21::i;:::-;38287:346;38217:416;;:::o;123850:244::-;117423:13;:11;:13::i;:::-;88542:5:::1;123936:11;123943:4:::0;123936:6;:11:::1;:::i;:::-;123935:27;123927:66;;;::::0;-1:-1:-1;;;123927:66:0;;11330:2:1;123927:66:0::1;::::0;::::1;11312:21:1::0;11369:2;11349:18;;;11342:30;11408:28;11388:18;;;11381:56;11454:18;;123927:66:0::1;11128:350:1::0;123927:66:0::1;124004:8;:15:::0;;;124030:6:::1;:11:::0;;;124057:29:::1;::::0;;11657:25:1;;;11713:2;11698:18;;11691:34;;;124057:29:0::1;::::0;11630:18:1;124057:29:0::1;;;;;;;;123850:244:::0;;:::o;106499:799::-;106556:7;106576:20;106599:18;106609:7;106599:9;:18::i;:::-;106648:24;;;;:15;:24;;;;;;106576:41;;-1:-1:-1;106648:29:0;;:63;;-1:-1:-1;106694:17:0;;106648:63;:106;;;;106729:25;106746:7;106729:16;:25::i;:::-;106728:26;106648:106;106630:171;;;-1:-1:-1;106788:1:0;;106499:799;-1:-1:-1;;106499:799:0:o;106630:171::-;106829:17;106908:24;;;:15;:24;;;;;;106860:118;;106951:12;106860:29;:118::i;:::-;106813:165;-1:-1:-1;;106995:14:0;106991:55;;-1:-1:-1;107033:1:0;;106499:799;-1:-1:-1;;;106499:799:0:o;106991:55::-;107087:19;;107083:23;;:2;:23;:::i;:::-;107070:37;;:9;:37;:::i;:::-;107058:49;;107120:16;107151:9;;107139;:21;;;;:::i;:::-;107120:40;;107205:7;;107193:8;:19;107189:72;;-1:-1:-1;107240:9:0;107189:72;107281:8;106499:799;-1:-1:-1;;;;106499:799:0:o;39399:335::-;39594:41;16339:10;39627:7;39594:18;:41::i;:::-;39586:99;;;;-1:-1:-1;;;39586:99:0;;;;;;;:::i;:::-;39698:28;39708:4;39714:2;39718:7;39698:9;:28::i;54521:256::-;54618:7;54654:23;54671:5;54654:16;:23::i;:::-;54646:5;:31;54638:87;;;;-1:-1:-1;;;54638:87:0;;13726:2:1;54638: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;;54638:87:0;13524:407:1;54638:87:0;-1:-1:-1;;;;;;54743:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;54521:256::o;104328:1151::-;104452:6;92247:16;92255:7;92247;:16::i;:::-;92239:59;;;;-1:-1:-1;;;92239:59:0;;;;;;;:::i;:::-;92317:17;;;;:8;:17;;;;;;88542:5;-1:-1:-1;92317:33:0;;;:58;;-1:-1:-1;92374:1:0;92354:17;;;:8;:17;;;;;;:21;;92317:58;92309:90;;;;-1:-1:-1;;;92309:90:0;;;;;;;:::i;:::-;104472:7:::1;92121:16;92129:7;92121;:16::i;:::-;92113:49;;;;-1:-1:-1::0;;;92113:49:0::1;;;;;;;:::i;:::-;91949:6:::2;::::0;-1:-1:-1;;;;;91949:6:0::2;:20:::0;;:44:::2;;-1:-1:-1::0;91987:6:0::2;::::0;-1:-1:-1;;;;;91987:6:0::2;91973:10;:20;91949:44;91927:109;;;;-1:-1:-1::0;;;91927:109:0::2;;;;;;;:::i;:::-;104511:3:::3;::::0;:25:::3;::::0;-1:-1:-1;;;104511:25:0;;104525:10:::3;104511:25;::::0;::::3;738:51:1::0;104540:6:0;;-1:-1:-1;;;;;104511:3:0::3;::::0;:13:::3;::::0;711:18:1;;104511:25:0::3;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:35;;104503:69;;;::::0;-1:-1:-1;;;104503:69:0;;15727:2:1;104503: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;;104503:69:0::3;15525:345:1::0;104503:69:0::3;104585:20;104608:24;104624:7;104608:15;:24::i;:::-;104585:47;;104683:6;104667:12;:22;;104645:111;;;::::0;-1:-1:-1;;;104645:111:0;;16077:2:1;104645: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;;104645:111:0::3;15875:403:1::0;104645:111:0::3;104820:7;::::0;104792:23:::3;104809:6:::0;104793:12;104792:23:::3;:::i;:::-;104791:36;;:64;;;;104842:12;104831:6;:24;104791:64;104769:147;;;;-1:-1:-1::0;;;104769:147:0::3;;;;;;;:::i;:::-;104978:10;::::0;104929:19:::3;105024:16:::0;;;:8:::3;:16;::::0;;;;;104929:19;;104951:100:::3;::::0;105003:6;;104951:12:::3;:100::i;:::-;104929:122:::0;-1:-1:-1;105096:21:0::3;105111:6:::0;105096:12;:21:::3;:::i;:::-;105064:29;::::0;;;:20:::3;:29;::::0;;;;;;;:53;;;;105157:15:::3;:24:::0;;;;:38:::3;::::0;105184:11;;105157:38:::3;:::i;:::-;105130:24;::::0;;;:15:::3;:24;::::0;;;;;:65;;;;105232:23;;;;;:37:::3;::::0;105258:11;;105232:37:::3;:::i;:::-;105206:23;::::0;;;:15:::3;:23;::::0;;;;:63;105298:13:::3;::::0;:22:::3;::::0;105314:6;;105298:22:::3;:::i;:::-;105282:13;:38:::0;105348:3:::3;::::0;:55:::3;::::0;-1:-1:-1;;;;;105348:3:0::3;105369:10;105389:4;105396:6:::0;105348:20:::3;:55::i;:::-;105429:42;::::0;;16887:25:1;;;16943:2;16928:18;;16921:34;;;16971:18;;;16964:34;;;105429:42:0::3;::::0;16875:2:1;16860:18;105429:42:0::3;;;;;;;104492:987;;92410:1:::1;104328:1151:::0;;;;:::o;130092:128::-;117423:13;:11;:13::i;:::-;130158:6:::1;:14:::0;;-1:-1:-1;;130158:14:0::1;::::0;::::1;;::::0;;::::1;::::0;;;130188:24:::1;::::0;130158:14:::1;130205:6:::0;;;565:14:1;558:22;540:41;;130188:24:0::1;::::0;528:2:1;513:18;130188:24:0::1;400:187:1::0;124272:258:0;117423:13;:11;:13::i;:::-;124393:28:::1;:58:::0;;;124467:55:::1;::::0;2918:25:1;;;124467:55:0::1;::::0;2906:2:1;2891:18;124467:55:0::1;2772:177:1::0;126689:277:0;117423:13;:11;:13::i;:::-;119355:3:::1;126791:11;:22;;126763:92;;;::::0;-1:-1:-1;;;126763:92:0;;17211:2:1;126763: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;;126763:92:0::1;17009:401:1::0;126763:92:0::1;126866:10;:24:::0;;;126929:29:::1;::::0;2918:25:1;;;126929:29:0::1;::::0;2906:2:1;2891:18;126929:29:0::1;2772:177:1::0;127180:303:0;117423:13;:11;:13::i;:::-;127256:18:::1;127264:9;127256:7;:18::i;:::-;127248:64;;;::::0;-1:-1:-1;;;127248:64:0;;17617:2:1;127248: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;;127248:64:0::1;17415:397:1::0;127248:64:0::1;127335:19;::::0;;;:8:::1;:19;::::0;;;;;:24;127327:63:::1;;;::::0;-1:-1:-1;;;127327:63:0;;18019:2:1;127327:63:0::1;::::0;::::1;18001:21:1::0;18058:2;18038:18;;;18031:30;18097:28;18077:18;;;18070:56;18143:18;;127327:63:0::1;17817:350:1::0;127327:63:0::1;127401:19;::::0;;;:8:::1;:19;::::0;;;;;;88542:5:::1;127401:34:::0;;127451:24;::::1;::::0;::::1;::::0;127410:9;2918:25:1;;2906:2;2891:18;;2772:177;39805:185:0;39943:39;39960:4;39966:2;39970:7;39943:39;;;;;;;;;;;;:16;:39::i;129409:251::-;121240:3;;-1:-1:-1;;;;;121240:3:0;121247:10;121240:17;121232:57;;;;-1:-1:-1;;;121232:57:0;;18374:2:1;121232:57:0;;;18356:21:1;18413:2;18393:18;;;18386:30;18452:29;18432:18;;;18425:57;18499:18;;121232:57:0;18172:351:1;121232:57:0;129514:3:::1;::::0;:28:::1;::::0;-1:-1:-1;;;129514:28:0;;129536:4:::1;129514:28;::::0;::::1;738:51:1::0;-1:-1:-1;;;;;129514:3:0;;::::1;::::0;:13:::1;::::0;711:18:1;;129514:28:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;129499:11;:43;;129491:80;;;::::0;-1:-1:-1;;;129491:80:0;;18730:2:1;129491:80:0::1;::::0;::::1;18712:21:1::0;18769:2;18749:18;;;18742:30;18808:26;18788:18;;;18781:54;18852:18;;129491:80:0::1;18528:348:1::0;129491:80:0::1;129582:3;::::0;129595::::1;::::0;129582:30:::1;::::0;-1:-1:-1;;;129582:30:0;;-1:-1:-1;;;;;129595:3:0;;::::1;129582:30;::::0;::::1;9017:51:1::0;9084:18;;;9077:34;;;129582:3:0;::::1;::::0;:12:::1;::::0;8990:18:1;;129582:30:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;129628:24:0::1;::::0;2918:25:1;;;129628:24:0::1;::::0;2906:2:1;2891:18;129628:24:0::1;2772:177:1::0;92983:104:0;93039:4;93063:16;93071:7;93063;:16::i;55043:233::-;55118:7;55154:30;54941:10;:17;;54853:113;55154:30;55146:5;:38;55138:95;;;;-1:-1:-1;;;55138:95:0;;19083:2:1;55138: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;;55138:95:0;18881:408:1;55138:95:0;55251:10;55262:5;55251:17;;;;;;;;:::i;:::-;;;;;;;;;55244:24;;55043:233;;;:::o;98385:533::-;98509:7;;98556:10;;98552:306;;88542:5;;98661:19;:17;:19::i;:::-;:34;;;;:::i;:::-;:49;;;;:::i;:::-;98631:8;88932:3;98592:12;98601:3;98592:6;:12;:::i;:::-;:36;;;;:::i;:::-;:47;;;;:::i;:::-;98591:120;;;;:::i;:::-;98583:129;;98552:306;;;88542:5;98811:19;:17;:19::i;:::-;:34;;;;:::i;:::-;88932:3;98753:12;98762:3;98753:6;:12;:::i;:::-;:36;;;;:::i;:::-;98752:94;;;;:::i;:::-;98745:101;;98552:306;98882:28;;98875:35;;:4;:35;:::i;:::-;98868:42;98385:533;-1:-1:-1;;;;;98385:533:0:o;107532:896::-;107592:7;107616:24;;;:15;:24;;;;;;:29;;:59;;;107650:25;107667:7;107650:16;:25::i;:::-;107649:26;107616:59;107612:100;;;-1:-1:-1;107699:1:0;;107532:896;-1:-1:-1;107532:896:0:o;107612:100::-;107722:20;107745:18;107755:7;107745:9;:18::i;:::-;107779:17;107844:24;;;:15;:24;;;;;;107722:41;;-1:-1:-1;107779:17:0;107800:106;;107722:41;107800:29;:106::i;:::-;107776:130;;;107919:16;107950:9;;107938;:21;;;;:::i;:::-;107919:40;-1:-1:-1;107992:13:0;107988:54;;-1:-1:-1;108029:1:0;;107532:896;-1:-1:-1;;;;107532:896:0:o;107988:54::-;108098:7;;108074:19;;108070:23;;:2;:23;:::i;:::-;108056:38;;108057:8;108056:38;:::i;:::-;:49;108052:369;;108251:28;;108228:19;:17;:19::i;:::-;88625:4;108200:9;;108186;:24;;;;:::i;:::-;108185:39;;;;:::i;:::-;:63;;;;:::i;:::-;:94;;;;:::i;108052:369::-;108381:28;;108358:19;:17;:19::i;:::-;88625:4;108332:9;;108320:8;:22;;;;:::i;99034:259::-;99106:10;;99073:7;;99140:14;99106:10;99153:1;99140:14;:::i;:::-;99127:10;:27;;;99173:16;-1:-1:-1;99173:16:0;99165:25;;;;;;99201:21;99207:10;99219:2;99201:5;:21::i;:::-;99238:27;;;19600:25:1;;;99254:10:0;19656:2:1;19641:18;;19634:60;99238:27:0;;19573:18:1;99238:27:0;;;;;;;99283:2;99034:259;-1:-1:-1;99034:259:0:o;129037:123::-;117423:13;:11;:13::i;:::-;129105:2:::1;:8:::0;;;129129:23:::1;::::0;2918:25:1;;;129129:23:0::1;::::0;2906:2:1;2891:18;129129:23:0::1;2772:177:1::0;128195:325:0;128259:9;92247:16;92255:7;92247;:16::i;:::-;92239:59;;;;-1:-1:-1;;;92239:59:0;;;;;;;:::i;:::-;92317:17;;;;:8;:17;;;;;;88542:5;-1:-1:-1;92317:33:0;;;:58;;-1:-1:-1;92374:1:0;92354:17;;;:8;:17;;;;;;:21;;92317:58;92309:90;;;;-1:-1:-1;;;92309:90:0;;;;;;;:::i;:::-;117423:13:::1;:11;:13::i;:::-;128299:18:::2;128307:9;128299:7;:18::i;:::-;128291:67;;;::::0;-1:-1:-1;;;128291:67:0;;19907:2:1;128291: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;;128291:67:0::2;19705:400:1::0;128291:67:0::2;128399:1;128377:19:::0;;;:8:::2;:19;::::0;;;;;128369:67:::2;;;::::0;-1:-1:-1;;;128369:67:0;;20312:2:1;128369:67:0::2;::::0;::::2;20294:21:1::0;20351:2;20331:18;;;20324:30;20390:33;20370:18;;;20363:61;20441:18;;128369:67:0::2;20110:355:1::0;128369:67:0::2;128469:1;128447:19:::0;;;:8:::2;:19;::::0;;;;;:23;;;;128486:26;::::2;::::0;::::2;::::0;128456:9;2918:25:1;;2906:2;2891:18;;2772:177;124681:219:0;117423:13;:11;:13::i;:::-;124835:7:::1;:18:::0;;;124869:23:::1;::::0;2918:25:1;;;124869:23:0::1;::::0;2906:2:1;2891:18;124869:23:0::1;2772:177:1::0;36897:223:0;36969:7;41784:16;;;:7;:16;;;;;;-1:-1:-1;;;;;41784:16:0;;37033:56;;;;-1:-1:-1;;;37033:56:0;;21028:2:1;37033:56:0;;;21010:21:1;21067:2;21047:18;;;21040:30;-1:-1:-1;;;21086:18:1;;;21079:54;21150:18;;37033:56:0;20826:348:1;106033:249:0;63837:21;:19;:21::i;:::-;-1:-1:-1;;;;;106104:14:0;::::1;;::::0;;;:9:::1;:14;::::0;;;;;106096:60:::1;;;::::0;-1:-1:-1;;;106096:60:0;;21381:2:1;106096:60:0::1;::::0;::::1;21363:21:1::0;21420:2;21400:18;;;21393:30;21459;21439:18;;;21432:58;21507:18;;106096:60:0::1;21179:352:1::0;106096:60:0::1;-1:-1:-1::0;;;;;106184:14:0;;::::1;106167;106184::::0;;;:9:::1;:14;::::0;;;;;;106209:18;;;106238:10:::1;::::0;106184:14;;106238:36:::1;::::0;:10:::1;106194:3:::0;106184:14;106238:23:::1;:36::i;:::-;106085:197;63881:20:::0;63275:1;64401:7;:22;64218:213;63881:20;106033:249;:::o;125067:219::-;117423:13;:11;:13::i;:::-;125221:7:::1;:18:::0;;;125255:23:::1;::::0;2918:25:1;;;125255:23:0::1;::::0;2906:2:1;2891:18;125255:23:0::1;2772:177:1::0;97558:429:0;97668:4;97705:31;97751:17;97782:48;97812:11;97825:4;97782:29;:48::i;:::-;97690:140;;-1:-1:-1;97690:140:0;-1:-1:-1;97843:28:0;97874:35;97690:140;;97874:35;:::i;:::-;97951:28;;-1:-1:-1;97927:52:0;;97558:429;-1:-1:-1;;;;;;97558:429:0:o;125487:183::-;117423:13;:11;:13::i;:::-;-1:-1:-1;;;;;125555:18:0;::::1;125547:63;;;::::0;-1:-1:-1;;;125547:63:0;;22094:2:1;125547:63:0::1;::::0;::::1;22076:21:1::0;;;22113:18;;;22106:30;22172:34;22152:18;;;22145:62;22224:18;;125547:63:0::1;21892:356:1::0;125547:63:0::1;125621:3;:10:::0;;-1:-1:-1;;;;;;125621:10:0::1;-1:-1:-1::0;;;;;125621:10:0;::::1;::::0;;::::1;::::0;;;125647:15:::1;::::0;738:51:1;;;125647:15:0::1;::::0;726:2:1;711:18;125647:15:0::1;592:203:1::0;125876:183:0;117423:13;:11;:13::i;:::-;-1:-1:-1;;;;;125946:18:0;::::1;125938:59;;;::::0;-1:-1:-1;;;125938:59:0;;22455:2:1;125938:59:0::1;::::0;::::1;22437:21:1::0;22494:2;22474:18;;;22467:30;22533;22513:18;;;22506:58;22581:18;;125938:59:0::1;22253:352:1::0;125938:59:0::1;126008:3;:10:::0;;-1:-1:-1;;;;;;126008:10:0::1;-1:-1:-1::0;;;;;126008:10:0;::::1;::::0;;::::1;::::0;;;126034:17:::1;::::0;738:51:1;;;126034:17:0::1;::::0;726:2:1;711:18;126034:17:0::1;592:203:1::0;36628:207:0;36700:7;-1:-1:-1;;;;;36728:19:0;;36720:73;;;;-1:-1:-1;;;36720:73:0;;22812:2:1;36720: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;;36720:73:0;22610:405:1;36720:73:0;-1:-1:-1;;;;;;36811:16:0;;;;;:9;:16;;;;;;;36628:207::o;118185:103::-;117423:13;:11;:13::i;:::-;118250:30:::1;118277:1;118250:18;:30::i;101075:775::-:0;101178:7;91746:16;91754:7;91746;:16::i;:::-;91738:49;;;;-1:-1:-1;;;91738:49:0;;;;;;;:::i;:::-;91826:10;91806:16;91814:7;91806;:16::i;:::-;-1:-1:-1;;;;;91806:30:0;;91798:68;;;;-1:-1:-1;;;91798:68:0;;;;;;;:::i;:::-;63837:21:::1;:19;:21::i;:::-;101247:24:::2;::::0;;;:15:::2;:24;::::0;;;;;:34;-1:-1:-1;101247:34:0::2;101225:121;;;::::0;-1:-1:-1;;;101225:121:0;;23576:2:1;101225: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;;101225:121:0::2;23374:401:1::0;101225:121:0::2;101359:21;101383:24:::0;;;:15:::2;:24;::::0;;;;;:33:::2;::::0;101410:6;;101383:33:::2;:::i;:::-;101359:57;;101427:12;101442:24;101458:7;101442:15;:24::i;:::-;101427:39:::0;-1:-1:-1;101483:9:0;;101479:204:::2;;101535:38;101553:13;101568:4;101535:17;:38::i;:::-;101509:162;;;::::0;-1:-1:-1;;;101509:162:0;;23982:2:1;101509: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;;101509:162:0::2;23780:426:1::0;101509:162:0::2;101695:24;::::0;;;:15:::2;:24;::::0;;;;:40;;;101746:10:::2;::::0;:43:::2;::::0;-1:-1:-1;;;;;101746:10:0::2;101770;101782:6:::0;101746:23:::2;:43::i;:::-;101807:35;::::0;;11657:25:1;;;11713:2;11698:18;;11691:34;;;101807:35:0::2;::::0;11630:18:1;101807:35:0::2;;;;;;;101214:636;;63881:20:::1;63275:1:::0;64401:7;:22;64218:213;99471:578;99552:7;91746:16;91754:7;91746;:16::i;:::-;91738:49;;;;-1:-1:-1;;;91738:49:0;;;;;;;:::i;:::-;91826:10;91806:16;91814:7;91806;:16::i;:::-;-1:-1:-1;;;;;91806:30:0;;91798:68;;;;-1:-1:-1;;;91798:68:0;;;;;;;:::i;:::-;63837:21:::1;:19;:21::i;:::-;99607:18:::2;99617:7;99607:9;:18::i;:::-;:23:::0;99599:62:::2;;;::::0;-1:-1:-1;;;99599:62:0;;24413:2:1;99599:62:0::2;::::0;::::2;24395:21:1::0;24452:2;24432:18;;;24425:30;24491:28;24471:18;;;24464:56;24537:18;;99599:62:0::2;24211:350:1::0;99599:62:0::2;99678:24;::::0;;;:15:::2;:24;::::0;;;;;:29;99674:174:::2;;99769:67;99793:16;99801:7;99793;:16::i;:::-;99811:24;::::0;;;:15:::2;:24;::::0;;;;;99769:10:::2;::::0;-1:-1:-1;;;;;99769:10:0::2;::::0;:67;:23:::2;:67::i;:::-;99860:14;99866:7;99860:5;:14::i;:::-;99894:24;::::0;;;:15:::2;:24;::::0;;;;;;;99887:31;;;99936:20:::2;:29:::0;;;;;99929:36;;;99983:12:::2;:21:::0;;;;;99976:28;;;;100020:21;;2918:25:1;;;100020:21:0::2;::::0;2891:18:1;100020:21:0::2;;;;;;;63881:20:::1;63275:1:::0;64401:7;:22;64218:213;63881:20:::1;99471:578:::0;;:::o;126236:277::-;117423:13;:11;:13::i;:::-;119355:3:::1;126338:11;:22;;126310:92;;;::::0;-1:-1:-1;;;126310:92:0;;24768:2:1;126310: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;;126310:92:0::1;24566:401:1::0;126310:92:0::1;126413:10;:24:::0;;;126476:29:::1;::::0;2918:25:1;;;126476:29:0::1;::::0;2906:2:1;2891:18;126476:29:0::1;2772:177:1::0;114220:2071:0;114301:7;114284;92121:16;92129:7;92121;:16::i;:::-;92113:49;;;;-1:-1:-1;;;92113:49:0;;;;;;;:::i;:::-;114343:13:::1;::::0;-1:-1:-1;;;;;114343:13:0::1;:27:::0;;:58:::1;;-1:-1:-1::0;114388:13:0::1;::::0;-1:-1:-1;;;;;114388:13:0::1;114374:10;:27;114343:58;114321:140;;;::::0;-1:-1:-1;;;114321:140:0;;25174:2:1;114321:140:0::1;::::0;::::1;25156:21:1::0;;;25193:18;;;25186:30;25252:34;25232:18;;;25225:62;25304:18;;114321:140:0::1;24972:356:1::0;114321:140:0::1;114470:20;114493:24;114509:7;114493:15;:24::i;:::-;114470:47:::0;-1:-1:-1;114538:17:0;114530:45:::1;;;::::0;-1:-1:-1;;;114530:45:0;;25535:2:1;114530:45:0::1;::::0;::::1;25517:21:1::0;25574:2;25554:18;;;25547:30;-1:-1:-1;;;25593:18:1;;;25586:45;25648:18;;114530:45:0::1;25333:339:1::0;114530:45:0::1;114603:31;114728:24:::0;;;:15:::1;:24;::::0;;;;;114603:31;;114680:118:::1;::::0;114771:12;114680:29:::1;:118::i;:::-;114588:210:::0;;-1:-1:-1;114588:210:0;-1:-1:-1;114811:28:0::1;114842:37;114588:210:::0;;114842:37:::1;:::i;:::-;114941:9;::::0;114811:68;;-1:-1:-1;114913:23:0::1;114811:68:::0;114934:2:::1;114913:23;:::i;:::-;114912:38;;114890:135;;;::::0;-1:-1:-1;;;114890:135:0;;25879:2:1;114890:135:0::1;::::0;::::1;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;;114890:135:0::1;25677:410:1::0;114890:135:0::1;115038:23;115247:19;;115243:2;:23;;;;:::i;:::-;115211:28;;:56;;;;:::i;:::-;115145:123;::::0;:23;:123:::1;:::i;:::-;115082:19;::::0;115078:23:::1;::::0;:2:::1;:23;:::i;:::-;115065:37;::::0;:9;:37:::1;:::i;:::-;115064:205;;;;:::i;:::-;115358:3;::::0;:25:::1;::::0;-1:-1:-1;;;115358:25:0;;115372:10:::1;115358:25;::::0;::::1;738:51:1::0;115038:231:0;;-1:-1:-1;115038:231:0;;-1:-1:-1;;;;;115358:3:0;;::::1;::::0;:13:::1;::::0;711:18:1;;115358:25:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;;115350:94;;;::::0;-1:-1:-1;;;115350:94:0;;26294:2:1;115350:94:0::1;::::0;::::1;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;;115350:94:0::1;26092:401:1::0;115350:94:0::1;115470:3;::::0;:64:::1;::::0;-1:-1:-1;;;;;115470:3:0::1;115491:10;115511:4;115518:15:::0;115470:20:::1;:64::i;:::-;115578:15;115561:13;;:33;;;;:::i;:::-;115545:13;:49:::0;115641:16:::1;115660:13;:11;:13::i;:::-;115799:24;::::0;;;:15:::1;:24;::::0;;;;;;115771:25;;;;;:52;115641:32;-1:-1:-1;115867:30:0::1;115882:15:::0;115867:12;:30:::1;:::i;:::-;115834;::::0;;;:20:::1;:30;::::0;;;;;;;:63;;;;115908:12:::1;:22:::0;;;;;115933:15:::1;115908:40:::0;;116011:24;;;:15:::1;:24:::0;;;;;116004:31;;;116053:29;;;;;;116046:36;;;;116187:68;;26729:25:1;;;26770:18;;;26763:34;;;116227:10:0::1;26813:18:1::0;;;26806:60;26897:2;26882:18;;26875:34;;;116187:68:0;;::::1;::::0;;;;26716:3:1;116187:68:0;;::::1;116273:8:::0;-1:-1:-1;;;;;;92173:1:0::1;114220:2071:::0;;;;:::o;95732:454::-;95790:7;95811:11;95824:12;95840:25;95857:7;95840:16;:25::i;:::-;95810:55;;;;95898:3;95888:7;;:13;;;;:::i;:::-;95878:7;:23;95930:13;;:19;;95946:3;;95930:19;:::i;:::-;95914:13;:35;95965:2;;:6;95962:77;;95988:21;;;;:12;:21;;;;;96012:15;95988:39;;95962:77;96118:29;;;;:20;:29;;;;;;:36;;;-1:-1:-1;96150:4:0;;95732:454;-1:-1:-1;95732:454:0:o;92635:110::-;92709:3;;:28;;-1:-1:-1;;;92709:28:0;;92731:4;92709:28;;;738:51:1;92682:7:0;;-1:-1:-1;;;;;92709:3:0;;:13;;711:18:1;;92709:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;92702:35;;92635:110;:::o;111411:2349::-;111507:6;92247:16;92255:7;92247;:16::i;:::-;92239:59;;;;-1:-1:-1;;;92239:59:0;;;;;;;:::i;:::-;92317:17;;;;:8;:17;;;;;;88542:5;-1:-1:-1;92317:33:0;;;:58;;-1:-1:-1;92374:1:0;92354:17;;;:8;:17;;;;;;:21;;92317:58;92309:90;;;;-1:-1:-1;;;92309:90:0;;;;;;;:::i;:::-;111536:7:::1;92121:16;92129:7;92121;:16::i;:::-;92113:49;;;;-1:-1:-1::0;;;92113:49:0::1;;;;;;;:::i;:::-;111583:13:::2;::::0;-1:-1:-1;;;;;111583:13:0::2;:27:::0;;:58:::2;;-1:-1:-1::0;111628:13:0::2;::::0;-1:-1:-1;;;;;111628:13:0::2;111614:10;:27;111583:58;111561:142;;;::::0;-1:-1:-1;;;111561:142:0;;27122:2:1;111561: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;;111561:142:0::2;26920:398:1::0;111561:142:0::2;111716:20;111739:24;111755:7;111739:15;:24::i;:::-;111789:31;111914:24:::0;;;:15:::2;:24;::::0;;;;;111716:47;;-1:-1:-1;111789:31:0;;;111866:118:::2;::::0;111716:47;111866:29:::2;:118::i;:::-;111774:210;;;;112003:12;112019:1;112003:17;;111995:45;;;::::0;-1:-1:-1;;;111995:45:0;;25535:2:1;111995: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;;111995:45:0::2;25333:339:1::0;111995:45:0::2;112053:28;112084:37;112111:9:::0;112084:23;:37:::2;:::i;:::-;112053:68;;112179:28;;112156:20;:51;112134:149;;;::::0;-1:-1:-1;;;112134:149:0;;27525:2:1;112134: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;;112134:149:0::2;27323:412:1::0;112134:149:0::2;112332:9;::::0;112304:25:::2;:20:::0;112327:2:::2;112304:25;:::i;:::-;:37;112296:80;;;::::0;-1:-1:-1;;;112296:80:0;;27942:2:1;112296:80:0::2;::::0;::::2;27924:21:1::0;27981:2;27961:18;;;27954:30;28020:31;28000:18;;;27993:59;28069:18;;112296:80:0::2;27740:353:1::0;112296:80:0::2;112418:19;::::0;112414:23:::2;::::0;:2:::2;:23;:::i;:::-;112401:37;::::0;:9;:37:::2;:::i;:::-;112389:49;;112451:16;112483:9;;112470;:23;;;;:::i;:::-;112451:42;;112538:7;;112526:8;:19;112522:72;;-1:-1:-1::0;112573:9:0;112522:72:::2;112628:3;::::0;:25:::2;::::0;-1:-1:-1;;;112628:25:0;;112642:10:::2;112628:25;::::0;::::2;738:51:1::0;112657:8:0;;-1:-1:-1;;;;;112628:3:0::2;::::0;:13:::2;::::0;711:18:1;;112628:25:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:37;;112606:136;;;::::0;-1:-1:-1;;;112606:136:0;;28300:2:1;112606: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;;112606:136:0::2;28098:413:1::0;112606:136:0::2;112788:8;112771:13;;:26;;;;:::i;:::-;112755:13;:42:::0;112810:20:::2;112833:21;112846:7:::0;112833:12:::2;:21::i;:::-;112810:44:::0;-1:-1:-1;112899:25:0::2;112915:8:::0;112899:12;:25:::2;:::i;:::-;112867:29;::::0;;;:20:::2;:29;::::0;;;;;;;:57;;;;113006:10:::2;::::0;113028:16;;;:8:::2;:16:::0;;;;;;;112867:29;;112993:52:::2;::::0;113018:8;;112993:12:::2;:52::i;:::-;113083:24;::::0;;;:15:::2;:24;::::0;;;;;112971:74;;-1:-1:-1;113083:40:0::2;::::0;112971:74;;113083:40:::2;:::i;:::-;113056:24;::::0;;;:15:::2;:24;::::0;;;;;:67;;;;113160:23;;;;;:39:::2;::::0;113187:11;;113160:39:::2;:::i;:::-;113134:23;::::0;;;:15:::2;:23;::::0;;;;;:65;;;;113307:24;;;;;:41:::2;::::0;113335:12;;113307:41:::2;:::i;:::-;113280:24;::::0;;;:15:::2;:24;::::0;;;;;;;:68;;;;113442:10:::2;113432:21:::0;;:9:::2;:21:::0;;;;:38:::2;::::0;113457:12;;113432:38:::2;:::i;:::-;113418:10;113408:21;::::0;;;:9:::2;:21;::::0;;;;:62;;;;113498:3:::2;::::0;:57:::2;::::0;-1:-1:-1;;;;;113498:3:0;;::::2;::::0;113539:4:::2;113546:8:::0;113498:20:::2;:57::i;:::-;113573:179;113602:7;113624:16;113632:7;113624;:16::i;:::-;113573:179;::::0;;28803:25:1;;;-1:-1:-1;;;;;28902:15:1;;;28897:2;28882:18;;28875:43;113655: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;113573:179:0::2;;;;;;;111550:2210;;;;;;;92410:1:::1;111411:2349:::0;;;:::o;37356:104::-;37412:13;37445:7;37438:14;;;;;:::i;102211:1365::-;102342:6;92247:16;92255:7;92247;:16::i;:::-;92239:59;;;;-1:-1:-1;;;92239:59:0;;;;;;;:::i;:::-;92317:17;;;;:8;:17;;;;;;88542:5;-1:-1:-1;92317:33:0;;;:58;;-1:-1:-1;92374:1:0;92354:17;;;:8;:17;;;;;;:21;;92317:58;92309:90;;;;-1:-1:-1;;;92309:90:0;;;;;;;:::i;:::-;102371:7:::1;91746:16;91754:7;91746;:16::i;:::-;91738:49;;;;-1:-1:-1::0;;;91738:49:0::1;;;;;;;:::i;:::-;91826:10;91806:16;91814:7:::0;91806::::1;:16::i;:::-;-1:-1:-1::0;;;;;91806:30:0::1;;91798:68;;;;-1:-1:-1::0;;;91798:68:0::1;;;;;;;:::i;:::-;63837:21:::2;:19;:21::i;:::-;102434:1:::3;102425:6;:10;102417:50;;;::::0;-1:-1:-1;;;102417:50:0;;29314:2:1;102417:50:0::3;::::0;::::3;29296:21:1::0;29353:2;29333:18;;;29326:30;29392:29;29372:18;;;29365:57;29439:18;;102417:50:0::3;29112:351:1::0;102417:50:0::3;102510:16;:14;:16::i;:::-;102500:6;:26;;102478:123;;;::::0;-1:-1:-1;;;102478:123:0;;29670:2:1;102478: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;;102478:123:0::3;29468:411:1::0;102478:123:0::3;102614:15;102659:6;102632:24;102648:7;102632:15;:24::i;:::-;:33;;;;:::i;:::-;102614:51;;102695:7;;102686;:16;;102678:63;;;::::0;-1:-1:-1;;;102678:63:0;;30086:2:1;102678: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;;102678:63:0::3;29884:398:1::0;102678:63:0::3;102772:18;102782:7;102772:9;:18::i;:::-;102762:7;:28;102754:37;;;::::0;::::3;;102846:24;::::0;;;:15:::3;:24;::::0;;;;;102828:52:::3;::::0;102872:7;102828:17:::3;:52::i;:::-;102806:160;;;::::0;-1:-1:-1;;;102806:160:0;;30489:2:1;102806: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;;102806:160:0::3;30287:422:1::0;102806:160:0::3;103036:7;;103025:6;103003:18;103013:7;103003:9;:18::i;:::-;103002:29;;;;:::i;:::-;103001:42;;102979:125;;;;-1:-1:-1::0;;;102979:125:0::3;;;;;;;:::i;:::-;103117:29;::::0;;;:20:::3;:29;::::0;;;;;;;:39;;;103204:10:::3;::::0;103225:16;;;:8:::3;:16:::0;;;;;;103191:51:::3;::::0;103204:10;103149:7;;103191:12:::3;:51::i;:::-;103282:24;::::0;;;:15:::3;:24;::::0;;;;;103169:73;;-1:-1:-1;103282:40:0::3;::::0;103169:73;;103282:40:::3;:::i;:::-;103255:24;::::0;;;:15:::3;:24;::::0;;;;;:67;;;;103359:23;;;;;:39:::3;::::0;103386:11;;103359:39:::3;:::i;:::-;103333:23;::::0;;;:15:::3;:23;::::0;;;;:65;103435:3:::3;::::0;:36:::3;::::0;-1:-1:-1;;;;;103435:3:0::3;103452:10;103464:6:::0;103435:16:::3;:36::i;:::-;103515:6;103498:13;;:24;;;;:::i;:::-;103482:13;:40:::0;103540:28:::3;::::0;;11657:25:1;;;11713:2;11698:18;;11691:34;;;103540:28:0::3;::::0;11630:18:1;103540:28:0::3;;;;;;;102404:1172;;63881:20:::2;63275:1:::0;64401:7;:22;64218:213;63881:20:::2;92410:1:::1;102211:1365:::0;;;;:::o;94150:114::-;94227:14;;:29;;;-1:-1:-1;;;94227:29:0;;;;94200:7;;-1:-1:-1;;;;;94227:14:0;;:27;;:29;;;;;;;;;;;;;;:14;:29;;;;;;;;;;;;;;123276:231;117423:13;:11;:13::i;:::-;-1:-1:-1;;;;;123355:19:0;::::1;123347:69;;;::::0;-1:-1:-1;;;123347:69:0;;30916:2:1;123347: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;;123347:69:0::1;30714:400:1::0;123347:69:0::1;123427:13;:21:::0;;-1:-1:-1;;;;;;123427:21:0::1;-1:-1:-1::0;;;;;123427:21:0;::::1;::::0;;::::1;::::0;;;123464:35:::1;::::0;738:51:1;;;123464:35:0::1;::::0;726:2:1;711:18;123464:35:0::1;592:203:1::0;38942:155:0;39037:52;16339:10;39070:8;39080;39037:18;:52::i;121462:149::-;117423:13;:11;:13::i;:::-;121541:20;;::::1;::::0;:10:::1;::::0;:20:::1;::::0;::::1;::::0;::::1;:::i;:::-;;121577:26;121595:7;121577:26;;;;;;:::i;93237:252::-:0;93373:10;;:35;;-1:-1:-1;;;93373:35:0;;93402:4;93373:35;;;738:51:1;93291:7:0;;-1:-1:-1;;;;;93373:10:0;;:20;;711:18:1;;93373:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;93342:28;;93320:19;:17;:19::i;:::-;:50;;;;:::i;:::-;:88;;;;:::i;110310:702::-;110394:4;110376:7;92121:16;92129:7;92121;:16::i;:::-;92113:49;;;;-1:-1:-1;;;92113:49:0;;;;;;;:::i;:::-;110413:20:::1;110436:18;110446:7;110436:9;:18::i;:::-;110471:24;::::0;;;:15:::1;:24;::::0;;;;;110413:41;;-1:-1:-1;110471:29:0;;:50:::1;;-1:-1:-1::0;110504:17:0;;110471:50:::1;110467:95;;;110545:5;110538:12;;;;;110467:95;110589:31;110714:24:::0;;;:15:::1;:24;::::0;;;;;110589:31;;110666:118:::1;::::0;110757:12;110666:29:::1;:118::i;:::-;110574:210:::0;;-1:-1:-1;110574:210:0;-1:-1:-1;110797:28:0::1;110828:37;110574:210:::0;;110828:37:::1;:::i;:::-;110911:9;::::0;110797:68;;-1:-1:-1;110883:23:0::1;110797:68:::0;110904:2:::1;110883:23;:::i;:::-;110882:38;110878:127;;110944:4;110937:11;;;;;;;;110878:127;110988:5;110981:12;;;;;;;;109358:753:::0;109479:4;109452:7;92121:16;92129:7;92121;:16::i;:::-;92113:49;;;;-1:-1:-1;;;92113:49:0;;;;;;;:::i;:::-;109501:20:::1;109524:18;109534:7;109524:9;:18::i;:::-;109559:24;::::0;;;:15:::1;:24;::::0;;;;;109501:41;;-1:-1:-1;109559:29:0;;:50:::1;;-1:-1:-1::0;109592:17:0;;109559:50:::1;109555:95;;;109633:5;109626:12;;;;;109555:95;109677:31;109802:24:::0;;;:15:::1;:24;::::0;;;;;109677:31;;109754:118:::1;::::0;109845:12;109754:29:::1;:118::i;:::-;109662:210:::0;;-1:-1:-1;109662:210:0;-1:-1:-1;109885:28:0::1;109916:37;109662:210:::0;;109916:37:::1;:::i;:::-;109885:68;;109991:28;;109968:20;:51;109964:140;;;110043:4;110036:11;;;;;;;;40061:322:::0;40235:41;16339:10;40268:7;40235:18;:41::i;:::-;40227:99;;;;-1:-1:-1;;;40227:99:0;;;;;;;:::i;:::-;40337:38;40351:4;40357:2;40361:7;40370:4;40337:13;:38::i;:::-;40061:322;;;;:::o;129959:125::-;117423:13;:11;:13::i;:::-;130025:6:::1;:14:::0;;-1:-1:-1;;;;;;130025:14:0::1;-1:-1:-1::0;;;;;130025:14:0;::::1;::::0;;::::1;::::0;;;130055:21:::1;::::0;738:51:1;;;130055:21:0::1;::::0;726:2:1;711:18;130055:21:0::1;592:203:1::0;61109:370:0;61182:13;61208:23;61223:7;61208:14;:23::i;:::-;61244:21;61268:10;:8;:10::i;:::-;61292:6;;61244:34;;-1:-1:-1;61292:6:0;;61289:183;;;61345:1;61327:7;61321:21;:25;:93;;;;;;;;;;;;;;;;;61373:7;61382:25;61399:7;61382:16;:25::i;:::-;61356:52;;;;;;;;;:::i;:::-;;;;;;;;;;;;;61321:93;61314:100;61109:370;-1:-1:-1;;;61109:370:0:o;127752:311::-;127834:9;92247:16;92255:7;92247;:16::i;:::-;92239:59;;;;-1:-1:-1;;;92239:59:0;;;;;;;:::i;:::-;92317:17;;;;:8;:17;;;;;;88542:5;-1:-1:-1;92317:33:0;;;:58;;-1:-1:-1;92374:1:0;92354:17;;;:8;:17;;;;;;:21;;92317:58;92309:90;;;;-1:-1:-1;;;92309:90:0;;;;;;;:::i;:::-;127860:9:::1;91746:16;91754:7;91746;:16::i;:::-;91738:49;;;;-1:-1:-1::0;;;91738:49:0::1;;;;;;;:::i;:::-;91826:10;91806:16;91814:7:::0;91806::::1;:16::i;:::-;-1:-1:-1::0;;;;;91806:30:0::1;;91798:68;;;;-1:-1:-1::0;;;91798:68:0::1;;;;;;;:::i;:::-;127901:1:::2;127890:8;:12;:40;;;;;88542:5;127906:8;:24;;127890:40;127882:80;;;::::0;-1:-1:-1;;;127882:80:0;;31796:2:1;127882:80:0::2;::::0;::::2;31778:21:1::0;31835:2;31815:18;;;31808:30;31874:29;31854:18;;;31847:57;31921:18;;127882:80:0::2;31594:351:1::0;127882:80:0::2;127973:19;::::0;;;:8:::2;:19;::::0;;;;;;;;:30;;;128019:36;;11657:25:1;;;11698:18;;;11691:34;;;128019:36:0::2;::::0;11630:18:1;128019:36:0::2;;;;;;;;92410:1:::1;127752:311:::0;;;:::o;105595:266::-;63837:21;:19;:21::i;:::-;105665:10:::1;105655:21;::::0;;;:9:::1;:21;::::0;;;;;105647:67:::1;;;::::0;-1:-1:-1;;;105647:67:0;;21381:2:1;105647:67:0::1;::::0;::::1;21363:21:1::0;21420:2;21400:18;;;21393:30;21459;21439:18;;;21432:58;21507:18;;105647:67:0::1;21179:352:1::0;105647:67:0::1;105752:10;105725:14;105742:21:::0;;;:9:::1;:21;::::0;;;;;;105774:25;;;105810:10:::1;::::0;105742:21;;105810:43:::1;::::0;-1:-1:-1;;;;;105810:10:0::1;::::0;105742:21;105810:23:::1;:43::i;:::-;105636:225;63881:20:::0;63275:1;64401:7;:22;64218:213;103584:405;103715:6;92247:16;92255:7;92247;:16::i;:::-;92239:59;;;;-1:-1:-1;;;92239:59:0;;;;;;;:::i;:::-;92317:17;;;;:8;:17;;;;;;88542:5;-1:-1:-1;92317:33:0;;;:58;;-1:-1:-1;92374:1:0;92354:17;;;:8;:17;;;;;;:21;;92317:58;92309:90;;;;-1:-1:-1;;;92309:90:0;;;;;;;:::i;:::-;103735:7:::1;92121:16;92129:7;92121;:16::i;:::-;92113:49;;;;-1:-1:-1::0;;;92113:49:0::1;;;;;;;:::i;:::-;91949:6:::2;::::0;-1:-1:-1;;;;;91949:6:0::2;:20:::0;;:44:::2;;-1:-1:-1::0;91987:6:0::2;::::0;-1:-1:-1;;;;;91987:6:0::2;91973:10;:20;91949:44;91927:109;;;;-1:-1:-1::0;;;91927:109:0::2;;;;;;;:::i;:::-;103800:15:::3;103788:8;:27;;103766:111;;;::::0;-1:-1:-1;;;103766:111:0;;32152:2:1;103766: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;;103766:111:0::3;31950:398:1::0;103766:111:0::3;103890:15;103908:24;103924:7;103908:15;:24::i;:::-;103890:42;;103943:38;103956:7;103965;103974:6;103943:12;:38::i;:::-;103755:234;92410:1:::1;103584:405:::0;;;;:::o;95375:151::-;95432:7;95455:12;95471:25;95488:7;95471:16;:25::i;108578:585::-;108708:7;108681;92121:16;92129:7;92121;:16::i;:::-;92113:49;;;;-1:-1:-1;;;92113:49:0;;;;;;;:::i;:::-;108733:20:::1;108756:18;108766:7;108756:9;:18::i;:::-;108791:24;::::0;;;:15:::1;:24;::::0;;;;;108733:41;;-1:-1:-1;108791:29:0;;:50:::1;;-1:-1:-1::0;108824:17:0;;108791:50:::1;108787:91;;;108865:1;108858:8;;;;;108787:91;108903:31;109028:24:::0;;;:15:::1;:24;::::0;;;;;108903:31;;108980:118:::1;::::0;109071:12;108980:29:::1;:118::i;:::-;108888:210:::0;;-1:-1:-1;108888:210:0;-1:-1:-1;109118:37:0::1;108888:210:::0;;109118:37:::1;:::i;:::-;109111:44:::0;108578:585;-1:-1:-1;;;;;;108578:585:0:o;129808:143::-;117423:13;:11;:13::i;:::-;129885:18:::1;:7;129895:8:::0;;129885:18:::1;:::i;:::-;;129919:24;129935:7;129919:24;;;;;;:::i;122233:206::-:0;117423:13;:11;:13::i;:::-;122313:15;122305:50:::1;;;::::0;-1:-1:-1;;;122305:50:0;;33872:2:1;122305: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;;122305:50:0::1;33670:346:1::0;122305:50:0::1;122366:9;:22:::0;;;122404:27:::1;::::0;2918:25:1;;;122404:27:0::1;::::0;2906:2:1;2891:18;122404:27:0::1;2772:177:1::0;100327:454:0;100426:7;92121:16;92129:7;92121;:16::i;:::-;92113:49;;;;-1:-1:-1;;;92113:49:0;;;;;;;:::i;:::-;91949:6:::1;::::0;-1:-1:-1;;;;;91949:6:0::1;:20:::0;;:44:::1;;-1:-1:-1::0;91987:6:0::1;::::0;-1:-1:-1;;;;;91987:6:0::1;91973:10;:20;91949:44;91927:109;;;;-1:-1:-1::0;;;91927:109:0::1;;;;;;;:::i;:::-;100471:21:::2;100495:24:::0;;;:15:::2;:24;::::0;;;;;:35:::2;::::0;100523:6;;100495:35:::2;:::i;:::-;100568:24;::::0;;;:15:::2;:24;::::0;;;;;100471:59;;-1:-1:-1;100551:41:0;::::2;;100543:50;;;::::0;::::2;;100606:24;::::0;;;:15:::2;:24;::::0;;;;:40;;;100659:10:::2;::::0;:62:::2;::::0;-1:-1:-1;;;;;100659:10:0::2;100687;100707:4;100714:6:::0;100659:27:::2;:62::i;:::-;100739:34;::::0;;11657:25:1;;;11713:2;11698:18;;11691:34;;;100739::0::2;::::0;11630:18:1;100739:34:0::2;11483:248:1::0;118443:201:0;117423:13;:11;:13::i;:::-;-1:-1:-1;;;;;118532:22:0;::::1;118524:73;;;::::0;-1:-1:-1;;;118524:73:0;;34223:2:1;118524: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;;118524:73:0::1;34021:402:1::0;118524:73:0::1;118608:28;118627:8;118608:18;:28::i;121808:233::-:0;117423:13;:11;:13::i;:::-;121902:4:::1;121888:10;:18;;121880:77;;;::::0;-1:-1:-1;;;121880:77:0;;34630:2:1;121880: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;;121880:77:0::1;34428:410:1::0;121880:77:0::1;121968:9;:22:::0;;;122006:27:::1;::::0;2918:25:1;;;122006:27:0::1;::::0;2906:2:1;2891:18;122006:27:0::1;2772:177:1::0;55350:915:0;55527:61;55554:4;55560:2;55564:12;55578:9;55527:26;:61::i;:::-;55617:1;55605:9;:13;55601:222;;;55748:63;;-1:-1:-1;;;55748:63:0;;35045:2:1;55748: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;;55748:63:0;34843:417:1;55601:222:0;55853:12;-1:-1:-1;;;;;55882:18:0;;55878:187;;55917:40;55949:7;57092:10;:17;;57065:24;;;;:15;:24;;;;;:44;;;57120:24;;;;;;;;;;;;56988:164;55917:40;55878:187;;;55987:2;-1:-1:-1;;;;;55979:10:0;:4;-1:-1:-1;;;;;55979:10:0;;55975:90;;56006:47;56039:4;56045:7;56006:32;:47::i;:::-;-1:-1:-1;;;;;56079:16:0;;56075:183;;56112:45;56149:7;56112:36;:45::i;:::-;56075:183;;;56185:4;-1:-1:-1;;;;;56179:10:0;:2;-1:-1:-1;;;;;56179:10:0;;56175:83;;56206:40;56234:2;56238:7;56206:27;:40::i;50802:410::-;50992:1;50980:9;:13;50976:229;;;-1:-1:-1;;;;;51014:18:0;;;51010:87;;-1:-1:-1;;;;;51053:15:0;;;;;;:9;:15;;;;;:28;;51072:9;;51053:15;:28;;51072:9;;51053:28;:::i;:::-;;;;-1:-1:-1;;51010:87:0;-1:-1:-1;;;;;51115:16:0;;;51111:83;;-1:-1:-1;;;;;51152:13:0;;;;;;:9;:13;;;;;:26;;51169:9;;51152:13;:26;;51169:9;;51152:26;:::i;:::-;;;;-1:-1:-1;;50802:410:0;;;;:::o;63917:293::-;63319:1;64051:7;;:19;;64043:63;;;;-1:-1:-1;;;64043:63:0;;35467:2:1;64043:63:0;;;35449:21:1;35506:2;35486:18;;;35479:30;35545:33;35525:18;;;35518:61;35596:18;;64043:63:0;35265:355:1;64043:63:0;63319:1;64184:7;:18;63917:293::o;54213:224::-;54315:4;-1:-1:-1;;;;;;54339:50:0;;-1:-1:-1;;;54339:50:0;;:90;;;54393:36;54417:11;54393:23;:36::i;117702:132::-;117610:6;;-1:-1:-1;;;;;117610:6:0;16339:10;117766:23;117758:68;;;;-1:-1:-1;;;117758:68:0;;35827:2:1;117758:68:0;;;35809:21:1;;;35846:18;;;35839:30;35905:34;35885:18;;;35878:62;35957:18;;117758:68:0;35625:356:1;48518:135:0;48600:16;48608:7;48600;:16::i;:::-;48592:53;;;;-1:-1:-1;;;48592:53:0;;21028:2:1;48592:53:0;;;21010:21:1;21067:2;21047:18;;;21040:30;-1:-1:-1;;;21086:18:1;;;21079:54;21150:18;;48592:53:0;20826:348:1;47797:174:0;47872:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;47872:29:0;-1:-1:-1;;;;;47872:29:0;;;;;;;;:24;;47926:23;47872:24;47926:14;:23::i;:::-;-1:-1:-1;;;;;47917:46:0;;;;;;;;;;;47797:174;;:::o;96549:713::-;96673:7;96682;96715:19;:17;:19::i;:::-;96707:33;;;;;;96799:23;96887:28;;96852:19;:17;:19::i;:::-;96825:46;;:11;:46;:::i;:::-;:90;;;;:::i;:::-;96799:116;;96955:11;96936:15;:30;;96928:39;;;;;;96980:17;97000:29;88932:3;97000:5;:29;:::i;:::-;96980:49;;97063:5;97050:9;:18;;97042:27;;;;;;97082:31;97116:21;:15;97134:3;97116:21;:::i;:::-;97082:55;;97182:15;97156:23;:41;97148:50;;;;;;97219:23;97244:9;;-1:-1:-1;96549:713:0;-1:-1:-1;;;;96549:713:0:o;42416:264::-;42509:4;42526:13;42542:23;42557:7;42542:14;:23::i;:::-;42526:39;;42595:5;-1:-1:-1;;;;;42584:16:0;:7;-1:-1:-1;;;;;42584:16:0;;:52;;;-1:-1:-1;;;;;;39289:25:0;;;39265:4;39289:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;42604:32;42584:87;;;;42664:7;-1:-1:-1;;;;;42640:31:0;:20;42652:7;42640:11;:20::i;:::-;-1:-1:-1;;;;;42640:31:0;;42576:96;42416:264;-1:-1:-1;;;;42416:264:0:o;46415:1263::-;46574:4;-1:-1:-1;;;;;46547:31:0;:23;46562:7;46547:14;:23::i;:::-;-1:-1:-1;;;;;46547:31:0;;46539:81;;;;-1:-1:-1;;;46539:81:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;46639:16:0;;46631:65;;;;-1:-1:-1;;;46631:65:0;;36594:2:1;46631: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;;46631:65:0;36392:400:1;46631:65:0;46709:42;46730:4;46736:2;46740:7;46749:1;46709:20;:42::i;:::-;46881:4;-1:-1:-1;;;;;46854:31:0;:23;46869:7;46854:14;:23::i;:::-;-1:-1:-1;;;;;46854:31:0;;46846:81;;;;-1:-1:-1;;;46846:81:0;;;;;;;:::i;:::-;46999:24;;;;:15;:24;;;;;;;;46992:31;;-1:-1:-1;;;;;;46992:31:0;;;;;;-1:-1:-1;;;;;47475:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;47475:20:0;;;47510:13;;;;;;;;;:18;;46992:31;47510:18;;;47550:16;;;:7;:16;;;;;;:21;;;;;;;;;;47589:27;;47015:7;;47589:27;;;38287:346;38217:416;;:::o;42121:128::-;42186:4;41784:16;;;:7;:16;;;;;;-1:-1:-1;;;;;41784:16:0;42210:31;;;42121:128::o;70631:248::-;70802:68;;-1:-1:-1;;;;;37055:15:1;;;70802:68:0;;;37037:34:1;37107:15;;37087:18;;;37080:43;37139:18;;;37132:34;;;70775:96:0;;70795:5;;-1:-1:-1;;;70825:27:0;36972:18:1;;70802:68:0;;;;-1:-1:-1;;70802:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;70802:68:0;-1:-1:-1;;;;;;70802:68:0;;;;;;;;;;70775:19;:96::i;44014:942::-;-1:-1:-1;;;;;44094:16:0;;44086:61;;;;-1:-1:-1;;;44086:61:0;;37379:2:1;44086:61:0;;;37361:21:1;;;37398:18;;;37391:30;37457:34;37437:18;;;37430:62;37509:18;;44086:61:0;37177:356:1;44086:61:0;44167:16;44175:7;44167;:16::i;:::-;44166:17;44158:58;;;;-1:-1:-1;;;44158:58:0;;37740:2:1;44158:58:0;;;37722:21:1;37779:2;37759:18;;;37752:30;37818;37798:18;;;37791:58;37866:18;;44158:58:0;37538:352:1;44158:58:0;44229:48;44258:1;44262:2;44266:7;44275:1;44229:20;:48::i;:::-;44376:16;44384:7;44376;:16::i;:::-;44375:17;44367:58;;;;-1:-1:-1;;;44367:58:0;;37740:2:1;44367:58:0;;;37722:21:1;37779:2;37759:18;;;37752:30;37818;37798:18;;;37791:58;37866:18;;44367:58:0;37538:352:1;44367:58:0;-1:-1:-1;;;;;44774:13:0;;;;;;:9;:13;;;;;;;;:18;;44791:1;44774:18;;;44816:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;44816:21:0;;;;;44855:33;44824:7;;44774:13;;44855:33;;44774:13;;44855:33;99471:578;;:::o;70412:211::-;70556:58;;-1:-1:-1;;;;;9035:32:1;;70556:58:0;;;9017:51:1;9084:18;;;9077:34;;;70529:86:0;;70549:5;;-1:-1:-1;;;70579:23:0;8990:18:1;;70556:58:0;8843:274:1;118804:191:0;118897:6;;;-1:-1:-1;;;;;118914:17:0;;;-1:-1:-1;;;;;;118914:17:0;;;;;;;118947:40;;118897:6;;;118914:17;118897:6;;118947:40;;118878:16;;118947:40;118867:128;118804:191;:::o;45295:783::-;45355:13;45371:23;45386:7;45371:14;:23::i;:::-;45355:39;;45407:51;45428:5;45443:1;45447:7;45456:1;45407:20;:51::i;:::-;45571:23;45586:7;45571:14;:23::i;:::-;45642:24;;;;:15;:24;;;;;;;;45635:31;;-1:-1:-1;;;;;;45635:31:0;;;;;;-1:-1:-1;;;;;45887:16:0;;;;;:9;:16;;;;;:21;;-1:-1:-1;;45887:21:0;;;45937:16;;;:7;:16;;;;;;45930:23;;;;;;;45971:36;45563:31;;-1:-1:-1;45658:7:0;;45971:36;;45642:24;;45971:36;99471:578;;:::o;94566:577::-;94659:7;94756:29;;;:20;:29;;;;;;;;;94826:12;:21;;;;;;94659:7;;94715:15;;94659:7;;94826:26;;;;:36;;;94861:1;94856:2;;:6;94826:36;94822:285;;;94879:17;94913:21;;;:12;:21;;;;;;94899:35;;:11;:35;:::i;:::-;94879:55;;94951:18;88542:5;88582:8;94988:9;94980:4;94975:2;;:9;;;;:::i;:::-;94974:23;;;;:::i;:::-;94973:36;;;;:::i;:::-;94972:53;;;;:::i;:::-;94951:74;-1:-1:-1;94951:74:0;;-1:-1:-1;95078:17:0;95091:4;94951:74;95078:17;:::i;:::-;95071:24;;94864:243;;94822:285;95125:3;95130:4;;-1:-1:-1;94566:577:0;-1:-1:-1;;;94566:577:0:o;48114:315::-;48269:8;-1:-1:-1;;;;;48260:17:0;:5;-1:-1:-1;;;;;48260:17:0;;;48252:55;;;;-1:-1:-1;;;48252:55:0;;38097:2:1;48252:55:0;;;38079:21:1;38136:2;38116:18;;;38109:30;38175:27;38155:18;;;38148:55;38220:18;;48252:55:0;37895:349:1;48252:55:0;-1:-1:-1;;;;;48318:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;48318:46:0;;;;;;;;;;48380:41;;540::1;;;48380::0;;513:18:1;48380:41:0;;;;;;;48114:315;;;:::o;41264:313::-;41420:28;41430:4;41436:2;41440:7;41420:9;:28::i;:::-;41467:47;41490:4;41496:2;41500:7;41509:4;41467:22;:47::i;:::-;41459:110;;;;-1:-1:-1;;;41459:110:0;;;;;;;:::i;60930:108::-;60990:13;61023:7;61016:14;;;;;:::i;13680:716::-;13736:13;13787:14;13804:17;13815:5;13804:10;:17::i;:::-;13824:1;13804:21;13787:38;;13840:20;13874:6;13863:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13863:18:0;-1:-1:-1;13840:41:0;-1:-1:-1;14005:28:0;;;14021:2;14005:28;14062:288;-1:-1:-1;;14094:5:0;-1:-1:-1;;;14231:2:0;14220:14;;14215:30;14094:5;14202:44;14292:2;14283:11;;;-1:-1:-1;14317:10:0;14313:21;;14329:5;;14313:21;14062:288;;;-1:-1:-1;14371:6:0;13680:716;-1:-1:-1;;;13680:716:0:o;57779:988::-;58045:22;58095:1;58070:22;58087:4;58070:16;:22::i;:::-;:26;;;;:::i;:::-;58107:18;58128:26;;;:17;:26;;;;;;58045:51;;-1:-1:-1;58261:28:0;;;58257:328;;-1:-1:-1;;;;;58328:18:0;;58306:19;58328:18;;;:12;:18;;;;;;;;:34;;;;;;;;;58379:30;;;;;;:44;;;58496:30;;:17;:30;;;;;:43;;;58257:328;-1:-1:-1;58681:26:0;;;;:17;:26;;;;;;;;58674:33;;;-1:-1:-1;;;;;58725:18:0;;;;;:12;:18;;;;;:34;;;;;;;58718:41;57779:988::o;59062:1079::-;59340:10;:17;59315:22;;59340:21;;59360:1;;59340:21;:::i;:::-;59372:18;59393:24;;;:15;:24;;;;;;59766:10;:26;;59315:46;;-1:-1:-1;59393:24:0;;59315:46;;59766:26;;;;;;:::i;:::-;;;;;;;;;59744:48;;59830:11;59805:10;59816;59805:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;59910:28;;;:15;:28;;;;;;;:41;;;60082:24;;;;;60075:31;60117:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;59133:1008;;;59062:1079;:::o;56566:221::-;56651:14;56668:20;56685:2;56668:16;:20::i;:::-;-1:-1:-1;;;;;56699:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;56744:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;56566:221:0:o;36259:305::-;36361:4;-1:-1:-1;;;;;;36398:40:0;;-1:-1:-1;;;36398:40:0;;:105;;-1:-1:-1;;;;;;;36455:48:0;;-1:-1:-1;;;36455:48:0;36398:105;:158;;;-1:-1:-1;;;;;;;;;;23482:40:0;;;36520:36;23373:157;60374:211;60521:56;60548:4;60554:2;60558:7;60567:9;60521:26;:56::i;73479:716::-;73903:23;73929:69;73957:4;73929:69;;;;;;;;;;;;;;;;;73937:5;-1:-1:-1;;;;;73929:27:0;;;:69;;;;;:::i;:::-;74013:17;;73903:95;;-1:-1:-1;74013:21:0;74009:179;;74110:10;74099:30;;;;;;;;;;;;:::i;:::-;74091:85;;;;-1:-1:-1;;;74091:85:0;;39002:2:1;74091: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;;74091:85:0;38800:406:1;49217:853:0;49371:4;-1:-1:-1;;;;;49392:13:0;;26948:19;:23;49388:675;;49428:71;;-1:-1:-1;;;49428:71:0;;-1:-1:-1;;;;;49428:36:0;;;;;:71;;16339:10;;49479:4;;49485:7;;49494:4;;49428:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49428:71:0;;;;;;;;-1:-1:-1;;49428:71:0;;;;;;;;;;;;:::i;:::-;;;49424:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49669:13:0;;49665:328;;49712:60;;-1:-1:-1;;;49712:60:0;;;;;;;:::i;49665:328::-;49943:6;49937:13;49928:6;49924:2;49920:15;49913:38;49424:584;-1:-1:-1;;;;;;49550:51:0;-1:-1:-1;;;49550:51:0;;-1:-1:-1;49543:58:0;;49388:675;-1:-1:-1;50047:4:0;49217:853;;;;;;:::o;10542:922::-;10595:7;;-1:-1:-1;;;10673:15:0;;10669:102;;-1:-1:-1;;;10709:15:0;;;-1:-1:-1;10753:2:0;10743:12;10669:102;10798:6;10789:5;:15;10785:102;;10834:6;10825:15;;;-1:-1:-1;10869:2:0;10859:12;10785:102;10914:6;10905:5;:15;10901:102;;10950:6;10941:15;;;-1:-1:-1;10985:2:0;10975:12;10901:102;11030:5;11021;:14;11017:99;;11065:5;11056:14;;;-1:-1:-1;11099:1:0;11089:11;11017:99;11143:5;11134;:14;11130:99;;11178:5;11169:14;;;-1:-1:-1;11212:1:0;11202:11;11130:99;11256:5;11247;:14;11243:99;;11291:5;11282:14;;;-1:-1:-1;11325:1:0;11315:11;11243:99;11369:5;11360;:14;11356:66;;11405:1;11395:11;11450:6;10542:922;-1:-1:-1;;10542:922:0:o;29410:229::-;29547:12;29579:52;29601:6;29609:4;29615:1;29618:12;29547;30818;30832:23;30859:6;-1:-1:-1;;;;;30859:11:0;30878:5;30885:4;30859:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30817:73;;;;30908:69;30935:6;30943:7;30952:10;30964:12;30908:26;:69::i;:::-;30901:76;30530:455;-1:-1:-1;;;;;;;30530:455:0:o;33103:644::-;33288:12;33317:7;33313:427;;;33345:17;;33341:290;;-1:-1:-1;;;;;26948:19:0;;;33555:60;;;;-1:-1:-1;;;33555:60:0;;40847:2:1;33555:60:0;;;40829:21:1;40886:2;40866:18;;;40859:30;40925:31;40905:18;;;40898:59;40974:18;;33555:60:0;40645:353:1;33555:60:0;-1:-1:-1;33652:10:0;33645:17;;33313:427;33695:33;33703:10;33715:12;34450:17;;:21;34446:388;;34682:10;34676:17;34739:15;34726:10;34722:2;34718:19;34711:44;34446:388;34809:12;34802:20;;-1:-1:-1;;;34802: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://6f5de23012f434ce15ccff03ed6390624a6831140491a8e963078f1f788d21c3