ERC-20
Overview
Max Total Supply
21,000,000 CBIT
Holders
227
Market
Price
$0.00 @ 0.000000 MATIC
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
Cubit
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at polygonscan.com on 2022-01-23 */ // File: @openzeppelin/contracts/utils/math/SafeCast.sol // OpenZeppelin Contracts v4.4.1 (utils/math/SafeCast.sol) pragma solidity ^0.8.0; /** * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such an operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. * * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing * all math on `uint256` and `int256` and then downcasting. */ library SafeCast { /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits */ function toUint224(uint256 value) internal pure returns (uint224) { require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits"); return uint224(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits"); return uint128(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits */ function toUint96(uint256 value) internal pure returns (uint96) { require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits"); return uint96(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits"); return uint64(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits"); return uint32(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits"); return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits. */ function toUint8(uint256 value) internal pure returns (uint8) { require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits"); return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { require(value >= 0, "SafeCast: value must be positive"); return uint256(value); } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits * * _Available since v3.1._ */ function toInt128(int256 value) internal pure returns (int128) { require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits"); return int128(value); } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits * * _Available since v3.1._ */ function toInt64(int256 value) internal pure returns (int64) { require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits"); return int64(value); } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits * * _Available since v3.1._ */ function toInt32(int256 value) internal pure returns (int32) { require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits"); return int32(value); } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits * * _Available since v3.1._ */ function toInt16(int256 value) internal pure returns (int16) { require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits"); return int16(value); } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits. * * _Available since v3.1._ */ function toInt8(int256 value) internal pure returns (int8) { require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits"); return int8(value); } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256"); return int256(value); } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @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] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File: @openzeppelin/contracts/utils/cryptography/ECDSA.sol // OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } // File: @openzeppelin/contracts/utils/cryptography/draft-EIP712.sol // OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol) pragma solidity ^0.8.0; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } } // File: @openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol // 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/utils/Counters.sol // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts v4.4.1 (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @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 / b + (a % b == 0 ? 0 : 1); } } // File: @openzeppelin/contracts/utils/Arrays.sol // OpenZeppelin Contracts v4.4.1 (utils/Arrays.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to array types. */ library Arrays { /** * @dev Searches a sorted `array` and returns the first index that contains * a value greater or equal to `element`. If no such index exists (i.e. all * values in the array are strictly less than `element`), the array length is * returned. Time complexity O(log n). * * `array` is expected to be sorted in ascending order, and to contain no * repeated elements. */ function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) { if (array.length == 0) { return 0; } uint256 low = 0; uint256 high = array.length; while (low < high) { uint256 mid = Math.average(low, high); // Note that mid will always be strictly less than high (i.e. it will be a valid array index) // because Math.average rounds down (it does integer division with truncation). if (array[mid] > element) { high = mid; } else { low = mid + 1; } } // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound. if (low > 0 && array[low - 1] == element) { return low - 1; } else { return low; } } } // File: @openzeppelin/contracts/utils/Context.sol // 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/security/Pausable.sol // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount ) external returns (bool); /** * @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); } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // 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/ERC20.sol // OpenZeppelin Contracts v4.4.1 (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.zeppelin.solutions/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: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, 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}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), 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}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - 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) { _approve(_msgSender(), spender, _allowances[_msgSender()][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) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * 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: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, 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; _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; } _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 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: @openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-ERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Implementation 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. * * _Available since v3.4._ */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { using Counters for Counters.Counter; mapping(address => Counters.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private immutable _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") {} /** * @dev See {IERC20Permit-permit}. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. * * _Available since v4.1._ */ function _useNonce(address owner) internal virtual returns (uint256 current) { Counters.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } } // File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Votes.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Votes.sol) pragma solidity ^0.8.0; /** * @dev Extension of ERC20 to support Compound-like voting and delegation. This version is more generic than Compound's, * and supports token supply up to 2^224^ - 1, while COMP is limited to 2^96^ - 1. * * NOTE: If exact COMP compatibility is required, use the {ERC20VotesComp} variant of this module. * * This extension keeps a history (checkpoints) of each account's vote power. Vote power can be delegated either * by calling the {delegate} function directly, or by providing a signature to be used with {delegateBySig}. Voting * power can be queried through the public accessors {getVotes} and {getPastVotes}. * * By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it * requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked. * Enabling self-delegation can easily be done by overriding the {delegates} function. Keep in mind however that this * will significantly increase the base gas cost of transfers. * * _Available since v4.2._ */ abstract contract ERC20Votes is ERC20Permit { struct Checkpoint { uint32 fromBlock; uint224 votes; } bytes32 private constant _DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)"); mapping(address => address) private _delegates; mapping(address => Checkpoint[]) private _checkpoints; Checkpoint[] private _totalSupplyCheckpoints; /** * @dev Emitted when an account changes their delegate. */ event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /** * @dev Emitted when a token transfer or delegate change results in changes to an account's voting power. */ event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance); /** * @dev Get the `pos`-th checkpoint for `account`. */ function checkpoints(address account, uint32 pos) public view virtual returns (Checkpoint memory) { return _checkpoints[account][pos]; } /** * @dev Get number of checkpoints for `account`. */ function numCheckpoints(address account) public view virtual returns (uint32) { return SafeCast.toUint32(_checkpoints[account].length); } /** * @dev Get the address `account` is currently delegating to. */ function delegates(address account) public view virtual returns (address) { return _delegates[account]; } /** * @dev Gets the current votes balance for `account` */ function getVotes(address account) public view returns (uint256) { uint256 pos = _checkpoints[account].length; return pos == 0 ? 0 : _checkpoints[account][pos - 1].votes; } /** * @dev Retrieve the number of votes for `account` at the end of `blockNumber`. * * Requirements: * * - `blockNumber` must have been already mined */ function getPastVotes(address account, uint256 blockNumber) public view returns (uint256) { require(blockNumber < block.number, "ERC20Votes: block not yet mined"); return _checkpointsLookup(_checkpoints[account], blockNumber); } /** * @dev Retrieve the `totalSupply` at the end of `blockNumber`. Note, this value is the sum of all balances. * It is but NOT the sum of all the delegated votes! * * Requirements: * * - `blockNumber` must have been already mined */ function getPastTotalSupply(uint256 blockNumber) public view returns (uint256) { require(blockNumber < block.number, "ERC20Votes: block not yet mined"); return _checkpointsLookup(_totalSupplyCheckpoints, blockNumber); } /** * @dev Lookup a value in a list of (sorted) checkpoints. */ function _checkpointsLookup(Checkpoint[] storage ckpts, uint256 blockNumber) private view returns (uint256) { // We run a binary search to look for the earliest checkpoint taken after `blockNumber`. // // During the loop, the index of the wanted checkpoint remains in the range [low-1, high). // With each iteration, either `low` or `high` is moved towards the middle of the range to maintain the invariant. // - If the middle checkpoint is after `blockNumber`, we look in [low, mid) // - If the middle checkpoint is before or equal to `blockNumber`, we look in [mid+1, high) // Once we reach a single value (when low == high), we've found the right checkpoint at the index high-1, if not // out of bounds (in which case we're looking too far in the past and the result is 0). // Note that if the latest checkpoint available is exactly for `blockNumber`, we end up with an index that is // past the end of the array, so we technically don't find a checkpoint after `blockNumber`, but it works out // the same. uint256 high = ckpts.length; uint256 low = 0; while (low < high) { uint256 mid = Math.average(low, high); if (ckpts[mid].fromBlock > blockNumber) { high = mid; } else { low = mid + 1; } } return high == 0 ? 0 : ckpts[high - 1].votes; } /** * @dev Delegate votes from the sender to `delegatee`. */ function delegate(address delegatee) public virtual { _delegate(_msgSender(), delegatee); } /** * @dev Delegates votes from signer to `delegatee` */ function delegateBySig( address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) public virtual { require(block.timestamp <= expiry, "ERC20Votes: signature expired"); address signer = ECDSA.recover( _hashTypedDataV4(keccak256(abi.encode(_DELEGATION_TYPEHASH, delegatee, nonce, expiry))), v, r, s ); require(nonce == _useNonce(signer), "ERC20Votes: invalid nonce"); _delegate(signer, delegatee); } /** * @dev Maximum token supply. Defaults to `type(uint224).max` (2^224^ - 1). */ function _maxSupply() internal view virtual returns (uint224) { return type(uint224).max; } /** * @dev Snapshots the totalSupply after it has been increased. */ function _mint(address account, uint256 amount) internal virtual override { super._mint(account, amount); require(totalSupply() <= _maxSupply(), "ERC20Votes: total supply risks overflowing votes"); _writeCheckpoint(_totalSupplyCheckpoints, _add, amount); } /** * @dev Snapshots the totalSupply after it has been decreased. */ function _burn(address account, uint256 amount) internal virtual override { super._burn(account, amount); _writeCheckpoint(_totalSupplyCheckpoints, _subtract, amount); } /** * @dev Move voting power when tokens are transferred. * * Emits a {DelegateVotesChanged} event. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual override { super._afterTokenTransfer(from, to, amount); _moveVotingPower(delegates(from), delegates(to), amount); } /** * @dev Change delegation for `delegator` to `delegatee`. * * Emits events {DelegateChanged} and {DelegateVotesChanged}. */ function _delegate(address delegator, address delegatee) internal virtual { address currentDelegate = delegates(delegator); uint256 delegatorBalance = balanceOf(delegator); _delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveVotingPower(currentDelegate, delegatee, delegatorBalance); } function _moveVotingPower( address src, address dst, uint256 amount ) private { if (src != dst && amount > 0) { if (src != address(0)) { (uint256 oldWeight, uint256 newWeight) = _writeCheckpoint(_checkpoints[src], _subtract, amount); emit DelegateVotesChanged(src, oldWeight, newWeight); } if (dst != address(0)) { (uint256 oldWeight, uint256 newWeight) = _writeCheckpoint(_checkpoints[dst], _add, amount); emit DelegateVotesChanged(dst, oldWeight, newWeight); } } } function _writeCheckpoint( Checkpoint[] storage ckpts, function(uint256, uint256) view returns (uint256) op, uint256 delta ) private returns (uint256 oldWeight, uint256 newWeight) { uint256 pos = ckpts.length; oldWeight = pos == 0 ? 0 : ckpts[pos - 1].votes; newWeight = op(oldWeight, delta); if (pos > 0 && ckpts[pos - 1].fromBlock == block.number) { ckpts[pos - 1].votes = SafeCast.toUint224(newWeight); } else { ckpts.push(Checkpoint({fromBlock: SafeCast.toUint32(block.number), votes: SafeCast.toUint224(newWeight)})); } } function _add(uint256 a, uint256 b) private pure returns (uint256) { return a + b; } function _subtract(uint256 a, uint256 b) private pure returns (uint256) { return a - b; } } // File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Snapshot.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Snapshot.sol) pragma solidity ^0.8.0; /** * @dev This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and * total supply at the time are recorded for later access. * * This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting. * In naive implementations it's possible to perform a "double spend" attack by reusing the same balance from different * accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be * used to create an efficient ERC20 forking mechanism. * * Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a * snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot * id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id * and the account address. * * NOTE: Snapshot policy can be customized by overriding the {_getCurrentSnapshotId} method. For example, having it * return `block.number` will trigger the creation of snapshot at the begining of each new block. When overridding this * function, be careful about the monotonicity of its result. Non-monotonic snapshot ids will break the contract. * * Implementing snapshots for every block using this method will incur significant gas costs. For a gas-efficient * alternative consider {ERC20Votes}. * * ==== Gas Costs * * Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log * n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much * smaller since identical balances in subsequent snapshots are stored as a single entry. * * There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is * only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent * transfers will have normal cost until the next snapshot, and so on. */ abstract contract ERC20Snapshot is ERC20 { // Inspired by Jordi Baylina's MiniMeToken to record historical balances: // https://github.com/Giveth/minimd/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol using Arrays for uint256[]; using Counters for Counters.Counter; // Snapshotted values have arrays of ids and the value corresponding to that id. These could be an array of a // Snapshot struct, but that would impede usage of functions that work on an array. struct Snapshots { uint256[] ids; uint256[] values; } mapping(address => Snapshots) private _accountBalanceSnapshots; Snapshots private _totalSupplySnapshots; // Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid. Counters.Counter private _currentSnapshotId; /** * @dev Emitted by {_snapshot} when a snapshot identified by `id` is created. */ event Snapshot(uint256 id); /** * @dev Creates a new snapshot and returns its snapshot id. * * Emits a {Snapshot} event that contains the same id. * * {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a * set of accounts, for example using {AccessControl}, or it may be open to the public. * * [WARNING] * ==== * While an open way of calling {_snapshot} is required for certain trust minimization mechanisms such as forking, * you must consider that it can potentially be used by attackers in two ways. * * First, it can be used to increase the cost of retrieval of values from snapshots, although it will grow * logarithmically thus rendering this attack ineffective in the long term. Second, it can be used to target * specific accounts and increase the cost of ERC20 transfers for them, in the ways specified in the Gas Costs * section above. * * We haven't measured the actual numbers; if this is something you're interested in please reach out to us. * ==== */ function _snapshot() internal virtual returns (uint256) { _currentSnapshotId.increment(); uint256 currentId = _getCurrentSnapshotId(); emit Snapshot(currentId); return currentId; } /** * @dev Get the current snapshotId */ function _getCurrentSnapshotId() internal view virtual returns (uint256) { return _currentSnapshotId.current(); } /** * @dev Retrieves the balance of `account` at the time `snapshotId` was created. */ function balanceOfAt(address account, uint256 snapshotId) public view virtual returns (uint256) { (bool snapshotted, uint256 value) = _valueAt(snapshotId, _accountBalanceSnapshots[account]); return snapshotted ? value : balanceOf(account); } /** * @dev Retrieves the total supply at the time `snapshotId` was created. */ function totalSupplyAt(uint256 snapshotId) public view virtual returns (uint256) { (bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots); return snapshotted ? value : totalSupply(); } // Update balance and/or total supply snapshots before the values are modified. This is implemented // in the _beforeTokenTransfer hook, which is executed for _mint, _burn, and _transfer operations. function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override { super._beforeTokenTransfer(from, to, amount); if (from == address(0)) { // mint _updateAccountSnapshot(to); _updateTotalSupplySnapshot(); } else if (to == address(0)) { // burn _updateAccountSnapshot(from); _updateTotalSupplySnapshot(); } else { // transfer _updateAccountSnapshot(from); _updateAccountSnapshot(to); } } function _valueAt(uint256 snapshotId, Snapshots storage snapshots) private view returns (bool, uint256) { require(snapshotId > 0, "ERC20Snapshot: id is 0"); require(snapshotId <= _getCurrentSnapshotId(), "ERC20Snapshot: nonexistent id"); // When a valid snapshot is queried, there are three possibilities: // a) The queried value was not modified after the snapshot was taken. Therefore, a snapshot entry was never // created for this id, and all stored snapshot ids are smaller than the requested one. The value that corresponds // to this id is the current one. // b) The queried value was modified after the snapshot was taken. Therefore, there will be an entry with the // requested id, and its value is the one to return. // c) More snapshots were created after the requested one, and the queried value was later modified. There will be // no entry for the requested id: the value that corresponds to it is that of the smallest snapshot id that is // larger than the requested one. // // In summary, we need to find an element in an array, returning the index of the smallest value that is larger if // it is not found, unless said value doesn't exist (e.g. when all values are smaller). Arrays.findUpperBound does // exactly this. uint256 index = snapshots.ids.findUpperBound(snapshotId); if (index == snapshots.ids.length) { return (false, 0); } else { return (true, snapshots.values[index]); } } function _updateAccountSnapshot(address account) private { _updateSnapshot(_accountBalanceSnapshots[account], balanceOf(account)); } function _updateTotalSupplySnapshot() private { _updateSnapshot(_totalSupplySnapshots, totalSupply()); } function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private { uint256 currentId = _getCurrentSnapshotId(); if (_lastSnapshotId(snapshots.ids) < currentId) { snapshots.ids.push(currentId); snapshots.values.push(currentValue); } } function _lastSnapshotId(uint256[] storage ids) private view returns (uint256) { if (ids.length == 0) { return 0; } else { return ids[ids.length - 1]; } } } // File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); } } // File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Capped.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Capped.sol) pragma solidity ^0.8.0; /** * @dev Extension of {ERC20} that adds a cap to the supply of tokens. */ abstract contract ERC20Capped is ERC20 { uint256 private immutable _cap; /** * @dev Sets the value of the `cap`. This value is immutable, it can only be * set once during construction. */ constructor(uint256 cap_) { require(cap_ > 0, "ERC20Capped: cap is 0"); _cap = cap_; } /** * @dev Returns the cap on the token's total supply. */ function cap() public view virtual returns (uint256) { return _cap; } /** * @dev See {ERC20-_mint}. */ function _mint(address account, uint256 amount) internal virtual override { require(ERC20.totalSupply() + amount <= cap(), "ERC20Capped: cap exceeded"); super._mint(account, amount); } } // File: CUBIT.sol pragma solidity ^0.8.2; /// @custom:security-contact [email protected] contract Cubit is ERC20, ERC20Burnable, ERC20Snapshot, Ownable, Pausable, ERC20Permit, ERC20Votes, ERC20Capped { constructor() ERC20("Cubit", "CBIT") ERC20Permit("Cubit") ERC20Capped(21000000 ether) {} function snapshot() public onlyOwner { _snapshot(); } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function mint(address to, uint256 amount) public onlyOwner { _mint(to, amount); } function _beforeTokenTransfer(address from, address to, uint256 amount) internal whenNotPaused override(ERC20, ERC20Snapshot) { super._beforeTokenTransfer(from, to, amount); } // The following functions are overrides required by Solidity. function _afterTokenTransfer(address from, address to, uint256 amount) internal override(ERC20, ERC20Votes) { super._afterTokenTransfer(from, to, amount); } function _mint(address to, uint256 amount) internal override(ERC20, ERC20Votes, ERC20Capped) { super._mint(to, amount); } function _burn(address account, uint256 amount) internal override(ERC20, ERC20Votes) { super._burn(account, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"balanceOfAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint32","name":"pos","type":"uint32"}],"name":"checkpoints","outputs":[{"components":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint224","name":"votes","type":"uint224"}],"internalType":"struct ERC20Votes.Checkpoint","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"snapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101806040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610140523480156200003757600080fd5b506a115eec47f6cf7e350000006040518060400160405280600581526020016410dd589a5d60da1b81525080604051806040016040528060018152602001603160f81b8152506040518060400160405280600581526020016410dd589a5d60da1b8152506040518060400160405280600481526020016310d0925560e21b8152508160039080519060200190620000d09291906200025b565b508051620000e69060049060208401906200025b565b50505062000103620000fd6200020560201b60201c565b62000209565b6009805460ff60a01b19169055815160208084019190912082518383012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c00190528051940193909320919290916080523060601b60c052610120525050508215159150620001fb90505760405162461bcd60e51b815260206004820152601560248201527f45524332304361707065643a2063617020697320300000000000000000000000604482015260640160405180910390fd5b610160526200033e565b3390565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002699062000301565b90600052602060002090601f0160209004810192826200028d5760008555620002d8565b82601f10620002a857805160ff1916838001178555620002d8565b82800160010185558215620002d8579182015b82811115620002d8578251825591602001919060010190620002bb565b50620002e6929150620002ea565b5090565b5b80821115620002e65760008155600101620002eb565b600181811c908216806200031657607f821691505b602082108114156200033857634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160601c60e051610100516101205161014051610160516127d3620003ae6000396000818161028d01526118da01526000610ce5015260006112a4015260006112f3015260006112ce01526000611227015260006112510152600061127b01526127d36000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c806370a0823111610125578063981b24d0116100ad578063c3cda5201161007c578063c3cda52014610492578063d505accf146104a5578063dd62ed3e146104b8578063f1127ed8146104f1578063f2fde38b1461052e57600080fd5b8063981b24d0146104465780639ab24eb014610459578063a457c2d71461046c578063a9059cbb1461047f57600080fd5b80638456cb59116100f45780638456cb591461040a5780638da5cb5b146104125780638e539e8c1461042357806395d89b41146104365780639711715a1461043e57600080fd5b806370a08231146103b3578063715018a6146103dc57806379cc6790146103e45780637ecebe00146103f757600080fd5b80633a46b1a8116101a85780634ee2cd7e116101775780634ee2cd7e1461030f578063587cde1e146103225780635c19a95c146103665780635c975abb146103795780636fcfff451461038b57600080fd5b80633a46b1a8146102cc5780633f4ba83a146102df57806340c10f19146102e957806342966c68146102fc57600080fd5b8063313ce567116101e4578063313ce5671461027c578063355274ea1461028b5780633644e515146102b157806339509351146102b957600080fd5b806306fdde0314610216578063095ea7b31461023457806318160ddd1461025757806323b872dd14610269575b600080fd5b61021e610541565b60405161022b919061264b565b60405180910390f35b610247610242366004612570565b6105d3565b604051901515815260200161022b565b6002545b60405190815260200161022b565b6102476102773660046124ca565b6105ea565b6040516012815260200161022b565b7f000000000000000000000000000000000000000000000000000000000000000061025b565b61025b610699565b6102476102c7366004612570565b6106a8565b61025b6102da366004612570565b6106e4565b6102e761075e565b005b6102e76102f7366004612570565b610792565b6102e761030a366004612632565b6107ca565b61025b61031d366004612570565b6107d7565b61034e61033036600461247c565b6001600160a01b039081166000908152600b60205260409020541690565b6040516001600160a01b03909116815260200161022b565b6102e761037436600461247c565b610830565b600954600160a01b900460ff16610247565b61039e61039936600461247c565b61083a565b60405163ffffffff909116815260200161022b565b61025b6103c136600461247c565b6001600160a01b031660009081526020819052604090205490565b6102e761085c565b6102e76103f2366004612570565b610890565b61025b61040536600461247c565b610916565b6102e7610934565b6009546001600160a01b031661034e565b61025b610431366004612632565b610966565b61021e6109c2565b6102e76109d1565b61025b610454366004612632565b610a03565b61025b61046736600461247c565b610a2e565b61024761047a366004612570565b610ab5565b61024761048d366004612570565b610b4e565b6102e76104a036600461259a565b610b5b565b6102e76104b3366004612506565b610c91565b61025b6104c6366004612497565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6105046104ff3660046125f2565b610df5565b60408051825163ffffffff1681526020928301516001600160e01b0316928101929092520161022b565b6102e761053c36600461247c565b610e79565b60606003805461055090612726565b80601f016020809104026020016040519081016040528092919081815260200182805461057c90612726565b80156105c95780601f1061059e576101008083540402835291602001916105c9565b820191906000526020600020905b8154815290600101906020018083116105ac57829003601f168201915b5050505050905090565b60006105e0338484610f11565b5060015b92915050565b60006105f7848484611035565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106815760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61068e8533858403610f11565b506001949350505050565b60006106a361121a565b905090565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916105e09185906106df9086906126d5565b610f11565b60004382106107355760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401610678565b6001600160a01b0383166000908152600c602052604090206107579083611341565b9392505050565b6009546001600160a01b031633146107885760405162461bcd60e51b8152600401610678906126a0565b6107906113fe565b565b6009546001600160a01b031633146107bc5760405162461bcd60e51b8152600401610678906126a0565b6107c6828261149b565b5050565b6107d433826114a5565b50565b6001600160a01b0382166000908152600560205260408120819081906107fe9085906114af565b9150915081610825576001600160a01b038516600090815260208190526040902054610827565b805b95945050505050565b6107d433826115a6565b6001600160a01b0381166000908152600c60205260408120546105e49061161f565b6009546001600160a01b031633146108865760405162461bcd60e51b8152600401610678906126a0565b6107906000611688565b600061089c83336104c6565b9050818110156108fa5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610678565b6109078333848403610f11565b61091183836114a5565b505050565b6001600160a01b0381166000908152600a60205260408120546105e4565b6009546001600160a01b0316331461095e5760405162461bcd60e51b8152600401610678906126a0565b6107906116da565b60004382106109b75760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401610678565b6105e4600d83611341565b60606004805461055090612726565b6009546001600160a01b031633146109fb5760405162461bcd60e51b8152600401610678906126a0565b6107d4611762565b6000806000610a138460066114af565b9150915081610a2457600254610a26565b805b949350505050565b6001600160a01b0381166000908152600c60205260408120548015610aa2576001600160a01b0383166000908152600c60205260409020610a7060018361270f565b81548110610a8057610a80612787565b60009182526020909120015464010000000090046001600160e01b0316610aa5565b60005b6001600160e01b03169392505050565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610b375760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610678565b610b443385858403610f11565b5060019392505050565b60006105e0338484611035565b83421115610bab5760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e617475726520657870697265640000006044820152606401610678565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b038816918101919091526060810186905260808101859052600090610c2590610c1d9060a001604051602081830303815290604052805190602001206117bc565b85858561180a565b9050610c3081611832565b8614610c7e5760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e6365000000000000006044820152606401610678565b610c8881886115a6565b50505050505050565b83421115610ce15760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610678565b60007f0000000000000000000000000000000000000000000000000000000000000000888888610d108c611832565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610d6b826117bc565b90506000610d7b8287878761180a565b9050896001600160a01b0316816001600160a01b031614610dde5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610678565b610de98a8a8a610f11565b50505050505050505050565b60408051808201909152600080825260208201526001600160a01b0383166000908152600c60205260409020805463ffffffff8416908110610e3957610e39612787565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6009546001600160a01b03163314610ea35760405162461bcd60e51b8152600401610678906126a0565b6001600160a01b038116610f085760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610678565b6107d481611688565b6001600160a01b038316610f735760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610678565b6001600160a01b038216610fd45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610678565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166110995760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610678565b6001600160a01b0382166110fb5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610678565b61110683838361185a565b6001600160a01b0383166000908152602081905260409020548181101561117e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610678565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906111b59084906126d5565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161120191815260200190565b60405180910390a36112148484846118b2565b50505050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561127357507f000000000000000000000000000000000000000000000000000000000000000046145b1561129d57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b8154600090815b818110156113a557600061135c82846118bd565b90508486828154811061137157611371612787565b60009182526020909120015463ffffffff1611156113915780925061139f565b61139c8160016126d5565b91505b50611348565b81156113e957846113b760018461270f565b815481106113c7576113c7612787565b60009182526020909120015464010000000090046001600160e01b03166113ec565b60005b6001600160e01b031695945050505050565b600954600160a01b900460ff1661144e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610678565b6009805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6107c682826118d8565b6107c68282611965565b600080600084116114fb5760405162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b6044820152606401610678565b61150361197d565b8411156115525760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e742069640000006044820152606401610678565b600061155e8486611988565b845490915081141561157757600080925092505061159f565b600184600101828154811061158e5761158e612787565b906000526020600020015492509250505b9250929050565b6001600160a01b038281166000818152600b60208181526040808420805485845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611214828483611a4b565b600063ffffffff8211156116845760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b6064820152608401610678565b5090565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600954600160a01b900460ff16156117275760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610678565b6009805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861147e3390565b6000611772600880546001019055565b600061177c61197d565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb67816040516117af91815260200190565b60405180910390a1919050565b60006105e46117c961121a565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061181b87878787611b88565b9150915061182881611c75565b5095945050505050565b6001600160a01b0381166000908152600a602052604090208054600181018255905b50919050565b600954600160a01b900460ff16156118a75760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610678565b610911838383611e30565b610911838383611e78565b60006118cc60028484186126ed565b610757908484166126d5565b7f00000000000000000000000000000000000000000000000000000000000000008161190360025490565b61190d91906126d5565b111561195b5760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a20636170206578636565646564000000000000006044820152606401610678565b6107c68282611eaa565b61196f8282611f34565b611214600d612095836120a1565b60006106a360085490565b8154600090611999575060006105e4565b82546000905b808210156119f55760006119b383836118bd565b9050848682815481106119c8576119c8612787565b906000526020600020015411156119e1578091506119ef565b6119ec8160016126d5565b92505b5061199f565b600082118015611a2a57508385611a0d60018561270f565b81548110611a1d57611a1d612787565b9060005260206000200154145b15611a4357611a3a60018361270f565b925050506105e4565b5090506105e4565b816001600160a01b0316836001600160a01b031614158015611a6d5750600081115b15610911576001600160a01b03831615611afb576001600160a01b0383166000908152600c602052604081208190611aa890612095856120a1565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611af0929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615610911576001600160a01b0382166000908152600c602052604081208190611b319061221a856120a1565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611b79929190918252602082015260400190565b60405180910390a25050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611bbf5750600090506003611c6c565b8460ff16601b14158015611bd757508460ff16601c14155b15611be85750600090506004611c6c565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611c3c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611c6557600060019250925050611c6c565b9150600090505b94509492505050565b6000816004811115611c8957611c89612771565b1415611c925750565b6001816004811115611ca657611ca6612771565b1415611cf45760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610678565b6002816004811115611d0857611d08612771565b1415611d565760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610678565b6003816004811115611d6a57611d6a612771565b1415611dc35760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610678565b6004816004811115611dd757611dd7612771565b14156107d45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610678565b6001600160a01b038316611e4f57611e4782612226565b610911612258565b6001600160a01b038216611e6657611e4783612226565b611e6f83612226565b61091182612226565b6001600160a01b038381166000908152600b602052604080822054858416835291205461091192918216911683611a4b565b611eb48282612266565b6002546001600160e01b031015611f265760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b6064820152608401610678565b611214600d61221a836120a1565b6001600160a01b038216611f945760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610678565b611fa08260008361185a565b6001600160a01b038216600090815260208190526040902054818110156120145760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610678565b6001600160a01b038316600090815260208190526040812083830390556002805484929061204390849061270f565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3610911836000846118b2565b6000610757828461270f565b8254600090819080156120ec57856120ba60018361270f565b815481106120ca576120ca612787565b60009182526020909120015464010000000090046001600160e01b03166120ef565b60005b6001600160e01b0316925061210883858763ffffffff16565b91506000811180156121465750438661212260018461270f565b8154811061213257612132612787565b60009182526020909120015463ffffffff16145b156121a65761215482612359565b8661216060018461270f565b8154811061217057612170612787565b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b03160217905550612211565b8560405180604001604052806121bb4361161f565b63ffffffff1681526020016121cf85612359565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b50935093915050565b600061075782846126d5565b6001600160a01b038116600090815260056020908152604080832091839052909120546107d491906123c2565b6123c2565b610790600661225360025490565b6001600160a01b0382166122bc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610678565b6122c86000838361185a565b80600260008282546122da91906126d5565b90915550506001600160a01b038216600090815260208190526040812080548392906123079084906126d5565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a36107c6600083836118b2565b60006001600160e01b038211156116845760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b6064820152608401610678565b60006123cc61197d565b9050806123d88461240c565b1015610911578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b805460009061241d57506000919050565b8154829061242d9060019061270f565b8154811061243d5761243d612787565b90600052602060002001549050919050565b919050565b80356001600160a01b038116811461244f57600080fd5b803560ff8116811461244f57600080fd5b60006020828403121561248e57600080fd5b61075782612454565b600080604083850312156124aa57600080fd5b6124b383612454565b91506124c160208401612454565b90509250929050565b6000806000606084860312156124df57600080fd5b6124e884612454565b92506124f660208501612454565b9150604084013590509250925092565b600080600080600080600060e0888a03121561252157600080fd5b61252a88612454565b965061253860208901612454565b955060408801359450606088013593506125546080890161246b565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561258357600080fd5b61258c83612454565b946020939093013593505050565b60008060008060008060c087890312156125b357600080fd5b6125bc87612454565b955060208701359450604087013593506125d86060880161246b565b92506080870135915060a087013590509295509295509295565b6000806040838503121561260557600080fd5b61260e83612454565b9150602083013563ffffffff8116811461262757600080fd5b809150509250929050565b60006020828403121561264457600080fd5b5035919050565b600060208083528351808285015260005b818110156126785785810183015185820160400152820161265c565b8181111561268a576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156126e8576126e861275b565b500190565b60008261270a57634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156127215761272161275b565b500390565b600181811c9082168061273a57607f821691505b6020821081141561185457634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea2646970667358221220a40a5138fd5210227822211d0bd7099224dcd28388a5d902cca63fc270c7d12a64736f6c63430008070033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102115760003560e01c806370a0823111610125578063981b24d0116100ad578063c3cda5201161007c578063c3cda52014610492578063d505accf146104a5578063dd62ed3e146104b8578063f1127ed8146104f1578063f2fde38b1461052e57600080fd5b8063981b24d0146104465780639ab24eb014610459578063a457c2d71461046c578063a9059cbb1461047f57600080fd5b80638456cb59116100f45780638456cb591461040a5780638da5cb5b146104125780638e539e8c1461042357806395d89b41146104365780639711715a1461043e57600080fd5b806370a08231146103b3578063715018a6146103dc57806379cc6790146103e45780637ecebe00146103f757600080fd5b80633a46b1a8116101a85780634ee2cd7e116101775780634ee2cd7e1461030f578063587cde1e146103225780635c19a95c146103665780635c975abb146103795780636fcfff451461038b57600080fd5b80633a46b1a8146102cc5780633f4ba83a146102df57806340c10f19146102e957806342966c68146102fc57600080fd5b8063313ce567116101e4578063313ce5671461027c578063355274ea1461028b5780633644e515146102b157806339509351146102b957600080fd5b806306fdde0314610216578063095ea7b31461023457806318160ddd1461025757806323b872dd14610269575b600080fd5b61021e610541565b60405161022b919061264b565b60405180910390f35b610247610242366004612570565b6105d3565b604051901515815260200161022b565b6002545b60405190815260200161022b565b6102476102773660046124ca565b6105ea565b6040516012815260200161022b565b7f000000000000000000000000000000000000000000115eec47f6cf7e3500000061025b565b61025b610699565b6102476102c7366004612570565b6106a8565b61025b6102da366004612570565b6106e4565b6102e761075e565b005b6102e76102f7366004612570565b610792565b6102e761030a366004612632565b6107ca565b61025b61031d366004612570565b6107d7565b61034e61033036600461247c565b6001600160a01b039081166000908152600b60205260409020541690565b6040516001600160a01b03909116815260200161022b565b6102e761037436600461247c565b610830565b600954600160a01b900460ff16610247565b61039e61039936600461247c565b61083a565b60405163ffffffff909116815260200161022b565b61025b6103c136600461247c565b6001600160a01b031660009081526020819052604090205490565b6102e761085c565b6102e76103f2366004612570565b610890565b61025b61040536600461247c565b610916565b6102e7610934565b6009546001600160a01b031661034e565b61025b610431366004612632565b610966565b61021e6109c2565b6102e76109d1565b61025b610454366004612632565b610a03565b61025b61046736600461247c565b610a2e565b61024761047a366004612570565b610ab5565b61024761048d366004612570565b610b4e565b6102e76104a036600461259a565b610b5b565b6102e76104b3366004612506565b610c91565b61025b6104c6366004612497565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6105046104ff3660046125f2565b610df5565b60408051825163ffffffff1681526020928301516001600160e01b0316928101929092520161022b565b6102e761053c36600461247c565b610e79565b60606003805461055090612726565b80601f016020809104026020016040519081016040528092919081815260200182805461057c90612726565b80156105c95780601f1061059e576101008083540402835291602001916105c9565b820191906000526020600020905b8154815290600101906020018083116105ac57829003601f168201915b5050505050905090565b60006105e0338484610f11565b5060015b92915050565b60006105f7848484611035565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106815760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61068e8533858403610f11565b506001949350505050565b60006106a361121a565b905090565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916105e09185906106df9086906126d5565b610f11565b60004382106107355760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401610678565b6001600160a01b0383166000908152600c602052604090206107579083611341565b9392505050565b6009546001600160a01b031633146107885760405162461bcd60e51b8152600401610678906126a0565b6107906113fe565b565b6009546001600160a01b031633146107bc5760405162461bcd60e51b8152600401610678906126a0565b6107c6828261149b565b5050565b6107d433826114a5565b50565b6001600160a01b0382166000908152600560205260408120819081906107fe9085906114af565b9150915081610825576001600160a01b038516600090815260208190526040902054610827565b805b95945050505050565b6107d433826115a6565b6001600160a01b0381166000908152600c60205260408120546105e49061161f565b6009546001600160a01b031633146108865760405162461bcd60e51b8152600401610678906126a0565b6107906000611688565b600061089c83336104c6565b9050818110156108fa5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610678565b6109078333848403610f11565b61091183836114a5565b505050565b6001600160a01b0381166000908152600a60205260408120546105e4565b6009546001600160a01b0316331461095e5760405162461bcd60e51b8152600401610678906126a0565b6107906116da565b60004382106109b75760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401610678565b6105e4600d83611341565b60606004805461055090612726565b6009546001600160a01b031633146109fb5760405162461bcd60e51b8152600401610678906126a0565b6107d4611762565b6000806000610a138460066114af565b9150915081610a2457600254610a26565b805b949350505050565b6001600160a01b0381166000908152600c60205260408120548015610aa2576001600160a01b0383166000908152600c60205260409020610a7060018361270f565b81548110610a8057610a80612787565b60009182526020909120015464010000000090046001600160e01b0316610aa5565b60005b6001600160e01b03169392505050565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610b375760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610678565b610b443385858403610f11565b5060019392505050565b60006105e0338484611035565b83421115610bab5760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e617475726520657870697265640000006044820152606401610678565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b038816918101919091526060810186905260808101859052600090610c2590610c1d9060a001604051602081830303815290604052805190602001206117bc565b85858561180a565b9050610c3081611832565b8614610c7e5760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e6365000000000000006044820152606401610678565b610c8881886115a6565b50505050505050565b83421115610ce15760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610678565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610d108c611832565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610d6b826117bc565b90506000610d7b8287878761180a565b9050896001600160a01b0316816001600160a01b031614610dde5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610678565b610de98a8a8a610f11565b50505050505050505050565b60408051808201909152600080825260208201526001600160a01b0383166000908152600c60205260409020805463ffffffff8416908110610e3957610e39612787565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6009546001600160a01b03163314610ea35760405162461bcd60e51b8152600401610678906126a0565b6001600160a01b038116610f085760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610678565b6107d481611688565b6001600160a01b038316610f735760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610678565b6001600160a01b038216610fd45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610678565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166110995760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610678565b6001600160a01b0382166110fb5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610678565b61110683838361185a565b6001600160a01b0383166000908152602081905260409020548181101561117e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610678565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906111b59084906126d5565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161120191815260200190565b60405180910390a36112148484846118b2565b50505050565b6000306001600160a01b037f0000000000000000000000004c989b872e96c37bc6fcb2f0fe5fdcabecc405a21614801561127357507f000000000000000000000000000000000000000000000000000000000000008946145b1561129d57507f20993da7de62f3ba0e36f73fee3ed49c5978ea8c89a1e8d8c0b6548ffd37d9e090565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527fbd189ab9ddf0ca0d85e683f2cd218fb4950fe23c8eee2b84e2e5d4a59359cb0a828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b8154600090815b818110156113a557600061135c82846118bd565b90508486828154811061137157611371612787565b60009182526020909120015463ffffffff1611156113915780925061139f565b61139c8160016126d5565b91505b50611348565b81156113e957846113b760018461270f565b815481106113c7576113c7612787565b60009182526020909120015464010000000090046001600160e01b03166113ec565b60005b6001600160e01b031695945050505050565b600954600160a01b900460ff1661144e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610678565b6009805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6107c682826118d8565b6107c68282611965565b600080600084116114fb5760405162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b6044820152606401610678565b61150361197d565b8411156115525760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e742069640000006044820152606401610678565b600061155e8486611988565b845490915081141561157757600080925092505061159f565b600184600101828154811061158e5761158e612787565b906000526020600020015492509250505b9250929050565b6001600160a01b038281166000818152600b60208181526040808420805485845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611214828483611a4b565b600063ffffffff8211156116845760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b6064820152608401610678565b5090565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600954600160a01b900460ff16156117275760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610678565b6009805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861147e3390565b6000611772600880546001019055565b600061177c61197d565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb67816040516117af91815260200190565b60405180910390a1919050565b60006105e46117c961121a565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061181b87878787611b88565b9150915061182881611c75565b5095945050505050565b6001600160a01b0381166000908152600a602052604090208054600181018255905b50919050565b600954600160a01b900460ff16156118a75760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610678565b610911838383611e30565b610911838383611e78565b60006118cc60028484186126ed565b610757908484166126d5565b7f000000000000000000000000000000000000000000115eec47f6cf7e350000008161190360025490565b61190d91906126d5565b111561195b5760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a20636170206578636565646564000000000000006044820152606401610678565b6107c68282611eaa565b61196f8282611f34565b611214600d612095836120a1565b60006106a360085490565b8154600090611999575060006105e4565b82546000905b808210156119f55760006119b383836118bd565b9050848682815481106119c8576119c8612787565b906000526020600020015411156119e1578091506119ef565b6119ec8160016126d5565b92505b5061199f565b600082118015611a2a57508385611a0d60018561270f565b81548110611a1d57611a1d612787565b9060005260206000200154145b15611a4357611a3a60018361270f565b925050506105e4565b5090506105e4565b816001600160a01b0316836001600160a01b031614158015611a6d5750600081115b15610911576001600160a01b03831615611afb576001600160a01b0383166000908152600c602052604081208190611aa890612095856120a1565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611af0929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615610911576001600160a01b0382166000908152600c602052604081208190611b319061221a856120a1565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051611b79929190918252602082015260400190565b60405180910390a25050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611bbf5750600090506003611c6c565b8460ff16601b14158015611bd757508460ff16601c14155b15611be85750600090506004611c6c565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611c3c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611c6557600060019250925050611c6c565b9150600090505b94509492505050565b6000816004811115611c8957611c89612771565b1415611c925750565b6001816004811115611ca657611ca6612771565b1415611cf45760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610678565b6002816004811115611d0857611d08612771565b1415611d565760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610678565b6003816004811115611d6a57611d6a612771565b1415611dc35760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610678565b6004816004811115611dd757611dd7612771565b14156107d45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610678565b6001600160a01b038316611e4f57611e4782612226565b610911612258565b6001600160a01b038216611e6657611e4783612226565b611e6f83612226565b61091182612226565b6001600160a01b038381166000908152600b602052604080822054858416835291205461091192918216911683611a4b565b611eb48282612266565b6002546001600160e01b031015611f265760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b6064820152608401610678565b611214600d61221a836120a1565b6001600160a01b038216611f945760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610678565b611fa08260008361185a565b6001600160a01b038216600090815260208190526040902054818110156120145760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610678565b6001600160a01b038316600090815260208190526040812083830390556002805484929061204390849061270f565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3610911836000846118b2565b6000610757828461270f565b8254600090819080156120ec57856120ba60018361270f565b815481106120ca576120ca612787565b60009182526020909120015464010000000090046001600160e01b03166120ef565b60005b6001600160e01b0316925061210883858763ffffffff16565b91506000811180156121465750438661212260018461270f565b8154811061213257612132612787565b60009182526020909120015463ffffffff16145b156121a65761215482612359565b8661216060018461270f565b8154811061217057612170612787565b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b03160217905550612211565b8560405180604001604052806121bb4361161f565b63ffffffff1681526020016121cf85612359565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b50935093915050565b600061075782846126d5565b6001600160a01b038116600090815260056020908152604080832091839052909120546107d491906123c2565b6123c2565b610790600661225360025490565b6001600160a01b0382166122bc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610678565b6122c86000838361185a565b80600260008282546122da91906126d5565b90915550506001600160a01b038216600090815260208190526040812080548392906123079084906126d5565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a36107c6600083836118b2565b60006001600160e01b038211156116845760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b6064820152608401610678565b60006123cc61197d565b9050806123d88461240c565b1015610911578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b805460009061241d57506000919050565b8154829061242d9060019061270f565b8154811061243d5761243d612787565b90600052602060002001549050919050565b919050565b80356001600160a01b038116811461244f57600080fd5b803560ff8116811461244f57600080fd5b60006020828403121561248e57600080fd5b61075782612454565b600080604083850312156124aa57600080fd5b6124b383612454565b91506124c160208401612454565b90509250929050565b6000806000606084860312156124df57600080fd5b6124e884612454565b92506124f660208501612454565b9150604084013590509250925092565b600080600080600080600060e0888a03121561252157600080fd5b61252a88612454565b965061253860208901612454565b955060408801359450606088013593506125546080890161246b565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561258357600080fd5b61258c83612454565b946020939093013593505050565b60008060008060008060c087890312156125b357600080fd5b6125bc87612454565b955060208701359450604087013593506125d86060880161246b565b92506080870135915060a087013590509295509295509295565b6000806040838503121561260557600080fd5b61260e83612454565b9150602083013563ffffffff8116811461262757600080fd5b809150509250929050565b60006020828403121561264457600080fd5b5035919050565b600060208083528351808285015260005b818110156126785785810183015185820160400152820161265c565b8181111561268a576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156126e8576126e861275b565b500190565b60008261270a57634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156127215761272161275b565b500390565b600181811c9082168061273a57607f821691505b6020821081141561185457634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea2646970667358221220a40a5138fd5210227822211d0bd7099224dcd28388a5d902cca63fc270c7d12a64736f6c63430008070033
Deployed Bytecode Sourcemap
76768:1384:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42600:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;44767:169;;;;;;:::i;:::-;;:::i;:::-;;;3858:14:1;;3851:22;3833:41;;3821:2;3806:18;44767:169:0;3693:187:1;43720:108:0;43808:12;;43720:108;;;4031:25:1;;;4019:2;4004:18;43720:108:0;3885:177:1;45418:492:0;;;;;;:::i;:::-;;:::i;43562:93::-;;;43645:2;19184:36:1;;19172:2;19157:18;43562:93:0;19042:184:1;76296:83:0;76367:4;76296:83;;54993:115;;;:::i;46319:215::-;;;;;;:::i;:::-;;:::i;58756:251::-;;;;;;:::i;:::-;;:::i;77148:65::-;;;:::i;:::-;;77221:95;;;;;;:::i;:::-;;:::i;74831:91::-;;;;;;:::i;:::-;;:::i;70368:266::-;;;;;;:::i;:::-;;:::i;58156:119::-;;;;;;:::i;:::-;-1:-1:-1;;;;;58248:19:0;;;58221:7;58248:19;;;:10;:19;;;;;;;;58156:119;;;;-1:-1:-1;;;;;3649:32:1;;;3631:51;;3619:2;3604:18;58156:119:0;3485:203:1;61195:105:0;;;;;;:::i;:::-;;:::i;33122:86::-;33193:7;;-1:-1:-1;;;33193:7:0;;;;33122:86;;57912:151;;;;;;:::i;:::-;;:::i;:::-;;;19019:10:1;19007:23;;;18989:42;;18977:2;18962:18;57912:151:0;18845:192:1;43891:127:0;;;;;;:::i;:::-;-1:-1:-1;;;;;43992:18:0;43965:7;43992:18;;;;;;;;;;;;43891:127;36021:103;;;:::i;75241:368::-;;;;;;:::i;:::-;;:::i;54735:128::-;;;;;;:::i;:::-;;:::i;77079:61::-;;;:::i;35370:87::-;35443:6;;-1:-1:-1;;;;;35443:6:0;35370:87;;59296:242;;;;;;:::i;:::-;;:::i;42819:104::-;;;:::i;77004:67::-;;;:::i;70738:234::-;;;;;;:::i;:::-;;:::i;58359:195::-;;;;;;:::i;:::-;;:::i;47037:413::-;;;;;;:::i;:::-;;:::i;44231:175::-;;;;;;:::i;:::-;;:::i;61382:582::-;;;;;;:::i;:::-;;:::i;54024:645::-;;;;;;:::i;:::-;;:::i;44469:151::-;;;;;;:::i;:::-;-1:-1:-1;;;;;44585:18:0;;;44558:7;44585:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;44469:151;57682:150;;;;;;:::i;:::-;;:::i;:::-;;;;18283:13:1;;18298:10;18279:30;18261:49;;18370:4;18358:17;;;18352:24;-1:-1:-1;;;;;18348:50:1;18326:20;;;18319:80;;;;18234:18;57682:150:0;18059:346:1;36279:201:0;;;;;;:::i;:::-;;:::i;42600:100::-;42654:13;42687:5;42680:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42600:100;:::o;44767:169::-;44850:4;44867:39;31856:10;44890:7;44899:6;44867:8;:39::i;:::-;-1:-1:-1;44924:4:0;44767:169;;;;;:::o;45418:492::-;45558:4;45575:36;45585:6;45593:9;45604:6;45575:9;:36::i;:::-;-1:-1:-1;;;;;45651:19:0;;45624:24;45651:19;;;:11;:19;;;;;;;;31856:10;45651:33;;;;;;;;45703:26;;;;45695:79;;;;-1:-1:-1;;;45695:79:0;;13170:2:1;45695:79:0;;;13152:21:1;13209:2;13189:18;;;13182:30;13248:34;13228:18;;;13221:62;-1:-1:-1;;;13299:18:1;;;13292:38;13347:19;;45695:79:0;;;;;;;;;45810:57;45819:6;31856:10;45860:6;45841:16;:25;45810:8;:57::i;:::-;-1:-1:-1;45898:4:0;;45418:492;-1:-1:-1;;;;45418:492:0:o;54993:115::-;55053:7;55080:20;:18;:20::i;:::-;55073:27;;54993:115;:::o;46319:215::-;31856:10;46407:4;46456:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;46456:34:0;;;;;;;;;;46407:4;;46424:80;;46447:7;;46456:47;;46493:10;;46456:47;:::i;:::-;46424:8;:80::i;58756:251::-;58837:7;58879:12;58865:11;:26;58857:70;;;;-1:-1:-1;;;58857:70:0;;7901:2:1;58857:70:0;;;7883:21:1;7940:2;7920:18;;;7913:30;7979:33;7959:18;;;7952:61;8030:18;;58857:70:0;7699:355:1;58857:70:0;-1:-1:-1;;;;;58964:21:0;;;;;;:12;:21;;;;;58945:54;;58987:11;58945:18;:54::i;:::-;58938:61;58756:251;-1:-1:-1;;;58756:251:0:o;77148:65::-;35443:6;;-1:-1:-1;;;;;35443:6:0;31856:10;35590:23;35582:68;;;;-1:-1:-1;;;35582:68:0;;;;;;;:::i;:::-;77195:10:::1;:8;:10::i;:::-;77148:65::o:0;77221:95::-;35443:6;;-1:-1:-1;;;;;35443:6:0;31856:10;35590:23;35582:68;;;;-1:-1:-1;;;35582:68:0;;;;;;;:::i;:::-;77291:17:::1;77297:2;77301:6;77291:5;:17::i;:::-;77221:95:::0;;:::o;74831:91::-;74887:27;31856:10;74907:6;74887:5;:27::i;:::-;74831:91;:::o;70368:266::-;-1:-1:-1;;;;;70532:33:0;;70455:7;70532:33;;;:24;:33;;;;;70455:7;;;;70511:55;;70520:10;;70511:8;:55::i;:::-;70475:91;;;;70586:11;:40;;-1:-1:-1;;;;;43992:18:0;;43965:7;43992:18;;;;;;;;;;;70586:40;;;70600:5;70586:40;70579:47;70368:266;-1:-1:-1;;;;;70368:266:0:o;61195:105::-;61258:34;31856:10;61282:9;61258;:34::i;57912:151::-;-1:-1:-1;;;;;58026:21:0;;57982:6;58026:21;;;:12;:21;;;;;:28;58008:47;;:17;:47::i;36021:103::-;35443:6;;-1:-1:-1;;;;;35443:6:0;31856:10;35590:23;35582:68;;;;-1:-1:-1;;;35582:68:0;;;;;;;:::i;:::-;36086:30:::1;36113:1;36086:18;:30::i;75241:368::-:0;75318:24;75345:32;75355:7;31856:10;44469:151;:::i;75345:32::-;75318:59;;75416:6;75396:16;:26;;75388:75;;;;-1:-1:-1;;;75388:75:0;;14765:2:1;75388:75:0;;;14747:21:1;14804:2;14784:18;;;14777:30;14843:34;14823:18;;;14816:62;-1:-1:-1;;;14894:18:1;;;14887:34;14938:19;;75388:75:0;14563:400:1;75388:75:0;75499:58;75508:7;31856:10;75550:6;75531:16;:25;75499:8;:58::i;:::-;75579:22;75585:7;75594:6;75579:5;:22::i;:::-;75307:302;75241:368;;:::o;54735:128::-;-1:-1:-1;;;;;54831:14:0;;54804:7;54831:14;;;:7;:14;;;;;27740;54831:24;27648:114;77079:61;35443:6;;-1:-1:-1;;;;;35443:6:0;31856:10;35590:23;35582:68;;;;-1:-1:-1;;;35582:68:0;;;;;;;:::i;:::-;77124:8:::1;:6;:8::i;59296:242::-:0;59366:7;59408:12;59394:11;:26;59386:70;;;;-1:-1:-1;;;59386:70:0;;7901:2:1;59386:70:0;;;7883:21:1;7940:2;7920:18;;;7913:30;7979:33;7959:18;;;7952:61;8030:18;;59386:70:0;7699:355:1;59386:70:0;59474:56;59493:23;59518:11;59474:18;:56::i;42819:104::-;42875:13;42908:7;42901:14;;;;;:::i;77004:67::-;35443:6;;-1:-1:-1;;;;;35443:6:0;31856:10;35590:23;35582:68;;;;-1:-1:-1;;;35582:68:0;;;;;;;:::i;:::-;77052:11:::1;:9;:11::i;70738:234::-:0;70810:7;70831:16;70849:13;70866:43;70875:10;70887:21;70866:8;:43::i;:::-;70830:79;;;;70929:11;:35;;43808:12;;70929:35;;;70943:5;70929:35;70922:42;70738:234;-1:-1:-1;;;;70738:234:0:o;58359:195::-;-1:-1:-1;;;;;58449:21:0;;58415:7;58449:21;;;:12;:21;;;;;:28;58495:8;;:51;;-1:-1:-1;;;;;58510:21:0;;;;;;:12;:21;;;;;58532:7;58538:1;58532:3;:7;:::i;:::-;58510:30;;;;;;;;:::i;:::-;;;;;;;;;;:36;;;;-1:-1:-1;;;;;58510:36:0;58495:51;;;58506:1;58495:51;-1:-1:-1;;;;;58488:58:0;;58359:195;-1:-1:-1;;;58359:195:0:o;47037:413::-;31856:10;47130:4;47174:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;47174:34:0;;;;;;;;;;47227:35;;;;47219:85;;;;-1:-1:-1;;;47219:85:0;;17495:2:1;47219:85:0;;;17477:21:1;17534:2;17514:18;;;17507:30;17573:34;17553:18;;;17546:62;-1:-1:-1;;;17624:18:1;;;17617:35;17669:19;;47219:85:0;17293:401:1;47219:85:0;47340:67;31856:10;47363:7;47391:15;47372:16;:34;47340:8;:67::i;:::-;-1:-1:-1;47438:4:0;;47037:413;-1:-1:-1;;;47037:413:0:o;44231:175::-;44317:4;44334:42;31856:10;44358:9;44369:6;44334:9;:42::i;61382:582::-;61600:6;61581:15;:25;;61573:67;;;;-1:-1:-1;;;61573:67:0;;8610:2:1;61573:67:0;;;8592:21:1;8649:2;8629:18;;;8622:30;8688:31;8668:18;;;8661:59;8737:18;;61573:67:0;8408:353:1;61573:67:0;61723:58;;;56933:71;61723:58;;;4894:25:1;-1:-1:-1;;;;;4955:32:1;;4935:18;;;4928:60;;;;5004:18;;;4997:34;;;5047:18;;;5040:34;;;61651:14:0;;61668:174;;61696:87;;4866:19:1;;61723:58:0;;;;;;;;;;;;61713:69;;;;;;61696:16;:87::i;:::-;61798:1;61814;61830;61668:13;:174::i;:::-;61651:191;;61870:17;61880:6;61870:9;:17::i;:::-;61861:5;:26;61853:64;;;;-1:-1:-1;;;61853:64:0;;9731:2:1;61853:64:0;;;9713:21:1;9770:2;9750:18;;;9743:30;9809:27;9789:18;;;9782:55;9854:18;;61853:64:0;9529:349:1;61853:64:0;61928:28;61938:6;61946:9;61928;:28::i;:::-;61562:402;61382:582;;;;;;:::o;54024:645::-;54268:8;54249:15;:27;;54241:69;;;;-1:-1:-1;;;54241:69:0;;10895:2:1;54241:69:0;;;10877:21:1;10934:2;10914:18;;;10907:30;10973:31;10953:18;;;10946:59;11022:18;;54241:69:0;10693:353:1;54241:69:0;54323:18;54365:16;54383:5;54390:7;54399:5;54406:16;54416:5;54406:9;:16::i;:::-;54354:79;;;;;;4354:25:1;;;;-1:-1:-1;;;;;4453:15:1;;;4433:18;;;4426:43;4505:15;;;;4485:18;;;4478:43;4537:18;;;4530:34;4580:19;;;4573:35;4624:19;;;4617:35;;;4326:19;;54354:79:0;;;;;;;;;;;;54344:90;;;;;;54323:111;;54447:12;54462:28;54479:10;54462:16;:28::i;:::-;54447:43;;54503:14;54520:28;54534:4;54540:1;54543;54546;54520:13;:28::i;:::-;54503:45;;54577:5;-1:-1:-1;;;;;54567:15:0;:6;-1:-1:-1;;;;;54567:15:0;;54559:58;;;;-1:-1:-1;;;54559:58:0;;12811:2:1;54559:58:0;;;12793:21:1;12850:2;12830:18;;;12823:30;12889:32;12869:18;;;12862:60;12939:18;;54559:58:0;12609:354:1;54559:58:0;54630:31;54639:5;54646:7;54655:5;54630:8;:31::i;:::-;54230:439;;;54024:645;;;;;;;:::o;57682:150::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;57798:21:0;;;;;;:12;:21;;;;;:26;;;;;;;;;;;;:::i;:::-;;;;;;;;;;57791:33;;;;;;;;;57798:26;;57791:33;;;;;;;;;-1:-1:-1;;;;;57791:33:0;;;;;;;;;57682:150;-1:-1:-1;;;57682:150:0:o;36279:201::-;35443:6;;-1:-1:-1;;;;;35443:6:0;31856:10;35590:23;35582:68;;;;-1:-1:-1;;;35582:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;36368:22:0;::::1;36360:73;;;::::0;-1:-1:-1;;;36360:73:0;;10085:2:1;36360:73:0::1;::::0;::::1;10067:21:1::0;10124:2;10104:18;;;10097:30;10163:34;10143:18;;;10136:62;-1:-1:-1;;;10214:18:1;;;10207:36;10260:19;;36360:73:0::1;9883:402:1::0;36360:73:0::1;36444:28;36463:8;36444:18;:28::i;50721:380::-:0;-1:-1:-1;;;;;50857:19:0;;50849:68;;;;-1:-1:-1;;;50849:68:0;;16739:2:1;50849:68:0;;;16721:21:1;16778:2;16758:18;;;16751:30;16817:34;16797:18;;;16790:62;-1:-1:-1;;;16868:18:1;;;16861:34;16912:19;;50849:68:0;16537:400:1;50849:68:0;-1:-1:-1;;;;;50936:21:0;;50928:68;;;;-1:-1:-1;;;50928:68:0;;10492:2:1;50928:68:0;;;10474:21:1;10531:2;10511:18;;;10504:30;10570:34;10550:18;;;10543:62;-1:-1:-1;;;10621:18:1;;;10614:32;10663:19;;50928:68:0;10290:398:1;50928:68:0;-1:-1:-1;;;;;51009:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;51061:32;;4031:25:1;;;51061:32:0;;4004:18:1;51061:32:0;;;;;;;50721:380;;;:::o;47940:733::-;-1:-1:-1;;;;;48080:20:0;;48072:70;;;;-1:-1:-1;;;48072:70:0;;15572:2:1;48072:70:0;;;15554:21:1;15611:2;15591:18;;;15584:30;15650:34;15630:18;;;15623:62;-1:-1:-1;;;15701:18:1;;;15694:35;15746:19;;48072:70:0;15370:401:1;48072:70:0;-1:-1:-1;;;;;48161:23:0;;48153:71;;;;-1:-1:-1;;;48153:71:0;;7497:2:1;48153:71:0;;;7479:21:1;7536:2;7516:18;;;7509:30;7575:34;7555:18;;;7548:62;-1:-1:-1;;;7626:18:1;;;7619:33;7669:19;;48153:71:0;7295:399:1;48153:71:0;48237:47;48258:6;48266:9;48277:6;48237:20;:47::i;:::-;-1:-1:-1;;;;;48321:17:0;;48297:21;48321:17;;;;;;;;;;;48357:23;;;;48349:74;;;;-1:-1:-1;;;48349:74:0;;11253:2:1;48349:74:0;;;11235:21:1;11292:2;11272:18;;;11265:30;11331:34;11311:18;;;11304:62;-1:-1:-1;;;11382:18:1;;;11375:36;11428:19;;48349:74:0;11051:402:1;48349:74:0;-1:-1:-1;;;;;48459:17:0;;;:9;:17;;;;;;;;;;;48479:22;;;48459:42;;48523:20;;;;;;;;:30;;48495:6;;48459:9;48523:30;;48495:6;;48523:30;:::i;:::-;;;;;;;;48588:9;-1:-1:-1;;;;;48571:35:0;48580:6;-1:-1:-1;;;;;48571:35:0;;48599:6;48571:35;;;;4031:25:1;;4019:2;4004:18;;3885:177;48571:35:0;;;;;;;;48619:46;48639:6;48647:9;48658:6;48619:19;:46::i;:::-;48061:612;47940:733;;;:::o;23010:314::-;23063:7;23095:4;-1:-1:-1;;;;;23104:12:0;23087:29;;:66;;;;;23137:16;23120:13;:33;23087:66;23083:234;;;-1:-1:-1;23177:24:0;;23010:314::o;23083:234::-;-1:-1:-1;23513:73:0;;;23263:10;23513:73;;;;5344:25:1;;;;23275:12:0;5385:18:1;;;5378:34;23289:15:0;5428:18:1;;;5421:34;23557:13:0;5471:18:1;;;5464:34;23580:4:0;5514:19:1;;;;5507:61;;;;23513:73:0;;;;;;;;;;5316:19:1;;;;23513:73:0;;;23503:84;;;;;;54993:115::o;59627:1482::-;60760:12;;59726:7;;;60809:236;60822:4;60816:3;:10;60809:236;;;60843:11;60857:23;60870:3;60875:4;60857:12;:23::i;:::-;60843:37;;60922:11;60899:5;60905:3;60899:10;;;;;;;;:::i;:::-;;;;;;;;;;:20;;;:34;60895:139;;;60961:3;60954:10;;60895:139;;;61011:7;:3;61017:1;61011:7;:::i;:::-;61005:13;;60895:139;60828:217;60809:236;;;61064:9;;:37;;61080:5;61086:8;61093:1;61086:4;:8;:::i;:::-;61080:15;;;;;;;;:::i;:::-;;;;;;;;;;:21;;;;-1:-1:-1;;;;;61080:21:0;61064:37;;;61076:1;61064:37;-1:-1:-1;;;;;61057:44:0;;59627:1482;-1:-1:-1;;;;;59627:1482:0:o;34181:120::-;33193:7;;-1:-1:-1;;;33193:7:0;;;;33717:41;;;;-1:-1:-1;;;33717:41:0;;8261:2:1;33717:41:0;;;8243:21:1;8300:2;8280:18;;;8273:30;-1:-1:-1;;;8319:18:1;;;8312:50;8379:18;;33717:41:0;8059:344:1;33717:41:0;34240:7:::1;:15:::0;;-1:-1:-1;;;;34240:15:0::1;::::0;;34271:22:::1;31856:10:::0;34280:12:::1;34271:22;::::0;-1:-1:-1;;;;;3649:32:1;;;3631:51;;3619:2;3604:18;34271:22:0::1;;;;;;;34181:120::o:0;77824:158::-;77951:23;77963:2;77967:6;77951:11;:23::i;77990:155::-;78109:28;78121:7;78130:6;78109:11;:28::i;71819:1619::-;71908:4;71914:7;71955:1;71942:10;:14;71934:49;;;;-1:-1:-1;;;71934:49:0;;17144:2:1;71934:49:0;;;17126:21:1;17183:2;17163:18;;;17156:30;-1:-1:-1;;;17202:18:1;;;17195:52;17264:18;;71934:49:0;16942:346:1;71934:49:0;72016:23;:21;:23::i;:::-;72002:10;:37;;71994:79;;;;-1:-1:-1;;;71994:79:0;;7139:2:1;71994:79:0;;;7121:21:1;7178:2;7158:18;;;7151:30;7217:31;7197:18;;;7190:59;7266:18;;71994:79:0;6937:353:1;71994:79:0;73212:13;73228:40;:9;73257:10;73228:28;:40::i;:::-;73294:20;;73212:56;;-1:-1:-1;73285:29:0;;73281:150;;;73339:5;73346:1;73331:17;;;;;;;73281:150;73389:4;73395:9;:16;;73412:5;73395:23;;;;;;;;:::i;:::-;;;;;;;;;73381:38;;;;;71819:1619;;;;;;:::o;63414:388::-;-1:-1:-1;;;;;58248:19:0;;;63499:23;58248:19;;;:10;:19;;;;;;;;;;43992:18;;;;;;;63614:21;;;;:33;;;-1:-1:-1;;;;;;63614:33:0;;;;;;;63665:54;;58248:19;;;;;43992:18;;63614:33;;58248:19;;;63665:54;;63499:23;63665:54;63732:62;63749:15;63766:9;63777:16;63732;:62::i;3165:190::-;3221:6;3257:16;3248:25;;;3240:76;;;;-1:-1:-1;;;3240:76:0;;16332:2:1;3240:76:0;;;16314:21:1;16371:2;16351:18;;;16344:30;16410:34;16390:18;;;16383:62;-1:-1:-1;;;16461:18:1;;;16454:36;16507:19;;3240:76:0;16130:402:1;3240:76:0;-1:-1:-1;3341:5:0;3165:190::o;36640:191::-;36733:6;;;-1:-1:-1;;;;;36750:17:0;;;-1:-1:-1;;;;;;36750:17:0;;;;;;;36783:40;;36733:6;;;36750:17;36733:6;;36783:40;;36714:16;;36783:40;36703:128;36640:191;:::o;33922:118::-;33193:7;;-1:-1:-1;;;33193:7:0;;;;33447:9;33439:38;;;;-1:-1:-1;;;33439:38:0;;12063:2:1;33439:38:0;;;12045:21:1;12102:2;12082:18;;;12075:30;-1:-1:-1;;;12121:18:1;;;12114:46;12177:18;;33439:38:0;11861:340:1;33439:38:0;33982:7:::1;:14:::0;;-1:-1:-1;;;;33982:14:0::1;-1:-1:-1::0;;;33982:14:0::1;::::0;;34012:20:::1;34019:12;31856:10:::0;;31776:98;69840:223;69887:7;69907:30;:18;27859:19;;27877:1;27859:19;;;27770:127;69907:30;69950:17;69970:23;:21;:23::i;:::-;69950:43;;70009:19;70018:9;70009:19;;;;4031:25:1;;4019:2;4004:18;;3885:177;70009:19:0;;;;;;;;70046:9;69840:223;-1:-1:-1;69840:223:0:o;24237:167::-;24314:7;24341:55;24363:20;:18;:20::i;:::-;24385:10;19707:57;;-1:-1:-1;;;19707:57:0;;;3346:27:1;3389:11;;;3382:27;;;3425:12;;;3418:28;;;19670:7:0;;3462:12:1;;19707:57:0;;;;;;;;;;;;19697:68;;;;;;19690:75;;19577:196;;;;;17886:279;18014:7;18035:17;18054:18;18076:25;18087:4;18093:1;18096;18099;18076:10;:25::i;:::-;18034:67;;;;18112:18;18124:5;18112:11;:18::i;:::-;-1:-1:-1;18148:9:0;17886:279;-1:-1:-1;;;;;17886:279:0:o;55246:207::-;-1:-1:-1;;;;;55367:14:0;;55306:15;55367:14;;;:7;:14;;;;;27740;;27877:1;27859:19;;;;27740:14;55428:17;55323:130;55246:207;;;:::o;77324:221::-;33193:7;;-1:-1:-1;;;33193:7:0;;;;33447:9;33439:38;;;;-1:-1:-1;;;33439:38:0;;12063:2:1;33439:38:0;;;12045:21:1;12102:2;12082:18;;;12075:30;-1:-1:-1;;;12121:18:1;;;12114:46;12177:18;;33439:38:0;11861:340:1;33439:38:0;77493:44:::1;77520:4;77526:2;77530:6;77493:26;:44::i;77623:193::-:0;77765:43;77791:4;77797:2;77801:6;77765:25;:43::i;28956:156::-;29018:7;29093:11;29103:1;29094:5;;;29093:11;:::i;:::-;29083:21;;29084:5;;;29083:21;:::i;76437:207::-;76367:4;76552:6;76530:19;43808:12;;;43720:108;76530:19;:28;;;;:::i;:::-;:37;;76522:75;;;;-1:-1:-1;;;76522:75:0;;15978:2:1;76522:75:0;;;15960:21:1;16017:2;15997:18;;;15990:30;16056:27;16036:18;;;16029:55;16101:18;;76522:75:0;15776:349:1;76522:75:0;76608:28;76620:7;76629:6;76608:11;:28::i;62654:194::-;62739:28;62751:7;62760:6;62739:11;:28::i;:::-;62780:60;62797:23;62822:9;62833:6;62780:16;:60::i;70129:127::-;70193:7;70220:28;:18;27740:14;;27648:114;30172:918;30285:12;;30261:7;;30281:58;;-1:-1:-1;30326:1:0;30319:8;;30281:58;30392:12;;30351:11;;30417:424;30430:4;30424:3;:10;30417:424;;;30451:11;30465:23;30478:3;30483:4;30465:12;:23::i;:::-;30451:37;;30722:7;30709:5;30715:3;30709:10;;;;;;;;:::i;:::-;;;;;;;;;:20;30705:125;;;30757:3;30750:10;;30705:125;;;30807:7;:3;30813:1;30807:7;:::i;:::-;30801:13;;30705:125;30436:405;30417:424;;;30967:1;30961:3;:7;:36;;;;-1:-1:-1;30990:7:0;30972:5;30978:7;30984:1;30978:3;:7;:::i;:::-;30972:14;;;;;;;;:::i;:::-;;;;;;;;;:25;30961:36;30957:126;;;31021:7;31027:1;31021:3;:7;:::i;:::-;31014:14;;;;;;30957:126;-1:-1:-1;31068:3:0;-1:-1:-1;31061:10:0;;63810:643;63942:3;-1:-1:-1;;;;;63935:10:0;:3;-1:-1:-1;;;;;63935:10:0;;;:24;;;;;63958:1;63949:6;:10;63935:24;63931:515;;;-1:-1:-1;;;;;63980:17:0;;;63976:224;;-1:-1:-1;;;;;64076:17:0;;64019;64076;;;:12;:17;;;;;64019;;64059:54;;64095:9;64106:6;64059:16;:54::i;:::-;64018:95;;;;64158:3;-1:-1:-1;;;;;64137:47:0;;64163:9;64174;64137:47;;;;;;18766:25:1;;;18822:2;18807:18;;18800:34;18754:2;18739:18;;18592:248;64137:47:0;;;;;;;;63999:201;;63976:224;-1:-1:-1;;;;;64220:17:0;;;64216:219;;-1:-1:-1;;;;;64316:17:0;;64259;64316;;;:12;:17;;;;;64259;;64299:49;;64335:4;64341:6;64299:16;:49::i;:::-;64258:90;;;;64393:3;-1:-1:-1;;;;;64372:47:0;;64398:9;64409;64372:47;;;;;;18766:25:1;;;18822:2;18807:18;;18800:34;18754:2;18739:18;;18592:248;64372:47:0;;;;;;;;64239:196;;63810:643;;;:::o;16115:1632::-;16246:7;;17180:66;17167:79;;17163:163;;;-1:-1:-1;17279:1:0;;-1:-1:-1;17283:30:0;17263:51;;17163:163;17340:1;:7;;17345:2;17340:7;;:18;;;;;17351:1;:7;;17356:2;17351:7;;17340:18;17336:102;;;-1:-1:-1;17391:1:0;;-1:-1:-1;17395:30:0;17375:51;;17336:102;17552:24;;;17535:14;17552:24;;;;;;;;;5806:25:1;;;5879:4;5867:17;;5847:18;;;5840:45;;;;5901:18;;;5894:34;;;5944:18;;;5937:34;;;17552:24:0;;5778:19:1;;17552:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;17552:24:0;;-1:-1:-1;;17552:24:0;;;-1:-1:-1;;;;;;;17591:20:0;;17587:103;;17644:1;17648:29;17628:50;;;;;;;17587:103;17710:6;-1:-1:-1;17718:20:0;;-1:-1:-1;16115:1632:0;;;;;;;;:::o;10777:643::-;10855:20;10846:5;:29;;;;;;;;:::i;:::-;;10842:571;;;10777:643;:::o;10842:571::-;10953:29;10944:5;:38;;;;;;;;:::i;:::-;;10940:473;;;10999:34;;-1:-1:-1;;;10999:34:0;;6786:2:1;10999:34:0;;;6768:21:1;6825:2;6805:18;;;6798:30;6864:26;6844:18;;;6837:54;6908:18;;10999:34:0;6584:348:1;10940:473:0;11064:35;11055:5;:44;;;;;;;;:::i;:::-;;11051:362;;;11116:41;;-1:-1:-1;;;11116:41:0;;9371:2:1;11116:41:0;;;9353:21:1;9410:2;9390:18;;;9383:30;9449:33;9429:18;;;9422:61;9500:18;;11116:41:0;9169:355:1;11051:362:0;11188:30;11179:5;:39;;;;;;;;:::i;:::-;;11175:238;;;11235:44;;-1:-1:-1;;;11235:44:0;;11660:2:1;11235:44:0;;;11642:21:1;11699:2;11679:18;;;11672:30;11738:34;11718:18;;;11711:62;-1:-1:-1;;;11789:18:1;;;11782:32;11831:19;;11235:44:0;11458:398:1;11175:238:0;11310:30;11301:5;:39;;;;;;;;:::i;:::-;;11297:116;;;11357:44;;-1:-1:-1;;;11357:44:0;;12408:2:1;11357:44:0;;;12390:21:1;12447:2;12427:18;;;12420:30;12486:34;12466:18;;;12459:62;-1:-1:-1;;;12537:18:1;;;12530:32;12579:19;;11357:44:0;12206:398:1;71189:622:0;-1:-1:-1;;;;;71393:18:0;;71389:415;;71449:26;71472:2;71449:22;:26::i;:::-;71490:28;:26;:28::i;71389:415::-;-1:-1:-1;;;;;71540:16:0;;71536:268;;71594:28;71617:4;71594:22;:28::i;71536:268::-;71723:28;71746:4;71723:22;:28::i;:::-;71766:26;71789:2;71766:22;:26::i;62988:262::-;-1:-1:-1;;;;;58248:19:0;;;58221:7;58248:19;;;:10;:19;;;;;;;;;;;;;;;63186:56;;58248:19;;;;;63235:6;63186:16;:56::i;62270:290::-;62355:28;62367:7;62376:6;62355:11;:28::i;:::-;43808:12;;-1:-1:-1;;;;;;62402:29:0;62394:90;;;;-1:-1:-1;;;62394:90:0;;13579:2:1;62394:90:0;;;13561:21:1;13618:2;13598:18;;;13591:30;13657:34;13637:18;;;13630:62;-1:-1:-1;;;13708:18:1;;;13701:46;13764:19;;62394:90:0;13377:412:1;62394:90:0;62497:55;62514:23;62539:4;62545:6;62497:16;:55::i;49692:591::-;-1:-1:-1;;;;;49776:21:0;;49768:67;;;;-1:-1:-1;;;49768:67:0;;15170:2:1;49768:67:0;;;15152:21:1;15209:2;15189:18;;;15182:30;15248:34;15228:18;;;15221:62;-1:-1:-1;;;15299:18:1;;;15292:31;15340:19;;49768:67:0;14968:397:1;49768:67:0;49848:49;49869:7;49886:1;49890:6;49848:20;:49::i;:::-;-1:-1:-1;;;;;49935:18:0;;49910:22;49935:18;;;;;;;;;;;49972:24;;;;49964:71;;;;-1:-1:-1;;;49964:71:0;;8968:2:1;49964:71:0;;;8950:21:1;9007:2;8987:18;;;8980:30;9046:34;9026:18;;;9019:62;-1:-1:-1;;;9097:18:1;;;9090:32;9139:19;;49964:71:0;8766:398:1;49964:71:0;-1:-1:-1;;;;;50071:18:0;;:9;:18;;;;;;;;;;50092:23;;;50071:44;;50137:12;:22;;50109:6;;50071:9;50137:22;;50109:6;;50137:22;:::i;:::-;;;;-1:-1:-1;;50177:37:0;;4031:25:1;;;50203:1:0;;-1:-1:-1;;;;;50177:37:0;;;;;4019:2:1;4004:18;50177:37:0;;;;;;;50227:48;50247:7;50264:1;50268:6;50227:19;:48::i;65220:103::-;65283:7;65310:5;65314:1;65310;:5;:::i;64461:645::-;64698:12;;64635:17;;;;64733:8;;:35;;64748:5;64754:7;64760:1;64754:3;:7;:::i;:::-;64748:14;;;;;;;;:::i;:::-;;;;;;;;;;:20;;;;-1:-1:-1;;;;;64748:20:0;64733:35;;;64744:1;64733:35;-1:-1:-1;;;;;64721:47:0;;;64791:20;64794:9;64805:5;64791:2;:20;;:::i;:::-;64779:32;;64834:1;64828:3;:7;:51;;;;-1:-1:-1;64867:12:0;64839:5;64845:7;64851:1;64845:3;:7;:::i;:::-;64839:14;;;;;;;;:::i;:::-;;;;;;;;;;:24;;;:40;64828:51;64824:275;;;64919:29;64938:9;64919:18;:29::i;:::-;64896:5;64902:7;64908:1;64902:3;:7;:::i;:::-;64896:14;;;;;;;;:::i;:::-;;;;;;;;:20;;;:52;;;;;-1:-1:-1;;;;;64896:52:0;;;;;-1:-1:-1;;;;;64896:52:0;;;;;;64824:275;;;64981:5;64992:94;;;;;;;;65015:31;65033:12;65015:17;:31::i;:::-;64992:94;;;;;;65055:29;65074:9;65055:18;:29::i;:::-;-1:-1:-1;;;;;64992:94:0;;;;;;64981:106;;;;;;;-1:-1:-1;64981:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64824:275;64673:433;64461:645;;;;;;:::o;65114:98::-;65172:7;65199:5;65203:1;65199;:5;:::i;73446:146::-;-1:-1:-1;;;;;73530:33:0;;;;;;:24;:33;;;;;;;;43992:18;;;;;;;;73514:70;;73530:33;73514:15;:70::i;73565:18::-;73514:15;:70::i;73600:118::-;73657:53;73673:21;73696:13;43808:12;;;43720:108;48960:399;-1:-1:-1;;;;;49044:21:0;;49036:65;;;;-1:-1:-1;;;49036:65:0;;17901:2:1;49036:65:0;;;17883:21:1;17940:2;17920:18;;;17913:30;17979:33;17959:18;;;17952:61;18030:18;;49036:65:0;17699:355:1;49036:65:0;49114:49;49143:1;49147:7;49156:6;49114:20;:49::i;:::-;49192:6;49176:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;49209:18:0;;:9;:18;;;;;;;;;;:28;;49231:6;;49209:9;:28;;49231:6;;49209:28;:::i;:::-;;;;-1:-1:-1;;49253:37:0;;4031:25:1;;;-1:-1:-1;;;;;49253:37:0;;;49270:1;;49253:37;;4019:2:1;4004:18;49253:37:0;;;;;;;49303:48;49331:1;49335:7;49344:6;49303:19;:48::i;1195:195::-;1252:7;-1:-1:-1;;;;;1280:26:0;;;1272:78;;;;-1:-1:-1;;;1272:78:0;;14357:2:1;1272:78:0;;;14339:21:1;14396:2;14376:18;;;14369:30;14435:34;14415:18;;;14408:62;-1:-1:-1;;;14486:18:1;;;14479:37;14533:19;;1272:78:0;14155:403:1;73726:310:0;73821:17;73841:23;:21;:23::i;:::-;73821:43;-1:-1:-1;73821:43:0;73879:30;73895:9;73879:15;:30::i;:::-;:42;73875:154;;;73938:29;;;;;;;;-1:-1:-1;73938:29:0;;;;;;;;;;;;;;73982:16;;;:35;;;;;;;;;;;;;;;73726:310::o;74044:212::-;74138:10;;74114:7;;74134:115;;-1:-1:-1;74177:1:0;;74044:212;-1:-1:-1;74044:212:0:o;74134:115::-;74222:10;;74218:3;;74222:14;;74235:1;;74222:14;:::i;:::-;74218:19;;;;;;;;:::i;:::-;;;;;;;;;74211:26;;74044:212;;;:::o;74134:115::-;74044:212;;;:::o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;192:156;258:20;;318:4;307:16;;297:27;;287:55;;338:1;335;328:12;353:186;412:6;465:2;453:9;444:7;440:23;436:32;433:52;;;481:1;478;471:12;433:52;504:29;523:9;504:29;:::i;544:260::-;612:6;620;673:2;661:9;652:7;648:23;644:32;641:52;;;689:1;686;679:12;641:52;712:29;731:9;712:29;:::i;:::-;702:39;;760:38;794:2;783:9;779:18;760:38;:::i;:::-;750:48;;544:260;;;;;:::o;809:328::-;886:6;894;902;955:2;943:9;934:7;930:23;926:32;923:52;;;971:1;968;961:12;923:52;994:29;1013:9;994:29;:::i;:::-;984:39;;1042:38;1076:2;1065:9;1061:18;1042:38;:::i;:::-;1032:48;;1127:2;1116:9;1112:18;1099:32;1089:42;;809:328;;;;;:::o;1142:606::-;1253:6;1261;1269;1277;1285;1293;1301;1354:3;1342:9;1333:7;1329:23;1325:33;1322:53;;;1371:1;1368;1361:12;1322:53;1394:29;1413:9;1394:29;:::i;:::-;1384:39;;1442:38;1476:2;1465:9;1461:18;1442:38;:::i;:::-;1432:48;;1527:2;1516:9;1512:18;1499:32;1489:42;;1578:2;1567:9;1563:18;1550:32;1540:42;;1601:37;1633:3;1622:9;1618:19;1601:37;:::i;:::-;1591:47;;1685:3;1674:9;1670:19;1657:33;1647:43;;1737:3;1726:9;1722:19;1709:33;1699:43;;1142:606;;;;;;;;;;:::o;1753:254::-;1821:6;1829;1882:2;1870:9;1861:7;1857:23;1853:32;1850:52;;;1898:1;1895;1888:12;1850:52;1921:29;1940:9;1921:29;:::i;:::-;1911:39;1997:2;1982:18;;;;1969:32;;-1:-1:-1;;;1753:254:1:o;2012:531::-;2114:6;2122;2130;2138;2146;2154;2207:3;2195:9;2186:7;2182:23;2178:33;2175:53;;;2224:1;2221;2214:12;2175:53;2247:29;2266:9;2247:29;:::i;:::-;2237:39;;2323:2;2312:9;2308:18;2295:32;2285:42;;2374:2;2363:9;2359:18;2346:32;2336:42;;2397:36;2429:2;2418:9;2414:18;2397:36;:::i;:::-;2387:46;;2480:3;2469:9;2465:19;2452:33;2442:43;;2532:3;2521:9;2517:19;2504:33;2494:43;;2012:531;;;;;;;;:::o;2548:350::-;2615:6;2623;2676:2;2664:9;2655:7;2651:23;2647:32;2644:52;;;2692:1;2689;2682:12;2644:52;2715:29;2734:9;2715:29;:::i;:::-;2705:39;;2794:2;2783:9;2779:18;2766:32;2838:10;2831:5;2827:22;2820:5;2817:33;2807:61;;2864:1;2861;2854:12;2807:61;2887:5;2877:15;;;2548:350;;;;;:::o;2903:180::-;2962:6;3015:2;3003:9;2994:7;2990:23;2986:32;2983:52;;;3031:1;3028;3021:12;2983:52;-1:-1:-1;3054:23:1;;2903:180;-1:-1:-1;2903:180:1:o;5982:597::-;6094:4;6123:2;6152;6141:9;6134:21;6184:6;6178:13;6227:6;6222:2;6211:9;6207:18;6200:34;6252:1;6262:140;6276:6;6273:1;6270:13;6262:140;;;6371:14;;;6367:23;;6361:30;6337:17;;;6356:2;6333:26;6326:66;6291:10;;6262:140;;;6420:6;6417:1;6414:13;6411:91;;;6490:1;6485:2;6476:6;6465:9;6461:22;6457:31;6450:42;6411:91;-1:-1:-1;6563:2:1;6542:15;-1:-1:-1;;6538:29:1;6523:45;;;;6570:2;6519:54;;5982:597;-1:-1:-1;;;5982:597:1:o;13794:356::-;13996:2;13978:21;;;14015:18;;;14008:30;14074:34;14069:2;14054:18;;14047:62;14141:2;14126:18;;13794:356::o;19231:128::-;19271:3;19302:1;19298:6;19295:1;19292:13;19289:39;;;19308:18;;:::i;:::-;-1:-1:-1;19344:9:1;;19231:128::o;19364:217::-;19404:1;19430;19420:132;;19474:10;19469:3;19465:20;19462:1;19455:31;19509:4;19506:1;19499:15;19537:4;19534:1;19527:15;19420:132;-1:-1:-1;19566:9:1;;19364:217::o;19586:125::-;19626:4;19654:1;19651;19648:8;19645:34;;;19659:18;;:::i;:::-;-1:-1:-1;19696:9:1;;19586:125::o;19716:380::-;19795:1;19791:12;;;;19838;;;19859:61;;19913:4;19905:6;19901:17;19891:27;;19859:61;19966:2;19958:6;19955:14;19935:18;19932:38;19929:161;;;20012:10;20007:3;20003:20;20000:1;19993:31;20047:4;20044:1;20037:15;20075:4;20072:1;20065:15;20101:127;20162:10;20157:3;20153:20;20150:1;20143:31;20193:4;20190:1;20183:15;20217:4;20214:1;20207:15;20233:127;20294:10;20289:3;20285:20;20282:1;20275:31;20325:4;20322:1;20315:15;20349:4;20346:1;20339:15;20365:127;20426:10;20421:3;20417:20;20414:1;20407:31;20457:4;20454:1;20447:15;20481:4;20478:1;20471:15
Swarm Source
ipfs://a40a5138fd5210227822211d0bd7099224dcd28388a5d902cca63fc270c7d12a
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.