ERC-20
Overview
Max Total Supply
3,000,000,000,000 PepePrinter
Holders
18
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
1,282,141,621.3622832 PepePrinterValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PepePrinter
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-08-03 */ // SPDX-License-Identifier: MIT /* * Twitter: https://twitter.com/Pepeprinter */ pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values in the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/IAccessControl.sol // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged( bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole ); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted( bytes32 indexed role, address indexed account, address indexed sender ); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked( bytes32 indexed role, address indexed account, address indexed sender ); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/IAccessControlEnumerable.sol // OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/AccessControl.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) pragma solidity ^0.8.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(account), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require( account == _msgSender(), "AccessControl: can only renounce roles for self" ); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/AccessControlEnumerable.sol // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol) pragma solidity ^0.8.0; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override { super._grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override { super._revokeRole(role, account); _roleMembers[role].remove(account); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require( newOwner != address(0), "Ownable: new owner is the zero address" ); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require( address(this).balance >= amount, "Address: insufficient balance" ); (bool success, ) = recipient.call{value: amount}(""); require( success, "Address: unable to send value, recipient may have reverted" ); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue( target, data, 0, "Address: low-level call failed" ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue( target, data, value, "Address: low-level call with value failed" ); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require( address(this).balance >= value, "Address: insufficient balance for call" ); (bool success, bytes memory returndata) = target.call{value: value}( data ); return verifyCallResultFromTarget( target, success, returndata, errorMessage ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall( target, data, "Address: low-level static call failed" ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget( target, success, returndata, errorMessage ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall( target, data, "Address: low-level delegate call failed" ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget( target, success, returndata, errorMessage ); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval( address indexed owner, address indexed spender, uint256 value ); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require( currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero" ); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require( fromBalance >= amount, "ERC20: transfer amount exceeds balance" ); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require( currentAllowance >= amount, "ERC20: insufficient allowance" ); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/extensions/ERC20Burnable.sol // OpenZeppelin Contracts (last updated v4.5.0) (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 { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } } // File: contracts/ERC20PresetMinterRebaser.sol pragma solidity ^0.8.0; contract ERC20PresetMinterRebaser is Context, AccessControlEnumerable, ERC20Burnable { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant REBASER_ROLE = keccak256("REBASER_ROLE"); constructor(string memory name, string memory symbol) ERC20(name, symbol) { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(MINTER_ROLE, _msgSender()); _setupRole(REBASER_ROLE, _msgSender()); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/utils/SafeERC20.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn( token, abi.encodeWithSelector(token.transfer.selector, to, value) ); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn( token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value) ); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn( token, abi.encodeWithSelector(token.approve.selector, spender, value) ); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn( token, abi.encodeWithSelector( token.approve.selector, spender, newAllowance ) ); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require( oldAllowance >= value, "SafeERC20: decreased allowance below zero" ); uint256 newAllowance = oldAllowance - value; _callOptionalReturn( token, abi.encodeWithSelector( token.approve.selector, spender, newAllowance ) ); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require( nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed" ); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall( data, "SafeERC20: low-level call failed" ); if (returndata.length > 0) { // Return data is optional require( abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed" ); } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/SafeMath.sol // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } pragma solidity ^0.8.0; abstract contract IPEPEPRINTER { /** * @notice Event emitted when tokens are rebased */ event Rebase( uint256 epoch, uint256 prevEggssScalingFactor, uint256 newEggssScalingFactor ); /* - Extra Events - */ /** * @notice Tokens minted event */ event Mint(address to, uint256 amount); /** * @notice Tokens burned event */ event Burn(address from, uint256 amount); } pragma solidity ^0.8.0; contract PepePrinter is ERC20PresetMinterRebaser, Ownable, IPEPEPRINTER { using SafeMath for uint256; /** * @dev Guard variable for re-entrancy checks. Not currently used */ bool internal _notEntered; /** * @notice Internal decimals used to handle scaling factor */ uint256 public constant internalDecimals = 10**24; /** * @notice Used for percentage maths */ uint256 public constant BASE = 10**18; /** * @notice Scaling factor that adjusts everyone's balances */ uint256 public eggssScalingFactor; mapping(address => uint256) internal _eggsBalances; mapping(address => mapping(address => uint256)) internal _allowedFragments; uint256 public initSupply; // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9; bytes32 public DOMAIN_SEPARATOR; mapping(address => uint256) public nonces; /// @notice The EIP-712 typehash for the contract's domain bytes32 public constant DOMAIN_TYPEHASH = keccak256( "EIP712Domain(string name,uint256 chainId,address verifyingContract)" ); uint256 private INIT_SUPPLY = 3000000000000 * 10**18; uint256 private _totalSupply; modifier validRecipient(address to) { require(to != address(0x0)); require(to != address(this)); _; } constructor() ERC20PresetMinterRebaser("PepePrinter", "PepePrinter") { eggssScalingFactor = BASE; initSupply = _fragmentToEggs(INIT_SUPPLY); _totalSupply = INIT_SUPPLY; _eggsBalances[owner()] = initSupply; emit Transfer(address(0), msg.sender, INIT_SUPPLY); } /** * @return The total number of fragments. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @notice Computes the current max scaling factor */ function maxScalingFactor() external view returns (uint256) { return _maxScalingFactor(); } function _maxScalingFactor() internal view returns (uint256) { // scaling factor can only go up to 2**256-1 = initSupply * eggssScalingFactor // this is used to check if eggssScalingFactor will be too high to compute balances when rebasing. return uint256(int256(-1)) / initSupply; } /** * @notice Mints new tokens, increasing totalSupply, initSupply, and a users balance. */ function mint(address to, uint256 amount) external returns (bool) { require(hasRole(MINTER_ROLE, _msgSender()), "Must have minter role"); _mint(to, amount); return true; } function _mint(address to, uint256 amount) internal override { // increase totalSupply _totalSupply = _totalSupply.add(amount); // get underlying value uint256 eggsValue = _fragmentToEggs(amount); // increase initSupply initSupply = initSupply.add(eggsValue); // make sure the mint didnt push maxScalingFactor too low require( eggssScalingFactor <= _maxScalingFactor(), "max scaling factor too low" ); // add balance _eggsBalances[to] = _eggsBalances[to].add(eggsValue); emit Mint(to, amount); emit Transfer(address(0), to, amount); } /** * @notice Burns tokens from msg.sender, decreases totalSupply, initSupply, and a users balance. */ function burn(uint256 amount) public override { _burn(amount); } function _burn(uint256 amount) internal { // decrease totalSupply _totalSupply = _totalSupply.sub(amount); // get underlying value uint256 eggsValue = _fragmentToEggs(amount); // decrease initSupply initSupply = initSupply.sub(eggsValue); // decrease balance _eggsBalances[msg.sender] = _eggsBalances[msg.sender].sub(eggsValue); emit Burn(msg.sender, amount); emit Transfer(msg.sender, address(0), amount); } /** * @notice Mints new tokens using underlying amount, increasing totalSupply, initSupply, and a users balance. */ function mintUnderlying(address to, uint256 amount) public returns (bool) { require(hasRole(MINTER_ROLE, _msgSender()), "Must have minter role"); _mintUnderlying(to, amount); return true; } function _mintUnderlying(address to, uint256 amount) internal { // increase initSupply initSupply = initSupply.add(amount); // get external value uint256 scaledAmount = _eggsToFragment(amount); // increase totalSupply _totalSupply = _totalSupply.add(scaledAmount); // make sure the mint didnt push maxScalingFactor too low require( eggssScalingFactor <= _maxScalingFactor(), "max scaling factor too low" ); // add balance _eggsBalances[to] = _eggsBalances[to].add(amount); emit Mint(to, scaledAmount); emit Transfer(address(0), to, scaledAmount); } /** * @dev Transfer underlying balance to a specified address. * @param to The address to transfer to. * @param value The amount to be transferred. * @return True on success, false otherwise. */ function transferUnderlying(address to, uint256 value) public validRecipient(to) returns (bool) { // sub from balance of sender _eggsBalances[msg.sender] = _eggsBalances[msg.sender].sub(value); // add to balance of receiver _eggsBalances[to] = _eggsBalances[to].add(value); emit Transfer(msg.sender, to, _eggsToFragment(value)); return true; } /* - ERC20 functionality - */ /** * @dev Transfer tokens to a specified address. * @param to The address to transfer to. * @param value The amount to be transferred. * @return True on success, false otherwise. */ function transfer(address to, uint256 value) public override validRecipient(to) returns (bool) { // underlying balance is stored in eggss, so divide by current scaling factor // note, this means as scaling factor grows, dust will be untransferrable. // minimum transfer value == eggssScalingFactor / 1e24; // get amount in underlying uint256 eggsValue = _fragmentToEggs(value); // sub from balance of sender _eggsBalances[msg.sender] = _eggsBalances[msg.sender].sub(eggsValue); // add to balance of receiver _eggsBalances[to] = _eggsBalances[to].add(eggsValue); emit Transfer(msg.sender, to, value); return true; } /** * @dev Transfer tokens from one address to another. * @param from The address you want to send tokens from. * @param to The address you want to transfer to. * @param value The amount of tokens to be transferred. */ function transferFrom( address from, address to, uint256 value ) public override validRecipient(to) returns (bool) { // decrease allowance _allowedFragments[from][msg.sender] = _allowedFragments[from][ msg.sender ].sub(value); // get value in eggss uint256 eggsValue = _fragmentToEggs(value); // sub from from _eggsBalances[from] = _eggsBalances[from].sub(eggsValue); _eggsBalances[to] = _eggsBalances[to].add(eggsValue); emit Transfer(from, to, value); return true; } /** * @param who The address to query. * @return The balance of the specified address. */ function balanceOf(address who) public view override returns (uint256) { return _eggsToFragment(_eggsBalances[who]); } /** @notice Currently returns the internal storage amount * @param who The address to query. * @return The underlying balance of the specified address. */ function balanceOfUnderlying(address who) public view returns (uint256) { return _eggsBalances[who]; } /** * @dev Function to check the amount of tokens that an owner has allowed to a spender. * @param owner_ The address which owns the funds. * @param spender The address which will spend the funds. * @return The number of tokens still available for the spender. */ function allowance(address owner_, address spender) public view override returns (uint256) { return _allowedFragments[owner_][spender]; } /** * @dev Approve the passed address to spend the specified amount of tokens on behalf of * msg.sender. This method is included for ERC20 compatibility. * increaseAllowance and decreaseAllowance should be used instead. * Changing an allowance with this method brings the risk that someone may transfer both * the old and the new allowance - if they are both greater than zero - if a transfer * transaction is mined before the later approve() call is mined. * * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. */ function approve(address spender, uint256 value) public override returns (bool) { _allowedFragments[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; } /** * @dev Increase the amount of tokens that an owner has allowed to a spender. * This method should be used instead of approve() to avoid the double approval vulnerability * described above. * @param spender The address which will spend the funds. * @param addedValue The amount of tokens to increase the allowance by. */ function increaseAllowance(address spender, uint256 addedValue) public override returns (bool) { _allowedFragments[msg.sender][spender] = _allowedFragments[msg.sender][ spender ].add(addedValue); emit Approval( msg.sender, spender, _allowedFragments[msg.sender][spender] ); return true; } /** * @dev Decrease the amount of tokens that an owner has allowed to a spender. * * @param spender The address which will spend the funds. * @param subtractedValue The amount of tokens to decrease the allowance by. */ function decreaseAllowance(address spender, uint256 subtractedValue) public override returns (bool) { uint256 oldValue = _allowedFragments[msg.sender][spender]; if (subtractedValue >= oldValue) { _allowedFragments[msg.sender][spender] = 0; } else { _allowedFragments[msg.sender][spender] = oldValue.sub( subtractedValue ); } emit Approval( msg.sender, spender, _allowedFragments[msg.sender][spender] ); return true; } // --- Approve by signature --- function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public { require(block.timestamp <= deadline, "PEPEPRINTER/permit-expired"); bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR, keccak256( abi.encode( PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline ) ) ) ); require(owner != address(0), "PEPEPRINTER/invalid-address-0"); require(owner == ecrecover(digest, v, r, s), "PEPEPRINTER/invalid-permit"); _allowedFragments[owner][spender] = value; emit Approval(owner, spender, value); } function rebase( uint256 epoch, uint256 indexDelta, bool positive ) public returns (uint256) { require(hasRole(REBASER_ROLE, _msgSender()), "Must have rebaser role"); // no change if (indexDelta == 0) { emit Rebase(epoch, eggssScalingFactor, eggssScalingFactor); return _totalSupply; } // for events uint256 prevEggssScalingFactor = eggssScalingFactor; if (!positive) { // negative rebase, decrease scaling factor eggssScalingFactor = eggssScalingFactor .mul(BASE.sub(indexDelta)) .div(BASE); } else { // positive rebase, increase scaling factor uint256 newScalingFactor = eggssScalingFactor .mul(BASE.add(indexDelta)) .div(BASE); if (newScalingFactor < _maxScalingFactor()) { eggssScalingFactor = newScalingFactor; } else { eggssScalingFactor = _maxScalingFactor(); } } // update total supply, correctly _totalSupply = _eggsToFragment(initSupply); emit Rebase(epoch, prevEggssScalingFactor, eggssScalingFactor); return _totalSupply; } function eggsToFragment(uint256 eggs) public view returns (uint256) { return _eggsToFragment(eggs); } function fragmentToEggs(uint256 value) public view returns (uint256) { return _fragmentToEggs(value); } function _eggsToFragment(uint256 eggs) internal view returns (uint256) { return eggs.mul(eggssScalingFactor).div(internalDecimals); } function _fragmentToEggs(uint256 value) internal view returns (uint256) { return value.mul(internalDecimals).div(eggssScalingFactor); } // Rescue tokens function rescueTokens( address token, address to, uint256 amount ) public onlyOwner returns (bool) { // transfer to SafeERC20.safeTransfer(IERC20(token), to, amount); return true; } }
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":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"prevEggssScalingFactor","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newEggssScalingFactor","type":"uint256"}],"name":"Rebase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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"},{"inputs":[],"name":"BASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REBASER_ROLE","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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"balanceOfUnderlying","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":"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":"uint256","name":"eggs","type":"uint256"}],"name":"eggsToFragment","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eggssScalingFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"fragmentToEggs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"initSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"internalDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxScalingFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintUnderlying","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"uint256","name":"indexDelta","type":"uint256"},{"internalType":"bool","name":"positive","type":"bool"}],"name":"rebase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferUnderlying","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526c25dd85d670d35ec9bec0000000600e5534801562000021575f80fd5b50604080518082018252600b8082526a2832b832a83934b73a32b960a91b6020808401829052845180860190955291845290830152908181600562000067838262000416565b50600662000076828262000416565b506200008791505f905033620001a1565b620000b37f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620001a1565b620000df7f5fde63b561377d1441afa201ff619faac2ff8fed70a7fbdbe7a5cb07768c0b7533620001a1565b50620000ed905033620001b1565b670de0b6b3a7640000600855600e54620001079062000202565b600b819055600e54600f5560095f620001286007546001600160a01b031690565b6001600160a01b03166001600160a01b031681526020019081526020015f2081905550336001600160a01b03165f6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600e546040516200019391815260200190565b60405180910390a362000522565b620001ad82826200022f565b5050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6008545f906200022990620002228469d3c21bcecceda100000062000259565b906200026d565b92915050565b6200023b82826200027a565b5f82815260016020526040902062000254908262000318565b505050565b5f620002668284620004de565b9392505050565b5f62000266828462000502565b5f828152602081815260408083206001600160a01b038516845290915290205460ff16620001ad575f828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620002d43390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b5f62000266836001600160a01b0384165f8181526001830160205260408120546200036f57508154600181810184555f84815260208082209093018490558454848252828601909352604090209190915562000229565b505f62000229565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620003a057607f821691505b602082108103620003bf57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111562000254575f81815260208120601f850160051c81016020861015620003ed5750805b601f850160051c820191505b818110156200040e57828155600101620003f9565b505050505050565b81516001600160401b0381111562000432576200043262000377565b6200044a816200044384546200038b565b84620003c5565b602080601f83116001811462000480575f8415620004685750858301515b5f19600386901b1c1916600185901b1785556200040e565b5f85815260208120601f198616915b82811015620004b0578886015182559484019460019091019084016200048f565b5085821015620004ce57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b80820281158282048414176200022957634e487b7160e01b5f52601160045260245ffd5b5f826200051d57634e487b7160e01b5f52601260045260245ffd5b500490565b6125c080620005305f395ff3fe608060405234801561000f575f80fd5b5060043610610276575f3560e01c8063739eb2c611610156578063a217fddf116100ca578063d539139311610084578063d5391393146105a8578063d547741f146105cf578063dd62ed3e146105e2578063ec342ad01461061a578063f2fde38b14610629578063f455cb3b1461063c575f80fd5b8063a217fddf14610542578063a457c2d714610549578063a9059cbb1461055c578063ca15c8731461056f578063cea9d26f14610582578063d505accf14610595575f80fd5b80638da5cb5b1161011b5780638da5cb5b146104d35780639010d07c146104f8578063917505f41461050b57806391d148541461051e57806395d89b411461053157806397d63f9314610539575f80fd5b8063739eb2c61461045e57806379cc6790146104675780637af548c11461047a5780637ecebe001461048d57806383eb70e5146104ac575f80fd5b8063313ce567116101ed5780633af9e669116101b25780633af9e669146103e457806340c10f191461040c57806342966c681461041f57806364dd48f51461043257806370a0823114610443578063715018a614610456575f80fd5b8063313ce56714610393578063336d2692146103a25780633644e515146103b557806336568abe146103be57806339509351146103d1575f80fd5b806320606b701161023e57806320606b70146102e8578063222d52ee1461030f57806323b872dd14610322578063248a9ca3146103355780632f2ff15d1461035757806330adf81f1461036c575f80fd5b806301ffc9a71461027a57806306fdde03146102a2578063095ea7b3146102b757806311d3e6c4146102ca57806318160ddd146102e0575b5f80fd5b61028d610288366004612146565b61064f565b60405190151581526020015b60405180910390f35b6102aa610679565b604051610299919061218f565b61028d6102c53660046121dc565b610709565b6102d2610761565b604051908152602001610299565b600f546102d2565b6102d27f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6102d261031d366004612204565b61076f565b61028d61033036600461221b565b610779565b6102d2610343366004612204565b5f9081526020819052604090206001015490565b61036a610365366004612254565b6108a4565b005b6102d27f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60405160128152602001610299565b61028d6103b03660046121dc565b6108cd565b6102d2600c5481565b61036a6103cc366004612254565b610988565b61028d6103df3660046121dc565b610a0b565b6102d26103f236600461227e565b6001600160a01b03165f9081526009602052604090205490565b61028d61041a3660046121dc565b610a7b565b61036a61042d366004612204565b610afd565b6102d269d3c21bcecceda100000081565b6102d261045136600461227e565b610b09565b61036a610b2a565b6102d260085481565b61036a6104753660046121dc565b610b3d565b6102d26104883660046122a4565b610b52565b6102d261049b36600461227e565b600d6020525f908152604090205481565b6102d27f5fde63b561377d1441afa201ff619faac2ff8fed70a7fbdbe7a5cb07768c0b7581565b6007546001600160a01b03165b6040516001600160a01b039091168152602001610299565b6104e06105063660046122da565b610cee565b61028d6105193660046121dc565b610d05565b61028d61052c366004612254565b610d7e565b6102aa610da6565b6102d2600b5481565b6102d25f81565b61028d6105573660046121dc565b610db5565b61028d61056a3660046121dc565b610e78565b6102d261057d366004612204565b610f41565b61028d61059036600461221b565b610f57565b61036a6105a33660046122fa565b610f75565b6102d27f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61036a6105dd366004612254565b61120c565b6102d26105f0366004612367565b6001600160a01b039182165f908152600a6020908152604080832093909416825291909152205490565b6102d2670de0b6b3a764000081565b61036a61063736600461227e565b611230565b6102d261064a366004612204565b6112a6565b5f6001600160e01b03198216635a05180f60e01b14806106735750610673826112b0565b92915050565b6060600580546106889061238f565b80601f01602080910402602001604051908101604052809291908181526020018280546106b49061238f565b80156106ff5780601f106106d6576101008083540402835291602001916106ff565b820191905f5260205f20905b8154815290600101906020018083116106e257829003601f168201915b5050505050905090565b335f818152600a602090815260408083206001600160a01b038716808552925280832085905551919290915f8051602061256b833981519152906107509086815260200190565b60405180910390a350600192915050565b5f61076a6112e4565b905090565b5f610673826112f4565b5f826001600160a01b03811661078d575f80fd5b306001600160a01b038216036107a1575f80fd5b6001600160a01b0385165f908152600a602090815260408083203384529091529020546107ce9084611318565b6001600160a01b0386165f908152600a602090815260408083203384529091528120919091556107fd84611323565b6001600160a01b0387165f908152600960205260409020549091506108229082611318565b6001600160a01b038088165f9081526009602052604080822093909355908716815220546108509082611340565b6001600160a01b038087165f8181526009602052604090819020939093559151908816905f8051602061254b833981519152906108909088815260200190565b60405180910390a350600195945050505050565b5f828152602081905260409020600101546108be8161134b565b6108c88383611355565b505050565b5f826001600160a01b0381166108e1575f80fd5b306001600160a01b038216036108f5575f80fd5b335f9081526009602052604090205461090e9084611318565b335f90815260096020526040808220929092556001600160a01b038616815220546109399084611340565b6001600160a01b0385165f81815260096020526040902091909155335f8051602061254b83398151915261096c866112f4565b6040519081526020015b60405180910390a35060019392505050565b6001600160a01b03811633146109fd5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b610a078282611376565b5050565b335f908152600a602090815260408083206001600160a01b0386168452909152812054610a389083611340565b335f818152600a602090815260408083206001600160a01b038916808552908352928190208590555193845290925f8051602061256b8339815191529101610750565b5f610aa67f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610d7e565b610aea5760405162461bcd60e51b81526020600482015260156024820152744d7573742068617665206d696e74657220726f6c6560581b60448201526064016109f4565b610af48383611397565b50600192915050565b610b06816114c7565b50565b6001600160a01b0381165f90815260096020526040812054610673906112f4565b610b32611581565b610b3b5f6115db565b565b610b4882338361162c565b610a0782826116bc565b5f610b7d7f5fde63b561377d1441afa201ff619faac2ff8fed70a7fbdbe7a5cb07768c0b7533610d7e565b610bc25760405162461bcd60e51b81526020600482015260166024820152754d7573742068617665207265626173657220726f6c6560501b60448201526064016109f4565b825f03610c1557600854604080518681526020810183905280820192909252517fc6642d24d84e7f3d36ca39f5cce10e75639d9b158d5193aa350e2f900653e4c09181900360600190a150600f54610ce7565b60085482610c4d57610c45670de0b6b3a7640000610c3f610c368288611318565b600854906117db565b906117e6565b600855610c90565b5f610c67670de0b6b3a7640000610c3f610c368289611340565b9050610c716112e4565b811015610c82576008819055610c8e565b610c8a6112e4565b6008555b505b610c9b600b546112f4565b600f55600854604080518781526020810184905280820192909252517fc6642d24d84e7f3d36ca39f5cce10e75639d9b158d5193aa350e2f900653e4c09181900360600190a15050600f545b9392505050565b5f828152600160205260408120610ce790836117f1565b5f610d307f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610d7e565b610d745760405162461bcd60e51b81526020600482015260156024820152744d7573742068617665206d696e74657220726f6c6560581b60448201526064016109f4565b610af483836117fc565b5f918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600680546106889061238f565b335f908152600a602090815260408083206001600160a01b0386168452909152812054808310610e0757335f908152600a602090815260408083206001600160a01b0388168452909152812055610e35565b610e118184611318565b335f908152600a602090815260408083206001600160a01b03891684529091529020555b335f818152600a602090815260408083206001600160a01b038916808552908352928190205490519081529192915f8051602061256b8339815191529101610976565b5f826001600160a01b038116610e8c575f80fd5b306001600160a01b03821603610ea0575f80fd5b5f610eaa84611323565b335f90815260096020526040902054909150610ec69082611318565b335f90815260096020526040808220929092556001600160a01b03871681522054610ef19082611340565b6001600160a01b0386165f818152600960205260409081902092909255905133905f8051602061254b83398151915290610f2e9088815260200190565b60405180910390a3506001949350505050565b5f81815260016020526040812061067390611923565b5f610f60611581565b610f6b84848461192c565b5060019392505050565b83421115610fc55760405162461bcd60e51b815260206004820152601a60248201527f504550455052494e5445522f7065726d69742d6578706972656400000000000060448201526064016109f4565b600c546001600160a01b0388165f908152600d6020526040812080549192917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918b918b918b919087611017836123db565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810187905260e0016040516020818303038152906040528051906020012060405160200161109092919061190160f01b81526002810192909252602282015260420190565b60408051601f19818403018152919052805160209091012090506001600160a01b0388166111005760405162461bcd60e51b815260206004820152601d60248201527f504550455052494e5445522f696e76616c69642d616464726573732d3000000060448201526064016109f4565b604080515f81526020810180835283905260ff861691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015611150573d5f803e3d5ffd5b505050602060405103516001600160a01b0316886001600160a01b0316146111ba5760405162461bcd60e51b815260206004820152601a60248201527f504550455052494e5445522f696e76616c69642d7065726d697400000000000060448201526064016109f4565b6001600160a01b038881165f818152600a60209081526040808320948c16808452948252918290208a905590518981525f8051602061256b833981519152910160405180910390a35050505050505050565b5f828152602081905260409020600101546112268161134b565b6108c88383611376565b611238611581565b6001600160a01b03811661129d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109f4565b610b06816115db565b5f61067382611323565b5f6001600160e01b03198216637965db0b60e01b148061067357506301ffc9a760e01b6001600160e01b0319831614610673565b5f600b545f1961076a91906123f3565b5f61067369d3c21bcecceda1000000610c3f600854856117db90919063ffffffff16565b5f610ce78284612412565b6008545f9061067390610c3f8469d3c21bcecceda10000006117db565b5f610ce78284612425565b610b06813361197e565b61135f82826119d7565b5f8281526001602052604090206108c89082611a5a565b6113808282611a6e565b5f8281526001602052604090206108c89082611ad2565b600f546113a49082611340565b600f555f6113b182611323565b600b549091506113c19082611340565b600b556113cc6112e4565b600854111561141d5760405162461bcd60e51b815260206004820152601a60248201527f6d6178207363616c696e6720666163746f7220746f6f206c6f7700000000000060448201526064016109f4565b6001600160a01b0383165f9081526009602052604090205461143f9082611340565b6001600160a01b0384165f818152600960209081526040918290209390935580519182529181018490527f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885910160405180910390a16040518281526001600160a01b038416905f905f8051602061254b833981519152906020015b60405180910390a3505050565b600f546114d49082611318565b600f555f6114e182611323565b600b549091506114f19082611318565b600b55335f9081526009602052604090205461150d9082611318565b335f818152600960209081526040918290209390935580519182529181018490527fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5910160405180910390a16040518281525f9033905f8051602061254b8339815191529060200160405180910390a35050565b6007546001600160a01b03163314610b3b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109f4565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038381165f908152600a60209081526040808320938616835292905220545f1981146116b657818110156116a95760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016109f4565b6116b68484848403611ae6565b50505050565b6001600160a01b03821661171c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016109f4565b6001600160a01b0382165f908152600260205260409020548181101561178f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016109f4565b6001600160a01b0383165f8181526002602090815260408083208686039055600480548790039055518581529192915f8051602061254b833981519152910160405180910390a3505050565b5f610ce78284612438565b5f610ce782846123f3565b5f610ce78383611bee565b600b546118099082611340565b600b555f611816826112f4565b600f549091506118269082611340565b600f556118316112e4565b60085411156118825760405162461bcd60e51b815260206004820152601a60248201527f6d6178207363616c696e6720666163746f7220746f6f206c6f7700000000000060448201526064016109f4565b6001600160a01b0383165f908152600960205260409020546118a49083611340565b6001600160a01b0384165f818152600960209081526040918290209390935580519182529181018390527f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885910160405180910390a16040518181526001600160a01b038416905f905f8051602061254b833981519152906020016114ba565b5f610673825490565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526108c8908490611c14565b6119888282610d7e565b610a075761199581611ce5565b6119a0836020611cf7565b6040516020016119b192919061244f565b60408051601f198184030181529082905262461bcd60e51b82526109f49160040161218f565b6119e18282610d7e565b610a07575f828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055611a163390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b5f610ce7836001600160a01b038416611e8d565b611a788282610d7e565b15610a07575f828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b5f610ce7836001600160a01b038416611ed9565b6001600160a01b038316611b485760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016109f4565b6001600160a01b038216611ba95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016109f4565b6001600160a01b038381165f8181526003602090815260408083209487168084529482529182902085905590518481525f8051602061256b83398151915291016114ba565b5f825f018281548110611c0357611c036124c3565b905f5260205f200154905092915050565b5f611c68826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611fbc9092919063ffffffff16565b8051909150156108c85780806020019051810190611c8691906124d7565b6108c85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016109f4565b60606106736001600160a01b03831660145b60605f611d05836002612438565b611d10906002612425565b67ffffffffffffffff811115611d2857611d286124f2565b6040519080825280601f01601f191660200182016040528015611d52576020820181803683370190505b509050600360fc1b815f81518110611d6c57611d6c6124c3565b60200101906001600160f81b03191690815f1a905350600f60fb1b81600181518110611d9a57611d9a6124c3565b60200101906001600160f81b03191690815f1a9053505f611dbc846002612438565b611dc7906001612425565b90505b6001811115611e3e576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611dfb57611dfb6124c3565b1a60f81b828281518110611e1157611e116124c3565b60200101906001600160f81b03191690815f1a90535060049490941c93611e3781612506565b9050611dca565b508315610ce75760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109f4565b5f818152600183016020526040812054611ed257508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155610673565b505f610673565b5f8181526001830160205260408120548015611fb3575f611efb600183612412565b85549091505f90611f0e90600190612412565b9050818114611f6d575f865f018281548110611f2c57611f2c6124c3565b905f5260205f200154905080875f018481548110611f4c57611f4c6124c3565b5f918252602080832090910192909255918252600188019052604090208390555b8554869080611f7e57611f7e61251b565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050610673565b5f915050610673565b6060611fca84845f85611fd2565b949350505050565b6060824710156120335760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016109f4565b5f80866001600160a01b0316858760405161204e919061252f565b5f6040518083038185875af1925050503d805f8114612088576040519150601f19603f3d011682016040523d82523d5f602084013e61208d565b606091505b509150915061209e878383876120a9565b979650505050505050565b606083156121175782515f03612110576001600160a01b0385163b6121105760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016109f4565b5081611fca565b611fca838381511561212c5781518083602001fd5b8060405162461bcd60e51b81526004016109f4919061218f565b5f60208284031215612156575f80fd5b81356001600160e01b031981168114610ce7575f80fd5b5f5b8381101561218757818101518382015260200161216f565b50505f910152565b602081525f82518060208401526121ad81604085016020870161216d565b601f01601f19169190910160400192915050565b80356001600160a01b03811681146121d7575f80fd5b919050565b5f80604083850312156121ed575f80fd5b6121f6836121c1565b946020939093013593505050565b5f60208284031215612214575f80fd5b5035919050565b5f805f6060848603121561222d575f80fd5b612236846121c1565b9250612244602085016121c1565b9150604084013590509250925092565b5f8060408385031215612265575f80fd5b82359150612275602084016121c1565b90509250929050565b5f6020828403121561228e575f80fd5b610ce7826121c1565b8015158114610b06575f80fd5b5f805f606084860312156122b6575f80fd5b833592506020840135915060408401356122cf81612297565b809150509250925092565b5f80604083850312156122eb575f80fd5b50508035926020909101359150565b5f805f805f805f60e0888a031215612310575f80fd5b612319886121c1565b9650612327602089016121c1565b95506040880135945060608801359350608088013560ff8116811461234a575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f8060408385031215612378575f80fd5b612381836121c1565b9150612275602084016121c1565b600181811c908216806123a357607f821691505b6020821081036123c157634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b5f600182016123ec576123ec6123c7565b5060010190565b5f8261240d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610673576106736123c7565b80820180821115610673576106736123c7565b8082028115828204841417610673576106736123c7565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081525f835161248681601785016020880161216d565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516124b781602884016020880161216d565b01602801949350505050565b634e487b7160e01b5f52603260045260245ffd5b5f602082840312156124e7575f80fd5b8151610ce781612297565b634e487b7160e01b5f52604160045260245ffd5b5f81612514576125146123c7565b505f190190565b634e487b7160e01b5f52603160045260245ffd5b5f825161254081846020870161216d565b919091019291505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925a26469706673582212205e46f042fb722ba45cd13ff68b07763893c959f3ff63da075f81a1190fb6011f64736f6c63430008140033
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610276575f3560e01c8063739eb2c611610156578063a217fddf116100ca578063d539139311610084578063d5391393146105a8578063d547741f146105cf578063dd62ed3e146105e2578063ec342ad01461061a578063f2fde38b14610629578063f455cb3b1461063c575f80fd5b8063a217fddf14610542578063a457c2d714610549578063a9059cbb1461055c578063ca15c8731461056f578063cea9d26f14610582578063d505accf14610595575f80fd5b80638da5cb5b1161011b5780638da5cb5b146104d35780639010d07c146104f8578063917505f41461050b57806391d148541461051e57806395d89b411461053157806397d63f9314610539575f80fd5b8063739eb2c61461045e57806379cc6790146104675780637af548c11461047a5780637ecebe001461048d57806383eb70e5146104ac575f80fd5b8063313ce567116101ed5780633af9e669116101b25780633af9e669146103e457806340c10f191461040c57806342966c681461041f57806364dd48f51461043257806370a0823114610443578063715018a614610456575f80fd5b8063313ce56714610393578063336d2692146103a25780633644e515146103b557806336568abe146103be57806339509351146103d1575f80fd5b806320606b701161023e57806320606b70146102e8578063222d52ee1461030f57806323b872dd14610322578063248a9ca3146103355780632f2ff15d1461035757806330adf81f1461036c575f80fd5b806301ffc9a71461027a57806306fdde03146102a2578063095ea7b3146102b757806311d3e6c4146102ca57806318160ddd146102e0575b5f80fd5b61028d610288366004612146565b61064f565b60405190151581526020015b60405180910390f35b6102aa610679565b604051610299919061218f565b61028d6102c53660046121dc565b610709565b6102d2610761565b604051908152602001610299565b600f546102d2565b6102d27f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6102d261031d366004612204565b61076f565b61028d61033036600461221b565b610779565b6102d2610343366004612204565b5f9081526020819052604090206001015490565b61036a610365366004612254565b6108a4565b005b6102d27f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60405160128152602001610299565b61028d6103b03660046121dc565b6108cd565b6102d2600c5481565b61036a6103cc366004612254565b610988565b61028d6103df3660046121dc565b610a0b565b6102d26103f236600461227e565b6001600160a01b03165f9081526009602052604090205490565b61028d61041a3660046121dc565b610a7b565b61036a61042d366004612204565b610afd565b6102d269d3c21bcecceda100000081565b6102d261045136600461227e565b610b09565b61036a610b2a565b6102d260085481565b61036a6104753660046121dc565b610b3d565b6102d26104883660046122a4565b610b52565b6102d261049b36600461227e565b600d6020525f908152604090205481565b6102d27f5fde63b561377d1441afa201ff619faac2ff8fed70a7fbdbe7a5cb07768c0b7581565b6007546001600160a01b03165b6040516001600160a01b039091168152602001610299565b6104e06105063660046122da565b610cee565b61028d6105193660046121dc565b610d05565b61028d61052c366004612254565b610d7e565b6102aa610da6565b6102d2600b5481565b6102d25f81565b61028d6105573660046121dc565b610db5565b61028d61056a3660046121dc565b610e78565b6102d261057d366004612204565b610f41565b61028d61059036600461221b565b610f57565b61036a6105a33660046122fa565b610f75565b6102d27f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61036a6105dd366004612254565b61120c565b6102d26105f0366004612367565b6001600160a01b039182165f908152600a6020908152604080832093909416825291909152205490565b6102d2670de0b6b3a764000081565b61036a61063736600461227e565b611230565b6102d261064a366004612204565b6112a6565b5f6001600160e01b03198216635a05180f60e01b14806106735750610673826112b0565b92915050565b6060600580546106889061238f565b80601f01602080910402602001604051908101604052809291908181526020018280546106b49061238f565b80156106ff5780601f106106d6576101008083540402835291602001916106ff565b820191905f5260205f20905b8154815290600101906020018083116106e257829003601f168201915b5050505050905090565b335f818152600a602090815260408083206001600160a01b038716808552925280832085905551919290915f8051602061256b833981519152906107509086815260200190565b60405180910390a350600192915050565b5f61076a6112e4565b905090565b5f610673826112f4565b5f826001600160a01b03811661078d575f80fd5b306001600160a01b038216036107a1575f80fd5b6001600160a01b0385165f908152600a602090815260408083203384529091529020546107ce9084611318565b6001600160a01b0386165f908152600a602090815260408083203384529091528120919091556107fd84611323565b6001600160a01b0387165f908152600960205260409020549091506108229082611318565b6001600160a01b038088165f9081526009602052604080822093909355908716815220546108509082611340565b6001600160a01b038087165f8181526009602052604090819020939093559151908816905f8051602061254b833981519152906108909088815260200190565b60405180910390a350600195945050505050565b5f828152602081905260409020600101546108be8161134b565b6108c88383611355565b505050565b5f826001600160a01b0381166108e1575f80fd5b306001600160a01b038216036108f5575f80fd5b335f9081526009602052604090205461090e9084611318565b335f90815260096020526040808220929092556001600160a01b038616815220546109399084611340565b6001600160a01b0385165f81815260096020526040902091909155335f8051602061254b83398151915261096c866112f4565b6040519081526020015b60405180910390a35060019392505050565b6001600160a01b03811633146109fd5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b610a078282611376565b5050565b335f908152600a602090815260408083206001600160a01b0386168452909152812054610a389083611340565b335f818152600a602090815260408083206001600160a01b038916808552908352928190208590555193845290925f8051602061256b8339815191529101610750565b5f610aa67f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610d7e565b610aea5760405162461bcd60e51b81526020600482015260156024820152744d7573742068617665206d696e74657220726f6c6560581b60448201526064016109f4565b610af48383611397565b50600192915050565b610b06816114c7565b50565b6001600160a01b0381165f90815260096020526040812054610673906112f4565b610b32611581565b610b3b5f6115db565b565b610b4882338361162c565b610a0782826116bc565b5f610b7d7f5fde63b561377d1441afa201ff619faac2ff8fed70a7fbdbe7a5cb07768c0b7533610d7e565b610bc25760405162461bcd60e51b81526020600482015260166024820152754d7573742068617665207265626173657220726f6c6560501b60448201526064016109f4565b825f03610c1557600854604080518681526020810183905280820192909252517fc6642d24d84e7f3d36ca39f5cce10e75639d9b158d5193aa350e2f900653e4c09181900360600190a150600f54610ce7565b60085482610c4d57610c45670de0b6b3a7640000610c3f610c368288611318565b600854906117db565b906117e6565b600855610c90565b5f610c67670de0b6b3a7640000610c3f610c368289611340565b9050610c716112e4565b811015610c82576008819055610c8e565b610c8a6112e4565b6008555b505b610c9b600b546112f4565b600f55600854604080518781526020810184905280820192909252517fc6642d24d84e7f3d36ca39f5cce10e75639d9b158d5193aa350e2f900653e4c09181900360600190a15050600f545b9392505050565b5f828152600160205260408120610ce790836117f1565b5f610d307f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610d7e565b610d745760405162461bcd60e51b81526020600482015260156024820152744d7573742068617665206d696e74657220726f6c6560581b60448201526064016109f4565b610af483836117fc565b5f918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600680546106889061238f565b335f908152600a602090815260408083206001600160a01b0386168452909152812054808310610e0757335f908152600a602090815260408083206001600160a01b0388168452909152812055610e35565b610e118184611318565b335f908152600a602090815260408083206001600160a01b03891684529091529020555b335f818152600a602090815260408083206001600160a01b038916808552908352928190205490519081529192915f8051602061256b8339815191529101610976565b5f826001600160a01b038116610e8c575f80fd5b306001600160a01b03821603610ea0575f80fd5b5f610eaa84611323565b335f90815260096020526040902054909150610ec69082611318565b335f90815260096020526040808220929092556001600160a01b03871681522054610ef19082611340565b6001600160a01b0386165f818152600960205260409081902092909255905133905f8051602061254b83398151915290610f2e9088815260200190565b60405180910390a3506001949350505050565b5f81815260016020526040812061067390611923565b5f610f60611581565b610f6b84848461192c565b5060019392505050565b83421115610fc55760405162461bcd60e51b815260206004820152601a60248201527f504550455052494e5445522f7065726d69742d6578706972656400000000000060448201526064016109f4565b600c546001600160a01b0388165f908152600d6020526040812080549192917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918b918b918b919087611017836123db565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810187905260e0016040516020818303038152906040528051906020012060405160200161109092919061190160f01b81526002810192909252602282015260420190565b60408051601f19818403018152919052805160209091012090506001600160a01b0388166111005760405162461bcd60e51b815260206004820152601d60248201527f504550455052494e5445522f696e76616c69642d616464726573732d3000000060448201526064016109f4565b604080515f81526020810180835283905260ff861691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015611150573d5f803e3d5ffd5b505050602060405103516001600160a01b0316886001600160a01b0316146111ba5760405162461bcd60e51b815260206004820152601a60248201527f504550455052494e5445522f696e76616c69642d7065726d697400000000000060448201526064016109f4565b6001600160a01b038881165f818152600a60209081526040808320948c16808452948252918290208a905590518981525f8051602061256b833981519152910160405180910390a35050505050505050565b5f828152602081905260409020600101546112268161134b565b6108c88383611376565b611238611581565b6001600160a01b03811661129d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109f4565b610b06816115db565b5f61067382611323565b5f6001600160e01b03198216637965db0b60e01b148061067357506301ffc9a760e01b6001600160e01b0319831614610673565b5f600b545f1961076a91906123f3565b5f61067369d3c21bcecceda1000000610c3f600854856117db90919063ffffffff16565b5f610ce78284612412565b6008545f9061067390610c3f8469d3c21bcecceda10000006117db565b5f610ce78284612425565b610b06813361197e565b61135f82826119d7565b5f8281526001602052604090206108c89082611a5a565b6113808282611a6e565b5f8281526001602052604090206108c89082611ad2565b600f546113a49082611340565b600f555f6113b182611323565b600b549091506113c19082611340565b600b556113cc6112e4565b600854111561141d5760405162461bcd60e51b815260206004820152601a60248201527f6d6178207363616c696e6720666163746f7220746f6f206c6f7700000000000060448201526064016109f4565b6001600160a01b0383165f9081526009602052604090205461143f9082611340565b6001600160a01b0384165f818152600960209081526040918290209390935580519182529181018490527f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885910160405180910390a16040518281526001600160a01b038416905f905f8051602061254b833981519152906020015b60405180910390a3505050565b600f546114d49082611318565b600f555f6114e182611323565b600b549091506114f19082611318565b600b55335f9081526009602052604090205461150d9082611318565b335f818152600960209081526040918290209390935580519182529181018490527fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5910160405180910390a16040518281525f9033905f8051602061254b8339815191529060200160405180910390a35050565b6007546001600160a01b03163314610b3b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109f4565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038381165f908152600a60209081526040808320938616835292905220545f1981146116b657818110156116a95760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016109f4565b6116b68484848403611ae6565b50505050565b6001600160a01b03821661171c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016109f4565b6001600160a01b0382165f908152600260205260409020548181101561178f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016109f4565b6001600160a01b0383165f8181526002602090815260408083208686039055600480548790039055518581529192915f8051602061254b833981519152910160405180910390a3505050565b5f610ce78284612438565b5f610ce782846123f3565b5f610ce78383611bee565b600b546118099082611340565b600b555f611816826112f4565b600f549091506118269082611340565b600f556118316112e4565b60085411156118825760405162461bcd60e51b815260206004820152601a60248201527f6d6178207363616c696e6720666163746f7220746f6f206c6f7700000000000060448201526064016109f4565b6001600160a01b0383165f908152600960205260409020546118a49083611340565b6001600160a01b0384165f818152600960209081526040918290209390935580519182529181018390527f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885910160405180910390a16040518181526001600160a01b038416905f905f8051602061254b833981519152906020016114ba565b5f610673825490565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526108c8908490611c14565b6119888282610d7e565b610a075761199581611ce5565b6119a0836020611cf7565b6040516020016119b192919061244f565b60408051601f198184030181529082905262461bcd60e51b82526109f49160040161218f565b6119e18282610d7e565b610a07575f828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055611a163390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b5f610ce7836001600160a01b038416611e8d565b611a788282610d7e565b15610a07575f828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b5f610ce7836001600160a01b038416611ed9565b6001600160a01b038316611b485760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016109f4565b6001600160a01b038216611ba95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016109f4565b6001600160a01b038381165f8181526003602090815260408083209487168084529482529182902085905590518481525f8051602061256b83398151915291016114ba565b5f825f018281548110611c0357611c036124c3565b905f5260205f200154905092915050565b5f611c68826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611fbc9092919063ffffffff16565b8051909150156108c85780806020019051810190611c8691906124d7565b6108c85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016109f4565b60606106736001600160a01b03831660145b60605f611d05836002612438565b611d10906002612425565b67ffffffffffffffff811115611d2857611d286124f2565b6040519080825280601f01601f191660200182016040528015611d52576020820181803683370190505b509050600360fc1b815f81518110611d6c57611d6c6124c3565b60200101906001600160f81b03191690815f1a905350600f60fb1b81600181518110611d9a57611d9a6124c3565b60200101906001600160f81b03191690815f1a9053505f611dbc846002612438565b611dc7906001612425565b90505b6001811115611e3e576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611dfb57611dfb6124c3565b1a60f81b828281518110611e1157611e116124c3565b60200101906001600160f81b03191690815f1a90535060049490941c93611e3781612506565b9050611dca565b508315610ce75760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109f4565b5f818152600183016020526040812054611ed257508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155610673565b505f610673565b5f8181526001830160205260408120548015611fb3575f611efb600183612412565b85549091505f90611f0e90600190612412565b9050818114611f6d575f865f018281548110611f2c57611f2c6124c3565b905f5260205f200154905080875f018481548110611f4c57611f4c6124c3565b5f918252602080832090910192909255918252600188019052604090208390555b8554869080611f7e57611f7e61251b565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050610673565b5f915050610673565b6060611fca84845f85611fd2565b949350505050565b6060824710156120335760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016109f4565b5f80866001600160a01b0316858760405161204e919061252f565b5f6040518083038185875af1925050503d805f8114612088576040519150601f19603f3d011682016040523d82523d5f602084013e61208d565b606091505b509150915061209e878383876120a9565b979650505050505050565b606083156121175782515f03612110576001600160a01b0385163b6121105760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016109f4565b5081611fca565b611fca838381511561212c5781518083602001fd5b8060405162461bcd60e51b81526004016109f4919061218f565b5f60208284031215612156575f80fd5b81356001600160e01b031981168114610ce7575f80fd5b5f5b8381101561218757818101518382015260200161216f565b50505f910152565b602081525f82518060208401526121ad81604085016020870161216d565b601f01601f19169190910160400192915050565b80356001600160a01b03811681146121d7575f80fd5b919050565b5f80604083850312156121ed575f80fd5b6121f6836121c1565b946020939093013593505050565b5f60208284031215612214575f80fd5b5035919050565b5f805f6060848603121561222d575f80fd5b612236846121c1565b9250612244602085016121c1565b9150604084013590509250925092565b5f8060408385031215612265575f80fd5b82359150612275602084016121c1565b90509250929050565b5f6020828403121561228e575f80fd5b610ce7826121c1565b8015158114610b06575f80fd5b5f805f606084860312156122b6575f80fd5b833592506020840135915060408401356122cf81612297565b809150509250925092565b5f80604083850312156122eb575f80fd5b50508035926020909101359150565b5f805f805f805f60e0888a031215612310575f80fd5b612319886121c1565b9650612327602089016121c1565b95506040880135945060608801359350608088013560ff8116811461234a575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f8060408385031215612378575f80fd5b612381836121c1565b9150612275602084016121c1565b600181811c908216806123a357607f821691505b6020821081036123c157634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b5f600182016123ec576123ec6123c7565b5060010190565b5f8261240d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610673576106736123c7565b80820180821115610673576106736123c7565b8082028115828204841417610673576106736123c7565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081525f835161248681601785016020880161216d565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516124b781602884016020880161216d565b01602801949350505050565b634e487b7160e01b5f52603260045260245ffd5b5f602082840312156124e7575f80fd5b8151610ce781612297565b634e487b7160e01b5f52604160045260245ffd5b5f81612514576125146123c7565b505f190190565b634e487b7160e01b5f52603160045260245ffd5b5f825161254081846020870161216d565b919091019291505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925a26469706673582212205e46f042fb722ba45cd13ff68b07763893c959f3ff63da075f81a1190fb6011f64736f6c63430008140033
Deployed Bytecode Sourcemap
95923:14805:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46135:290;;;;;;:::i;:::-;;:::i;:::-;;;470:14:1;;463:22;445:41;;433:2;418:18;46135:290:0;;;;;;;;69738:100;;;:::i;:::-;;;;;;;:::i;105587:251::-;;;;;;:::i;:::-;;:::i;98056:105::-;;;:::i;:::-;;;1736:25:1;;;1724:2;1709:18;98056:105:0;1590:177:1;97874:100:0;97954:12;;97874:100;;97089:155;;97140:104;97089:155;;109898:115;;;;;;:::i;:::-;;:::i;103277:614::-;;;;;;:::i;:::-;;:::i;41453:181::-;;;;;;:::i;:::-;41572:7;41604:12;;;;;;;;;;:22;;;;41453:181;41944:188;;;;;;:::i;:::-;;:::i;:::-;;96811:117;;96862:66;96811:117;;70700:93;;;70783:2;3058:36:1;;3046:2;3031:18;70700:93:0;2916:184:1;101547:436:0;;;;;;:::i;:::-;;:::i;96935:31::-;;;;;;43170:287;;;;;;:::i;:::-;;:::i;106211:422::-;;;;;;:::i;:::-;;:::i;104330:116::-;;;;;;:::i;:::-;-1:-1:-1;;;;;104420:18:0;104393:7;104420:18;;;:13;:18;;;;;;;104330:116;98601:205;;;;;;:::i;:::-;;:::i;99636:78::-;;;;;;:::i;:::-;;:::i;96242:49::-;;96285:6;96242:49;;104012:132;;;;;;:::i;:::-;;:::i;50151:103::-;;;:::i;96488:33::-;;;;;;82335:164;;;;;;:::i;:::-;;:::i;108572:1318::-;;;;;;:::i;:::-;;:::i;96975:41::-;;;;;;:::i;:::-;;;;;;;;;;;;;;82761:64;;82800:25;82761:64;;49503:87;49576:6;;-1:-1:-1;;;;;49576:6:0;49503:87;;;-1:-1:-1;;;;;3965:32:1;;;3947:51;;3935:2;3920:18;49503:87:0;3801:203:1;47024::0;;;;;;:::i;:::-;;:::i;100372:223::-;;;;;;:::i;:::-;;:::i;39876:197::-;;;;;;:::i;:::-;;:::i;69957:104::-;;;:::i;96672:25::-;;;;;;38905:49;;38950:4;38905:49;;106895:612;;;;;;:::i;:::-;;:::i;102246:769::-;;;;;;:::i;:::-;;:::i;47401:192::-;;;;;;:::i;:::-;;:::i;110480:245::-;;;;;;:::i;:::-;;:::i;107552:1012::-;;;;;;:::i;:::-;;:::i;82692:62::-;;82730:24;82692:62;;42425:190;;;;;;:::i;:::-;;:::i;104753:192::-;;;;;;:::i;:::-;-1:-1:-1;;;;;104903:25:0;;;104871:7;104903:25;;;:17;:25;;;;;;;;:34;;;;;;;;;;;;;104753:192;96360:37;;96391:6;96360:37;;50409:238;;;;;;:::i;:::-;;:::i;110021:117::-;;;;;;:::i;:::-;;:::i;46135:290::-;46265:4;-1:-1:-1;;;;;;46307:57:0;;-1:-1:-1;;;46307:57:0;;:110;;;46381:36;46405:11;46381:23;:36::i;:::-;46287:130;46135:290;-1:-1:-1;;46135:290:0:o;69738:100::-;69792:13;69825:5;69818:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69738:100;:::o;105587:251::-;105728:10;105688:4;105710:29;;;:17;:29;;;;;;;;-1:-1:-1;;;;;105710:38:0;;;;;;;;;;:46;;;105772:36;105688:4;;105710:38;;-1:-1:-1;;;;;;;;;;;105772:36:0;;;105751:5;1736:25:1;;1724:2;1709:18;;1590:177;105772:36:0;;;;;;;;-1:-1:-1;105826:4:0;105587:251;;;;:::o;98056:105::-;98107:7;98134:19;:17;:19::i;:::-;98127:26;;98056:105;:::o;109898:115::-;109957:7;109984:21;110000:4;109984:15;:21::i;103277:614::-;103418:4;103405:2;-1:-1:-1;;;;;97404:18:0;;97396:27;;;;;;97456:4;-1:-1:-1;;;;;97442:19:0;;;97434:28;;;;;;-1:-1:-1;;;;;103504:23:0;::::1;;::::0;;;:17:::1;:23;::::0;;;;;;;103542:10:::1;103504:59:::0;;;;;;;;:70:::1;::::0;103568:5;103504:63:::1;:70::i;:::-;-1:-1:-1::0;;;;;103466:23:0;::::1;;::::0;;;:17:::1;:23;::::0;;;;;;;103490:10:::1;103466:35:::0;;;;;;;:108;;;;103638:22:::1;103654:5:::0;103638:15:::1;:22::i;:::-;-1:-1:-1::0;;;;;103721:19:0;::::1;;::::0;;;:13:::1;:19;::::0;;;;;103618:42;;-1:-1:-1;103721:34:0::1;::::0;103618:42;103721:23:::1;:34::i;:::-;-1:-1:-1::0;;;;;103699:19:0;;::::1;;::::0;;;:13:::1;:19;::::0;;;;;:56;;;;103786:17;;::::1;::::0;;;;:32:::1;::::0;103808:9;103786:21:::1;:32::i;:::-;-1:-1:-1::0;;;;;103766:17:0;;::::1;;::::0;;;:13:::1;:17;::::0;;;;;;:52;;;;103834:25;;;;::::1;::::0;-1:-1:-1;;;;;;;;;;;103834:25:0;::::1;::::0;103853:5;1736:25:1;;1724:2;1709:18;;1590:177;103834:25:0::1;;;;;;;;-1:-1:-1::0;103879:4:0::1;::::0;103277:614;-1:-1:-1;;;;;103277:614:0:o;41944:188::-;41572:7;41604:12;;;;;;;;;;:22;;;39396:16;39407:4;39396:10;:16::i;:::-;42099:25:::1;42110:4;42116:7;42099:10;:25::i;:::-;41944:188:::0;;;:::o;101547:436::-;101664:4;101642:2;-1:-1:-1;;;;;97404:18:0;;97396:27;;;;;;97456:4;-1:-1:-1;;;;;97442:19:0;;;97434:28;;;;;;101767:10:::1;101753:25;::::0;;;:13:::1;:25;::::0;;;;;:36:::1;::::0;101783:5;101753:29:::1;:36::i;:::-;101739:10;101725:25;::::0;;;:13:::1;:25;::::0;;;;;:64;;;;-1:-1:-1;;;;;101861:17:0;::::1;::::0;;;;:28:::1;::::0;101883:5;101861:21:::1;:28::i;:::-;-1:-1:-1::0;;;;;101841:17:0;::::1;;::::0;;;:13:::1;:17;::::0;;;;:48;;;;101914:10:::1;-1:-1:-1::0;;;;;;;;;;;101930:22:0::1;101946:5:::0;101930:15:::1;:22::i;:::-;101905:48;::::0;1736:25:1;;;1724:2;1709:18;101905:48:0::1;;;;;;;;-1:-1:-1::0;101971:4:0::1;::::0;101547:436;-1:-1:-1;;;101547:436:0:o;43170:287::-;-1:-1:-1;;;;;43312:23:0;;36750:10;43312:23;43290:120;;;;-1:-1:-1;;;43290:120:0;;5812:2:1;43290:120:0;;;5794:21:1;5851:2;5831:18;;;5824:30;5890:34;5870:18;;;5863:62;-1:-1:-1;;;5941:18:1;;;5934:45;5996:19;;43290:120:0;;;;;;;;;43423:26;43435:4;43441:7;43423:11;:26::i;:::-;43170:287;;:::o;106211:422::-;106408:10;106327:4;106390:29;;;:17;:29;;;;;;;;-1:-1:-1;;;;;106390:62:0;;;;;;;;;;:78;;106457:10;106390:66;:78::i;:::-;106367:10;106349:29;;;;:17;:29;;;;;;;;-1:-1:-1;;;;;106349:38:0;;;;;;;;;;;;:119;;;106484;1736:25:1;;;106349:38:0;;-1:-1:-1;;;;;;;;;;;106484:119:0;1709:18:1;106484:119:0;1590:177:1;98601:205:0;98661:4;98686:34;82730:24;36750:10;39876:197;:::i;98686:34::-;98678:68;;;;-1:-1:-1;;;98678:68:0;;6228:2:1;98678:68:0;;;6210:21:1;6267:2;6247:18;;;6240:30;-1:-1:-1;;;6286:18:1;;;6279:51;6347:18;;98678:68:0;6026:345:1;98678:68:0;98759:17;98765:2;98769:6;98759:5;:17::i;:::-;-1:-1:-1;98794:4:0;98601:205;;;;:::o;99636:78::-;99693:13;99699:6;99693:5;:13::i;:::-;99636:78;:::o;104012:132::-;-1:-1:-1;;;;;104117:18:0;;104074:7;104117:18;;;:13;:18;;;;;;104101:35;;:15;:35::i;50151:103::-;49389:13;:11;:13::i;:::-;50216:30:::1;50243:1;50216:18;:30::i;:::-;50151:103::o:0;82335:164::-;82412:46;82428:7;36750:10;82451:6;82412:15;:46::i;:::-;82469:22;82475:7;82484:6;82469:5;:22::i;108572:1318::-;108688:7;108716:35;82800:25;36750:10;39876:197;:::i;108716:35::-;108708:70;;;;-1:-1:-1;;;108708:70:0;;6578:2:1;108708:70:0;;;6560:21:1;6617:2;6597:18;;;6590:30;-1:-1:-1;;;6636:18:1;;;6629:52;6698:18;;108708:70:0;6376:346:1;108708:70:0;108817:10;108831:1;108817:15;108813:140;;108868:18;;108854:53;;;6929:25:1;;;6985:2;6970:18;;6963:34;;;7013:18;;;7006:34;;;;108854:53:0;;;;;;6917:2:1;108854:53:0;;;-1:-1:-1;108929:12:0;;108922:19;;108813:140;109021:18;;109057:8;109052:628;;109160:90;96391:6;109160:62;109201:20;96391:6;109210:10;109201:8;:20::i;:::-;109160:18;;;:40;:62::i;:::-;:84;;:90::i;:::-;109139:18;:111;109052:628;;;109340:24;109367:90;96391:6;109367:62;109408:20;96391:6;109417:10;109408:8;:20::i;109367:90::-;109340:117;;109495:19;:17;:19::i;:::-;109476:16;:38;109472:197;;;109535:18;:37;;;109472:197;;;109634:19;:17;:19::i;:::-;109613:18;:40;109472:197;109268:412;109052:628;109750:27;109766:10;;109750:15;:27::i;:::-;109735:12;:42;109833:18;;109795:57;;;6929:25:1;;;6985:2;6970:18;;6963:34;;;7013:18;;;7006:34;;;;109795:57:0;;;;;;6917:2:1;109795:57:0;;;-1:-1:-1;;109870:12:0;;108572:1318;;;;;;:::o;47024:203::-;47159:7;47191:18;;;:12;:18;;;;;:28;;47213:5;47191:21;:28::i;100372:223::-;100440:4;100465:34;82730:24;36750:10;39876:197;:::i;100465:34::-;100457:68;;;;-1:-1:-1;;;100457:68:0;;6228:2:1;100457:68:0;;;6210:21:1;6267:2;6247:18;;;6240:30;-1:-1:-1;;;6286:18:1;;;6279:51;6347:18;;100457:68:0;6026:345:1;100457:68:0;100538:27;100554:2;100558:6;100538:15;:27::i;39876:197::-;40007:4;40036:12;;;;;;;;;;;-1:-1:-1;;;;;40036:29:0;;;;;;;;;;;;;;;39876:197::o;69957:104::-;70013:13;70046:7;70039:14;;;;;:::i;106895:612::-;107075:10;107016:4;107057:29;;;:17;:29;;;;;;;;-1:-1:-1;;;;;107057:38:0;;;;;;;;;;107110:27;;;107106:237;;107172:10;107195:1;107154:29;;;:17;:29;;;;;;;;-1:-1:-1;;;;;107154:38:0;;;;;;;;;:42;107106:237;;;107270:61;:8;107301:15;107270:12;:61::i;:::-;107247:10;107229:29;;;;:17;:29;;;;;;;;-1:-1:-1;;;;;107229:38:0;;;;;;;;;:102;107106:237;107381:10;107428:29;;;;:17;:29;;;;;;;;-1:-1:-1;;;;;107358:119:0;;107428:38;;;;;;;;;;;107358:119;;1736:25:1;;;107358:119:0;;107381:10;-1:-1:-1;;;;;;;;;;;107358:119:0;1709:18:1;107358:119:0;1590:177:1;102246:769:0;102371:4;102349:2;-1:-1:-1;;;;;97404:18:0;;97396:27;;;;;;97456:4;-1:-1:-1;;;;;97442:19:0;;;97434:28;;;;;;102670:17:::1;102690:22;102706:5;102690:15;:22::i;:::-;102806:10;102792:25;::::0;;;:13:::1;:25;::::0;;;;;102670:42;;-1:-1:-1;102792:40:0::1;::::0;102670:42;102792:29:::1;:40::i;:::-;102778:10;102764:25;::::0;;;:13:::1;:25;::::0;;;;;:68;;;;-1:-1:-1;;;;;102904:17:0;::::1;::::0;;;;:32:::1;::::0;102926:9;102904:21:::1;:32::i;:::-;-1:-1:-1::0;;;;;102884:17:0;::::1;;::::0;;;:13:::1;:17;::::0;;;;;;:52;;;;102952:31;;102961:10:::1;::::0;-1:-1:-1;;;;;;;;;;;102952:31:0;::::1;::::0;102977:5;1736:25:1;;1724:2;1709:18;;1590:177;102952:31:0::1;;;;;;;;-1:-1:-1::0;103003:4:0::1;::::0;102246:769;-1:-1:-1;;;;102246:769:0:o;47401:192::-;47526:7;47558:18;;;:12;:18;;;;;:27;;:25;:27::i;110480:245::-;110605:4;49389:13;:11;:13::i;:::-;110646:49:::1;110676:5;110684:2;110688:6;110646:22;:49::i;:::-;-1:-1:-1::0;110713:4:0::1;110480:245:::0;;;;;:::o;107552:1012::-;107779:8;107760:15;:27;;107752:66;;;;-1:-1:-1;;;107752:66:0;;7253:2:1;107752:66:0;;;7235:21:1;7292:2;7272:18;;;7265:30;7331:28;7311:18;;;7304:56;7377:18;;107752:66:0;7051:350:1;107752:66:0;107936:16;;-1:-1:-1;;;;;108180:13:0;;107831:14;108180:13;;;:6;:13;;;;;:15;;107831:14;;107936:16;96862:66;;108082:5;;108114:7;;108148:5;;108180:15;107831:14;108180:15;;;:::i;:::-;;;;-1:-1:-1;108003:250:0;;;;;;7965:25:1;;;;-1:-1:-1;;;;;8064:15:1;;;8044:18;;;8037:43;8116:15;;;;8096:18;;;8089:43;8148:18;;;8141:34;8191:19;;;8184:35;8235:19;;;8228:35;;;7937:19;;108003:250:0;;;;;;;;;;;;107971:301;;;;;;107872:415;;;;;;;;-1:-1:-1;;;8532:27:1;;8584:1;8575:11;;8568:27;;;;8620:2;8611:12;;8604:28;8657:2;8648:12;;8274:392;107872:415:0;;;;-1:-1:-1;;107872:415:0;;;;;;;;;107848:450;;107872:415;107848:450;;;;;-1:-1:-1;;;;;;108319:19:0;;108311:61;;;;-1:-1:-1;;;108311:61:0;;8873:2:1;108311:61:0;;;8855:21:1;8912:2;8892:18;;;8885:30;8951:31;8931:18;;;8924:59;9000:18;;108311:61:0;8671:353:1;108311:61:0;108400:26;;;;;;;;;;;;9256:25:1;;;9329:4;9317:17;;9297:18;;;9290:45;;;;9351:18;;;9344:34;;;9394:18;;;9387:34;;;108400:26:0;;9228:19:1;;108400:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;108391:35:0;:5;-1:-1:-1;;;;;108391:35:0;;108383:74;;;;-1:-1:-1;;;108383:74:0;;9634:2:1;108383:74:0;;;9616:21:1;9673:2;9653:18;;;9646:30;9712:28;9692:18;;;9685:56;9758:18;;108383:74:0;9432:350:1;108383:74:0;-1:-1:-1;;;;;108468:24:0;;;;;;;:17;:24;;;;;;;;:33;;;;;;;;;;;;;:41;;;108525:31;;1736:25:1;;;-1:-1:-1;;;;;;;;;;;108525:31:0;1709:18:1;108525:31:0;;;;;;;107741:823;107552:1012;;;;;;;:::o;42425:190::-;41572:7;41604:12;;;;;;;;;;:22;;;39396:16;39407:4;39396:10;:16::i;:::-;42581:26:::1;42593:4;42599:7;42581:11;:26::i;50409:238::-:0;49389:13;:11;:13::i;:::-;-1:-1:-1;;;;;50512:22:0;::::1;50490:110;;;::::0;-1:-1:-1;;;50490:110:0;;9989:2:1;50490:110:0::1;::::0;::::1;9971:21:1::0;10028:2;10008:18;;;10001:30;10067:34;10047:18;;;10040:62;-1:-1:-1;;;10118:18:1;;;10111:36;10164:19;;50490:110:0::1;9787:402:1::0;50490:110:0::1;50611:28;50630:8;50611:18;:28::i;110021:117::-:0;110081:7;110108:22;110124:5;110108:15;:22::i;39504:280::-;39634:4;-1:-1:-1;;;;;;39676:47:0;;-1:-1:-1;;;39676:47:0;;:100;;-1:-1:-1;;;;;;;;;;15723:40:0;;;39740:36;15564:207;98169:315;98221:7;98466:10;;-1:-1:-1;;98444:32:0;;;;:::i;110146:147::-;110208:7;110235:50;96285:6;110235:28;110244:18;;110235:4;:8;;:28;;;;:::i;91611:98::-;91669:7;91696:5;91700:1;91696;:5;:::i;110301:149::-;110423:18;;110364:7;;110391:51;;:27;:5;96285:6;110391:9;:27::i;91230:98::-;91288:7;91315:5;91319:1;91315;:5;:::i;40377:105::-;40444:30;40455:4;36750:10;40444;:30::i;47686:201::-;47806:31;47823:4;47829:7;47806:16;:31::i;:::-;47848:18;;;;:12;:18;;;;;:31;;47871:7;47848:22;:31::i;47981:206::-;48102:32;48120:4;48126:7;48102:17;:32::i;:::-;48145:18;;;;:12;:18;;;;;:34;;48171:7;48145:25;:34::i;98814:692::-;98934:12;;:24;;98951:6;98934:16;:24::i;:::-;98919:12;:39;99004:17;99024:23;99040:6;99024:15;:23::i;:::-;99105:10;;99004:43;;-1:-1:-1;99105:25:0;;99004:43;99105:14;:25::i;:::-;99092:10;:38;99254:19;:17;:19::i;:::-;99232:18;;:41;;99210:117;;;;-1:-1:-1;;;99210:117:0;;10881:2:1;99210:117:0;;;10863:21:1;10920:2;10900:18;;;10893:30;10959:28;10939:18;;;10932:56;11005:18;;99210:117:0;10679:350:1;99210:117:0;-1:-1:-1;;;;;99384:17:0;;;;;;:13;:17;;;;;;:32;;99406:9;99384:21;:32::i;:::-;-1:-1:-1;;;;;99364:17:0;;;;;;:13;:17;;;;;;;;;:52;;;;99434:16;;11208:51:1;;;11275:18;;;11268:34;;;99434:16:0;;11181:18:1;99434:16:0;;;;;;;99466:32;;1736:25:1;;;-1:-1:-1;;;;;99466:32:0;;;99483:1;;-1:-1:-1;;;;;;;;;;;99466:32:0;1724:2:1;1709:18;99466:32:0;;;;;;;;98875:631;98814:692;;:::o;99722:509::-;99821:12;;:24;;99838:6;99821:16;:24::i;:::-;99806:12;:39;99891:17;99911:23;99927:6;99911:15;:23::i;:::-;99992:10;;99891:43;;-1:-1:-1;99992:25:0;;99891:43;99992:14;:25::i;:::-;99979:10;:38;100101:10;100087:25;;;;:13;:25;;;;;;:40;;100117:9;100087:29;:40::i;:::-;100073:10;100059:25;;;;:13;:25;;;;;;;;;:68;;;;100143:24;;11208:51:1;;;11275:18;;;11268:34;;;100143:24:0;;11181:18:1;100143:24:0;;;;;;;100183:40;;1736:25:1;;;100212:1:0;;100192:10;;-1:-1:-1;;;;;;;;;;;100183:40:0;1724:2:1;1709:18;100183:40:0;;;;;;;99762:469;99722:509;:::o;49668:132::-;49576:6;;-1:-1:-1;;;;;49576:6:0;36750:10;49732:23;49724:68;;;;-1:-1:-1;;;49724:68:0;;11515:2:1;49724:68:0;;;11497:21:1;;;11534:18;;;11527:30;11593:34;11573:18;;;11566:62;11645:18;;49724:68:0;11313:356:1;50807:191:0;50900:6;;;-1:-1:-1;;;;;50917:17:0;;;-1:-1:-1;;;;;;50917:17:0;;;;;;;50950:40;;50900:6;;;50917:17;50900:6;;50950:40;;50881:16;;50950:40;50870:128;50807:191;:::o;79333:502::-;-1:-1:-1;;;;;104903:25:0;;;79468:24;104903:25;;;:17;:25;;;;;;;;:34;;;;;;;;;;-1:-1:-1;;79535:37:0;;79531:297;;79635:6;79615:16;:26;;79589:117;;;;-1:-1:-1;;;79589:117:0;;11876:2:1;79589:117:0;;;11858:21:1;11915:2;11895:18;;;11888:30;11954:31;11934:18;;;11927:59;12003:18;;79589:117:0;11674:353:1;79589:117:0;79750:51;79759:5;79766:7;79794:6;79775:16;:25;79750:8;:51::i;:::-;79457:378;79333:502;;;:::o;77549:675::-;-1:-1:-1;;;;;77633:21:0;;77625:67;;;;-1:-1:-1;;;77625:67:0;;12234:2:1;77625:67:0;;;12216:21:1;12273:2;12253:18;;;12246:30;12312:34;12292:18;;;12285:62;-1:-1:-1;;;12363:18:1;;;12356:31;12404:19;;77625:67:0;12032:397:1;77625:67:0;-1:-1:-1;;;;;77792:18:0;;77767:22;77792:18;;;:9;:18;;;;;;77829:24;;;;77821:71;;;;-1:-1:-1;;;77821:71:0;;12636:2:1;77821:71:0;;;12618:21:1;12675:2;12655:18;;;12648:30;12714:34;12694:18;;;12687:62;-1:-1:-1;;;12765:18:1;;;12758:32;12807:19;;77821:71:0;12434:398:1;77821:71:0;-1:-1:-1;;;;;77928:18:0;;;;;;:9;:18;;;;;;;;77949:23;;;77928:44;;78067:12;:22;;;;;;;78118:37;1736:25:1;;;77928:18:0;;;-1:-1:-1;;;;;;;;;;;78118:37:0;1709:18:1;78118:37:0;;;;;;;41944:188;;;:::o;91968:98::-;92026:7;92053:5;92057:1;92053;:5;:::i;92367:98::-;92425:7;92452:5;92456:1;92452;:5;:::i;10002:190::-;10103:7;10159:22;10163:3;10175:5;10159:3;:22::i;100603:706::-;100721:10;;:22;;100736:6;100721:14;:22::i;:::-;100708:10;:35;100787:20;100810:23;100826:6;100810:15;:23::i;:::-;100894:12;;100787:46;;-1:-1:-1;100894:30:0;;100787:46;100894:16;:30::i;:::-;100879:12;:45;101048:19;:17;:19::i;:::-;101026:18;;:41;;101004:117;;;;-1:-1:-1;;;101004:117:0;;10881:2:1;101004:117:0;;;10863:21:1;10920:2;10900:18;;;10893:30;10959:28;10939:18;;;10932:56;11005:18;;101004:117:0;10679:350:1;101004:117:0;-1:-1:-1;;;;;101178:17:0;;;;;;:13;:17;;;;;;:29;;101200:6;101178:21;:29::i;:::-;-1:-1:-1;;;;;101158:17:0;;;;;;:13;:17;;;;;;;;;:49;;;;101225:22;;11208:51:1;;;11275:18;;;11268:34;;;101225:22:0;;11181:18:1;101225:22:0;;;;;;;101263:38;;1736:25:1;;;-1:-1:-1;;;;;101263:38:0;;;101280:1;;-1:-1:-1;;;;;;;;;;;101263:38:0;1724:2:1;1709:18;101263:38:0;1590:177:1;9531:117:0;9594:7;9621:19;9629:3;4579:18;;4496:109;83836:248;84007:58;;;-1:-1:-1;;;;;11226:32:1;;84007:58:0;;;11208:51:1;11275:18;;;;11268:34;;;84007:58:0;;;;;;;;;;11181:18:1;;;;84007:58:0;;;;;;;;-1:-1:-1;;;;;84007:58:0;-1:-1:-1;;;84007:58:0;;;83953:123;;83987:5;;83953:19;:123::i;40772:492::-;40861:22;40869:4;40875:7;40861;:22::i;:::-;40856:401;;41049:28;41069:7;41049:19;:28::i;:::-;41150:38;41178:4;41185:2;41150:19;:38::i;:::-;40954:257;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;40954:257:0;;;;;;;;;;-1:-1:-1;;;40900:345:0;;;;;;;:::i;44836:238::-;44920:22;44928:4;44934:7;44920;:22::i;:::-;44915:152;;44959:6;:12;;;;;;;;;;;-1:-1:-1;;;;;44959:29:0;;;;;;;;;:36;;-1:-1:-1;;44959:36:0;44991:4;44959:36;;;45042:12;36750:10;;36670:98;45042:12;-1:-1:-1;;;;;45015:40:0;45033:7;-1:-1:-1;;;;;45015:40:0;45027:4;45015:40;;;;;;;;;;44836:238;;:::o;8628:175::-;8716:4;8745:50;8750:3;-1:-1:-1;;;;;8770:23:0;;8745:4;:50::i;45254:239::-;45338:22;45346:4;45352:7;45338;:22::i;:::-;45334:152;;;45409:5;45377:12;;;;;;;;;;;-1:-1:-1;;;;;45377:29:0;;;;;;;;;;:37;;-1:-1:-1;;45377:37:0;;;45434:40;36750:10;;45377:12;;45434:40;;45409:5;45434:40;45254:239;;:::o;8979:181::-;9070:4;9099:53;9107:3;-1:-1:-1;;;;;9127:23:0;;9099:7;:53::i;78662:380::-;-1:-1:-1;;;;;78798:19:0;;78790:68;;;;-1:-1:-1;;;78790:68:0;;14029:2:1;78790:68:0;;;14011:21:1;14068:2;14048:18;;;14041:30;14107:34;14087:18;;;14080:62;-1:-1:-1;;;14158:18:1;;;14151:34;14202:19;;78790:68:0;13827:400:1;78790:68:0;-1:-1:-1;;;;;78877:21:0;;78869:68;;;;-1:-1:-1;;;78869:68:0;;14434:2:1;78869:68:0;;;14416:21:1;14473:2;14453:18;;;14446:30;14512:34;14492:18;;;14485:62;-1:-1:-1;;;14563:18:1;;;14556:32;14605:19;;78869:68:0;14232:398:1;78869:68:0;-1:-1:-1;;;;;78950:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;79002:32;;1736:25:1;;;-1:-1:-1;;;;;;;;;;;79002:32:0;1709:18:1;79002:32:0;1590:177:1;4959:152:0;5053:7;5085:3;:11;;5097:5;5085:18;;;;;;;;:::i;:::-;;;;;;;;;5078:25;;4959:152;;;;:::o;87334:802::-;87758:23;87784:106;87826:4;87784:106;;;;;;;;;;;;;;;;;87792:5;-1:-1:-1;;;;;87784:27:0;;;:106;;;;;:::i;:::-;87905:17;;87758:132;;-1:-1:-1;87905:21:0;87901:228;;88020:10;88009:30;;;;;;;;;;;;:::i;:::-;87983:134;;;;-1:-1:-1;;;87983:134:0;;15219:2:1;87983:134:0;;;15201:21:1;15258:2;15238:18;;;15231:30;15297:34;15277:18;;;15270:62;-1:-1:-1;;;15348:18:1;;;15341:40;15398:19;;87983:134:0;15017:406:1;31215:151:0;31273:13;31306:52;-1:-1:-1;;;;;31318:22:0;;29338:2;30579:479;30681:13;30712:19;30744:10;30748:6;30744:1;:10;:::i;:::-;:14;;30757:1;30744:14;:::i;:::-;30734:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30734:25:0;;30712:47;;-1:-1:-1;;;30770:6:0;30777:1;30770:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;30770:15:0;;;;;;;;;-1:-1:-1;;;30796:6:0;30803:1;30796:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;30796:15:0;;;;;;;;-1:-1:-1;30827:9:0;30839:10;30843:6;30839:1;:10;:::i;:::-;:14;;30852:1;30839:14;:::i;:::-;30827:26;;30822:131;30859:1;30855;:5;30822:131;;;-1:-1:-1;;;30903:5:0;30911:3;30903:11;30894:21;;;;;;;:::i;:::-;;;;30882:6;30889:1;30882:9;;;;;;;;:::i;:::-;;;;:33;-1:-1:-1;;;;;30882:33:0;;;;;;;;-1:-1:-1;30940:1:0;30930:11;;;;;30862:3;;;:::i;:::-;;;30822:131;;;-1:-1:-1;30971:10:0;;30963:55;;;;-1:-1:-1;;;30963:55:0;;15903:2:1;30963:55:0;;;15885:21:1;;;15922:18;;;15915:30;15981:34;15961:18;;;15954:62;16033:18;;30963:55:0;15701:356:1;2153:414:0;2216:4;4378:19;;;:12;;;:19;;;;;;2233:327;;-1:-1:-1;2276:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;2459:18;;2437:19;;;:12;;;:19;;;;;;:40;;;;2492:11;;2233:327;-1:-1:-1;2543:5:0;2536:12;;2743:1420;2809:4;2948:19;;;:12;;;:19;;;;;;2984:15;;2980:1176;;3359:21;3383:14;3396:1;3383:10;:14;:::i;:::-;3432:18;;3359:38;;-1:-1:-1;3412:17:0;;3432:22;;3453:1;;3432:22;:::i;:::-;3412:42;;3488:13;3475:9;:26;3471:405;;3522:17;3542:3;:11;;3554:9;3542:22;;;;;;;;:::i;:::-;;;;;;;;;3522:42;;3696:9;3667:3;:11;;3679:13;3667:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;3781:23;;;:12;;;:23;;;;;:36;;;3471:405;3957:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;4052:3;:12;;:19;4065:5;4052:19;;;;;;;;;;;4045:26;;;4095:4;4088:11;;;;;;;2980:1176;4139:5;4132:12;;;;;55239:229;55376:12;55408:52;55430:6;55438:4;55444:1;55447:12;55408:21;:52::i;:::-;55401:59;55239:229;-1:-1:-1;;;;55239:229:0:o;56455:612::-;56625:12;56697:5;56672:21;:30;;56650:118;;;;-1:-1:-1;;;56650:118:0;;16396:2:1;56650:118:0;;;16378:21:1;16435:2;16415:18;;;16408:30;16474:34;16454:18;;;16447:62;-1:-1:-1;;;16525:18:1;;;16518:36;16571:19;;56650:118:0;16194:402:1;56650:118:0;56780:12;56794:23;56821:6;-1:-1:-1;;;;;56821:11:0;56840:5;56861:4;56821:55;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56779:97;;;;56907:152;56952:6;56977:7;57003:10;57032:12;56907:26;:152::i;:::-;56887:172;56455:612;-1:-1:-1;;;;;;;56455:612:0:o;59590:644::-;59775:12;59804:7;59800:427;;;59832:10;:17;59853:1;59832:22;59828:290;;-1:-1:-1;;;;;52584:19:0;;;60042:60;;;;-1:-1:-1;;;60042:60:0;;17095:2:1;60042:60:0;;;17077:21:1;17134:2;17114:18;;;17107:30;17173:31;17153:18;;;17146:59;17222:18;;60042:60:0;16893:353:1;60042:60:0;-1:-1:-1;60139:10:0;60132:17;;59800:427;60182:33;60190:10;60202:12;60960:17;;:21;60956:388;;61192:10;61186:17;61249:15;61236:10;61232:2;61228:19;61221:44;60956:388;61319:12;61312:20;;-1:-1:-1;;;61312:20:0;;;;;;;;:::i;14:286:1:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;167:23;;-1:-1:-1;;;;;;219:32:1;;209:43;;199:71;;266:1;263;256:12;497:250;582:1;592:113;606:6;603:1;600:13;592:113;;;682:11;;;676:18;663:11;;;656:39;628:2;621:10;592:113;;;-1:-1:-1;;739:1:1;721:16;;714:27;497:250::o;752:396::-;901:2;890:9;883:21;864:4;933:6;927:13;976:6;971:2;960:9;956:18;949:34;992:79;1064:6;1059:2;1048:9;1044:18;1039:2;1031:6;1027:15;992:79;:::i;:::-;1132:2;1111:15;-1:-1:-1;;1107:29:1;1092:45;;;;1139:2;1088:54;;752:396;-1:-1:-1;;752:396:1:o;1153:173::-;1221:20;;-1:-1:-1;;;;;1270:31:1;;1260:42;;1250:70;;1316:1;1313;1306:12;1250:70;1153:173;;;:::o;1331:254::-;1399:6;1407;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;1499:29;1518:9;1499:29;:::i;:::-;1489:39;1575:2;1560:18;;;;1547:32;;-1:-1:-1;;;1331:254:1:o;1954:180::-;2013:6;2066:2;2054:9;2045:7;2041:23;2037:32;2034:52;;;2082:1;2079;2072:12;2034:52;-1:-1:-1;2105:23:1;;1954:180;-1:-1:-1;1954:180:1:o;2139:328::-;2216:6;2224;2232;2285:2;2273:9;2264:7;2260:23;2256:32;2253:52;;;2301:1;2298;2291:12;2253:52;2324:29;2343:9;2324:29;:::i;:::-;2314:39;;2372:38;2406:2;2395:9;2391:18;2372:38;:::i;:::-;2362:48;;2457:2;2446:9;2442:18;2429:32;2419:42;;2139:328;;;;;:::o;2657:254::-;2725:6;2733;2786:2;2774:9;2765:7;2761:23;2757:32;2754:52;;;2802:1;2799;2792:12;2754:52;2838:9;2825:23;2815:33;;2867:38;2901:2;2890:9;2886:18;2867:38;:::i;:::-;2857:48;;2657:254;;;;;:::o;3105:186::-;3164:6;3217:2;3205:9;3196:7;3192:23;3188:32;3185:52;;;3233:1;3230;3223:12;3185:52;3256:29;3275:9;3256:29;:::i;3296:118::-;3382:5;3375:13;3368:21;3361:5;3358:32;3348:60;;3404:1;3401;3394:12;3419:377;3493:6;3501;3509;3562:2;3550:9;3541:7;3537:23;3533:32;3530:52;;;3578:1;3575;3568:12;3530:52;3614:9;3601:23;3591:33;;3671:2;3660:9;3656:18;3643:32;3633:42;;3725:2;3714:9;3710:18;3697:32;3738:28;3760:5;3738:28;:::i;:::-;3785:5;3775:15;;;3419:377;;;;;:::o;4009:248::-;4077:6;4085;4138:2;4126:9;4117:7;4113:23;4109:32;4106:52;;;4154:1;4151;4144:12;4106:52;-1:-1:-1;;4177:23:1;;;4247:2;4232:18;;;4219:32;;-1:-1:-1;4009:248:1:o;4262:693::-;4373:6;4381;4389;4397;4405;4413;4421;4474:3;4462:9;4453:7;4449:23;4445:33;4442:53;;;4491:1;4488;4481:12;4442:53;4514:29;4533:9;4514:29;:::i;:::-;4504:39;;4562:38;4596:2;4585:9;4581:18;4562:38;:::i;:::-;4552:48;;4647:2;4636:9;4632:18;4619:32;4609:42;;4698:2;4687:9;4683:18;4670:32;4660:42;;4752:3;4741:9;4737:19;4724:33;4797:4;4790:5;4786:16;4779:5;4776:27;4766:55;;4817:1;4814;4807:12;4766:55;4262:693;;;;-1:-1:-1;4262:693:1;;;;4840:5;4892:3;4877:19;;4864:33;;-1:-1:-1;4944:3:1;4929:19;;;4916:33;;4262:693;-1:-1:-1;;4262:693:1:o;4960:260::-;5028:6;5036;5089:2;5077:9;5068:7;5064:23;5060:32;5057:52;;;5105:1;5102;5095:12;5057:52;5128:29;5147:9;5128:29;:::i;:::-;5118:39;;5176:38;5210:2;5199:9;5195:18;5176:38;:::i;5225:380::-;5304:1;5300:12;;;;5347;;;5368:61;;5422:4;5414:6;5410:17;5400:27;;5368:61;5475:2;5467:6;5464:14;5444:18;5441:38;5438:161;;5521:10;5516:3;5512:20;5509:1;5502:31;5556:4;5553:1;5546:15;5584:4;5581:1;5574:15;5438:161;;5225:380;;;:::o;7406:127::-;7467:10;7462:3;7458:20;7455:1;7448:31;7498:4;7495:1;7488:15;7522:4;7519:1;7512:15;7538:135;7577:3;7598:17;;;7595:43;;7618:18;;:::i;:::-;-1:-1:-1;7665:1:1;7654:13;;7538:135::o;10194:217::-;10234:1;10260;10250:132;;10304:10;10299:3;10295:20;10292:1;10285:31;10339:4;10336:1;10329:15;10367:4;10364:1;10357:15;10250:132;-1:-1:-1;10396:9:1;;10194:217::o;10416:128::-;10483:9;;;10504:11;;;10501:37;;;10518:18;;:::i;10549:125::-;10614:9;;;10635:10;;;10632:36;;;10648:18;;:::i;12837:168::-;12910:9;;;12941;;12958:15;;;12952:22;;12938:37;12928:71;;12979:18;;:::i;13010:812::-;13421:25;13416:3;13409:38;13391:3;13476:6;13470:13;13492:75;13560:6;13555:2;13550:3;13546:12;13539:4;13531:6;13527:17;13492:75;:::i;:::-;-1:-1:-1;;;13626:2:1;13586:16;;;13618:11;;;13611:40;13676:13;;13698:76;13676:13;13760:2;13752:11;;13745:4;13733:17;;13698:76;:::i;:::-;13794:17;13813:2;13790:26;;13010:812;-1:-1:-1;;;;13010:812:1:o;14635:127::-;14696:10;14691:3;14687:20;14684:1;14677:31;14727:4;14724:1;14717:15;14751:4;14748:1;14741:15;14767:245;14834:6;14887:2;14875:9;14866:7;14862:23;14858:32;14855:52;;;14903:1;14900;14893:12;14855:52;14935:9;14929:16;14954:28;14976:5;14954:28;:::i;15428:127::-;15489:10;15484:3;15480:20;15477:1;15470:31;15520:4;15517:1;15510:15;15544:4;15541:1;15534:15;15560:136;15599:3;15627:5;15617:39;;15636:18;;:::i;:::-;-1:-1:-1;;;15672:18:1;;15560:136::o;16062:127::-;16123:10;16118:3;16114:20;16111:1;16104:31;16154:4;16151:1;16144:15;16178:4;16175:1;16168:15;16601:287;16730:3;16768:6;16762:13;16784:66;16843:6;16838:3;16831:4;16823:6;16819:17;16784:66;:::i;:::-;16866:16;;;;;16601:287;-1:-1:-1;;16601:287:1:o
Swarm Source
ipfs://5e46f042fb722ba45cd13ff68b07763893c959f3ff63da075f81a1190fb6011f
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.