More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 231 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 17824973 | 524 days ago | IN | 0 ETH | 0.0007383 | ||||
Transfer | 17824972 | 524 days ago | IN | 0 ETH | 0.00075594 | ||||
Transfer | 17824971 | 524 days ago | IN | 0 ETH | 0.00070412 | ||||
Transfer | 17824970 | 524 days ago | IN | 0 ETH | 0.00071058 | ||||
Transfer | 17824968 | 524 days ago | IN | 0 ETH | 0.00075988 | ||||
Transfer | 17824967 | 524 days ago | IN | 0 ETH | 0.00076285 | ||||
Transfer | 17824966 | 524 days ago | IN | 0 ETH | 0.00078649 | ||||
Transfer | 17824965 | 524 days ago | IN | 0 ETH | 0.00080671 | ||||
Transfer | 17824964 | 524 days ago | IN | 0 ETH | 0.00082118 | ||||
Transfer | 17824957 | 524 days ago | IN | 0 ETH | 0.00063705 | ||||
Transfer | 17824957 | 524 days ago | IN | 0 ETH | 0.00064114 | ||||
Transfer | 17824956 | 524 days ago | IN | 0 ETH | 0.00056555 | ||||
Transfer | 17824954 | 524 days ago | IN | 0 ETH | 0.00059323 | ||||
Transfer | 17824953 | 524 days ago | IN | 0 ETH | 0.00061827 | ||||
Transfer | 17824952 | 524 days ago | IN | 0 ETH | 0.00060827 | ||||
Transfer | 17824951 | 524 days ago | IN | 0 ETH | 0.00063182 | ||||
Transfer | 17824950 | 524 days ago | IN | 0 ETH | 0.00063461 | ||||
Transfer | 17824942 | 524 days ago | IN | 0 ETH | 0.00064519 | ||||
Transfer | 17824941 | 524 days ago | IN | 0 ETH | 0.00064053 | ||||
Transfer | 17824939 | 524 days ago | IN | 0 ETH | 0.00066336 | ||||
Transfer | 17824937 | 524 days ago | IN | 0 ETH | 0.00064006 | ||||
Transfer | 17824934 | 524 days ago | IN | 0 ETH | 0.00061394 | ||||
Transfer | 17824932 | 524 days ago | IN | 0 ETH | 0.00063736 | ||||
Transfer | 17824929 | 524 days ago | IN | 0 ETH | 0.00059708 | ||||
Transfer | 17824924 | 524 days ago | IN | 0 ETH | 0.00062982 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PEPEDAOCoin
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-07-10 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.20; 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; } // 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; } } /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } interface IERC5267 { /** * @dev MAY be emitted to signal that the domain could have changed. */ event EIP712DomainChanged(); /** * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712 * signature. */ function eip712Domain() external view returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ); } /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._ * _Available since v4.9 for `string`, `bytes`._ */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } } type ShortString is bytes32; /** * @dev This library provides functions to convert short memory strings * into a `ShortString` type that can be used as an immutable variable. * * Strings of arbitrary length can be optimized using this library if * they are short enough (up to 31 bytes) by packing them with their * length (1 byte) in a single EVM word (32 bytes). Additionally, a * fallback mechanism can be used for every other case. * * Usage example: * * ```solidity * contract Named { * using ShortStrings for *; * * ShortString private immutable _name; * string private _nameFallback; * * constructor(string memory contractName) { * _name = contractName.toShortStringWithFallback(_nameFallback); * } * * function name() external view returns (string memory) { * return _name.toStringWithFallback(_nameFallback); * } * } * ``` */ library ShortStrings { // Used as an identifier for strings longer than 31 bytes. bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF; error StringTooLong(string str); error InvalidShortString(); /** * @dev Encode a string of at most 31 chars into a `ShortString`. * * This will trigger a `StringTooLong` error is the input string is too long. */ function toShortString(string memory str) internal pure returns (ShortString) { bytes memory bstr = bytes(str); if (bstr.length > 31) { revert StringTooLong(str); } return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length)); } /** * @dev Decode a `ShortString` back to a "normal" string. */ function toString(ShortString sstr) internal pure returns (string memory) { uint256 len = byteLength(sstr); // using `new string(len)` would work locally but is not memory safe. string memory str = new string(32); /// @solidity memory-safe-assembly assembly { mstore(str, len) mstore(add(str, 0x20), sstr) } return str; } /** * @dev Return the length of a `ShortString`. */ function byteLength(ShortString sstr) internal pure returns (uint256) { uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF; if (result > 31) { revert InvalidShortString(); } return result; } /** * @dev Encode a string into a `ShortString`, or write it to storage if it is too long. */ function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) { if (bytes(value).length < 32) { return toShortString(value); } else { StorageSlot.getStringSlot(store).value = value; return ShortString.wrap(_FALLBACK_SENTINEL); } } /** * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}. */ function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) { if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) { return toString(value); } else { return store; } } /** * @dev Return the length of a string that was encoded to `ShortString` or written to storage using {setWithFallback}. * * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of * actual characters as the UTF-8 encoding of a single character can span over multiple bytes. */ function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) { if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) { return byteLength(value); } else { return bytes(store).length; } } } /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } } /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } } /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) { // 32 is the length in bytes of hash, // enforced by the type signature above /// @solidity memory-safe-assembly assembly { mstore(0x00, "\x19Ethereum Signed Message:\n32") mstore(0x1c, hash) message := keccak256(0x00, 0x3c) } } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, "\x19\x01") mstore(add(ptr, 0x02), domainSeparator) mstore(add(ptr, 0x22), structHash) data := keccak256(ptr, 0x42) } } /** * @dev Returns an Ethereum Signed Data with intended validator, created from a * `validator` and `data` according to the version 0 of EIP-191. * * See {recover}. */ function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x00", validator, data)); } } /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the * separator from the immutable values, which is cheaper than accessing a cached version in cold storage. * * _Available since v3.4._ * * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment */ abstract contract EIP712 is IERC5267 { using ShortStrings for *; bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _cachedDomainSeparator; uint256 private immutable _cachedChainId; address private immutable _cachedThis; bytes32 private immutable _hashedName; bytes32 private immutable _hashedVersion; ShortString private immutable _name; ShortString private immutable _version; string private _nameFallback; string private _versionFallback; /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { _name = name.toShortStringWithFallback(_nameFallback); _version = version.toShortStringWithFallback(_versionFallback); _hashedName = keccak256(bytes(name)); _hashedVersion = keccak256(bytes(version)); _cachedChainId = block.chainid; _cachedDomainSeparator = _buildDomainSeparator(); _cachedThis = address(this); } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _cachedThis && block.chainid == _cachedChainId) { return _cachedDomainSeparator; } else { return _buildDomainSeparator(); } } function _buildDomainSeparator() private view returns (bytes32) { return keccak256(abi.encode(_TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } /** * @dev See {EIP-5267}. * * _Available since v4.9._ */ function eip712Domain() public view virtual override returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ) { return ( hex"0f", // 01111 _name.toStringWithFallback(_nameFallback), _version.toStringWithFallback(_versionFallback), block.chainid, address(this), bytes32(0), new uint256[](0) ); } } /** * @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); } /** * @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; } } /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } /** * @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); } /** * @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); } /** * @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 {} } /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * _Available since v3.4._ */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { using Counters for Counters.Counter; mapping(address => Counters.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private constant _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`. * However, to ensure consistency with the upgradeable transpiler, we will continue * to reserve a slot. * @custom:oz-renamed-from _PERMIT_TYPEHASH */ // solhint-disable-next-line var-name-mixedcase bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT; /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") {} /** * @dev See {IERC20Permit-permit}. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. * * _Available since v4.1._ */ function _useNonce(address owner) internal virtual returns (uint256 current) { Counters.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } } /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } interface PancakeSwapRouter { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } interface PancakeSwapFactory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } /** * @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; } } } /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @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, defaultRevert); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with a * `customRevert` function as a fallback when `target` reverts. * * Requirements: * * - `customRevert` must be a reverting function. * * _Available since v5.0._ */ function functionCall( address target, bytes memory data, function() internal view customRevert ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, customRevert); } /** * @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, defaultRevert); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with a `customRevert` function as a fallback revert reason when `target` reverts. * * Requirements: * * - `customRevert` must be a reverting function. * * _Available since v5.0._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, function() internal view customRevert ) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, customRevert); } /** * @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, defaultRevert); } /** * @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, function() internal view customRevert ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, customRevert); } /** * @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, defaultRevert); } /** * @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, function() internal view customRevert ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, customRevert); } /** * @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 `customRevert`) in case of unsuccessful call or if target was not a contract. * * _Available since v5.0._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, function() internal view customRevert ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (target.code.length == 0) { revert AddressEmptyCode(target); } } return returndata; } else { _revert(returndata, customRevert); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or with a default revert error. * * _Available since v5.0._ */ function verifyCallResult(bool success, bytes memory returndata) internal view returns (bytes memory) { return verifyCallResult(success, returndata, defaultRevert); } /** * @dev Same as {xref-Address-verifyCallResult-bool-bytes-}[`verifyCallResult`], but with a * `customRevert` function as a fallback when `success` is `false`. * * Requirements: * * - `customRevert` must be a reverting function. * * _Available since v5.0._ */ function verifyCallResult( bool success, bytes memory returndata, function() internal view customRevert ) internal view returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, customRevert); } } /** * @dev Default reverting function when no `customRevert` is provided in a function call. */ function defaultRevert() internal pure { revert FailedInnerCall(); } function _revert(bytes memory returndata, function() internal view customRevert) private view { // 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 { customRevert(); revert FailedInnerCall(); } } } /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev An operation with an ERC20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to * 0 before setting it to a non-zero value. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); if (nonceAfter != nonceBefore + 1) { revert SafeERC20FailedOperation(address(token)); } } /** * @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); if (returndata.length != 0 && !abi.decode(returndata, (bool))) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0; } } contract PEPEDAOCoin is ERC20, ERC20Permit, Ownable { using EnumerableSet for EnumerableSet.AddressSet; using SafeERC20 for IERC20; using Address for address; using SafeMath for uint; uint256 public _totalTaxIfBuying = 1; uint256 public _totalTaxIfSelling = 1; uint256 public _buyFeeAmount; uint256 public _sellFeeAmount; bool public swap = true; bool private swaping = false; bool public enableWhitelist; address public pancakePair; address public receiveBuyFeeWallet = 0x40bE6277c508c21FE72Cd2C4FCbcEf6Fd3fE317a; address public receiveSellFeeWallet = 0x7542B337FBeE8d76a7CA42CA382aFA32169a70fF; PancakeSwapRouter public pancakeRouter = PancakeSwapRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); mapping (address => bool) public isMarketPair; EnumerableSet.AddressSet private whiteListUser; constructor () ERC20("PEPE DAO Coin", "PEPEDAO") ERC20Permit("PEPE DAO Coin"){ _mint(msg.sender, 420690000000000 * 10 ** decimals()); pancakePair = PancakeSwapFactory(pancakeRouter.factory()).createPair(address(this), pancakeRouter.WETH()); isMarketPair[pancakePair] = true; setEnableWhiteList(true); } function _transfer(address sender, address recipient, uint amount) internal override { require(sender != address(0), "ERC20: transfer sender the zero address"); require(recipient != address(0), "ERC20: transfer recipient the zero address"); if (amount == 0) { super._transfer(sender, recipient, 0); return; } bool freeOfCharge = sender == address(this) || sender == owner() || recipient == address(this) || recipient == owner(); if (!freeOfCharge) { bool isSwap = sender == pancakePair || recipient == pancakePair; require(!isSwap || swap, "swap not open"); uint256 feeAmount = 0; if(isMarketPair[sender]) { beforeTransfer(recipient); if(amount.mul(_totalTaxIfBuying) >= 100) { feeAmount = amount.mul(_totalTaxIfBuying).div(100); } super._transfer(sender, address(this), feeAmount); _buyFeeAmount = _buyFeeAmount + feeAmount; } else if(isMarketPair[recipient]) { beforeTransfer(sender); if(amount.mul(_totalTaxIfSelling) >= 100) { feeAmount = amount.mul(_totalTaxIfSelling).div(100); } super._transfer(sender, address(this), feeAmount); _sellFeeAmount = _sellFeeAmount + feeAmount; } amount = amount.sub(feeAmount); uint currentBalance = balanceOf(address(this)); if (currentBalance > 0 && !swaping && sender != pancakePair) { swaping = true; if(_buyFeeAmount > 0) { swapTokenToETH(_buyFeeAmount, receiveBuyFeeWallet); } if(_sellFeeAmount > 0) { swapTokenToETH(_sellFeeAmount, receiveSellFeeWallet); } _buyFeeAmount = 0; _sellFeeAmount = 0; swaping = false; } } super._transfer(sender, recipient, amount); } function beforeTransfer(address sender) internal view { if (enableWhitelist) { require(whiteListUser.contains(sender), "not in whitelist"); } } function swapTokenToETH(uint256 tokenAmount, address to) private { address[] memory path = new address[](2); path[0] = address(this); path[1] = pancakeRouter.WETH(); _approve(address(this), address(pancakeRouter), tokenAmount); pancakeRouter.swapExactTokensForETH( tokenAmount, 0, path, to, block.timestamp + 300 ); } function setEnableWhiteList(bool flag) public onlyOwner { enableWhitelist = flag; } function addWhiteListUser(address[] memory _buyers) public onlyOwner { for (uint i = 0; i < _buyers.length; i++) { whiteListUser.add(_buyers[i]); } } function removeWhiteListUser(address[] memory _buyers) public onlyOwner { for (uint i = 0; i < _buyers.length; i++) { whiteListUser.remove(_buyers[i]); } } function getWhiteListUser(uint256 start, uint256 end) external view returns(address[] memory whiteList) { if (whiteListUser.length() == 0) { return new address[](0); } if (end >= whiteListUser.length()) { end = whiteListUser.length() - 1; } uint256 length = end - start + 1; whiteList = new address[](length); uint256 currentIndex = 0; for (uint256 i = start; i <= end; i++) { whiteList[currentIndex] = whiteListUser.at(i); currentIndex++; } } function setisMarketPair(address pair, bool flag) public onlyOwner { isMarketPair[pair] = flag; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"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":[],"name":"EIP712DomainChanged","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":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":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_buyFeeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_sellFeeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalTaxIfBuying","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalTaxIfSelling","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_buyers","type":"address[]"}],"name":"addWhiteListUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"getWhiteListUser","outputs":[{"internalType":"address[]","name":"whiteList","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isMarketPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pancakePair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pancakeRouter","outputs":[{"internalType":"contract PancakeSwapRouter","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":[],"name":"receiveBuyFeeWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"receiveSellFeeWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_buyers","type":"address[]"}],"name":"removeWhiteListUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"flag","type":"bool"}],"name":"setEnableWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"flag","type":"bool"}],"name":"setisMarketPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swap","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":"amount","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":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101606040526001600a819055600b819055600e805461ffff19169091179055600f80546001600160a01b03199081167340be6277c508c21fe72cd2c4fcbcef6fd3fe317a17909155601080548216737542b337fbee8d76a7ca42ca382afa32169a70ff17905560118054909116737a250d5630b4cf539739df2c5dacb4c659f2488d17905534801562000091575f80fd5b506040518060400160405280600d81526020016c2822a822902220a79021b7b4b760991b81525080604051806040016040528060018152602001603160f81b8152506040518060400160405280600d81526020016c2822a822902220a79021b7b4b760991b815250604051806040016040528060078152602001665045504544414f60c81b81525081600390816200012a9190620006aa565b506004620001398282620006aa565b506200014b91508390506005620003f2565b610120526200015c816006620003f2565b61014052815160208084019190912060e052815190820120610100524660a052620001e960e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b60805250503060c05250620001fe336200042a565b6200022a33620002116012600a6200087f565b620002249066017e9d8602b40062000896565b6200047b565b60115f9054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200027b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620002a19190620008b0565b6001600160a01b031663c9c653963060115f9054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000301573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620003279190620008b0565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af115801562000372573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620003989190620008b0565b600e80546301000000600160b81b03191663010000006001600160a01b03938416810291909117918290559004165f908152601260205260409020805460ff19166001908117909155620003ec9062000540565b6200095f565b5f6020835110156200041157620004098362000566565b905062000424565b816200041e8482620006aa565b5060ff90505b92915050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038216620004d75760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b8060025f828254620004ea9190620008d8565b90915550506001600160a01b0382165f81815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6200054a620005ad565b600e8054911515620100000262ff000019909216919091179055565b5f80829050601f8151111562000593578260405163305a27a960e01b8152600401620004ce9190620008ee565b8051620005a0826200093b565b179392505050565b505050565b6009546001600160a01b03163314620006095760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620004ce565b565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200063457607f821691505b6020821081036200065357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620005a8575f81815260208120601f850160051c81016020861015620006815750805b601f850160051c820191505b81811015620006a2578281556001016200068d565b505050505050565b81516001600160401b03811115620006c657620006c66200060b565b620006de81620006d784546200061f565b8462000659565b602080601f83116001811462000714575f8415620006fc5750858301515b5f19600386901b1c1916600185901b178555620006a2565b5f85815260208120601f198616915b82811015620007445788860151825594840194600190910190840162000723565b50858210156200076257878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b600181815b80851115620007c657815f1904821115620007aa57620007aa62000772565b80851615620007b857918102915b93841c93908002906200078b565b509250929050565b5f82620007de5750600162000424565b81620007ec57505f62000424565b8160018114620008055760028114620008105762000830565b600191505062000424565b60ff84111562000824576200082462000772565b50506001821b62000424565b5060208310610133831016604e8410600b841016171562000855575081810a62000424565b62000861838362000786565b805f190482111562000877576200087762000772565b029392505050565b5f6200088f60ff841683620007ce565b9392505050565b808202811582820484141762000424576200042462000772565b5f60208284031215620008c1575f80fd5b81516001600160a01b03811681146200088f575f80fd5b8082018082111562000424576200042462000772565b5f6020808352835180828501525f5b818110156200091b57858101830151858201604001528201620008fd565b505f604082860101526040601f19601f8301168501019250505092915050565b8051602080830151919081101562000653575f1960209190910360031b1b16919050565b60805160a05160c05160e0516101005161012051610140516120e1620009b15f395f61081d01525f6107f201525f6111b501525f61118d01525f6110e801525f61111201525f61113c01526120e15ff3fe608060405234801561000f575f80fd5b50600436106101fd575f3560e01c8063715018a611610114578063a457c2d7116100a9578063cdfb2b4e11610079578063cdfb2b4e14610451578063d505accf14610464578063dd62ed3e14610477578063f0cd1dac1461048a578063f2fde38b14610493575f80fd5b8063a457c2d7146103fe578063a9059cbb14610411578063b8c9d25c14610424578063c21ebd071461043e575f80fd5b806384b0196e116100e457806384b0196e146103c15780638ae398c2146103dc5780638da5cb5b146103e557806395d89b41146103f6575f80fd5b8063715018a6146103905780637ecebe00146103985780638119c065146103ab57806382eefb43146103b8575f80fd5b806326ffa18911610195578063395093511161016557806339509351146102f55780633d8d3079146103085780633ecad27114610333578063448bfc901461035557806370a0823114610368575f80fd5b806326ffa189146102ab57806328255ee8146102be578063313ce567146102de5780633644e515146102ed575f80fd5b806318160ddd116101d057806318160ddd1461026a5780631ea3ca0d1461027c57806323b872dd1461028f5780632635c61e146102a2575f80fd5b806306fdde0314610201578063095ea7b31461021f57806309982e82146102425780630aadc24614610257575b5f80fd5b6102096104a6565b6040516102169190611b23565b60405180910390f35b61023261022d366004611b49565b610536565b6040519015158152602001610216565b610255610250366004611bdb565b61054f565b005b610255610265366004611c89565b6105a6565b6002545b604051908152602001610216565b61025561028a366004611bdb565b6105d8565b61023261029d366004611cbc565b61062b565b61026e600d5481565b6102556102b9366004611cfa565b61064e565b6102d16102cc366004611d13565b610672565b6040516102169190611d75565b60405160128152602001610216565b61026e610786565b610232610303366004611b49565b610794565b60105461031b906001600160a01b031681565b6040516001600160a01b039091168152602001610216565b610232610341366004611d87565b60126020525f908152604090205460ff1681565b600f5461031b906001600160a01b031681565b61026e610376366004611d87565b6001600160a01b03165f9081526020819052604090205490565b6102556107b5565b61026e6103a6366004611d87565b6107c8565b600e546102329060ff1681565b61026e600b5481565b6103c96107e5565b6040516102169796959493929190611da2565b61026e600c5481565b6009546001600160a01b031661031b565b61020961086c565b61023261040c366004611b49565b61087b565b61023261041f366004611b49565b6108fa565b600e5461031b90630100000090046001600160a01b031681565b60115461031b906001600160a01b031681565b600e546102329062010000900460ff1681565b610255610472366004611e36565b610907565b61026e610485366004611ea7565b610a68565b61026e600a5481565b6102556104a1366004611d87565b610a92565b6060600380546104b590611ede565b80601f01602080910402602001604051908101604052809291908181526020018280546104e190611ede565b801561052c5780601f106105035761010080835404028352916020019161052c565b820191905f5260205f20905b81548152906001019060200180831161050f57829003601f168201915b5050505050905090565b5f33610543818585610b0b565b60019150505b92915050565b610557610c2e565b5f5b81518110156105a25761058f82828151811061057757610577611f10565b60200260200101516013610c8890919063ffffffff16565b508061059a81611f38565b915050610559565b5050565b6105ae610c2e565b6001600160a01b03919091165f908152601260205260409020805460ff1916911515919091179055565b6105e0610c2e565b5f5b81518110156105a25761061882828151811061060057610600611f10565b60200260200101516013610ca390919063ffffffff16565b508061062381611f38565b9150506105e2565b5f33610638858285610cb7565b610643858585610d2f565b506001949350505050565b610656610c2e565b600e8054911515620100000262ff000019909216919091179055565b606061067e60136110c8565b5f036106985750604080515f815260208101909152610549565b6106a260136110c8565b82106106c15760016106b460136110c8565b6106be9190611f50565b91505b5f6106cc8484611f50565b6106d7906001611f63565b90508067ffffffffffffffff8111156106f2576106f2611b73565b60405190808252806020026020018201604052801561071b578160200160208202803683370190505b5091505f845b84811161077d576107336013826110d1565b84838151811061074557610745611f10565b6001600160a01b03909216602092830291909101909101528161076781611f38565b925050808061077590611f38565b915050610721565b50505092915050565b5f61078f6110dc565b905090565b5f336105438185856107a68383610a68565b6107b09190611f63565b610b0b565b6107bd610c2e565b6107c65f611205565b565b6001600160a01b0381165f90815260076020526040812054610549565b5f606080828080836108187f00000000000000000000000000000000000000000000000000000000000000006005611256565b6108437f00000000000000000000000000000000000000000000000000000000000000006006611256565b604080515f80825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6060600480546104b590611ede565b5f33816108888286610a68565b9050838110156108ed5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6106438286868403610b0b565b5f33610543818585610d2f565b834211156109575760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016108e4565b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886109858c6112ff565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090505f6109df82611326565b90505f6109ee82878787611352565b9050896001600160a01b0316816001600160a01b031614610a515760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016108e4565b610a5c8a8a8a610b0b565b50505050505050505050565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b610a9a610c2e565b6001600160a01b038116610aff5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108e4565b610b0881611205565b50565b6001600160a01b038316610b6d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108e4565b6001600160a01b038216610bce5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108e4565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6009546001600160a01b031633146107c65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108e4565b5f610c9c836001600160a01b038416611378565b9392505050565b5f610c9c836001600160a01b0384166113c4565b5f610cc28484610a68565b90505f198114610d295781811015610d1c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108e4565b610d298484848403610b0b565b50505050565b6001600160a01b038316610d955760405162461bcd60e51b815260206004820152602760248201527f45524332303a207472616e736665722073656e64657220746865207a65726f206044820152666164647265737360c81b60648201526084016108e4565b6001600160a01b038216610dfe5760405162461bcd60e51b815260206004820152602a60248201527f45524332303a207472616e7366657220726563697069656e7420746865207a65604482015269726f206164647265737360b01b60648201526084016108e4565b805f03610e1557610e1083835f6114a7565b505050565b5f6001600160a01b038416301480610e3a57506009546001600160a01b038581169116145b80610e4d57506001600160a01b03831630145b80610e6557506009546001600160a01b038481169116145b9050806110bd57600e545f906001600160a01b038681166301000000909204161480610ea55750600e546001600160a01b03858116630100000090920416145b9050801580610eb65750600e5460ff165b610ef25760405162461bcd60e51b815260206004820152600d60248201526c39bbb0b8103737ba1037b832b760991b60448201526064016108e4565b6001600160a01b0385165f9081526012602052604081205460ff1615610f7b57610f1b85611649565b6064610f32600a54866116a490919063ffffffff16565b10610f5a57610f576064610f51600a54876116a490919063ffffffff16565b906116af565b90505b610f658630836114a7565b80600c54610f739190611f63565b600c55610ffa565b6001600160a01b0385165f9081526012602052604090205460ff1615610ffa57610fa486611649565b6064610fbb600b54866116a490919063ffffffff16565b10610fdd57610fda6064610f51600b54876116a490919063ffffffff16565b90505b610fe88630836114a7565b80600d54610ff69190611f63565b600d555b61100484826116ba565b305f90815260208190526040902054909450801580159061102d5750600e54610100900460ff16155b801561104e5750600e546001600160a01b0388811663010000009092041614155b156110b957600e805461ff001916610100179055600c541561108357600c54600f5461108391906001600160a01b03166116c5565b600d54156110a457600d546010546110a491906001600160a01b03166116c5565b5f600c819055600d55600e805461ff00191690555b5050505b610d298484846114a7565b5f610549825490565b5f610c9c838361182f565b5f306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561113457507f000000000000000000000000000000000000000000000000000000000000000046145b1561115e57507f000000000000000000000000000000000000000000000000000000000000000090565b61078f604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b606060ff83146112705761126983611855565b9050610549565b81805461127c90611ede565b80601f01602080910402602001604051908101604052809291908181526020018280546112a890611ede565b80156112f35780601f106112ca576101008083540402835291602001916112f3565b820191905f5260205f20905b8154815290600101906020018083116112d657829003601f168201915b50505050509050610549565b6001600160a01b0381165f9081526007602052604090208054600181018255905b50919050565b5f6105496113326110dc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f805f61136187878787611892565b9150915061136e8161194f565b5095945050505050565b5f8181526001830160205260408120546113bd57508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155610549565b505f610549565b5f818152600183016020526040812054801561149e575f6113e6600183611f50565b85549091505f906113f990600190611f50565b9050818114611458575f865f01828154811061141757611417611f10565b905f5260205f200154905080875f01848154811061143757611437611f10565b5f918252602080832090910192909255918252600188019052604090208390555b855486908061146957611469611f76565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050610549565b5f915050610549565b6001600160a01b03831661150b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016108e4565b6001600160a01b03821661156d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016108e4565b6001600160a01b0383165f90815260208190526040902054818110156115e45760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016108e4565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610d29565b600e5462010000900460ff1615610b0857611665601382611a98565b610b085760405162461bcd60e51b815260206004820152601060248201526f1b9bdd081a5b881dda1a5d195b1a5cdd60821b60448201526064016108e4565b5f610c9c8284611f8a565b5f610c9c8284611fa1565b5f610c9c8284611f50565b6040805160028082526060820183525f9260208301908036833701905050905030815f815181106116f8576116f8611f10565b6001600160a01b03928316602091820292909201810191909152601154604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa15801561174f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117739190611fc0565b8160018151811061178657611786611f10565b6001600160a01b0392831660209182029290920101526011546117ac9130911685610b0b565b6011546001600160a01b03166318cbafe5845f84866117cd4261012c611f63565b6040518663ffffffff1660e01b81526004016117ed959493929190611fdb565b5f604051808303815f875af1158015611808573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610d299190810190612016565b5f825f01828154811061184457611844611f10565b905f5260205f200154905092915050565b60605f61186183611ab9565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156118c757505f90506003611946565b604080515f8082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611918573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b038116611940575f60019250925050611946565b91505f90505b94509492505050565b5f81600481111561196257611962612097565b0361196a5750565b600181600481111561197e5761197e612097565b036119cb5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016108e4565b60028160048111156119df576119df612097565b03611a2c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016108e4565b6003816004811115611a4057611a40612097565b03610b085760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016108e4565b6001600160a01b0381165f9081526001830160205260408120541515610c9c565b5f60ff8216601f81111561054957604051632cd44ac360e21b815260040160405180910390fd5b5f81518084525f5b81811015611b0457602081850181015186830182015201611ae8565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f610c9c6020830184611ae0565b6001600160a01b0381168114610b08575f80fd5b5f8060408385031215611b5a575f80fd5b8235611b6581611b35565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611bb057611bb0611b73565b604052919050565b5f67ffffffffffffffff821115611bd157611bd1611b73565b5060051b60200190565b5f6020808385031215611bec575f80fd5b823567ffffffffffffffff811115611c02575f80fd5b8301601f81018513611c12575f80fd5b8035611c25611c2082611bb8565b611b87565b81815260059190911b82018301908381019087831115611c43575f80fd5b928401925b82841015611c6a578335611c5b81611b35565b82529284019290840190611c48565b979650505050505050565b80358015158114611c84575f80fd5b919050565b5f8060408385031215611c9a575f80fd5b8235611ca581611b35565b9150611cb360208401611c75565b90509250929050565b5f805f60608486031215611cce575f80fd5b8335611cd981611b35565b92506020840135611ce981611b35565b929592945050506040919091013590565b5f60208284031215611d0a575f80fd5b610c9c82611c75565b5f8060408385031215611d24575f80fd5b50508035926020909101359150565b5f8151808452602080850194508084015f5b83811015611d6a5781516001600160a01b031687529582019590820190600101611d45565b509495945050505050565b602081525f610c9c6020830184611d33565b5f60208284031215611d97575f80fd5b8135610c9c81611b35565b60ff60f81b881681525f602060e081840152611dc160e084018a611ae0565b8381036040850152611dd3818a611ae0565b606085018990526001600160a01b038816608086015260a0850187905284810360c086015285518082528387019250908301905f5b81811015611e2457835183529284019291840191600101611e08565b50909c9b505050505050505050505050565b5f805f805f805f60e0888a031215611e4c575f80fd5b8735611e5781611b35565b96506020880135611e6781611b35565b95506040880135945060608801359350608088013560ff81168114611e8a575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f8060408385031215611eb8575f80fd5b8235611ec381611b35565b91506020830135611ed381611b35565b809150509250929050565b600181811c90821680611ef257607f821691505b60208210810361132057634e487b7160e01b5f52602260045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f60018201611f4957611f49611f24565b5060010190565b8181038181111561054957610549611f24565b8082018082111561054957610549611f24565b634e487b7160e01b5f52603160045260245ffd5b808202811582820484141761054957610549611f24565b5f82611fbb57634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215611fd0575f80fd5b8151610c9c81611b35565b85815284602082015260a060408201525f611ff960a0830186611d33565b6001600160a01b0394909416606083015250608001529392505050565b5f6020808385031215612027575f80fd5b825167ffffffffffffffff81111561203d575f80fd5b8301601f8101851361204d575f80fd5b805161205b611c2082611bb8565b81815260059190911b82018301908381019087831115612079575f80fd5b928401925b82841015611c6a5783518252928401929084019061207e565b634e487b7160e01b5f52602160045260245ffdfea2646970667358221220da474adbc4c1a954109cb76f7af1581710c436980f54394e5f9c7bb7afd8f7ee64736f6c63430008140033
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106101fd575f3560e01c8063715018a611610114578063a457c2d7116100a9578063cdfb2b4e11610079578063cdfb2b4e14610451578063d505accf14610464578063dd62ed3e14610477578063f0cd1dac1461048a578063f2fde38b14610493575f80fd5b8063a457c2d7146103fe578063a9059cbb14610411578063b8c9d25c14610424578063c21ebd071461043e575f80fd5b806384b0196e116100e457806384b0196e146103c15780638ae398c2146103dc5780638da5cb5b146103e557806395d89b41146103f6575f80fd5b8063715018a6146103905780637ecebe00146103985780638119c065146103ab57806382eefb43146103b8575f80fd5b806326ffa18911610195578063395093511161016557806339509351146102f55780633d8d3079146103085780633ecad27114610333578063448bfc901461035557806370a0823114610368575f80fd5b806326ffa189146102ab57806328255ee8146102be578063313ce567146102de5780633644e515146102ed575f80fd5b806318160ddd116101d057806318160ddd1461026a5780631ea3ca0d1461027c57806323b872dd1461028f5780632635c61e146102a2575f80fd5b806306fdde0314610201578063095ea7b31461021f57806309982e82146102425780630aadc24614610257575b5f80fd5b6102096104a6565b6040516102169190611b23565b60405180910390f35b61023261022d366004611b49565b610536565b6040519015158152602001610216565b610255610250366004611bdb565b61054f565b005b610255610265366004611c89565b6105a6565b6002545b604051908152602001610216565b61025561028a366004611bdb565b6105d8565b61023261029d366004611cbc565b61062b565b61026e600d5481565b6102556102b9366004611cfa565b61064e565b6102d16102cc366004611d13565b610672565b6040516102169190611d75565b60405160128152602001610216565b61026e610786565b610232610303366004611b49565b610794565b60105461031b906001600160a01b031681565b6040516001600160a01b039091168152602001610216565b610232610341366004611d87565b60126020525f908152604090205460ff1681565b600f5461031b906001600160a01b031681565b61026e610376366004611d87565b6001600160a01b03165f9081526020819052604090205490565b6102556107b5565b61026e6103a6366004611d87565b6107c8565b600e546102329060ff1681565b61026e600b5481565b6103c96107e5565b6040516102169796959493929190611da2565b61026e600c5481565b6009546001600160a01b031661031b565b61020961086c565b61023261040c366004611b49565b61087b565b61023261041f366004611b49565b6108fa565b600e5461031b90630100000090046001600160a01b031681565b60115461031b906001600160a01b031681565b600e546102329062010000900460ff1681565b610255610472366004611e36565b610907565b61026e610485366004611ea7565b610a68565b61026e600a5481565b6102556104a1366004611d87565b610a92565b6060600380546104b590611ede565b80601f01602080910402602001604051908101604052809291908181526020018280546104e190611ede565b801561052c5780601f106105035761010080835404028352916020019161052c565b820191905f5260205f20905b81548152906001019060200180831161050f57829003601f168201915b5050505050905090565b5f33610543818585610b0b565b60019150505b92915050565b610557610c2e565b5f5b81518110156105a25761058f82828151811061057757610577611f10565b60200260200101516013610c8890919063ffffffff16565b508061059a81611f38565b915050610559565b5050565b6105ae610c2e565b6001600160a01b03919091165f908152601260205260409020805460ff1916911515919091179055565b6105e0610c2e565b5f5b81518110156105a25761061882828151811061060057610600611f10565b60200260200101516013610ca390919063ffffffff16565b508061062381611f38565b9150506105e2565b5f33610638858285610cb7565b610643858585610d2f565b506001949350505050565b610656610c2e565b600e8054911515620100000262ff000019909216919091179055565b606061067e60136110c8565b5f036106985750604080515f815260208101909152610549565b6106a260136110c8565b82106106c15760016106b460136110c8565b6106be9190611f50565b91505b5f6106cc8484611f50565b6106d7906001611f63565b90508067ffffffffffffffff8111156106f2576106f2611b73565b60405190808252806020026020018201604052801561071b578160200160208202803683370190505b5091505f845b84811161077d576107336013826110d1565b84838151811061074557610745611f10565b6001600160a01b03909216602092830291909101909101528161076781611f38565b925050808061077590611f38565b915050610721565b50505092915050565b5f61078f6110dc565b905090565b5f336105438185856107a68383610a68565b6107b09190611f63565b610b0b565b6107bd610c2e565b6107c65f611205565b565b6001600160a01b0381165f90815260076020526040812054610549565b5f606080828080836108187f504550452044414f20436f696e0000000000000000000000000000000000000d6005611256565b6108437f31000000000000000000000000000000000000000000000000000000000000016006611256565b604080515f80825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6060600480546104b590611ede565b5f33816108888286610a68565b9050838110156108ed5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6106438286868403610b0b565b5f33610543818585610d2f565b834211156109575760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016108e4565b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886109858c6112ff565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090505f6109df82611326565b90505f6109ee82878787611352565b9050896001600160a01b0316816001600160a01b031614610a515760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016108e4565b610a5c8a8a8a610b0b565b50505050505050505050565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b610a9a610c2e565b6001600160a01b038116610aff5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108e4565b610b0881611205565b50565b6001600160a01b038316610b6d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108e4565b6001600160a01b038216610bce5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108e4565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6009546001600160a01b031633146107c65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108e4565b5f610c9c836001600160a01b038416611378565b9392505050565b5f610c9c836001600160a01b0384166113c4565b5f610cc28484610a68565b90505f198114610d295781811015610d1c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108e4565b610d298484848403610b0b565b50505050565b6001600160a01b038316610d955760405162461bcd60e51b815260206004820152602760248201527f45524332303a207472616e736665722073656e64657220746865207a65726f206044820152666164647265737360c81b60648201526084016108e4565b6001600160a01b038216610dfe5760405162461bcd60e51b815260206004820152602a60248201527f45524332303a207472616e7366657220726563697069656e7420746865207a65604482015269726f206164647265737360b01b60648201526084016108e4565b805f03610e1557610e1083835f6114a7565b505050565b5f6001600160a01b038416301480610e3a57506009546001600160a01b038581169116145b80610e4d57506001600160a01b03831630145b80610e6557506009546001600160a01b038481169116145b9050806110bd57600e545f906001600160a01b038681166301000000909204161480610ea55750600e546001600160a01b03858116630100000090920416145b9050801580610eb65750600e5460ff165b610ef25760405162461bcd60e51b815260206004820152600d60248201526c39bbb0b8103737ba1037b832b760991b60448201526064016108e4565b6001600160a01b0385165f9081526012602052604081205460ff1615610f7b57610f1b85611649565b6064610f32600a54866116a490919063ffffffff16565b10610f5a57610f576064610f51600a54876116a490919063ffffffff16565b906116af565b90505b610f658630836114a7565b80600c54610f739190611f63565b600c55610ffa565b6001600160a01b0385165f9081526012602052604090205460ff1615610ffa57610fa486611649565b6064610fbb600b54866116a490919063ffffffff16565b10610fdd57610fda6064610f51600b54876116a490919063ffffffff16565b90505b610fe88630836114a7565b80600d54610ff69190611f63565b600d555b61100484826116ba565b305f90815260208190526040902054909450801580159061102d5750600e54610100900460ff16155b801561104e5750600e546001600160a01b0388811663010000009092041614155b156110b957600e805461ff001916610100179055600c541561108357600c54600f5461108391906001600160a01b03166116c5565b600d54156110a457600d546010546110a491906001600160a01b03166116c5565b5f600c819055600d55600e805461ff00191690555b5050505b610d298484846114a7565b5f610549825490565b5f610c9c838361182f565b5f306001600160a01b037f000000000000000000000000fed50862939150034c2ca320a77d4d7f849108ca1614801561113457507f000000000000000000000000000000000000000000000000000000000000000146145b1561115e57507f1c152f2a96836cfd2f18d688012f50e4364227575fa3e8eec1661097aa22744990565b61078f604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f162b30de713b58e59e81424f1f9a16d4b5de629e78b878568cee9de125550038918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b606060ff83146112705761126983611855565b9050610549565b81805461127c90611ede565b80601f01602080910402602001604051908101604052809291908181526020018280546112a890611ede565b80156112f35780601f106112ca576101008083540402835291602001916112f3565b820191905f5260205f20905b8154815290600101906020018083116112d657829003601f168201915b50505050509050610549565b6001600160a01b0381165f9081526007602052604090208054600181018255905b50919050565b5f6105496113326110dc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f805f61136187878787611892565b9150915061136e8161194f565b5095945050505050565b5f8181526001830160205260408120546113bd57508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155610549565b505f610549565b5f818152600183016020526040812054801561149e575f6113e6600183611f50565b85549091505f906113f990600190611f50565b9050818114611458575f865f01828154811061141757611417611f10565b905f5260205f200154905080875f01848154811061143757611437611f10565b5f918252602080832090910192909255918252600188019052604090208390555b855486908061146957611469611f76565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050610549565b5f915050610549565b6001600160a01b03831661150b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016108e4565b6001600160a01b03821661156d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016108e4565b6001600160a01b0383165f90815260208190526040902054818110156115e45760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016108e4565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610d29565b600e5462010000900460ff1615610b0857611665601382611a98565b610b085760405162461bcd60e51b815260206004820152601060248201526f1b9bdd081a5b881dda1a5d195b1a5cdd60821b60448201526064016108e4565b5f610c9c8284611f8a565b5f610c9c8284611fa1565b5f610c9c8284611f50565b6040805160028082526060820183525f9260208301908036833701905050905030815f815181106116f8576116f8611f10565b6001600160a01b03928316602091820292909201810191909152601154604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa15801561174f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117739190611fc0565b8160018151811061178657611786611f10565b6001600160a01b0392831660209182029290920101526011546117ac9130911685610b0b565b6011546001600160a01b03166318cbafe5845f84866117cd4261012c611f63565b6040518663ffffffff1660e01b81526004016117ed959493929190611fdb565b5f604051808303815f875af1158015611808573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610d299190810190612016565b5f825f01828154811061184457611844611f10565b905f5260205f200154905092915050565b60605f61186183611ab9565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156118c757505f90506003611946565b604080515f8082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611918573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b038116611940575f60019250925050611946565b91505f90505b94509492505050565b5f81600481111561196257611962612097565b0361196a5750565b600181600481111561197e5761197e612097565b036119cb5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016108e4565b60028160048111156119df576119df612097565b03611a2c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016108e4565b6003816004811115611a4057611a40612097565b03610b085760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016108e4565b6001600160a01b0381165f9081526001830160205260408120541515610c9c565b5f60ff8216601f81111561054957604051632cd44ac360e21b815260040160405180910390fd5b5f81518084525f5b81811015611b0457602081850181015186830182015201611ae8565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f610c9c6020830184611ae0565b6001600160a01b0381168114610b08575f80fd5b5f8060408385031215611b5a575f80fd5b8235611b6581611b35565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611bb057611bb0611b73565b604052919050565b5f67ffffffffffffffff821115611bd157611bd1611b73565b5060051b60200190565b5f6020808385031215611bec575f80fd5b823567ffffffffffffffff811115611c02575f80fd5b8301601f81018513611c12575f80fd5b8035611c25611c2082611bb8565b611b87565b81815260059190911b82018301908381019087831115611c43575f80fd5b928401925b82841015611c6a578335611c5b81611b35565b82529284019290840190611c48565b979650505050505050565b80358015158114611c84575f80fd5b919050565b5f8060408385031215611c9a575f80fd5b8235611ca581611b35565b9150611cb360208401611c75565b90509250929050565b5f805f60608486031215611cce575f80fd5b8335611cd981611b35565b92506020840135611ce981611b35565b929592945050506040919091013590565b5f60208284031215611d0a575f80fd5b610c9c82611c75565b5f8060408385031215611d24575f80fd5b50508035926020909101359150565b5f8151808452602080850194508084015f5b83811015611d6a5781516001600160a01b031687529582019590820190600101611d45565b509495945050505050565b602081525f610c9c6020830184611d33565b5f60208284031215611d97575f80fd5b8135610c9c81611b35565b60ff60f81b881681525f602060e081840152611dc160e084018a611ae0565b8381036040850152611dd3818a611ae0565b606085018990526001600160a01b038816608086015260a0850187905284810360c086015285518082528387019250908301905f5b81811015611e2457835183529284019291840191600101611e08565b50909c9b505050505050505050505050565b5f805f805f805f60e0888a031215611e4c575f80fd5b8735611e5781611b35565b96506020880135611e6781611b35565b95506040880135945060608801359350608088013560ff81168114611e8a575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f8060408385031215611eb8575f80fd5b8235611ec381611b35565b91506020830135611ed381611b35565b809150509250929050565b600181811c90821680611ef257607f821691505b60208210810361132057634e487b7160e01b5f52602260045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f60018201611f4957611f49611f24565b5060010190565b8181038181111561054957610549611f24565b8082018082111561054957610549611f24565b634e487b7160e01b5f52603160045260245ffd5b808202811582820484141761054957610549611f24565b5f82611fbb57634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215611fd0575f80fd5b8151610c9c81611b35565b85815284602082015260a060408201525f611ff960a0830186611d33565b6001600160a01b0394909416606083015250608001529392505050565b5f6020808385031215612027575f80fd5b825167ffffffffffffffff81111561203d575f80fd5b8301601f8101851361204d575f80fd5b805161205b611c2082611bb8565b81815260059190911b82018301908381019087831115612079575f80fd5b928401925b82841015611c6a5783518252928401929084019061207e565b634e487b7160e01b5f52602160045260245ffdfea2646970667358221220da474adbc4c1a954109cb76f7af1581710c436980f54394e5f9c7bb7afd8f7ee64736f6c63430008140033
Deployed Bytecode Sourcemap
103031:5225:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59423:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;61774:201;;;;;;:::i;:::-;;:::i;:::-;;;1288:14:1;;1281:22;1263:41;;1251:2;1236:18;61774:201:0;1123:187:1;107159:185:0;;;;;;:::i;:::-;;:::i;:::-;;108141:112;;;;;;:::i;:::-;;:::i;60543:108::-;60631:12;;60543:108;;;3517:25:1;;;3505:2;3490:18;60543:108:0;3371:177:1;107352:191:0;;;;;;:::i;:::-;;:::i;62555:295::-;;;;;;:::i;:::-;;:::i;103364:29::-;;;;;;107054:97;;;;;;:::i;:::-;;:::i;107551:582::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;60385:93::-;;;60468:2;5326:36:1;;5314:2;5299:18;60385:93:0;5184:184:1;73212:115:0;;;:::i;63259:238::-;;;;;;:::i;:::-;;:::i;103622:80::-;;;;;-1:-1:-1;;;;;103622:80:0;;;;;;-1:-1:-1;;;;;5719:32:1;;;5701:51;;5689:2;5674:18;103622:80:0;5555:203:1;103820:45:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;103536:79;;;;;-1:-1:-1;;;;;103536:79:0;;;60714:127;;;;;;:::i;:::-;-1:-1:-1;;;;;60815:18:0;60788:7;60815:18;;;;;;;;;;;;60714:127;53369:103;;;:::i;72954:128::-;;;;;;:::i;:::-;;:::i;103402:23::-;;;;;;;;;103285:37;;;;;;48063:657;;;:::i;:::-;;;;;;;;;;;;;:::i;103329:28::-;;;;;;52728:87;52801:6;;-1:-1:-1;;;;;52801:6:0;52728:87;;59642:104;;;:::i;64000:436::-;;;;;;:::i;:::-;;:::i;61047:193::-;;;;;;:::i;:::-;;:::i;103503:26::-;;;;;;;;-1:-1:-1;;;;;103503:26:0;;;103709:102;;;;;-1:-1:-1;;;;;103709:102:0;;;103467:27;;;;;;;;;;;;72243:645;;;;;;:::i;:::-;;:::i;61303:151::-;;;;;;:::i;:::-;;:::i;103242:36::-;;;;;;53627:201;;;;;;:::i;:::-;;:::i;59423:100::-;59477:13;59510:5;59503:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59423:100;:::o;61774:201::-;61857:4;51517:10;61913:32;51517:10;61929:7;61938:6;61913:8;:32::i;:::-;61963:4;61956:11;;;61774:201;;;;;:::o;107159:185::-;52614:13;:11;:13::i;:::-;107244:6:::1;107239:98;107260:7;:14;107256:1;:18;107239:98;;;107296:29;107314:7;107322:1;107314:10;;;;;;;;:::i;:::-;;;;;;;107296:13;:17;;:29;;;;:::i;:::-;-1:-1:-1::0;107276:3:0;::::1;::::0;::::1;:::i;:::-;;;;107239:98;;;;107159:185:::0;:::o;108141:112::-;52614:13;:11;:13::i;:::-;-1:-1:-1;;;;;108220:18:0;;;::::1;;::::0;;;:12:::1;:18;::::0;;;;:25;;-1:-1:-1;;108220:25:0::1;::::0;::::1;;::::0;;;::::1;::::0;;108141:112::o;107352:191::-;52614:13;:11;:13::i;:::-;107440:6:::1;107435:101;107456:7;:14;107452:1;:18;107435:101;;;107492:32;107513:7;107521:1;107513:10;;;;;;;;:::i;:::-;;;;;;;107492:13;:20;;:32;;;;:::i;:::-;-1:-1:-1::0;107472:3:0;::::1;::::0;::::1;:::i;:::-;;;;107435:101;;62555:295:::0;62686:4;51517:10;62744:38;62760:4;51517:10;62775:6;62744:15;:38::i;:::-;62793:27;62803:4;62809:2;62813:6;62793:9;:27::i;:::-;-1:-1:-1;62838:4:0;;62555:295;-1:-1:-1;;;;62555:295:0:o;107054:97::-;52614:13;:11;:13::i;:::-;107121:15:::1;:22:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;107121:22:0;;::::1;::::0;;;::::1;::::0;;107054:97::o;107551:582::-;107627:26;107670:22;:13;:20;:22::i;:::-;107696:1;107670:27;107666:83;;-1:-1:-1;107721:16:0;;;107735:1;107721:16;;;;;;;;107714:23;;107666:83;107770:22;:13;:20;:22::i;:::-;107763:3;:29;107759:94;;107840:1;107815:22;:13;:20;:22::i;:::-;:26;;;;:::i;:::-;107809:32;;107759:94;107863:14;107880:11;107886:5;107880:3;:11;:::i;:::-;:15;;107894:1;107880:15;:::i;:::-;107863:32;;107932:6;107918:21;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;107918:21:0;-1:-1:-1;107906:33:0;-1:-1:-1;107950:20:0;108002:5;107985:141;108014:3;108009:1;:8;107985:141;;108065:19;:13;108082:1;108065:16;:19::i;:::-;108039:9;108049:12;108039:23;;;;;;;;:::i;:::-;-1:-1:-1;;;;;108039:45:0;;;:23;;;;;;;;;;;:45;108100:14;;;;:::i;:::-;;;;108019:3;;;;;:::i;:::-;;;;107985:141;;;;107655:478;;107551:582;;;;:::o;73212:115::-;73272:7;73299:20;:18;:20::i;:::-;73292:27;;73212:115;:::o;63259:238::-;63347:4;51517:10;63403:64;51517:10;63419:7;63456:10;63428:25;51517:10;63419:7;63428:9;:25::i;:::-;:38;;;;:::i;:::-;63403:8;:64::i;53369:103::-;52614:13;:11;:13::i;:::-;53434:30:::1;53461:1;53434:18;:30::i;:::-;53369:103::o:0;72954:128::-;-1:-1:-1;;;;;73050:14:0;;73023:7;73050:14;;;:7;:14;;;;;7923;73050:24;7831:114;48063:657;48184:13;48212:18;;48184:13;;;48212:18;48486:41;:5;48513:13;48486:26;:41::i;:::-;48542:47;:8;48572:16;48542:29;:47::i;:::-;48685:16;;;48668:1;48685:16;;;;;;;;;-1:-1:-1;;;48433:279:0;;;-1:-1:-1;48433:279:0;;-1:-1:-1;48604:13:0;;-1:-1:-1;48640:4:0;;-1:-1:-1;48668:1:0;-1:-1:-1;48685:16:0;-1:-1:-1;48433:279:0;-1:-1:-1;48063:657:0:o;59642:104::-;59698:13;59731:7;59724:14;;;;;:::i;64000:436::-;64093:4;51517:10;64093:4;64176:25;51517:10;64193:7;64176:9;:25::i;:::-;64149:52;;64240:15;64220:16;:35;;64212:85;;;;-1:-1:-1;;;64212:85:0;;9994:2:1;64212:85:0;;;9976:21:1;10033:2;10013:18;;;10006:30;10072:34;10052:18;;;10045:62;-1:-1:-1;;;10123:18:1;;;10116:35;10168:19;;64212:85:0;;;;;;;;;64333:60;64342:5;64349:7;64377:15;64358:16;:34;64333:8;:60::i;61047:193::-;61126:4;51517:10;61182:28;51517:10;61199:2;61203:6;61182:9;:28::i;72243:645::-;72487:8;72468:15;:27;;72460:69;;;;-1:-1:-1;;;72460:69:0;;10400:2:1;72460:69:0;;;10382:21:1;10439:2;10419:18;;;10412:30;10478:31;10458:18;;;10451:59;10527:18;;72460:69:0;10198:353:1;72460:69:0;72542:18;71418:95;72602:5;72609:7;72618:5;72625:16;72635:5;72625:9;:16::i;:::-;72573:79;;;;;;10843:25:1;;;;-1:-1:-1;;;;;10942:15:1;;;10922:18;;;10915:43;10994:15;;;;10974:18;;;10967:43;11026:18;;;11019:34;11069:19;;;11062:35;11113:19;;;11106:35;;;10815:19;;72573:79:0;;;;;;;;;;;;72563:90;;;;;;72542:111;;72666:12;72681:28;72698:10;72681:16;:28::i;:::-;72666:43;;72722:14;72739:28;72753:4;72759:1;72762;72765;72739:13;:28::i;:::-;72722:45;;72796:5;-1:-1:-1;;;;;72786:15:0;:6;-1:-1:-1;;;;;72786:15:0;;72778:58;;;;-1:-1:-1;;;72778:58:0;;11354:2:1;72778:58:0;;;11336:21:1;11393:2;11373:18;;;11366:30;11432:32;11412:18;;;11405:60;11482:18;;72778:58:0;11152:354:1;72778:58:0;72849:31;72858:5;72865:7;72874:5;72849:8;:31::i;:::-;72449:439;;;72243:645;;;;;;;:::o;61303:151::-;-1:-1:-1;;;;;61419:18:0;;;61392:7;61419:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;61303:151::o;53627:201::-;52614:13;:11;:13::i;:::-;-1:-1:-1;;;;;53716:22:0;::::1;53708:73;;;::::0;-1:-1:-1;;;53708:73:0;;11713:2:1;53708:73:0::1;::::0;::::1;11695:21:1::0;11752:2;11732:18;;;11725:30;11791:34;11771:18;;;11764:62;-1:-1:-1;;;11842:18:1;;;11835:36;11888:19;;53708:73:0::1;11511:402:1::0;53708:73:0::1;53792:28;53811:8;53792:18;:28::i;:::-;53627:201:::0;:::o;68027:380::-;-1:-1:-1;;;;;68163:19:0;;68155:68;;;;-1:-1:-1;;;68155:68:0;;12120:2:1;68155:68:0;;;12102:21:1;12159:2;12139:18;;;12132:30;12198:34;12178:18;;;12171:62;-1:-1:-1;;;12249:18:1;;;12242:34;12293:19;;68155:68:0;11918:400:1;68155:68:0;-1:-1:-1;;;;;68242:21:0;;68234:68;;;;-1:-1:-1;;;68234:68:0;;12525:2:1;68234:68:0;;;12507:21:1;12564:2;12544:18;;;12537:30;12603:34;12583:18;;;12576:62;-1:-1:-1;;;12654:18:1;;;12647:32;12696:19;;68234:68:0;12323:398:1;68234:68:0;-1:-1:-1;;;;;68315:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;68367:32;;3517:25:1;;;68367:32:0;;3490:18:1;68367:32:0;;;;;;;68027:380;;;:::o;52893:132::-;52801:6;;-1:-1:-1;;;;;52801:6:0;51517:10;52957:23;52949:68;;;;-1:-1:-1;;;52949:68:0;;12928:2:1;52949:68:0;;;12910:21:1;;;12947:18;;;12940:30;13006:34;12986:18;;;12979:62;13058:18;;52949:68:0;12726:356:1;4779:152:0;4849:4;4873:50;4878:3;-1:-1:-1;;;;;4898:23:0;;4873:4;:50::i;:::-;4866:57;4779:152;-1:-1:-1;;;4779:152:0:o;5107:158::-;5180:4;5204:53;5212:3;-1:-1:-1;;;;;5232:23:0;;5204:7;:53::i;68698:453::-;68833:24;68860:25;68870:5;68877:7;68860:9;:25::i;:::-;68833:52;;-1:-1:-1;;68900:16:0;:37;68896:248;;68982:6;68962:16;:26;;68954:68;;;;-1:-1:-1;;;68954:68:0;;13289:2:1;68954:68:0;;;13271:21:1;13328:2;13308:18;;;13301:30;13367:31;13347:18;;;13340:59;13416:18;;68954:68:0;13087:353:1;68954:68:0;69066:51;69075:5;69082:7;69110:6;69091:16;:25;69066:8;:51::i;:::-;68822:329;68698:453;;;:::o;104279:2131::-;-1:-1:-1;;;;;104383:20:0;;104375:72;;;;-1:-1:-1;;;104375:72:0;;13647:2:1;104375:72:0;;;13629:21:1;13686:2;13666:18;;;13659:30;13725:34;13705:18;;;13698:62;-1:-1:-1;;;13776:18:1;;;13769:37;13823:19;;104375:72:0;13445:403:1;104375:72:0;-1:-1:-1;;;;;104466:23:0;;104458:78;;;;-1:-1:-1;;;104458:78:0;;14055:2:1;104458:78:0;;;14037:21:1;14094:2;14074:18;;;14067:30;14133:34;14113:18;;;14106:62;-1:-1:-1;;;14184:18:1;;;14177:40;14234:19;;104458:78:0;13853:406:1;104458:78:0;104551:6;104561:1;104551:11;104547:102;;104579:37;104595:6;104603:9;104614:1;104579:15;:37::i;:::-;104279:2131;;;:::o;104547:102::-;104659:17;-1:-1:-1;;;;;104679:23:0;;104697:4;104679:23;;:44;;-1:-1:-1;52801:6:0;;-1:-1:-1;;;;;104706:17:0;;;52801:6;;104706:17;104679:44;:74;;;-1:-1:-1;;;;;;104727:26:0;;104748:4;104727:26;104679:74;:98;;;-1:-1:-1;52801:6:0;;-1:-1:-1;;;;;104757:20:0;;;52801:6;;104757:20;104679:98;104659:118;;104793:12;104788:1562;;104846:11;;104822;;-1:-1:-1;;;;;104836:21:0;;;104846:11;;;;;104836:21;;:49;;-1:-1:-1;104874:11:0;;-1:-1:-1;;;;;104861:24:0;;;104874:11;;;;;104861:24;104836:49;104822:63;;104909:6;104908:7;:15;;;-1:-1:-1;104919:4:0;;;;104908:15;104900:41;;;;-1:-1:-1;;;104900:41:0;;14466:2:1;104900:41:0;;;14448:21:1;14505:2;14485:18;;;14478:30;-1:-1:-1;;;14524:18:1;;;14517:43;14577:18;;104900:41:0;14264:337:1;104900:41:0;-1:-1:-1;;;;;104995:20:0;;104956:17;104995:20;;;:12;:20;;;;;;;;104992:740;;;105036:25;105051:9;105036:14;:25::i;:::-;105116:3;105083:29;105094:17;;105083:6;:10;;:29;;;;:::i;:::-;:36;105080:134;;105156:38;105190:3;105156:29;105167:17;;105156:6;:10;;:29;;;;:::i;:::-;:33;;:38::i;:::-;105144:50;;105080:134;105232:49;105248:6;105264:4;105271:9;105232:15;:49::i;:::-;105332:9;105316:13;;:25;;;;:::i;:::-;105300:13;:41;104992:740;;;-1:-1:-1;;;;;105366:23:0;;;;;;:12;:23;;;;;;;;105363:369;;;105410:22;105425:6;105410:14;:22::i;:::-;105488:3;105454:30;105465:18;;105454:6;:10;;:30;;;;:::i;:::-;:37;105451:136;;105528:39;105563:3;105528:30;105539:18;;105528:6;:10;;:30;;;;:::i;:39::-;105516:51;;105451:136;105605:49;105621:6;105637:4;105644:9;105605:15;:49::i;:::-;105707:9;105690:14;;:26;;;;:::i;:::-;105673:14;:43;105363:369;105755:21;:6;105766:9;105755:10;:21::i;:::-;105831:4;105791:19;60815:18;;;;;;;;;;;105746:30;;-1:-1:-1;105856:18:0;;;;;:30;;-1:-1:-1;105879:7:0;;;;;;;105878:8;105856:30;:55;;;;-1:-1:-1;105900:11:0;;-1:-1:-1;;;;;105890:21:0;;;105900:11;;;;;105890:21;;105856:55;105852:487;;;105932:7;:14;;-1:-1:-1;;105932:14:0;;;;;105969:13;;:17;105966:115;;106026:13;;106041:19;;106011:50;;106026:13;-1:-1:-1;;;;;106041:19:0;106011:14;:50::i;:::-;106102:14;;:18;106099:118;;106160:14;;106176:20;;106145:52;;106160:14;-1:-1:-1;;;;;106176:20:0;106145:14;:52::i;:::-;106251:1;106235:13;:17;;;106271:14;:18;106308:7;:15;;-1:-1:-1;;106308:15:0;;;105852:487;104807:1543;;;104788:1562;106360:42;106376:6;106384:9;106395:6;106360:15;:42::i;5604:117::-;5667:7;5694:19;5702:3;3364:18;;3281:109;6075:158;6149:7;6200:22;6204:3;6216:5;6200:3;:22::i;46701:268::-;46754:7;46786:4;-1:-1:-1;;;;;46795:11:0;46778:28;;:63;;;;;46827:14;46810:13;:31;46778:63;46774:188;;;-1:-1:-1;46865:22:0;;46701:268::o;46774:188::-;46927:23;47069:81;;;44893:95;47069:81;;;18683:25:1;47092:11:0;18724:18:1;;;18717:34;;;;47105:14:0;18767:18:1;;;18760:34;47121:13:0;18810:18:1;;;18803:34;47144:4:0;18853:19:1;;;18846:61;47032:7:0;;18655:19:1;;47069:81:0;;;;;;;;;;;;47059:92;;;;;;47052:99;;46977:182;;53988:191;54081:6;;;-1:-1:-1;;;;;54098:17:0;;;-1:-1:-1;;;;;;54098:17:0;;;;;;;54131:40;;54081:6;;;54098:17;54081:6;;54131:40;;54062:16;;54131:40;54051:128;53988:191;:::o;16207:274::-;16301:13;14152:66;16331:47;;16327:147;;16402:15;16411:5;16402:8;:15::i;:::-;16395:22;;;;16327:147;16457:5;16450:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73465:207;-1:-1:-1;;;;;73586:14:0;;73525:15;73586:14;;;:7;:14;;;;;7923;;8060:1;8042:19;;;;7923:14;73647:17;73542:130;73465:207;;;:::o;47801:167::-;47878:7;47905:55;47927:20;:18;:20::i;:::-;47949:10;42551:4;42545:11;-1:-1:-1;;;42570:23:0;;42623:4;42614:14;;42607:39;;;;42676:4;42667:14;;42660:34;42731:4;42716:20;;;42348:406;40564:236;40649:7;40670:17;40689:18;40711:25;40722:4;40728:1;40731;40734;40711:10;:25::i;:::-;40669:67;;;;40747:18;40759:5;40747:11;:18::i;:::-;-1:-1:-1;40783:9:0;40564:236;-1:-1:-1;;;;;40564:236:0:o;970:414::-;1033:4;3163:19;;;:12;;;:19;;;;;;1050:327;;-1:-1:-1;1093:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;1276:18;;1254:19;;;:12;;;:19;;;;;;:40;;;;1309:11;;1050:327;-1:-1:-1;1360:5:0;1353:12;;1560:1420;1626:4;1765:19;;;:12;;;:19;;;;;;1801:15;;1797:1176;;2176:21;2200:14;2213:1;2200:10;:14;:::i;:::-;2249:18;;2176:38;;-1:-1:-1;2229:17:0;;2249:22;;2270:1;;2249:22;:::i;:::-;2229:42;;2305:13;2292:9;:26;2288:405;;2339:17;2359:3;:11;;2371:9;2359:22;;;;;;;;:::i;:::-;;;;;;;;;2339:42;;2513:9;2484:3;:11;;2496:13;2484:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;2598:23;;;:12;;;:23;;;;;:36;;;2288:405;2774:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;2869:3;:12;;:19;2882:5;2869:19;;;;;;;;;;;2862:26;;;2912:4;2905:11;;;;;;;1797:1176;2956:5;2949:12;;;;;64906:840;-1:-1:-1;;;;;65037:18:0;;65029:68;;;;-1:-1:-1;;;65029:68:0;;14940:2:1;65029:68:0;;;14922:21:1;14979:2;14959:18;;;14952:30;15018:34;14998:18;;;14991:62;-1:-1:-1;;;15069:18:1;;;15062:35;15114:19;;65029:68:0;14738:401:1;65029:68:0;-1:-1:-1;;;;;65116:16:0;;65108:64;;;;-1:-1:-1;;;65108:64:0;;15346:2:1;65108:64:0;;;15328:21:1;15385:2;15365:18;;;15358:30;15424:34;15404:18;;;15397:62;-1:-1:-1;;;15475:18:1;;;15468:33;15518:19;;65108:64:0;15144:399:1;65108:64:0;-1:-1:-1;;;;;65258:15:0;;65236:19;65258:15;;;;;;;;;;;65292:21;;;;65284:72;;;;-1:-1:-1;;;65284:72:0;;15750:2:1;65284:72:0;;;15732:21:1;15789:2;15769:18;;;15762:30;15828:34;15808:18;;;15801:62;-1:-1:-1;;;15879:18:1;;;15872:36;15925:19;;65284:72:0;15548:402:1;65284:72:0;-1:-1:-1;;;;;65392:15:0;;;:9;:15;;;;;;;;;;;65410:20;;;65392:38;;65610:13;;;;;;;;;;:23;;;;;;65662:26;;3517:25:1;;;65610:13:0;;65662:26;;3490:18:1;65662:26:0;;;;;;;65701:37;104279:2131;106418:179;106487:15;;;;;;;106483:107;;;106527:30;:13;106550:6;106527:22;:30::i;:::-;106519:59;;;;-1:-1:-1;;;106519:59:0;;16157:2:1;106519:59:0;;;16139:21:1;16196:2;16176:18;;;16169:30;-1:-1:-1;;;16215:18:1;;;16208:46;16271:18;;106519:59:0;15955:340:1;83989:98:0;84047:7;84074:5;84078:1;84074;:5;:::i;84388:98::-;84446:7;84473:5;84477:1;84473;:5;:::i;83632:98::-;83690:7;83717:5;83721:1;83717;:5;:::i;106605:441::-;106705:16;;;106719:1;106705:16;;;;;;;;106681:21;;106705:16;;;;;;;;;;-1:-1:-1;106705:16:0;106681:40;;106750:4;106732;106737:1;106732:7;;;;;;;;:::i;:::-;-1:-1:-1;;;;;106732:23:0;;;:7;;;;;;;;;;:23;;;;106776:13;;:20;;;-1:-1:-1;;;106776:20:0;;;;:13;;;;;:18;;:20;;;;;106732:7;;106776:20;;;;;:13;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;106766:4;106771:1;106766:7;;;;;;;;:::i;:::-;-1:-1:-1;;;;;106766:30:0;;;:7;;;;;;;;;:30;106839:13;;106807:60;;106824:4;;106839:13;106855:11;106807:8;:60::i;:::-;106878:13;;-1:-1:-1;;;;;106878:13:0;:35;106928:11;106878:13;106970:4;106989:2;107006:21;:15;107024:3;107006:21;:::i;:::-;106878:160;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;106878:160:0;;;;;;;;;;;;:::i;3744:120::-;3811:7;3838:3;:11;;3850:5;3838:18;;;;;;;;:::i;:::-;;;;;;;;;3831:25;;3744:120;;;;:::o;14861:415::-;14920:13;14946:11;14960:16;14971:4;14960:10;:16::i;:::-;15086:14;;;15097:2;15086:14;;;;;;;;;14946:30;;-1:-1:-1;15066:17:0;;15086:14;;;;;;;;;-1:-1:-1;;;15179:16:0;;;-1:-1:-1;15225:4:0;15216:14;;15209:28;;;;-1:-1:-1;15179:16:0;14861:415::o;38948:1477::-;39036:7;;39970:66;39957:79;;39953:163;;;-1:-1:-1;40069:1:0;;-1:-1:-1;40073:30:0;40053:51;;39953:163;40230:24;;;40213:14;40230:24;;;;;;;;;19145:25:1;;;19218:4;19206:17;;19186:18;;;19179:45;;;;19240:18;;;19233:34;;;19283:18;;;19276:34;;;40230:24:0;;19117:19:1;;40230:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;40230:24:0;;-1:-1:-1;;40230:24:0;;;-1:-1:-1;;;;;;;40269:20:0;;40265:103;;40322:1;40326:29;40306:50;;;;;;;40265:103;40388:6;-1:-1:-1;40396:20:0;;-1:-1:-1;38948:1477:0;;;;;;;;:::o;34408:521::-;34486:20;34477:5;:29;;;;;;;;:::i;:::-;;34473:449;;34408:521;:::o;34473:449::-;34584:29;34575:5;:38;;;;;;;;:::i;:::-;;34571:351;;34630:34;;-1:-1:-1;;;34630:34:0;;19655:2:1;34630:34:0;;;19637:21:1;19694:2;19674:18;;;19667:30;19733:26;19713:18;;;19706:54;19777:18;;34630:34:0;19453:348:1;34571:351:0;34695:35;34686:5;:44;;;;;;;;:::i;:::-;;34682:240;;34747:41;;-1:-1:-1;;;34747:41:0;;20008:2:1;34747:41:0;;;19990:21:1;20047:2;20027:18;;;20020:30;20086:33;20066:18;;;20059:61;20137:18;;34747:41:0;19806:355:1;34682:240:0;34819:30;34810:5;:39;;;;;;;;:::i;:::-;;34806:116;;34866:44;;-1:-1:-1;;;34866:44:0;;20368:2:1;34866:44:0;;;20350:21:1;20407:2;20387:18;;;20380:30;20446:34;20426:18;;;20419:62;-1:-1:-1;;;20497:18:1;;;20490:32;20539:19;;34866:44:0;20166:398:1;5351:167:0;-1:-1:-1;;;;;5485:23:0;;5431:4;3163:19;;;:12;;;:19;;;;;;:24;;5455:55;3066:129;15353:251;15414:7;15487:4;15451:40;;15515:2;15506:11;;15502:71;;;15541:20;;-1:-1:-1;;;15541:20:0;;;;;;;;;;;14:423:1;56:3;94:5;88:12;121:6;116:3;109:19;146:1;156:162;170:6;167:1;164:13;156:162;;;232:4;288:13;;;284:22;;278:29;260:11;;;256:20;;249:59;185:12;156:162;;;160:3;363:1;356:4;347:6;342:3;338:16;334:27;327:38;426:4;419:2;415:7;410:2;402:6;398:15;394:29;389:3;385:39;381:50;374:57;;;14:423;;;;:::o;442:220::-;591:2;580:9;573:21;554:4;611:45;652:2;641:9;637:18;629:6;611:45;:::i;667:131::-;-1:-1:-1;;;;;742:31:1;;732:42;;722:70;;788:1;785;778:12;803:315;871:6;879;932:2;920:9;911:7;907:23;903:32;900:52;;;948:1;945;938:12;900:52;987:9;974:23;1006:31;1031:5;1006:31;:::i;:::-;1056:5;1108:2;1093:18;;;;1080:32;;-1:-1:-1;;;803:315:1:o;1315:127::-;1376:10;1371:3;1367:20;1364:1;1357:31;1407:4;1404:1;1397:15;1431:4;1428:1;1421:15;1447:275;1518:2;1512:9;1583:2;1564:13;;-1:-1:-1;;1560:27:1;1548:40;;1618:18;1603:34;;1639:22;;;1600:62;1597:88;;;1665:18;;:::i;:::-;1701:2;1694:22;1447:275;;-1:-1:-1;1447:275:1:o;1727:183::-;1787:4;1820:18;1812:6;1809:30;1806:56;;;1842:18;;:::i;:::-;-1:-1:-1;1887:1:1;1883:14;1899:4;1879:25;;1727:183::o;1915:966::-;1999:6;2030:2;2073;2061:9;2052:7;2048:23;2044:32;2041:52;;;2089:1;2086;2079:12;2041:52;2129:9;2116:23;2162:18;2154:6;2151:30;2148:50;;;2194:1;2191;2184:12;2148:50;2217:22;;2270:4;2262:13;;2258:27;-1:-1:-1;2248:55:1;;2299:1;2296;2289:12;2248:55;2335:2;2322:16;2358:60;2374:43;2414:2;2374:43;:::i;:::-;2358:60;:::i;:::-;2452:15;;;2534:1;2530:10;;;;2522:19;;2518:28;;;2483:12;;;;2558:19;;;2555:39;;;2590:1;2587;2580:12;2555:39;2614:11;;;;2634:217;2650:6;2645:3;2642:15;2634:217;;;2730:3;2717:17;2747:31;2772:5;2747:31;:::i;:::-;2791:18;;2667:12;;;;2829;;;;2634:217;;;2870:5;1915:966;-1:-1:-1;;;;;;;1915:966:1:o;2886:160::-;2951:20;;3007:13;;3000:21;2990:32;;2980:60;;3036:1;3033;3026:12;2980:60;2886:160;;;:::o;3051:315::-;3116:6;3124;3177:2;3165:9;3156:7;3152:23;3148:32;3145:52;;;3193:1;3190;3183:12;3145:52;3232:9;3219:23;3251:31;3276:5;3251:31;:::i;:::-;3301:5;-1:-1:-1;3325:35:1;3356:2;3341:18;;3325:35;:::i;:::-;3315:45;;3051:315;;;;;:::o;3553:456::-;3630:6;3638;3646;3699:2;3687:9;3678:7;3674:23;3670:32;3667:52;;;3715:1;3712;3705:12;3667:52;3754:9;3741:23;3773:31;3798:5;3773:31;:::i;:::-;3823:5;-1:-1:-1;3880:2:1;3865:18;;3852:32;3893:33;3852:32;3893:33;:::i;:::-;3553:456;;3945:7;;-1:-1:-1;;;3999:2:1;3984:18;;;;3971:32;;3553:456::o;4014:180::-;4070:6;4123:2;4111:9;4102:7;4098:23;4094:32;4091:52;;;4139:1;4136;4129:12;4091:52;4162:26;4178:9;4162:26;:::i;4199:248::-;4267:6;4275;4328:2;4316:9;4307:7;4303:23;4299:32;4296:52;;;4344:1;4341;4334:12;4296:52;-1:-1:-1;;4367:23:1;;;4437:2;4422:18;;;4409:32;;-1:-1:-1;4199:248:1:o;4452:461::-;4505:3;4543:5;4537:12;4570:6;4565:3;4558:19;4596:4;4625:2;4620:3;4616:12;4609:19;;4662:2;4655:5;4651:14;4683:1;4693:195;4707:6;4704:1;4701:13;4693:195;;;4772:13;;-1:-1:-1;;;;;4768:39:1;4756:52;;4828:12;;;;4863:15;;;;4804:1;4722:9;4693:195;;;-1:-1:-1;4904:3:1;;4452:461;-1:-1:-1;;;;;4452:461:1:o;4918:261::-;5097:2;5086:9;5079:21;5060:4;5117:56;5169:2;5158:9;5154:18;5146:6;5117:56;:::i;5763:247::-;5822:6;5875:2;5863:9;5854:7;5850:23;5846:32;5843:52;;;5891:1;5888;5881:12;5843:52;5930:9;5917:23;5949:31;5974:5;5949:31;:::i;6015:1259::-;6421:3;6416;6412:13;6404:6;6400:26;6389:9;6382:45;6363:4;6446:2;6484:3;6479:2;6468:9;6464:18;6457:31;6511:46;6552:3;6541:9;6537:19;6529:6;6511:46;:::i;:::-;6605:9;6597:6;6593:22;6588:2;6577:9;6573:18;6566:50;6639:33;6665:6;6657;6639:33;:::i;:::-;6703:2;6688:18;;6681:34;;;-1:-1:-1;;;;;6752:32:1;;6746:3;6731:19;;6724:61;6772:3;6801:19;;6794:35;;;6866:22;;;6860:3;6845:19;;6838:51;6938:13;;6960:22;;;7036:15;;;;-1:-1:-1;6998:15:1;;;;-1:-1:-1;7079:169:1;7093:6;7090:1;7087:13;7079:169;;;7154:13;;7142:26;;7223:15;;;;7188:12;;;;7115:1;7108:9;7079:169;;;-1:-1:-1;7265:3:1;;6015:1259;-1:-1:-1;;;;;;;;;;;;6015:1259:1:o;7513:829::-;7624:6;7632;7640;7648;7656;7664;7672;7725:3;7713:9;7704:7;7700:23;7696:33;7693:53;;;7742:1;7739;7732:12;7693:53;7781:9;7768:23;7800:31;7825:5;7800:31;:::i;:::-;7850:5;-1:-1:-1;7907:2:1;7892:18;;7879:32;7920:33;7879:32;7920:33;:::i;:::-;7972:7;-1:-1:-1;8026:2:1;8011:18;;7998:32;;-1:-1:-1;8077:2:1;8062:18;;8049:32;;-1:-1:-1;8133:3:1;8118:19;;8105:33;8182:4;8169:18;;8157:31;;8147:59;;8202:1;8199;8192:12;8147:59;7513:829;;;;-1:-1:-1;7513:829:1;;;;8225:7;8279:3;8264:19;;8251:33;;-1:-1:-1;8331:3:1;8316:19;;;8303:33;;7513:829;-1:-1:-1;;7513:829:1:o;8347:388::-;8415:6;8423;8476:2;8464:9;8455:7;8451:23;8447:32;8444:52;;;8492:1;8489;8482:12;8444:52;8531:9;8518:23;8550:31;8575:5;8550:31;:::i;:::-;8600:5;-1:-1:-1;8657:2:1;8642:18;;8629:32;8670:33;8629:32;8670:33;:::i;:::-;8722:7;8712:17;;;8347:388;;;;;:::o;8740:380::-;8819:1;8815:12;;;;8862;;;8883:61;;8937:4;8929:6;8925:17;8915:27;;8883:61;8990:2;8982:6;8979:14;8959:18;8956:38;8953:161;;9036:10;9031:3;9027:20;9024:1;9017:31;9071:4;9068:1;9061:15;9099:4;9096:1;9089:15;9125:127;9186:10;9181:3;9177:20;9174:1;9167:31;9217:4;9214:1;9207:15;9241:4;9238:1;9231:15;9257:127;9318:10;9313:3;9309:20;9306:1;9299:31;9349:4;9346:1;9339:15;9373:4;9370:1;9363:15;9389:135;9428:3;9449:17;;;9446:43;;9469:18;;:::i;:::-;-1:-1:-1;9516:1:1;9505:13;;9389:135::o;9529:128::-;9596:9;;;9617:11;;;9614:37;;;9631:18;;:::i;9662:125::-;9727:9;;;9748:10;;;9745:36;;;9761:18;;:::i;14606:127::-;14667:10;14662:3;14658:20;14655:1;14648:31;14698:4;14695:1;14688:15;14722:4;14719:1;14712:15;16300:168;16373:9;;;16404;;16421:15;;;16415:22;;16401:37;16391:71;;16442:18;;:::i;16473:217::-;16513:1;16539;16529:132;;16583:10;16578:3;16574:20;16571:1;16564:31;16618:4;16615:1;16608:15;16646:4;16643:1;16636:15;16529:132;-1:-1:-1;16675:9:1;;16473:217::o;16695:251::-;16765:6;16818:2;16806:9;16797:7;16793:23;16789:32;16786:52;;;16834:1;16831;16824:12;16786:52;16866:9;16860:16;16885:31;16910:5;16885:31;:::i;16951:582::-;17250:6;17239:9;17232:25;17293:6;17288:2;17277:9;17273:18;17266:34;17336:3;17331:2;17320:9;17316:18;17309:31;17213:4;17357:57;17409:3;17398:9;17394:19;17386:6;17357:57;:::i;:::-;-1:-1:-1;;;;;17450:32:1;;;;17445:2;17430:18;;17423:60;-1:-1:-1;17514:3:1;17499:19;17492:35;17349:65;16951:582;-1:-1:-1;;;16951:582:1:o;17538:881::-;17633:6;17664:2;17707;17695:9;17686:7;17682:23;17678:32;17675:52;;;17723:1;17720;17713:12;17675:52;17756:9;17750:16;17789:18;17781:6;17778:30;17775:50;;;17821:1;17818;17811:12;17775:50;17844:22;;17897:4;17889:13;;17885:27;-1:-1:-1;17875:55:1;;17926:1;17923;17916:12;17875:55;17955:2;17949:9;17978:60;17994:43;18034:2;17994:43;:::i;17978:60::-;18072:15;;;18154:1;18150:10;;;;18142:19;;18138:28;;;18103:12;;;;18178:19;;;18175:39;;;18210:1;18207;18200:12;18175:39;18234:11;;;;18254:135;18270:6;18265:3;18262:15;18254:135;;;18336:10;;18324:23;;18287:12;;;;18367;;;;18254:135;;19321:127;19382:10;19377:3;19373:20;19370:1;19363:31;19413:4;19410:1;19403:15;19437:4;19434:1;19427:15
Swarm Source
ipfs://da474adbc4c1a954109cb76f7af1581710c436980f54394e5f9c7bb7afd8f7ee
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.