ERC-20
Overview
Max Total Supply
1,000,000 BC
Holders
92
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BlockCraft
Compiler Version
v0.8.21+commit.d9974bed
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-10-31 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ```solidity * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values in the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } } /** * @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); } } } // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } /** * @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 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)); } } interface IRewardRecipient { function receiveReward() external payable; } /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } /** * @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 Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://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 { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } /** * @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 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 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]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * 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}. * * 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 default value returned by this function, unless * it's 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 Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } } /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); } /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ```solidity * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ```solidity * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules} * to enforce additional security measures for this role. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(account), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override { super._grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override { super._revokeRole(role, account); _roleMembers[role].remove(account); } } /** * @dev ERC20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. * * IMPORTANT: This contract does not include public pause and unpause functions. In * addition to inheriting this contract, you must define both functions, invoking the * {Pausable-_pause} and {Pausable-_unpause} internal functions, with appropriate * access control, e.g. using {AccessControl} or {Ownable}. Not doing so will * make the contract unpausable. */ abstract contract ERC20Pausable is ERC20, Pausable { /** * @dev See {ERC20-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override { super._beforeTokenTransfer(from, to, amount); require(!paused(), "ERC20Pausable: token transfer while paused"); } } /** * @dev {ERC20} token, including: * * - ability for holders to burn (destroy) their tokens * - a minter role that allows for token minting (creation) * - a pauser role that allows to stop all token transfers * * This contract uses {AccessControl} to lock permissioned functions using the * different roles - head to its documentation for details. * * The account that deploys the contract will be granted the minter and pauser * roles, as well as the default admin role, which will let it grant both minter * and pauser roles to other accounts. * * _Deprecated in favor of https://wizard.openzeppelin.com/[Contracts Wizard]._ */ contract ERC20PresetMinterPauser is Context, AccessControlEnumerable, ERC20Burnable, ERC20Pausable { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); /** * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the * account that deploys the contract. * * See {ERC20-constructor}. */ constructor(string memory name, string memory symbol) ERC20(name, symbol) { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(MINTER_ROLE, _msgSender()); _setupRole(PAUSER_ROLE, _msgSender()); } /** * @dev Creates `amount` new tokens for `to`. * * See {ERC20-_mint}. * * Requirements: * * - the caller must have the `MINTER_ROLE`. */ function mint(address to, uint256 amount) public virtual { require(hasRole(MINTER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have minter role to mint"); _mint(to, amount); } /** * @dev Pauses all token transfers. * * See {ERC20Pausable} and {Pausable-_pause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function pause() public virtual { require(hasRole(PAUSER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have pauser role to pause"); _pause(); } /** * @dev Unpauses all token transfers. * * See {ERC20Pausable} and {Pausable-_unpause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function unpause() public virtual { require(hasRole(PAUSER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have pauser role to unpause"); _unpause(); } function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override(ERC20, ERC20Pausable) { super._beforeTokenTransfer(from, to, amount); } } /** * @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 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.encodeWithSelector(token.transfer.selector, 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.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @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); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, 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); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * 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.isContract(address(token)); } } interface IUniswapV2Factory { function getPair( address tokenA, address tokenB ) external view returns (address pair); function createPair( address tokenA, address tokenB ) external returns (address pair); } interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance( address owner, address spender ) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom( address from, address to, uint value ) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit( address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s ) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn( address indexed sender, uint amount0, uint amount1, address indexed to ); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap( uint amount0Out, uint amount1Out, address to, bytes calldata data ) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } interface IUniswapV2Router01 { 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 IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function factory() external pure returns (address); // Not in IUniswapV2Router02 function WETH() external pure returns (address); } library Babylonian { function sqrt(uint256 y) internal pure returns (uint256 z) { if (y > 3) { z = y; uint256 x = y / 2 + 1; while (x < z) { z = x; x = (y / x + x) / 2; } } else if (y != 0) { z = 1; } } } error INVALID_ADDRESS(); error INVALID_FEE(); error PAUSED(); contract BlockCraft is ERC20PresetMinterPauser { using SafeERC20 for IERC20; using SafeMath for uint256; /// @dev name string private constant NAME = 'Blockcraft'; /// @dev symbol string private constant SYMBOL = 'BC'; /// @dev initial supply uint256 private constant INITIAL_SUPPLY = 1_000_000 ether; /// @notice percent multiplier (100%) uint256 public constant MULTIPLIER = 10000; /// @notice Uniswap Router IUniswapV2Router02 public immutable ROUTER; /// @notice Uniswap Factory IUniswapV2Factory public immutable FACTORY; /// @notice Uniswap Pair address public immutable PAIR; /// @notice tax info struct TaxInfo { uint256 materialFee; uint256 operationFee; uint256 rewardFee; } TaxInfo public taxInfo; uint256 public totalFee; uint256 public uniswapFee; /// @notice anti bot deets uint256 public maxWalletPercent = 2; uint256 public maxTxPercent = 2; bool private _anitbotenabled = true; /// @notice material address public materialFeeReceiver; /// @notice liquidity wallet address public rewardFeeReceiver; /// @notice marketing wallet address public operationFeeReceiver; /// @notice whether a wallet excludes fees mapping(address => bool) public isExcludedFromFee; /// @notice wheter to include a wallet in antibot or not mapping(address => bool) public isExcludedFromAntiBot; /// @notice pending tax uint256 public pendingTax; /// @notice swap enabled bool public swapEnabled = false; /// @notice swap threshold uint256 public swapThreshold = INITIAL_SUPPLY / 20000; // 0.005% /// @dev in swap bool private inSwap; /* ======== EVENTS ======== */ event MaterialFeeReceiver(address receiver); event RewardFeeReceiver(address receiver); event OperationFeeReceiver(address receiver); event TaxFee( uint256 materialFee, uint256 operationFee, uint256 rewardFee ); event UniswapFee(uint256 uniswapFee); event ExcludeFromFee(address account); event IncludeFromFee(address account); event AntiBotConfig(uint256 maxWallet, uint256 maxTx); event AntiBotEnabled(bool enabled); event AnitBotExclusion(address account, bool excluded); /* ======== INITIALIZATION ======== */ constructor( IUniswapV2Router02 router ) ERC20PresetMinterPauser(NAME, SYMBOL) { _mint(_msgSender(), INITIAL_SUPPLY); ROUTER = router; FACTORY = IUniswapV2Factory(router.factory()); PAIR = FACTORY.createPair(address(this), router.WETH()); _approve(address(this), address(ROUTER), type(uint256).max); taxInfo.materialFee = 200; // 2% taxInfo.operationFee = 200; // 2% taxInfo.rewardFee = 200; // 2% totalFee = 600; // 6% uniswapFee = 3; // 0.3% (1000 = 100%) isExcludedFromFee[_msgSender()] = true; isExcludedFromFee[address(this)] = true; isExcludedFromAntiBot[_msgSender()] = true; isExcludedFromAntiBot[address(this)] = true; isExcludedFromAntiBot[address(PAIR)] = true; } receive() external payable {} /* ======== MODIFIERS ======== */ modifier onlyOwner() { _checkRole(DEFAULT_ADMIN_ROLE); _; } modifier swapping() { inSwap = true; _; inSwap = false; } /* ======== POLICY FUNCTIONS ======== */ function setMaterialFeeReceiver(address receiver) external onlyOwner { if (receiver == address(0)) revert INVALID_ADDRESS(); materialFeeReceiver = receiver; emit MaterialFeeReceiver(receiver); } function setRewardFeeReceiver(address receiver) external onlyOwner { if (receiver == address(0)) revert INVALID_ADDRESS(); rewardFeeReceiver = receiver; emit RewardFeeReceiver(receiver); } function setOperationFeeReceiver(address receiver) external onlyOwner { if (receiver == address(0)) revert INVALID_ADDRESS(); operationFeeReceiver = receiver; emit OperationFeeReceiver(receiver); } function setTaxFee( uint256 materialFee, uint256 operationFee, uint256 rewardFee ) external onlyOwner { totalFee = materialFee + operationFee + rewardFee; if (totalFee == 0 || totalFee >= MULTIPLIER) revert INVALID_FEE(); taxInfo.materialFee = materialFee; taxInfo.operationFee = operationFee; taxInfo.rewardFee = rewardFee; emit TaxFee(materialFee, operationFee, rewardFee); } function setAntiBotConfig(uint256 _maxwallet,uint256 _maxtx) external onlyOwner { maxWalletPercent = _maxwallet; maxTxPercent = _maxtx; emit AntiBotConfig(_maxwallet,_maxtx); } function setAntiBot(bool _enabled) external onlyOwner { _anitbotenabled = _enabled; emit AntiBotEnabled(_enabled); } function setUniswapFee(uint256 fee) external onlyOwner { uniswapFee = fee; emit UniswapFee(fee); } function excludeFromFee(address account) external onlyOwner { isExcludedFromFee[account] = true; emit ExcludeFromFee(account); } function includeFromFee(address account) external onlyOwner { isExcludedFromFee[account] = false; emit IncludeFromFee(account); } function setAntiBotExclusion(address account,bool _isexcluded) external onlyOwner{ isExcludedFromAntiBot[account] = _isexcluded; emit AnitBotExclusion(account,_isexcluded); } function enableSwap() external onlyOwner { swapEnabled = true; } function recoverERC20(IERC20 token) external onlyOwner { if (address(token) == address(this)) { token.safeTransfer( _msgSender(), token.balanceOf(address(this)) - pendingTax ); } else { token.safeTransfer(_msgSender(), token.balanceOf(address(this))); } } /* ======== PUBLIC FUNCTIONS ======== */ function transfer( address to, uint256 amount ) public override returns (bool) { _anitbotcheck(to,amount); _transferWithTax(_msgSender(), to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public override returns (bool) { address spender = _msgSender(); _anitbotcheck(to,amount); _spendAllowance(from, spender, amount); _transferWithTax(from, to, amount); return true; } /* ======== INTERNAL FUNCTIONS ======== */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override { if (from != address(0) && paused()) revert PAUSED(); } function _getPoolToken( address pool, string memory signature, function() external view returns (address) getter ) internal returns (address) { (bool success, ) = pool.call(abi.encodeWithSignature(signature)); if (success) { uint32 size; assembly { size := extcodesize(pool) } if (size > 0) { return getter(); } } return address(0); } function _shouldTakeTax(address from, address to) internal returns (bool) { if (isExcludedFromFee[from] || isExcludedFromFee[to]) return false; address token0 = _getPoolToken( to, 'token0()', IUniswapV2Pair(to).token0 ); address token1 = _getPoolToken( to, 'token1()', IUniswapV2Pair(to).token1 ); return token0 == address(this) || token1 == address(this); } function _shouldSwapTax() internal view returns (bool) { return !inSwap && swapEnabled && pendingTax >= swapThreshold; } function _swapTax() internal swapping { address[] memory path = new address[](2); path[0] = address(this); path[1] = ROUTER.WETH(); uint256 balance = pendingTax; uint256 noSwap = (balance * taxInfo.rewardFee) / totalFee; delete pendingTax; // distribute tax (materials, operations, rewards) { uint256 swapAmount = balance - noSwap; uint256 balanceBefore = address(this).balance; ROUTER.swapExactTokensForETHSupportingFeeOnTransferTokens( swapAmount, 0, path, address(this), block.timestamp ); uint256 amountETH = address(this).balance - balanceBefore; uint256 materialETH = (amountETH * taxInfo.materialFee) / (taxInfo.materialFee + taxInfo.operationFee); uint256 operationETH = amountETH - materialETH; try IRewardRecipient(materialFeeReceiver).receiveReward{ value: materialETH }() {} catch {} payable(operationFeeReceiver).call{value: operationETH}(''); } // transfer reward to reward wallet { uint256 reward = noSwap; _transfer(address(this), rewardFeeReceiver, reward); } } function _calculateSwapInAmount( uint256 reserveIn, uint256 userIn ) internal view returns (uint256) { return (Babylonian.sqrt( reserveIn * ((userIn * (uint256(4000) - (4 * uniswapFee)) * 1000) + (reserveIn * ((uint256(4000) - (4 * uniswapFee)) * 1000 + uniswapFee * uniswapFee))) ) - (reserveIn * (2000 - uniswapFee))) / (2000 - 2 * uniswapFee); } function _checkMaxWallet(address recipient, uint256 amount) internal view { uint256 maxWalletBalance = totalSupply().mul(maxWalletPercent).div(100); require(balanceOf(recipient).add(amount) <= maxWalletBalance, "Exceeds maximum wallet balance"); } function _checkMaxTx(uint256 amount) internal view { uint256 maxTransactionSize = totalSupply().mul(maxTxPercent).div(100); require(amount <= maxTransactionSize, "Exceeds maximum transaction size"); } function _anitbotcheck(address to, uint256 amount) internal view{ if (!_anitbotenabled){return;} if (isExcludedFromAntiBot[to]){ return ; } require(swapEnabled,"Swap not enabled"); _checkMaxWallet(to,amount); _checkMaxTx(amount); return ; } function _transferWithTax( address from, address to, uint256 amount ) internal { if (inSwap) { _transfer(from, to, amount); return; } if (_shouldTakeTax(from, to)) { uint256 tax = (amount * totalFee) / MULTIPLIER; unchecked { amount -= tax; pendingTax += tax; } _transfer(from, address(this), tax); } if (_shouldSwapTax()) { _swapTax(); } _transfer(from, to, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IUniswapV2Router02","name":"router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"INVALID_ADDRESS","type":"error"},{"inputs":[],"name":"INVALID_FEE","type":"error"},{"inputs":[],"name":"PAUSED","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"excluded","type":"bool"}],"name":"AnitBotExclusion","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxWallet","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxTx","type":"uint256"}],"name":"AntiBotConfig","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"AntiBotEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"ExcludeFromFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"IncludeFromFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"}],"name":"MaterialFeeReceiver","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"}],"name":"OperationFeeReceiver","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"}],"name":"RewardFeeReceiver","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"materialFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"operationFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardFee","type":"uint256"}],"name":"TaxFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"uniswapFee","type":"uint256"}],"name":"UniswapFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FACTORY","outputs":[{"internalType":"contract IUniswapV2Factory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAIR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROUTER","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeFromFee","outputs":[],"stateMutability":"nonpayable","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":"isExcludedFromAntiBot","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"materialFeeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTxPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operationFeeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardFeeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setAntiBot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxwallet","type":"uint256"},{"internalType":"uint256","name":"_maxtx","type":"uint256"}],"name":"setAntiBotConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"_isexcluded","type":"bool"}],"name":"setAntiBotExclusion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"setMaterialFeeReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"setOperationFeeReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"setRewardFeeReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"materialFee","type":"uint256"},{"internalType":"uint256","name":"operationFee","type":"uint256"},{"internalType":"uint256","name":"rewardFee","type":"uint256"}],"name":"setTaxFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setUniswapFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxInfo","outputs":[{"internalType":"uint256","name":"materialFee","type":"uint256"},{"internalType":"uint256","name":"operationFee","type":"uint256"},{"internalType":"uint256","name":"rewardFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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":[],"name":"uniswapFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e06040526002600d819055600e55600f805460ff199081166001179091556015805490911690556200003f614e2069d3c21bcecceda1000000620006ee565b6016553480156200004e575f80fd5b506040516200380d3803806200380d833981016040819052620000719162000726565b6040518060400160405280600a815260200169109b1bd8dad8dc98599d60b21b81525060405180604001604052806002815260200161424360f01b81525081818160059081620000c29190620007ea565b506006620000d18282620007ea565b50506007805460ff1916905550620000ea5f3362000373565b620001167f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000373565b620001427f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a3362000373565b506200015b90503369d3c21bcecceda100000062000383565b6001600160a01b03811660808190526040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa158015620001a4573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620001ca919062000726565b6001600160a01b031660a0816001600160a01b03168152505060a0516001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000232573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000258919062000726565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af1158015620002a3573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620002c9919062000726565b6001600160a01b031660c052608051620002e79030905f1962000457565b5060c860088190556009819055600a55610258600b556003600c55335f8181526012602090815260408083208054600160ff19918216811790925530808652838620805483168417905595855260139093528184208054841682179055938352808320805483168517905560c0516001600160a01b0316835290912080549091169091179055620008d2565b6200037f82826200057e565b5050565b6001600160a01b038216620003df5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b620003ec5f8383620005a8565b8060045f828254620003ff9190620008b2565b90915550506001600160a01b0382165f818152600260209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038316620004bb5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401620003d6565b6001600160a01b0382166200051e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401620003d6565b6001600160a01b038381165f8181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6200058a8282620005e2565b5f828152600160205260409020620005a3908262000680565b505050565b6001600160a01b03831615801590620005c3575060075460ff165b15620005a357604051632a6ab56360e21b815260040160405180910390fd5b5f828152602081815260408083206001600160a01b038516845290915290205460ff166200037f575f828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556200063c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b5f62000696836001600160a01b0384166200069f565b90505b92915050565b5f818152600183016020526040812054620006e657508154600181810184555f84815260208082209093018490558454848252828601909352604090209190915562000699565b505f62000699565b5f826200070957634e487b7160e01b5f52601260045260245ffd5b500490565b6001600160a01b038116811462000723575f80fd5b50565b5f6020828403121562000737575f80fd5b815162000744816200070e565b9392505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200077457607f821691505b6020821081036200079357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620005a3575f81815260208120601f850160051c81016020861015620007c15750805b601f850160051c820191505b81811015620007e257828155600101620007cd565b505050505050565b81516001600160401b038111156200080657620008066200074b565b6200081e816200081784546200075f565b8462000799565b602080601f83116001811462000854575f84156200083c5750858301515b5f19600386901b1c1916600185901b178555620007e2565b5f85815260208120601f198616915b82811015620008845788860151825594840194600190910190840162000863565b5085821015620008a257878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156200069957634e487b7160e01b5f52601160045260245ffd5b60805160a05160c051612f026200090b5f395f61091001525f61053201525f81816105be01528181611fd301526120cb0152612f025ff3fe608060405260043610610369575f3560e01c80635904e335116101c8578063a217fddf116100fd578063d547741f1161009d578063ebdd202f1161006d578063ebdd202f14610a4d578063f05ffa2614610a6c578063fda6688d14610a81578063ff51182814610aa5575f80fd5b8063d547741f146109a3578063dd62ed3e146109c2578063e63ab1e9146109e1578063e934da8c14610a14575f80fd5b8063ace3a8a7116100d8578063ace3a8a7146108ff578063c2c7c03a14610932578063ca15c87314610951578063d539139314610970575f80fd5b8063a217fddf146108ae578063a457c2d7146108c1578063a9059cbb146108e0575f80fd5b806370a67446116101685780639010d07c116101435780639010d07c1461083d57806391d148541461085c57806395d89b411461087b5780639e8c708e1461088f575f80fd5b806370a67446146107eb57806379cc67901461080a5780638456cb5914610829575f80fd5b806362ab61a6116101a357806362ab61a614610774578063637af4df146107895780636ddd17131461079e57806370a08231146107b7575f80fd5b80635904e335146107105780635c975abb1461072f5780635d5b29c114610746575f80fd5b80632f2ff15d1161029e5780633f4ba83a1161023e578063437823ec11610219578063437823ec146106855780634c07191b146106a45780634d768931146106c35780635342acb4146106e2575f80fd5b80633f4ba83a1461063357806340c10f191461064757806342966c6814610666575f80fd5b806332fe7b261161027957806332fe7b26146105ad57806336568abe146105e057806339509351146105ff5780633d9a3d191461061e575f80fd5b80632f2ff15d14610554578063313ce56714610573578063324c34541461058e575f80fd5b80631830e6221161030957806323b872dd116102e457806323b872dd146104c0578063248a9ca3146104df578063296914481461050d5780632dd3100014610521575f80fd5b80631830e622146104555780631df4ccfc1461048c57806321e33984146104a1575f80fd5b806306fdde031161034457806306fdde03146103e0578063095ea7b314610401578063130da1d91461042057806318160ddd14610441575f80fd5b806301ffc9a7146103745780630445b667146103a8578063059f8b16146103cb575f80fd5b3661037057005b5f80fd5b34801561037f575f80fd5b5061039361038e366004612a68565b610ac4565b60405190151581526020015b60405180910390f35b3480156103b3575f80fd5b506103bd60165481565b60405190815260200161039f565b3480156103d6575f80fd5b506103bd61271081565b3480156103eb575f80fd5b506103f4610aee565b60405161039f9190612ab1565b34801561040c575f80fd5b5061039361041b366004612af7565b610b7e565b34801561042b575f80fd5b5061043f61043a366004612b2e565b610b95565b005b34801561044c575f80fd5b506004546103bd565b348015610460575f80fd5b50601154610474906001600160a01b031681565b6040516001600160a01b03909116815260200161039f565b348015610497575f80fd5b506103bd600b5481565b3480156104ac575f80fd5b5061043f6104bb366004612b65565b610c01565b3480156104cb575f80fd5b506103936104da366004612b80565b610c86565b3480156104ea575f80fd5b506103bd6104f9366004612bbe565b5f9081526020819052604090206001015490565b348015610518575f80fd5b5061043f610cb3565b34801561052c575f80fd5b506104747f000000000000000000000000000000000000000000000000000000000000000081565b34801561055f575f80fd5b5061043f61056e366004612bd5565b610ccb565b34801561057e575f80fd5b506040516012815260200161039f565b348015610599575f80fd5b5061043f6105a8366004612bf8565b610cf4565b3480156105b8575f80fd5b506104747f000000000000000000000000000000000000000000000000000000000000000081565b3480156105eb575f80fd5b5061043f6105fa366004612bd5565b610d9a565b34801561060a575f80fd5b50610393610619366004612af7565b610e1d565b348015610629575f80fd5b506103bd600d5481565b34801561063e575f80fd5b5061043f610e3e565b348015610652575f80fd5b5061043f610661366004612af7565b610ee4565b348015610671575f80fd5b5061043f610680366004612bbe565b610f83565b348015610690575f80fd5b5061043f61069f366004612b65565b610f90565b3480156106af575f80fd5b5061043f6106be366004612bbe565b610fec565b3480156106ce575f80fd5b50601054610474906001600160a01b031681565b3480156106ed575f80fd5b506103936106fc366004612b65565b60126020525f908152604090205460ff1681565b34801561071b575f80fd5b5061043f61072a366004612b65565b61102a565b34801561073a575f80fd5b5060075460ff16610393565b348015610751575f80fd5b50610393610760366004612b65565b60136020525f908152604090205460ff1681565b34801561077f575f80fd5b506103bd600e5481565b348015610794575f80fd5b506103bd600c5481565b3480156107a9575f80fd5b506015546103939060ff1681565b3480156107c2575f80fd5b506103bd6107d1366004612b65565b6001600160a01b03165f9081526002602052604090205490565b3480156107f6575f80fd5b5061043f610805366004612c21565b6110a8565b348015610815575f80fd5b5061043f610824366004612af7565b6110f1565b348015610834575f80fd5b5061043f611106565b348015610848575f80fd5b50610474610857366004612c21565b6111aa565b348015610867575f80fd5b50610393610876366004612bd5565b6111c8565b348015610886575f80fd5b506103f46111f0565b34801561089a575f80fd5b5061043f6108a9366004612b65565b6111ff565b3480156108b9575f80fd5b506103bd5f81565b3480156108cc575f80fd5b506103936108db366004612af7565b61130a565b3480156108eb575f80fd5b506103936108fa366004612af7565b611384565b34801561090a575f80fd5b506104747f000000000000000000000000000000000000000000000000000000000000000081565b34801561093d575f80fd5b5061043f61094c366004612c41565b6113a3565b34801561095c575f80fd5b506103bd61096b366004612bbe565b6113ed565b34801561097b575f80fd5b506103bd7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b3480156109ae575f80fd5b5061043f6109bd366004612bd5565b611403565b3480156109cd575f80fd5b506103bd6109dc366004612c5c565b611427565b3480156109ec575f80fd5b506103bd7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b348015610a1f575f80fd5b50600854600954600a54610a3292919083565b6040805193845260208401929092529082015260600161039f565b348015610a58575f80fd5b5061043f610a67366004612b65565b611451565b348015610a77575f80fd5b506103bd60145481565b348015610a8c575f80fd5b50600f546104749061010090046001600160a01b031681565b348015610ab0575f80fd5b5061043f610abf366004612b65565b6114d7565b5f6001600160e01b03198216635a05180f60e01b1480610ae85750610ae882611530565b92915050565b606060058054610afd90612c88565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2990612c88565b8015610b745780601f10610b4b57610100808354040283529160200191610b74565b820191905f5260205f20905b815481529060010190602001808311610b5757829003601f168201915b5050505050905090565b5f33610b8b818585611564565b5060019392505050565b610b9e5f611687565b6001600160a01b0382165f81815260136020908152604091829020805460ff19168515159081179091558251938452908301527f70e2fedff864757b8449b77cfbee98bdf3fcff45560905a6b70dfebf432c6b7491015b60405180910390a15050565b610c0a5f611687565b6001600160a01b038116610c3157604051635963709b60e01b815260040160405180910390fd5b601080546001600160a01b0319166001600160a01b0383169081179091556040519081527ff798d36ce1f56134f749b7649573976b9c4eac5bb2fbec43d055093c991be00f906020015b60405180910390a150565b5f33610c928484611691565b610c9d85828561171b565b610ca8858585611793565b506001949350505050565b610cbc5f611687565b6015805460ff19166001179055565b5f82815260208190526040902060010154610ce581611687565b610cef8383611810565b505050565b610cfd5f611687565b80610d088385612cd4565b610d129190612cd4565b600b8190551580610d275750612710600b5410155b15610d4557604051632fb15b8760e01b815260040160405180910390fd5b60088390556009829055600a81905560408051848152602081018490529081018290527f0cd6f993afc99de82ac7a78fe10781be4cfa109c8154847ac85290eafe36f3c49060600160405180910390a1505050565b6001600160a01b0381163314610e0f5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b610e198282611831565b5050565b5f33610b8b818585610e2f8383611427565b610e399190612cd4565b611564565b610e687f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336111c8565b610eda5760405162461bcd60e51b815260206004820152603960248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f20756e7061757365000000000000006064820152608401610e06565b610ee2611852565b565b610f0e7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336111c8565b610f795760405162461bcd60e51b815260206004820152603660248201527f45524332305072657365744d696e7465725061757365723a206d7573742068616044820152751d99481b5a5b9d195c881c9bdb19481d1bc81b5a5b9d60521b6064820152608401610e06565b610e1982826118a4565b610f8d338261196e565b50565b610f995f611687565b6001600160a01b0381165f81815260126020908152604091829020805460ff1916600117905590519182527f58c3e0504c69d3a92726966f152a771e0f8f6ad4daca1ae9055a38aba1fd2b629101610c7b565b610ff55f611687565b600c8190556040518181527f898ae20504548f86abb24929353c0fba1ef0d54441505e06dd0fc9b36f00ecb890602001610c7b565b6110335f611687565b6001600160a01b03811661105a57604051635963709b60e01b815260040160405180910390fd5b601180546001600160a01b0319166001600160a01b0383169081179091556040519081527f847c5031ea54e533379cc5dfe8f040cc03bc91ede41ce701a7020a538ad0efe990602001610c7b565b6110b15f611687565b600d829055600e81905560408051838152602081018390527fe57479af42b54521d411c88ababbbf0cac882e97aa310d1cd460f12baa7ff02a9101610bf5565b6110fc82338361171b565b610e19828261196e565b6111307f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336111c8565b6111a25760405162461bcd60e51b815260206004820152603760248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f2070617573650000000000000000006064820152608401610e06565b610ee2611aab565b5f8281526001602052604081206111c19083611ae8565b9392505050565b5f918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b606060068054610afd90612c88565b6112085f611687565b306001600160a01b038216036112a057610f8d336014546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015611261573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112859190612ce7565b61128f9190612cfe565b6001600160a01b0384169190611af3565b610f8d336040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa1580156112e6573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061128f9190612ce7565b5f33816113178286611427565b9050838110156113775760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610e06565b610ca88286868403611564565b5f61138f8383611691565b61139a338484611793565b50600192915050565b6113ac5f611687565b600f805460ff19168215159081179091556040519081527f201675eb369b8839eadf7f2b4f8363cf44f44417b956464780c176dd981324e090602001610c7b565b5f818152600160205260408120610ae890611b45565b5f8281526020819052604090206001015461141d81611687565b610cef8383611831565b6001600160a01b039182165f90815260036020908152604080832093909416825291909152205490565b61145a5f611687565b6001600160a01b03811661148157604051635963709b60e01b815260040160405180910390fd5b600f8054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527fe32beca9e559c6bbae8193dba16c479c0e15d9b323c5d2bf56b43802e74b117590602001610c7b565b6114e05f611687565b6001600160a01b0381165f81815260126020908152604091829020805460ff1916905590519182527f172447a0c608ce87868bcdb50bf4e0e6fbd1bcc397b343b9ea9d62a8825900a49101610c7b565b5f6001600160e01b03198216637965db0b60e01b1480610ae857506301ffc9a760e01b6001600160e01b0319831614610ae8565b6001600160a01b0383166115c65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610e06565b6001600160a01b0382166116275760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610e06565b6001600160a01b038381165f8181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b610f8d8133611b4e565b600f5460ff1661169f575050565b6001600160a01b0382165f9081526013602052604090205460ff16156116c3575050565b60155460ff166117085760405162461bcd60e51b815260206004820152601060248201526f14ddd85c081b9bdd08195b98589b195960821b6044820152606401610e06565b6117128282611ba7565b610e1981611c41565b5f6117268484611427565b90505f19811461178d57818110156117805760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610e06565b61178d8484848403611564565b50505050565b60175460ff16156117a957610cef838383611ca8565b6117b38383611e5c565b156117f0575f612710600b54836117ca9190612d11565b6117d49190612d28565b6014805482019055918290039190506117ee843083611ca8565b505b6117f8611f45565b1561180557611805611f71565b610cef838383611ca8565b61181a8282612262565b5f828152600160205260409020610cef90826122e5565b61183b82826122f9565b5f828152600160205260409020610cef908261235d565b61185a612371565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166118fa5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610e06565b6119055f83836123ba565b8060045f8282546119169190612cd4565b90915550506001600160a01b0382165f818152600260209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0382166119ce5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610e06565b6119d9825f836123ba565b6001600160a01b0382165f9081526002602052604090205481811015611a4c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610e06565b6001600160a01b0383165f8181526002602090815260408083208686039055600480548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b611ab36123f2565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118873390565b5f6111c18383612438565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610cef90849061245e565b5f610ae8825490565b611b5882826111c8565b610e1957611b6581612531565b611b70836020612543565b604051602001611b81929190612d47565b60408051601f198184030181529082905262461bcd60e51b8252610e0691600401612ab1565b5f611bc86064611bc2600d54611bbc60045490565b906126d9565b906126e4565b905080611bf383611bed866001600160a01b03165f9081526002602052604090205490565b906126ef565b1115610cef5760405162461bcd60e51b815260206004820152601e60248201527f45786365656473206d6178696d756d2077616c6c65742062616c616e636500006044820152606401610e06565b5f611c566064611bc2600e54611bbc60045490565b905080821115610e195760405162461bcd60e51b815260206004820181905260248201527f45786365656473206d6178696d756d207472616e73616374696f6e2073697a656044820152606401610e06565b6001600160a01b038316611d0c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610e06565b6001600160a01b038216611d6e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610e06565b611d798383836123ba565b6001600160a01b0383165f9081526002602052604090205481811015611df05760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610e06565b6001600160a01b038085165f8181526002602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611e4f9086815260200190565b60405180910390a361178d565b6001600160a01b0382165f9081526012602052604081205460ff1680611e9957506001600160a01b0382165f9081526012602052604090205460ff165b15611ea557505f610ae8565b5f611edf8360405180604001604052806008815260200167746f6b656e30282960c01b815250856001600160a01b0316630dfe16816126fa565b90505f611f1b8460405180604001604052806008815260200167746f6b656e31282960c01b815250866001600160a01b031663d21220a76126fa565b90506001600160a01b038216301480611f3c57506001600160a01b03811630145b95945050505050565b6017545f9060ff16158015611f5c575060155460ff165b8015611f6c575060165460145410155b905090565b6017805460ff191660011790556040805160028082526060820183525f9260208301908036833701905050905030815f81518110611fb157611fb1612dcf565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561202d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120519190612de3565b8160018151811061206457612064612dcf565b6001600160a01b0390921660209283029190910190910152601454600b54600a545f91906120929084612d11565b61209c9190612d28565b5f60148190559091506120af8284612cfe565b60405163791ac94760e01b815290915047906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac947906121089085905f908a9030904290600401612dfe565b5f604051808303815f87803b15801561211f575f80fd5b505af1158015612131573d5f803e3d5ffd5b505050505f81476121429190612cfe565b6009546008549192505f916121579190612cd4565b6008546121649084612d11565b61216e9190612d28565b90505f61217b8284612cfe565b9050600f60019054906101000a90046001600160a01b03166001600160a01b031663ff3d9e4f836040518263ffffffff1660e01b81526004015f604051808303818588803b1580156121cb575f80fd5b505af1935050505080156121dd575060015b506011546040516001600160a01b039091169082905f81818185875af1925050503d805f8114612228576040519150601f19603f3d011682016040523d82523d5f602084013e61222d565b606091505b505060105487965061225295503094506001600160a01b03169250859150611ca89050565b50506017805460ff191690555050565b61226c82826111c8565b610e19575f828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556122a13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b5f6111c1836001600160a01b03841661281c565b61230382826111c8565b15610e19575f828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b5f6111c1836001600160a01b038416612868565b60075460ff16610ee25760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610e06565b6001600160a01b038316158015906123d4575060075460ff165b15610cef57604051632a6ab56360e21b815260040160405180910390fd5b60075460ff1615610ee25760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e06565b5f825f01828154811061244d5761244d612dcf565b905f5260205f200154905092915050565b5f6124b2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661294b9092919063ffffffff16565b905080515f14806124d25750808060200190518101906124d29190612e6d565b610cef5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610e06565b6060610ae86001600160a01b03831660145b60605f612551836002612d11565b61255c906002612cd4565b67ffffffffffffffff81111561257457612574612dbb565b6040519080825280601f01601f19166020018201604052801561259e576020820181803683370190505b509050600360fc1b815f815181106125b8576125b8612dcf565b60200101906001600160f81b03191690815f1a905350600f60fb1b816001815181106125e6576125e6612dcf565b60200101906001600160f81b03191690815f1a9053505f612608846002612d11565b612613906001612cd4565b90505b600181111561268a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061264757612647612dcf565b1a60f81b82828151811061265d5761265d612dcf565b60200101906001600160f81b03191690815f1a90535060049490941c9361268381612e88565b9050612616565b5083156111c15760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e06565b5f6111c18284612d11565b5f6111c18284612d28565b5f6111c18284612cd4565b604080516004815260248101918290525f9182916001600160a01b03881691612724908890612e9d565b60408051918290039091206020830180516001600160e01b03166001600160e01b03199092169190911790525161275b9190612e9d565b5f604051808303815f865af19150503d805f8114612794576040519150601f19603f3d011682016040523d82523d5f602084013e612799565b606091505b50509050801561280f57853b63ffffffff81161561280d5784846040518163ffffffff1660e01b8152600401602060405180830381865afa1580156127e0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906128049190612de3565b92505050612814565b505b5f9150505b949350505050565b5f81815260018301602052604081205461286157508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155610ae8565b505f610ae8565b5f8181526001830160205260408120548015612942575f61288a600183612cfe565b85549091505f9061289d90600190612cfe565b90508181146128fc575f865f0182815481106128bb576128bb612dcf565b905f5260205f200154905080875f0184815481106128db576128db612dcf565b5f918252602080832090910192909255918252600188019052604090208390555b855486908061290d5761290d612eb8565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050610ae8565b5f915050610ae8565b606061281484845f85855f80866001600160a01b031685876040516129709190612e9d565b5f6040518083038185875af1925050503d805f81146129aa576040519150601f19603f3d011682016040523d82523d5f602084013e6129af565b606091505b50915091506129c0878383876129cb565b979650505050505050565b60608315612a395782515f03612a32576001600160a01b0385163b612a325760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610e06565b5081612814565b6128148383815115612a4e5781518083602001fd5b8060405162461bcd60e51b8152600401610e069190612ab1565b5f60208284031215612a78575f80fd5b81356001600160e01b0319811681146111c1575f80fd5b5f5b83811015612aa9578181015183820152602001612a91565b50505f910152565b602081525f8251806020840152612acf816040850160208701612a8f565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610f8d575f80fd5b5f8060408385031215612b08575f80fd5b8235612b1381612ae3565b946020939093013593505050565b8015158114610f8d575f80fd5b5f8060408385031215612b3f575f80fd5b8235612b4a81612ae3565b91506020830135612b5a81612b21565b809150509250929050565b5f60208284031215612b75575f80fd5b81356111c181612ae3565b5f805f60608486031215612b92575f80fd5b8335612b9d81612ae3565b92506020840135612bad81612ae3565b929592945050506040919091013590565b5f60208284031215612bce575f80fd5b5035919050565b5f8060408385031215612be6575f80fd5b823591506020830135612b5a81612ae3565b5f805f60608486031215612c0a575f80fd5b505081359360208301359350604090920135919050565b5f8060408385031215612c32575f80fd5b50508035926020909101359150565b5f60208284031215612c51575f80fd5b81356111c181612b21565b5f8060408385031215612c6d575f80fd5b8235612c7881612ae3565b91506020830135612b5a81612ae3565b600181811c90821680612c9c57607f821691505b602082108103612cba57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610ae857610ae8612cc0565b5f60208284031215612cf7575f80fd5b5051919050565b81810381811115610ae857610ae8612cc0565b8082028115828204841417610ae857610ae8612cc0565b5f82612d4257634e487b7160e01b5f52601260045260245ffd5b500490565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081525f8351612d7e816017850160208801612a8f565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612daf816028840160208801612a8f565b01602801949350505050565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215612df3575f80fd5b81516111c181612ae3565b5f60a082018783526020878185015260a0604085015281875180845260c08601915082890193505f5b81811015612e4c5784516001600160a01b031683529383019391830191600101612e27565b50506001600160a01b03969096166060850152505050608001529392505050565b5f60208284031215612e7d575f80fd5b81516111c181612b21565b5f81612e9657612e96612cc0565b505f190190565b5f8251612eae818460208701612a8f565b9190910192915050565b634e487b7160e01b5f52603160045260245ffdfea2646970667358221220eb5a0d05e936c360bc2ca7f7440ea1ec9f95831514d9bf1749393e92d3cd24ad64736f6c634300081500330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Deployed Bytecode
0x608060405260043610610369575f3560e01c80635904e335116101c8578063a217fddf116100fd578063d547741f1161009d578063ebdd202f1161006d578063ebdd202f14610a4d578063f05ffa2614610a6c578063fda6688d14610a81578063ff51182814610aa5575f80fd5b8063d547741f146109a3578063dd62ed3e146109c2578063e63ab1e9146109e1578063e934da8c14610a14575f80fd5b8063ace3a8a7116100d8578063ace3a8a7146108ff578063c2c7c03a14610932578063ca15c87314610951578063d539139314610970575f80fd5b8063a217fddf146108ae578063a457c2d7146108c1578063a9059cbb146108e0575f80fd5b806370a67446116101685780639010d07c116101435780639010d07c1461083d57806391d148541461085c57806395d89b411461087b5780639e8c708e1461088f575f80fd5b806370a67446146107eb57806379cc67901461080a5780638456cb5914610829575f80fd5b806362ab61a6116101a357806362ab61a614610774578063637af4df146107895780636ddd17131461079e57806370a08231146107b7575f80fd5b80635904e335146107105780635c975abb1461072f5780635d5b29c114610746575f80fd5b80632f2ff15d1161029e5780633f4ba83a1161023e578063437823ec11610219578063437823ec146106855780634c07191b146106a45780634d768931146106c35780635342acb4146106e2575f80fd5b80633f4ba83a1461063357806340c10f191461064757806342966c6814610666575f80fd5b806332fe7b261161027957806332fe7b26146105ad57806336568abe146105e057806339509351146105ff5780633d9a3d191461061e575f80fd5b80632f2ff15d14610554578063313ce56714610573578063324c34541461058e575f80fd5b80631830e6221161030957806323b872dd116102e457806323b872dd146104c0578063248a9ca3146104df578063296914481461050d5780632dd3100014610521575f80fd5b80631830e622146104555780631df4ccfc1461048c57806321e33984146104a1575f80fd5b806306fdde031161034457806306fdde03146103e0578063095ea7b314610401578063130da1d91461042057806318160ddd14610441575f80fd5b806301ffc9a7146103745780630445b667146103a8578063059f8b16146103cb575f80fd5b3661037057005b5f80fd5b34801561037f575f80fd5b5061039361038e366004612a68565b610ac4565b60405190151581526020015b60405180910390f35b3480156103b3575f80fd5b506103bd60165481565b60405190815260200161039f565b3480156103d6575f80fd5b506103bd61271081565b3480156103eb575f80fd5b506103f4610aee565b60405161039f9190612ab1565b34801561040c575f80fd5b5061039361041b366004612af7565b610b7e565b34801561042b575f80fd5b5061043f61043a366004612b2e565b610b95565b005b34801561044c575f80fd5b506004546103bd565b348015610460575f80fd5b50601154610474906001600160a01b031681565b6040516001600160a01b03909116815260200161039f565b348015610497575f80fd5b506103bd600b5481565b3480156104ac575f80fd5b5061043f6104bb366004612b65565b610c01565b3480156104cb575f80fd5b506103936104da366004612b80565b610c86565b3480156104ea575f80fd5b506103bd6104f9366004612bbe565b5f9081526020819052604090206001015490565b348015610518575f80fd5b5061043f610cb3565b34801561052c575f80fd5b506104747f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f81565b34801561055f575f80fd5b5061043f61056e366004612bd5565b610ccb565b34801561057e575f80fd5b506040516012815260200161039f565b348015610599575f80fd5b5061043f6105a8366004612bf8565b610cf4565b3480156105b8575f80fd5b506104747f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b3480156105eb575f80fd5b5061043f6105fa366004612bd5565b610d9a565b34801561060a575f80fd5b50610393610619366004612af7565b610e1d565b348015610629575f80fd5b506103bd600d5481565b34801561063e575f80fd5b5061043f610e3e565b348015610652575f80fd5b5061043f610661366004612af7565b610ee4565b348015610671575f80fd5b5061043f610680366004612bbe565b610f83565b348015610690575f80fd5b5061043f61069f366004612b65565b610f90565b3480156106af575f80fd5b5061043f6106be366004612bbe565b610fec565b3480156106ce575f80fd5b50601054610474906001600160a01b031681565b3480156106ed575f80fd5b506103936106fc366004612b65565b60126020525f908152604090205460ff1681565b34801561071b575f80fd5b5061043f61072a366004612b65565b61102a565b34801561073a575f80fd5b5060075460ff16610393565b348015610751575f80fd5b50610393610760366004612b65565b60136020525f908152604090205460ff1681565b34801561077f575f80fd5b506103bd600e5481565b348015610794575f80fd5b506103bd600c5481565b3480156107a9575f80fd5b506015546103939060ff1681565b3480156107c2575f80fd5b506103bd6107d1366004612b65565b6001600160a01b03165f9081526002602052604090205490565b3480156107f6575f80fd5b5061043f610805366004612c21565b6110a8565b348015610815575f80fd5b5061043f610824366004612af7565b6110f1565b348015610834575f80fd5b5061043f611106565b348015610848575f80fd5b50610474610857366004612c21565b6111aa565b348015610867575f80fd5b50610393610876366004612bd5565b6111c8565b348015610886575f80fd5b506103f46111f0565b34801561089a575f80fd5b5061043f6108a9366004612b65565b6111ff565b3480156108b9575f80fd5b506103bd5f81565b3480156108cc575f80fd5b506103936108db366004612af7565b61130a565b3480156108eb575f80fd5b506103936108fa366004612af7565b611384565b34801561090a575f80fd5b506104747f0000000000000000000000006fd0e098284c4cc61db31e125011bc22346659bd81565b34801561093d575f80fd5b5061043f61094c366004612c41565b6113a3565b34801561095c575f80fd5b506103bd61096b366004612bbe565b6113ed565b34801561097b575f80fd5b506103bd7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b3480156109ae575f80fd5b5061043f6109bd366004612bd5565b611403565b3480156109cd575f80fd5b506103bd6109dc366004612c5c565b611427565b3480156109ec575f80fd5b506103bd7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b348015610a1f575f80fd5b50600854600954600a54610a3292919083565b6040805193845260208401929092529082015260600161039f565b348015610a58575f80fd5b5061043f610a67366004612b65565b611451565b348015610a77575f80fd5b506103bd60145481565b348015610a8c575f80fd5b50600f546104749061010090046001600160a01b031681565b348015610ab0575f80fd5b5061043f610abf366004612b65565b6114d7565b5f6001600160e01b03198216635a05180f60e01b1480610ae85750610ae882611530565b92915050565b606060058054610afd90612c88565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2990612c88565b8015610b745780601f10610b4b57610100808354040283529160200191610b74565b820191905f5260205f20905b815481529060010190602001808311610b5757829003601f168201915b5050505050905090565b5f33610b8b818585611564565b5060019392505050565b610b9e5f611687565b6001600160a01b0382165f81815260136020908152604091829020805460ff19168515159081179091558251938452908301527f70e2fedff864757b8449b77cfbee98bdf3fcff45560905a6b70dfebf432c6b7491015b60405180910390a15050565b610c0a5f611687565b6001600160a01b038116610c3157604051635963709b60e01b815260040160405180910390fd5b601080546001600160a01b0319166001600160a01b0383169081179091556040519081527ff798d36ce1f56134f749b7649573976b9c4eac5bb2fbec43d055093c991be00f906020015b60405180910390a150565b5f33610c928484611691565b610c9d85828561171b565b610ca8858585611793565b506001949350505050565b610cbc5f611687565b6015805460ff19166001179055565b5f82815260208190526040902060010154610ce581611687565b610cef8383611810565b505050565b610cfd5f611687565b80610d088385612cd4565b610d129190612cd4565b600b8190551580610d275750612710600b5410155b15610d4557604051632fb15b8760e01b815260040160405180910390fd5b60088390556009829055600a81905560408051848152602081018490529081018290527f0cd6f993afc99de82ac7a78fe10781be4cfa109c8154847ac85290eafe36f3c49060600160405180910390a1505050565b6001600160a01b0381163314610e0f5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b610e198282611831565b5050565b5f33610b8b818585610e2f8383611427565b610e399190612cd4565b611564565b610e687f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336111c8565b610eda5760405162461bcd60e51b815260206004820152603960248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f20756e7061757365000000000000006064820152608401610e06565b610ee2611852565b565b610f0e7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336111c8565b610f795760405162461bcd60e51b815260206004820152603660248201527f45524332305072657365744d696e7465725061757365723a206d7573742068616044820152751d99481b5a5b9d195c881c9bdb19481d1bc81b5a5b9d60521b6064820152608401610e06565b610e1982826118a4565b610f8d338261196e565b50565b610f995f611687565b6001600160a01b0381165f81815260126020908152604091829020805460ff1916600117905590519182527f58c3e0504c69d3a92726966f152a771e0f8f6ad4daca1ae9055a38aba1fd2b629101610c7b565b610ff55f611687565b600c8190556040518181527f898ae20504548f86abb24929353c0fba1ef0d54441505e06dd0fc9b36f00ecb890602001610c7b565b6110335f611687565b6001600160a01b03811661105a57604051635963709b60e01b815260040160405180910390fd5b601180546001600160a01b0319166001600160a01b0383169081179091556040519081527f847c5031ea54e533379cc5dfe8f040cc03bc91ede41ce701a7020a538ad0efe990602001610c7b565b6110b15f611687565b600d829055600e81905560408051838152602081018390527fe57479af42b54521d411c88ababbbf0cac882e97aa310d1cd460f12baa7ff02a9101610bf5565b6110fc82338361171b565b610e19828261196e565b6111307f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336111c8565b6111a25760405162461bcd60e51b815260206004820152603760248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f2070617573650000000000000000006064820152608401610e06565b610ee2611aab565b5f8281526001602052604081206111c19083611ae8565b9392505050565b5f918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b606060068054610afd90612c88565b6112085f611687565b306001600160a01b038216036112a057610f8d336014546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015611261573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112859190612ce7565b61128f9190612cfe565b6001600160a01b0384169190611af3565b610f8d336040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa1580156112e6573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061128f9190612ce7565b5f33816113178286611427565b9050838110156113775760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610e06565b610ca88286868403611564565b5f61138f8383611691565b61139a338484611793565b50600192915050565b6113ac5f611687565b600f805460ff19168215159081179091556040519081527f201675eb369b8839eadf7f2b4f8363cf44f44417b956464780c176dd981324e090602001610c7b565b5f818152600160205260408120610ae890611b45565b5f8281526020819052604090206001015461141d81611687565b610cef8383611831565b6001600160a01b039182165f90815260036020908152604080832093909416825291909152205490565b61145a5f611687565b6001600160a01b03811661148157604051635963709b60e01b815260040160405180910390fd5b600f8054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527fe32beca9e559c6bbae8193dba16c479c0e15d9b323c5d2bf56b43802e74b117590602001610c7b565b6114e05f611687565b6001600160a01b0381165f81815260126020908152604091829020805460ff1916905590519182527f172447a0c608ce87868bcdb50bf4e0e6fbd1bcc397b343b9ea9d62a8825900a49101610c7b565b5f6001600160e01b03198216637965db0b60e01b1480610ae857506301ffc9a760e01b6001600160e01b0319831614610ae8565b6001600160a01b0383166115c65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610e06565b6001600160a01b0382166116275760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610e06565b6001600160a01b038381165f8181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b610f8d8133611b4e565b600f5460ff1661169f575050565b6001600160a01b0382165f9081526013602052604090205460ff16156116c3575050565b60155460ff166117085760405162461bcd60e51b815260206004820152601060248201526f14ddd85c081b9bdd08195b98589b195960821b6044820152606401610e06565b6117128282611ba7565b610e1981611c41565b5f6117268484611427565b90505f19811461178d57818110156117805760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610e06565b61178d8484848403611564565b50505050565b60175460ff16156117a957610cef838383611ca8565b6117b38383611e5c565b156117f0575f612710600b54836117ca9190612d11565b6117d49190612d28565b6014805482019055918290039190506117ee843083611ca8565b505b6117f8611f45565b1561180557611805611f71565b610cef838383611ca8565b61181a8282612262565b5f828152600160205260409020610cef90826122e5565b61183b82826122f9565b5f828152600160205260409020610cef908261235d565b61185a612371565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b0382166118fa5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610e06565b6119055f83836123ba565b8060045f8282546119169190612cd4565b90915550506001600160a01b0382165f818152600260209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0382166119ce5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610e06565b6119d9825f836123ba565b6001600160a01b0382165f9081526002602052604090205481811015611a4c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610e06565b6001600160a01b0383165f8181526002602090815260408083208686039055600480548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b611ab36123f2565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118873390565b5f6111c18383612438565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610cef90849061245e565b5f610ae8825490565b611b5882826111c8565b610e1957611b6581612531565b611b70836020612543565b604051602001611b81929190612d47565b60408051601f198184030181529082905262461bcd60e51b8252610e0691600401612ab1565b5f611bc86064611bc2600d54611bbc60045490565b906126d9565b906126e4565b905080611bf383611bed866001600160a01b03165f9081526002602052604090205490565b906126ef565b1115610cef5760405162461bcd60e51b815260206004820152601e60248201527f45786365656473206d6178696d756d2077616c6c65742062616c616e636500006044820152606401610e06565b5f611c566064611bc2600e54611bbc60045490565b905080821115610e195760405162461bcd60e51b815260206004820181905260248201527f45786365656473206d6178696d756d207472616e73616374696f6e2073697a656044820152606401610e06565b6001600160a01b038316611d0c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610e06565b6001600160a01b038216611d6e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610e06565b611d798383836123ba565b6001600160a01b0383165f9081526002602052604090205481811015611df05760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610e06565b6001600160a01b038085165f8181526002602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611e4f9086815260200190565b60405180910390a361178d565b6001600160a01b0382165f9081526012602052604081205460ff1680611e9957506001600160a01b0382165f9081526012602052604090205460ff165b15611ea557505f610ae8565b5f611edf8360405180604001604052806008815260200167746f6b656e30282960c01b815250856001600160a01b0316630dfe16816126fa565b90505f611f1b8460405180604001604052806008815260200167746f6b656e31282960c01b815250866001600160a01b031663d21220a76126fa565b90506001600160a01b038216301480611f3c57506001600160a01b03811630145b95945050505050565b6017545f9060ff16158015611f5c575060155460ff165b8015611f6c575060165460145410155b905090565b6017805460ff191660011790556040805160028082526060820183525f9260208301908036833701905050905030815f81518110611fb157611fb1612dcf565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561202d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120519190612de3565b8160018151811061206457612064612dcf565b6001600160a01b0390921660209283029190910190910152601454600b54600a545f91906120929084612d11565b61209c9190612d28565b5f60148190559091506120af8284612cfe565b60405163791ac94760e01b815290915047906001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac947906121089085905f908a9030904290600401612dfe565b5f604051808303815f87803b15801561211f575f80fd5b505af1158015612131573d5f803e3d5ffd5b505050505f81476121429190612cfe565b6009546008549192505f916121579190612cd4565b6008546121649084612d11565b61216e9190612d28565b90505f61217b8284612cfe565b9050600f60019054906101000a90046001600160a01b03166001600160a01b031663ff3d9e4f836040518263ffffffff1660e01b81526004015f604051808303818588803b1580156121cb575f80fd5b505af1935050505080156121dd575060015b506011546040516001600160a01b039091169082905f81818185875af1925050503d805f8114612228576040519150601f19603f3d011682016040523d82523d5f602084013e61222d565b606091505b505060105487965061225295503094506001600160a01b03169250859150611ca89050565b50506017805460ff191690555050565b61226c82826111c8565b610e19575f828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556122a13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b5f6111c1836001600160a01b03841661281c565b61230382826111c8565b15610e19575f828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b5f6111c1836001600160a01b038416612868565b60075460ff16610ee25760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610e06565b6001600160a01b038316158015906123d4575060075460ff165b15610cef57604051632a6ab56360e21b815260040160405180910390fd5b60075460ff1615610ee25760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e06565b5f825f01828154811061244d5761244d612dcf565b905f5260205f200154905092915050565b5f6124b2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661294b9092919063ffffffff16565b905080515f14806124d25750808060200190518101906124d29190612e6d565b610cef5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610e06565b6060610ae86001600160a01b03831660145b60605f612551836002612d11565b61255c906002612cd4565b67ffffffffffffffff81111561257457612574612dbb565b6040519080825280601f01601f19166020018201604052801561259e576020820181803683370190505b509050600360fc1b815f815181106125b8576125b8612dcf565b60200101906001600160f81b03191690815f1a905350600f60fb1b816001815181106125e6576125e6612dcf565b60200101906001600160f81b03191690815f1a9053505f612608846002612d11565b612613906001612cd4565b90505b600181111561268a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061264757612647612dcf565b1a60f81b82828151811061265d5761265d612dcf565b60200101906001600160f81b03191690815f1a90535060049490941c9361268381612e88565b9050612616565b5083156111c15760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e06565b5f6111c18284612d11565b5f6111c18284612d28565b5f6111c18284612cd4565b604080516004815260248101918290525f9182916001600160a01b03881691612724908890612e9d565b60408051918290039091206020830180516001600160e01b03166001600160e01b03199092169190911790525161275b9190612e9d565b5f604051808303815f865af19150503d805f8114612794576040519150601f19603f3d011682016040523d82523d5f602084013e612799565b606091505b50509050801561280f57853b63ffffffff81161561280d5784846040518163ffffffff1660e01b8152600401602060405180830381865afa1580156127e0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906128049190612de3565b92505050612814565b505b5f9150505b949350505050565b5f81815260018301602052604081205461286157508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155610ae8565b505f610ae8565b5f8181526001830160205260408120548015612942575f61288a600183612cfe565b85549091505f9061289d90600190612cfe565b90508181146128fc575f865f0182815481106128bb576128bb612dcf565b905f5260205f200154905080875f0184815481106128db576128db612dcf565b5f918252602080832090910192909255918252600188019052604090208390555b855486908061290d5761290d612eb8565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050610ae8565b5f915050610ae8565b606061281484845f85855f80866001600160a01b031685876040516129709190612e9d565b5f6040518083038185875af1925050503d805f81146129aa576040519150601f19603f3d011682016040523d82523d5f602084013e6129af565b606091505b50915091506129c0878383876129cb565b979650505050505050565b60608315612a395782515f03612a32576001600160a01b0385163b612a325760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610e06565b5081612814565b6128148383815115612a4e5781518083602001fd5b8060405162461bcd60e51b8152600401610e069190612ab1565b5f60208284031215612a78575f80fd5b81356001600160e01b0319811681146111c1575f80fd5b5f5b83811015612aa9578181015183820152602001612a91565b50505f910152565b602081525f8251806020840152612acf816040850160208701612a8f565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610f8d575f80fd5b5f8060408385031215612b08575f80fd5b8235612b1381612ae3565b946020939093013593505050565b8015158114610f8d575f80fd5b5f8060408385031215612b3f575f80fd5b8235612b4a81612ae3565b91506020830135612b5a81612b21565b809150509250929050565b5f60208284031215612b75575f80fd5b81356111c181612ae3565b5f805f60608486031215612b92575f80fd5b8335612b9d81612ae3565b92506020840135612bad81612ae3565b929592945050506040919091013590565b5f60208284031215612bce575f80fd5b5035919050565b5f8060408385031215612be6575f80fd5b823591506020830135612b5a81612ae3565b5f805f60608486031215612c0a575f80fd5b505081359360208301359350604090920135919050565b5f8060408385031215612c32575f80fd5b50508035926020909101359150565b5f60208284031215612c51575f80fd5b81356111c181612b21565b5f8060408385031215612c6d575f80fd5b8235612c7881612ae3565b91506020830135612b5a81612ae3565b600181811c90821680612c9c57607f821691505b602082108103612cba57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610ae857610ae8612cc0565b5f60208284031215612cf7575f80fd5b5051919050565b81810381811115610ae857610ae8612cc0565b8082028115828204841417610ae857610ae8612cc0565b5f82612d4257634e487b7160e01b5f52601260045260245ffd5b500490565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081525f8351612d7e816017850160208801612a8f565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612daf816028840160208801612a8f565b01602801949350505050565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215612df3575f80fd5b81516111c181612ae3565b5f60a082018783526020878185015260a0604085015281875180845260c08601915082890193505f5b81811015612e4c5784516001600160a01b031683529383019391830191600101612e27565b50506001600160a01b03969096166060850152505050608001529392505050565b5f60208284031215612e7d575f80fd5b81516111c181612b21565b5f81612e9657612e96612cc0565b505f190190565b5f8251612eae818460208701612a8f565b9190910192915050565b634e487b7160e01b5f52603160045260245ffdfea2646970667358221220eb5a0d05e936c360bc2ca7f7440ea1ec9f95831514d9bf1749393e92d3cd24ad64736f6c63430008150033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
-----Decoded View---------------
Arg [0] : router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Deployed Bytecode Sourcemap
104507:11785:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83193:214;;;;;;;;;;-1:-1:-1;83193:214:0;;;;;:::i;:::-;;:::i;:::-;;;470:14:1;;463:22;445:41;;433:2;418:18;83193:214:0;;;;;;;;106202:53;;;;;;;;;;;;;;;;;;;643:25:1;;;631:2;616:18;106202:53:0;497:177:1;104905:42:0;;;;;;;;;;;;104942:5;104905:42;;56188:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;58548:201::-;;;;;;;;;;-1:-1:-1;58548:201:0;;;;;:::i;:::-;;:::i;110136:199::-;;;;;;;;;;-1:-1:-1;110136:199:0;;;;;:::i;:::-;;:::i;:::-;;57317:108;;;;;;;;;;-1:-1:-1;57405:12:0;;57317:108;;105763:35;;;;;;;;;;-1:-1:-1;105763:35:0;;;;-1:-1:-1;;;;;105763:35:0;;;;;;-1:-1:-1;;;;;2465:32:1;;;2447:51;;2435:2;2420:18;105763:35:0;2301:203:1;105364:23:0;;;;;;;;;;;;;;;;108366:224;;;;;;;;;;-1:-1:-1;108366:224:0;;;;;:::i;:::-;;:::i;111083:329::-;;;;;;;;;;-1:-1:-1;111083:329:0;;;;;:::i;:::-;;:::i;78962:131::-;;;;;;;;;;-1:-1:-1;78962:131:0;;;;;:::i;:::-;79036:7;79063:12;;;;;;;;;;:22;;;;78962:131;110343:78;;;;;;;;;;;;;:::i;105072:42::-;;;;;;;;;;;;;;;79403:147;;;;;;;;;;-1:-1:-1;79403:147:0;;;;;:::i;:::-;;:::i;57159:93::-;;;;;;;;;;-1:-1:-1;57159:93:0;;57242:2;4285:36:1;;4273:2;4258:18;57159:93:0;4143:184:1;108839:472:0;;;;;;;;;;-1:-1:-1;108839:472:0;;;;;:::i;:::-;;:::i;104988:42::-;;;;;;;;;;;;;;;80547:218;;;;;;;;;;-1:-1:-1;80547:218:0;;;;;:::i;:::-;;:::i;59999:238::-;;;;;;;;;;-1:-1:-1;59999:238:0;;;;;:::i;:::-;;:::i;105460:35::-;;;;;;;;;;;;;;;;88449:178;;;;;;;;;;;;;:::i;87640:205::-;;;;;;;;;;-1:-1:-1;87640:205:0;;;;;:::i;:::-;;:::i;67560:91::-;;;;;;;;;;-1:-1:-1;67560:91:0;;;;;:::i;:::-;;:::i;109813:153::-;;;;;;;;;;-1:-1:-1;109813:153:0;;;;;:::i;:::-;;:::i;109682:123::-;;;;;;;;;;-1:-1:-1;109682:123:0;;;;;:::i;:::-;;:::i;105688:32::-;;;;;;;;;;-1:-1:-1;105688:32:0;;;;-1:-1:-1;;;;;105688:32:0;;;105855:49;;;;;;;;;;-1:-1:-1;105855:49:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;108598:233;;;;;;;;;;-1:-1:-1;108598:233:0;;;;;:::i;:::-;;:::i;69650:86::-;;;;;;;;;;-1:-1:-1;69721:7:0;;;;69650:86;;105975:53;;;;;;;;;;-1:-1:-1;105975:53:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;105502:31;;;;;;;;;;;;;;;;105394:25;;;;;;;;;;;;;;;;106130:31;;;;;;;;;;-1:-1:-1;106130:31:0;;;;;;;;57488:127;;;;;;;;;;-1:-1:-1;57488:127:0;;;;;:::i;:::-;-1:-1:-1;;;;;57589:18:0;57562:7;57589:18;;;:9;:18;;;;;;;57488:127;109319:208;;;;;;;;;;-1:-1:-1;109319:208:0;;;;;:::i;:::-;;:::i;67970:164::-;;;;;;;;;;-1:-1:-1;67970:164:0;;;;;:::i;:::-;;:::i;88059:172::-;;;;;;;;;;;;;:::i;84006:153::-;;;;;;;;;;-1:-1:-1;84006:153:0;;;;;:::i;:::-;;:::i;77435:147::-;;;;;;;;;;-1:-1:-1;77435:147:0;;;;;:::i;:::-;;:::i;56407:104::-;;;;;;;;;;;;;:::i;110429:360::-;;;;;;;;;;-1:-1:-1;110429:360:0;;;;;:::i;:::-;;:::i;76540:49::-;;;;;;;;;;-1:-1:-1;76540:49:0;76585:4;76540:49;;60740:436;;;;;;;;;;-1:-1:-1;60740:436:0;;;;;:::i;:::-;;:::i;110845:230::-;;;;;;;;;;-1:-1:-1;110845:230:0;;;;;:::i;:::-;;:::i;105153:29::-;;;;;;;;;;;;;;;109535:139;;;;;;;;;;-1:-1:-1;109535:139:0;;;;;:::i;:::-;;:::i;84333:142::-;;;;;;;;;;-1:-1:-1;84333:142:0;;;;;:::i;:::-;;:::i;86882:62::-;;;;;;;;;;;;86920:24;86882:62;;79843:149;;;;;;;;;;-1:-1:-1;79843:149:0;;;;;:::i;:::-;;:::i;58077:151::-;;;;;;;;;;-1:-1:-1;58077:151:0;;;;;:::i;:::-;;:::i;86951:62::-;;;;;;;;;;;;86989:24;86951:62;;105335:22;;;;;;;;;;-1:-1:-1;105335:22:0;;;;;;;;;;;;;;;;6687:25:1;;;6743:2;6728:18;;6721:34;;;;6771:18;;;6764:34;6675:2;6660:18;105335:22:0;6485:319:1;108128:230:0;;;;;;;;;;-1:-1:-1;108128:230:0;;;;;:::i;:::-;;:::i;106066:25::-;;;;;;;;;;;;;;;;105611:34;;;;;;;;;;-1:-1:-1;105611:34:0;;;;;;;-1:-1:-1;;;;;105611:34:0;;;109974:154;;;;;;;;;;-1:-1:-1;109974:154:0;;;;;:::i;:::-;;:::i;83193:214::-;83278:4;-1:-1:-1;;;;;;83302:57:0;;-1:-1:-1;;;83302:57:0;;:97;;;83363:36;83387:11;83363:23;:36::i;:::-;83295:104;83193:214;-1:-1:-1;;83193:214:0:o;56188:100::-;56242:13;56275:5;56268:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56188:100;:::o;58548:201::-;58631:4;39196:10;58687:32;39196:10;58703:7;58712:6;58687:8;:32::i;:::-;-1:-1:-1;58737:4:0;;58548:201;-1:-1:-1;;;58548:201:0:o;110136:199::-;107921:30;76585:4;107921:10;:30::i;:::-;-1:-1:-1;;;;;110228:30:0;::::1;;::::0;;;:21:::1;:30;::::0;;;;;;;;:44;;-1:-1:-1;;110228:44:0::1;::::0;::::1;;::::0;;::::1;::::0;;;110290:37;;7362:51:1;;;7429:18;;;7422:50;110290:37:0::1;::::0;7335:18:1;110290:37:0::1;;;;;;;;110136:199:::0;;:::o;108366:224::-;107921:30;76585:4;107921:10;:30::i;:::-;-1:-1:-1;;;;;108448:22:0;::::1;108444:52;;108479:17;;-1:-1:-1::0;;;108479:17:0::1;;;;;;;;;;;108444:52;108509:17;:28:::0;;-1:-1:-1;;;;;;108509:28:0::1;-1:-1:-1::0;;;;;108509:28:0;::::1;::::0;;::::1;::::0;;;108555:27:::1;::::0;2447:51:1;;;108555:27:0::1;::::0;2435:2:1;2420:18;108555:27:0::1;;;;;;;;108366:224:::0;:::o;111083:329::-;111206:4;39196:10;111264:24;111278:2;111281:6;111264:13;:24::i;:::-;111299:38;111315:4;111321:7;111330:6;111299:15;:38::i;:::-;111348:34;111365:4;111371:2;111375:6;111348:16;:34::i;:::-;-1:-1:-1;111400:4:0;;111083:329;-1:-1:-1;;;;111083:329:0:o;110343:78::-;107921:30;76585:4;107921:10;:30::i;:::-;110395:11:::1;:18:::0;;-1:-1:-1;;110395:18:0::1;110409:4;110395:18;::::0;;110343:78::o;79403:147::-;79036:7;79063:12;;;;;;;;;;:22;;;77031:16;77042:4;77031:10;:16::i;:::-;79517:25:::1;79528:4;79534:7;79517:10;:25::i;:::-;79403:147:::0;;;:::o;108839:472::-;107921:30;76585:4;107921:10;:30::i;:::-;109024:9;108995:26:::1;109009:12:::0;108995:11;:26:::1;:::i;:::-;:38;;;;:::i;:::-;108984:8;:49:::0;;;109048:13;;:39:::1;;;104942:5;109065:8;;:22;;109048:39;109044:65;;;109096:13;;-1:-1:-1::0;;;109096:13:0::1;;;;;;;;;;;109044:65;109122:7;:33:::0;;;109166:20;:35;;;109212:17;:29;;;109259:44:::1;::::0;;6687:25:1;;;6743:2;6728:18;;6721:34;;;6771:18;;;6764:34;;;109259:44:0::1;::::0;6675:2:1;6660:18;109259:44:0::1;;;;;;;108839:472:::0;;;:::o;80547:218::-;-1:-1:-1;;;;;80643:23:0;;39196:10;80643:23;80635:83;;;;-1:-1:-1;;;80635:83:0;;7947:2:1;80635:83:0;;;7929:21:1;7986:2;7966:18;;;7959:30;8025:34;8005:18;;;7998:62;-1:-1:-1;;;8076:18:1;;;8069:45;8131:19;;80635:83:0;;;;;;;;;80731:26;80743:4;80749:7;80731:11;:26::i;:::-;80547:218;;:::o;59999:238::-;60087:4;39196:10;60143:64;39196:10;60159:7;60196:10;60168:25;39196:10;60159:7;60168:9;:25::i;:::-;:38;;;;:::i;:::-;60143:8;:64::i;88449:178::-;88502:34;86989:24;39196:10;77435:147;:::i;88502:34::-;88494:104;;;;-1:-1:-1;;;88494:104:0;;8363:2:1;88494:104:0;;;8345:21:1;8402:2;8382:18;;;8375:30;8441:34;8421:18;;;8414:62;8512:27;8492:18;;;8485:55;8557:19;;88494:104:0;8161:421:1;88494:104:0;88609:10;:8;:10::i;:::-;88449:178::o;87640:205::-;87716:34;86920:24;39196:10;77435:147;:::i;87716:34::-;87708:101;;;;-1:-1:-1;;;87708:101:0;;8789:2:1;87708:101:0;;;8771:21:1;8828:2;8808:18;;;8801:30;8867:34;8847:18;;;8840:62;-1:-1:-1;;;8918:18:1;;;8911:52;8980:19;;87708:101:0;8587:418:1;87708:101:0;87820:17;87826:2;87830:6;87820:5;:17::i;67560:91::-;67616:27;39196:10;67636:6;67616:5;:27::i;:::-;67560:91;:::o;109813:153::-;107921:30;76585:4;107921:10;:30::i;:::-;-1:-1:-1;;;;;109884:26:0;::::1;;::::0;;;:17:::1;:26;::::0;;;;;;;;:33;;-1:-1:-1;;109884:33:0::1;109913:4;109884:33;::::0;;109935:23;;2447:51:1;;;109935:23:0::1;::::0;2420:18:1;109935:23:0::1;2301:203:1::0;109682:123:0;107921:30;76585:4;107921:10;:30::i;:::-;109748:10:::1;:16:::0;;;109782:15:::1;::::0;643:25:1;;;109782:15:0::1;::::0;631:2:1;616:18;109782:15:0::1;497:177:1::0;108598:233:0;107921:30;76585:4;107921:10;:30::i;:::-;-1:-1:-1;;;;;108683:22:0;::::1;108679:52;;108714:17;;-1:-1:-1::0;;;108714:17:0::1;;;;;;;;;;;108679:52;108744:20;:31:::0;;-1:-1:-1;;;;;;108744:31:0::1;-1:-1:-1::0;;;;;108744:31:0;::::1;::::0;;::::1;::::0;;;108793:30:::1;::::0;2447:51:1;;;108793:30:0::1;::::0;2435:2:1;2420:18;108793:30:0::1;2301:203:1::0;109319:208:0;107921:30;76585:4;107921:10;:30::i;:::-;109410:16:::1;:29:::0;;;109450:12:::1;:21:::0;;;109487:32:::1;::::0;;9184:25:1;;;9240:2;9225:18;;9218:34;;;109487:32:0::1;::::0;9157:18:1;109487:32:0::1;9010:248:1::0;67970:164:0;68047:46;68063:7;39196:10;68086:6;68047:15;:46::i;:::-;68104:22;68110:7;68119:6;68104:5;:22::i;88059:172::-;88110:34;86989:24;39196:10;77435:147;:::i;88110:34::-;88102:102;;;;-1:-1:-1;;;88102:102:0;;9465:2:1;88102:102:0;;;9447:21:1;9504:2;9484:18;;;9477:30;9543:34;9523:18;;;9516:62;9614:25;9594:18;;;9587:53;9657:19;;88102:102:0;9263:419:1;88102:102:0;88215:8;:6;:8::i;84006:153::-;84096:7;84123:18;;;:12;:18;;;;;:28;;84145:5;84123:21;:28::i;:::-;84116:35;84006:153;-1:-1:-1;;;84006:153:0:o;77435:147::-;77521:4;77545:12;;;;;;;;;;;-1:-1:-1;;;;;77545:29:0;;;;;;;;;;;;;;;77435:147::o;56407:104::-;56463:13;56496:7;56489:14;;;;;:::i;110429:360::-;107921:30;76585:4;107921:10;:30::i;:::-;110525:4:::1;-1:-1:-1::0;;;;;110499:31:0;::::1;::::0;110495:287:::1;;110547:126;39196:10:::0;110648::::1;::::0;110615:30:::1;::::0;-1:-1:-1;;;110615:30:0;;110639:4:::1;110615:30;::::0;::::1;2447:51:1::0;-1:-1:-1;;;;;110615:15:0;::::1;::::0;::::1;::::0;2420:18:1;;110615:30:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:43;;;;:::i;:::-;-1:-1:-1::0;;;;;110547:18:0;::::1;::::0;:126;:18:::1;:126::i;110495:287::-;110706:64;39196:10:::0;110739:30:::1;::::0;-1:-1:-1;;;110739:30:0;;110763:4:::1;110739:30;::::0;::::1;2447:51:1::0;-1:-1:-1;;;;;110739:15:0;::::1;::::0;::::1;::::0;2420:18:1;;110739:30:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;60740:436::-:0;60833:4;39196:10;60833:4;60916:25;39196:10;60933:7;60916:9;:25::i;:::-;60889:52;;60980:15;60960:16;:35;;60952:85;;;;-1:-1:-1;;;60952:85:0;;10211:2:1;60952:85:0;;;10193:21:1;10250:2;10230:18;;;10223:30;10289:34;10269:18;;;10262:62;-1:-1:-1;;;10340:18:1;;;10333:35;10385:19;;60952:85:0;10009:401:1;60952:85:0;61073:60;61082:5;61089:7;61117:15;61098:16;:34;61073:8;:60::i;110845:230::-;110941:4;110968:24;110982:2;110985:6;110968:13;:24::i;:::-;111003:42;39196:10;111034:2;111038:6;111003:16;:42::i;:::-;-1:-1:-1;111063:4:0;110845:230;;;;:::o;109535:139::-;107921:30;76585:4;107921:10;:30::i;:::-;109600:15:::1;:26:::0;;-1:-1:-1;;109600:26:0::1;::::0;::::1;;::::0;;::::1;::::0;;;109642:24:::1;::::0;445:41:1;;;109642:24:0::1;::::0;433:2:1;418:18;109642:24:0::1;305:187:1::0;84333:142:0;84413:7;84440:18;;;:12;:18;;;;;:27;;:25;:27::i;79843:149::-;79036:7;79063:12;;;;;;;;;;:22;;;77031:16;77042:4;77031:10;:16::i;:::-;79958:26:::1;79970:4;79976:7;79958:11;:26::i;58077:151::-:0;-1:-1:-1;;;;;58193:18:0;;;58166:7;58193:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;58077:151::o;108128:230::-;107921:30;76585:4;107921:10;:30::i;:::-;-1:-1:-1;;;;;108212:22:0;::::1;108208:52;;108243:17;;-1:-1:-1::0;;;108243:17:0::1;;;;;;;;;;;108208:52;108273:19;:30:::0;;-1:-1:-1;;;;;;108273:30:0::1;;-1:-1:-1::0;;;;;108273:30:0;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;108321:29:::1;::::0;2447:51:1;;;108321:29:0::1;::::0;2435:2:1;2420:18;108321:29:0::1;2301:203:1::0;109974:154:0;107921:30;76585:4;107921:10;:30::i;:::-;-1:-1:-1;;;;;110045:26:0;::::1;110074:5;110045:26:::0;;;:17:::1;:26;::::0;;;;;;;;:34;;-1:-1:-1;;110045:34:0::1;::::0;;110097:23;;2447:51:1;;;110097:23:0::1;::::0;2420:18:1;110097:23:0::1;2301:203:1::0;77139:204:0;77224:4;-1:-1:-1;;;;;;77248:47:0;;-1:-1:-1;;;77248:47:0;;:87;;-1:-1:-1;;;;;;;;;;38521:40:0;;;77299:36;38412:157;64733:346;-1:-1:-1;;;;;64835:19:0;;64827:68;;;;-1:-1:-1;;;64827:68:0;;10617:2:1;64827:68:0;;;10599:21:1;10656:2;10636:18;;;10629:30;10695:34;10675:18;;;10668:62;-1:-1:-1;;;10746:18:1;;;10739:34;10790:19;;64827:68:0;10415:400:1;64827:68:0;-1:-1:-1;;;;;64914:21:0;;64906:68;;;;-1:-1:-1;;;64906:68:0;;11022:2:1;64906:68:0;;;11004:21:1;11061:2;11041:18;;;11034:30;11100:34;11080:18;;;11073:62;-1:-1:-1;;;11151:18:1;;;11144:32;11193:19;;64906:68:0;10820:398:1;64906:68:0;-1:-1:-1;;;;;64987:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;65039:32;;643:25:1;;;65039:32:0;;616:18:1;65039:32:0;;;;;;;64733:346;;;:::o;77886:105::-;77953:30;77964:4;39196:10;77953;:30::i;115358:321::-;115438:15;;;;115433:30;;115358:321;;:::o;115433:30::-;-1:-1:-1;;;;;115477:25:0;;;;;;:21;:25;;;;;;;;115473:64;;;115358:321;;:::o;115473:64::-;115555:11;;;;115547:39;;;;-1:-1:-1;;;115547:39:0;;11425:2:1;115547:39:0;;;11407:21:1;11464:2;11444:18;;;11437:30;-1:-1:-1;;;11483:18:1;;;11476:46;11539:18;;115547:39:0;11223:340:1;115547:39:0;115597:26;115613:2;115616:6;115597:15;:26::i;:::-;115634:19;115646:6;115634:11;:19::i;65370:419::-;65471:24;65498:25;65508:5;65515:7;65498:9;:25::i;:::-;65471:52;;-1:-1:-1;;65538:16:0;:37;65534:248;;65620:6;65600:16;:26;;65592:68;;;;-1:-1:-1;;;65592:68:0;;11770:2:1;65592:68:0;;;11752:21:1;11809:2;11789:18;;;11782:30;11848:31;11828:18;;;11821:59;11897:18;;65592:68:0;11568:353:1;65592:68:0;65704:51;65713:5;65720:7;65748:6;65729:16;:25;65704:8;:51::i;:::-;65460:329;65370:419;;;:::o;115687:600::-;115813:6;;;;115809:87;;;115836:27;115846:4;115852:2;115856:6;115836:9;:27::i;115809:87::-;115912:24;115927:4;115933:2;115912:14;:24::i;:::-;115908:261;;;115953:11;104942:5;115977:8;;115968:6;:17;;;;:::i;:::-;115967:32;;;;:::i;:::-;116075:10;:17;;;;;;116043:13;;;;;115953:46;-1:-1:-1;116122:35:0;116132:4;116146;115953:46;116122:9;:35::i;:::-;115938:231;115908:261;116185:16;:14;:16::i;:::-;116181:59;;;116218:10;:8;:10::i;:::-;116252:27;116262:4;116268:2;116272:6;116252:9;:27::i;84568:169::-;84656:31;84673:4;84679:7;84656:16;:31::i;:::-;84698:18;;;;:12;:18;;;;;:31;;84721:7;84698:22;:31::i;84831:174::-;84920:32;84938:4;84944:7;84920:17;:32::i;:::-;84963:18;;;;:12;:18;;;;;:34;;84989:7;84963:25;:34::i;70505:120::-;69514:16;:14;:16::i;:::-;70564:7:::1;:15:::0;;-1:-1:-1;;70564:15:0::1;::::0;;70595:22:::1;39196:10:::0;70604:12:::1;70595:22;::::0;-1:-1:-1;;;;;2465:32:1;;;2447:51;;2435:2;2420:18;70595:22:0::1;;;;;;;70505:120::o:0;62739:548::-;-1:-1:-1;;;;;62823:21:0;;62815:65;;;;-1:-1:-1;;;62815:65:0;;12523:2:1;62815:65:0;;;12505:21:1;12562:2;12542:18;;;12535:30;12601:33;12581:18;;;12574:61;12652:18;;62815:65:0;12321:355:1;62815:65:0;62893:49;62922:1;62926:7;62935:6;62893:20;:49::i;:::-;62971:6;62955:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;63126:18:0;;;;;;:9;:18;;;;;;;;:28;;;;;;63181:37;643:25:1;;;63181:37:0;;616:18:1;63181:37:0;;;;;;;80547:218;;:::o;63620:675::-;-1:-1:-1;;;;;63704:21:0;;63696:67;;;;-1:-1:-1;;;63696:67:0;;12883:2:1;63696:67:0;;;12865:21:1;12922:2;12902:18;;;12895:30;12961:34;12941:18;;;12934:62;-1:-1:-1;;;13012:18:1;;;13005:31;13053:19;;63696:67:0;12681:397:1;63696:67:0;63776:49;63797:7;63814:1;63818:6;63776:20;:49::i;:::-;-1:-1:-1;;;;;63863:18:0;;63838:22;63863:18;;;:9;:18;;;;;;63900:24;;;;63892:71;;;;-1:-1:-1;;;63892:71:0;;13285:2:1;63892:71:0;;;13267:21:1;13324:2;13304:18;;;13297:30;13363:34;13343:18;;;13336:62;-1:-1:-1;;;13414:18:1;;;13407:32;13456:19;;63892:71:0;13083:398:1;63892:71:0;-1:-1:-1;;;;;63999:18:0;;;;;;:9;:18;;;;;;;;64020:23;;;63999:44;;64138:12;:22;;;;;;;64189:37;643:25:1;;;63999:18:0;;;64189:37;;616:18:1;64189:37:0;;;;;;;79403:147;;;:::o;70246:118::-;69255:19;:17;:19::i;:::-;70306:7:::1;:14:::0;;-1:-1:-1;;70306:14:0::1;70316:4;70306:14;::::0;;70336:20:::1;70343:12;39196:10:::0;;39116:98;9669:158;9743:7;9794:22;9798:3;9810:5;9794:3;:22::i;89573:177::-;89683:58;;;-1:-1:-1;;;;;13678:32:1;;89683:58:0;;;13660:51:1;13727:18;;;;13720:34;;;89683:58:0;;;;;;;;;;13633:18:1;;;;89683:58:0;;;;;;;;-1:-1:-1;;;;;89683:58:0;-1:-1:-1;;;89683:58:0;;;89656:86;;89676:5;;89656:19;:86::i;9198:117::-;9261:7;9288:19;9296:3;4498:18;;4415:109;78281:492;78370:22;78378:4;78384:7;78370;:22::i;:::-;78365:401;;78558:28;78578:7;78558:19;:28::i;:::-;78659:38;78687:4;78694:2;78659:19;:38::i;:::-;78463:257;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;78463:257:0;;;;;;;;;;-1:-1:-1;;;78409:345:0;;;;;;;:::i;114849:270::-;114934:24;114961:44;115001:3;114961:35;114979:16;;114961:13;57405:12;;;57317:108;114961:13;:17;;:35::i;:::-;:39;;:44::i;:::-;114934:71;;115060:16;115024:32;115049:6;115024:20;115034:9;-1:-1:-1;;;;;57589:18:0;57562:7;57589:18;;;:9;:18;;;;;;;57488:127;115024:20;:24;;:32::i;:::-;:52;;115016:95;;;;-1:-1:-1;;;115016:95:0;;14784:2:1;115016:95:0;;;14766:21:1;14823:2;14803:18;;;14796:30;14862:32;14842:18;;;14835:60;14912:18;;115016:95:0;14582:354:1;115127:223:0;115189:26;115218:40;115254:3;115218:31;115236:12;;115218:13;57405:12;;;57317:108;115218:40;115189:69;;115287:18;115277:6;:28;;115269:73;;;;-1:-1:-1;;;115269:73:0;;15143:2:1;115269:73:0;;;15125:21:1;;;15162:18;;;15155:30;15221:34;15201:18;;;15194:62;15273:18;;115269:73:0;14941:356:1;61646:806:0;-1:-1:-1;;;;;61743:18:0;;61735:68;;;;-1:-1:-1;;;61735:68:0;;15504:2:1;61735:68:0;;;15486:21:1;15543:2;15523:18;;;15516:30;15582:34;15562:18;;;15555:62;-1:-1:-1;;;15633:18:1;;;15626:35;15678:19;;61735:68:0;15302:401:1;61735:68:0;-1:-1:-1;;;;;61822:16:0;;61814:64;;;;-1:-1:-1;;;61814:64:0;;15910:2:1;61814:64:0;;;15892:21:1;15949:2;15929:18;;;15922:30;15988:34;15968:18;;;15961:62;-1:-1:-1;;;16039:18:1;;;16032:33;16082:19;;61814:64:0;15708:399:1;61814:64:0;61891:38;61912:4;61918:2;61922:6;61891:20;:38::i;:::-;-1:-1:-1;;;;;61964:15:0;;61942:19;61964:15;;;:9;:15;;;;;;61998:21;;;;61990:72;;;;-1:-1:-1;;;61990:72:0;;16314:2:1;61990:72:0;;;16296:21:1;16353:2;16333:18;;;16326:30;16392:34;16372:18;;;16365:62;-1:-1:-1;;;16443:18:1;;;16436:36;16489:19;;61990:72:0;16112:402:1;61990:72:0;-1:-1:-1;;;;;62098:15:0;;;;;;;:9;:15;;;;;;62116:20;;;62098:38;;62316:13;;;;;;;;;;:23;;;;;;62368:26;;;;;;62130:6;643:25:1;;631:2;616:18;;497:177;62368:26:0;;;;;;;;62407:37;79403:147;112164:499;-1:-1:-1;;;;;112253:23:0;;112232:4;112253:23;;;:17;:23;;;;;;;;;:48;;-1:-1:-1;;;;;;112280:21:0;;;;;;:17;:21;;;;;;;;112253:48;112249:66;;;-1:-1:-1;112310:5:0;112303:12;;112249:66;112328:14;112345:106;112373:2;112345:106;;;;;;;;;;;;;-1:-1:-1;;;112345:106:0;;;112430:2;-1:-1:-1;;;;;112415:25:0;;112345:13;:106::i;:::-;112328:123;;112462:14;112479:106;112507:2;112479:106;;;;;;;;;;;;;-1:-1:-1;;;112479:106:0;;;112564:2;-1:-1:-1;;;;;112549:25:0;;112479:13;:106::i;:::-;112462:123;-1:-1:-1;;;;;;112605:23:0;;112623:4;112605:23;;:50;;-1:-1:-1;;;;;;112632:23:0;;112650:4;112632:23;112605:50;112598:57;112164:499;-1:-1:-1;;;;;112164:499:0:o;112671:134::-;112745:6;;112720:4;;112745:6;;112744:7;:22;;;;-1:-1:-1;112755:11:0;;;;112744:22;:53;;;;;112784:13;;112770:10;;:27;;112744:53;112737:60;;112671:134;:::o;112813:1418::-;108010:6;:13;;-1:-1:-1;;108010:13:0;108019:4;108010:13;;;112886:16:::1;::::0;;112900:1:::1;112886:16:::0;;;;;::::1;::::0;;-1:-1:-1;;112886:16:0::1;::::0;::::1;::::0;;::::1;::::0;::::1;;::::0;-1:-1:-1;112886:16:0::1;112862:40;;112931:4;112913;112918:1;112913:7;;;;;;;;:::i;:::-;;;;;;:23;-1:-1:-1::0;;;;;112913:23:0::1;;;-1:-1:-1::0;;;;;112913:23:0::1;;;::::0;::::1;112957:6;-1:-1:-1::0;;;;;112957:11:0::1;;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;112947:4;112952:1;112947:7;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;112947:23:0;;::::1;:7;::::0;;::::1;::::0;;;;;;;:23;113001:10:::1;::::0;113071:8:::1;::::0;113050:17;;112983:15:::1;::::0;113071:8;113040:27:::1;::::0;113001:10;113040:27:::1;:::i;:::-;113039:40;;;;:::i;:::-;113092:17;113099:10;113092:17:::0;;;113022:57;;-1:-1:-1;113216:16:0::1;113022:57:::0;113216:7;:16:::1;:::i;:::-;113309:210;::::0;-1:-1:-1;;;113309:210:0;;113195:37;;-1:-1:-1;113271:21:0::1;::::0;-1:-1:-1;;;;;113309:6:0::1;:57;::::0;::::1;::::0;:210:::1;::::0;113195:37;;113247:21:::1;::::0;113434:4;;113465::::1;::::0;113489:15:::1;::::0;113309:210:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;113536:17;113580:13;113556:21;:37;;;;:::i;:::-;113706:20:::0;;:7:::1;113684:19:::0;113536:57;;-1:-1:-1;113608:19:0::1;::::0;113684:42:::1;::::0;113706:20;113684:42:::1;:::i;:::-;113643:7;:19:::0;113631:31:::1;::::0;:9;:31:::1;:::i;:::-;113630:97;;;;:::i;:::-;113608:119:::0;-1:-1:-1;113742:20:0::1;113765:23;113608:119:::0;113765:9;:23:::1;:::i;:::-;113742:46;;113843:19;;;;;;;;;-1:-1:-1::0;;;;;113843:19:0::1;-1:-1:-1::0;;;;;113826:51:0::1;;113907:11;113826:113;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;-1:-1:-1::0;113988:20:0::1;::::0;113980:59:::1;::::0;-1:-1:-1;;;;;113988:20:0;;::::1;::::0;114022:12;;113980:59:::1;::::0;;;114022:12;113988:20;113980:59:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;114186:17:0::1;::::0;114140:6;;-1:-1:-1;114161:51:0::1;::::0;-1:-1:-1;114179:4:0::1;::::0;-1:-1:-1;;;;;;114186:17:0::1;::::0;-1:-1:-1;114140:6:0;;-1:-1:-1;114161:9:0::1;::::0;-1:-1:-1;114161:51:0:i:1;:::-;-1:-1:-1::0;;108050:6:0;:14;;-1:-1:-1;;108050:14:0;;;-1:-1:-1;;112813:1418:0:o;82144:238::-;82228:22;82236:4;82242:7;82228;:22::i;:::-;82223:152;;82267:6;:12;;;;;;;;;;;-1:-1:-1;;;;;82267:29:0;;;;;;;;;:36;;-1:-1:-1;;82267:36:0;82299:4;82267:36;;;82350:12;39196:10;;39116:98;82350:12;-1:-1:-1;;;;;82323:40:0;82341:7;-1:-1:-1;;;;;82323:40:0;82335:4;82323:40;;;;;;;;;;82144:238;;:::o;8373:152::-;8443:4;8467:50;8472:3;-1:-1:-1;;;;;8492:23:0;;8467:4;:50::i;82562:239::-;82646:22;82654:4;82660:7;82646;:22::i;:::-;82642:152;;;82717:5;82685:12;;;;;;;;;;;-1:-1:-1;;;;;82685:29:0;;;;;;;;;;:37;;-1:-1:-1;;82685:37:0;;;82742:40;39196:10;;82685:12;;82742:40;;82717:5;82742:40;82562:239;;:::o;8701:158::-;8774:4;8798:53;8806:3;-1:-1:-1;;;;;8826:23:0;;8798:7;:53::i;69994:108::-;69721:7;;;;70053:41;;;;-1:-1:-1;;;70053:41:0;;18436:2:1;70053:41:0;;;18418:21:1;18475:2;18455:18;;;18448:30;-1:-1:-1;;;18494:18:1;;;18487:50;18554:18;;70053:41:0;18234:344:1;111470:168:0;-1:-1:-1;;;;;111583:18:0;;;;;;:30;;-1:-1:-1;69721:7:0;;;;111605:8;111579:51;;;111622:8;;-1:-1:-1;;;111622:8:0;;;;;;;;;;;69809:108;69721:7;;;;69879:9;69871:38;;;;-1:-1:-1;;;69871:38:0;;18785:2:1;69871:38:0;;;18767:21:1;18824:2;18804:18;;;18797:30;-1:-1:-1;;;18843:18:1;;;18836:46;18899:18;;69871:38:0;18583:340:1;4878:120:0;4945:7;4972:3;:11;;4984:5;4972:18;;;;;;;;:::i;:::-;;;;;;;;;4965:25;;4878:120;;;;:::o;93919:649::-;94343:23;94369:69;94397:4;94369:69;;;;;;;;;;;;;;;;;94377:5;-1:-1:-1;;;;;94369:27:0;;;:69;;;;;:::i;:::-;94343:95;;94457:10;:17;94478:1;94457:22;:56;;;;94494:10;94483:30;;;;;;;;;;;;:::i;:::-;94449:111;;;;-1:-1:-1;;;94449:111:0;;19380:2:1;94449:111:0;;;19362:21:1;19419:2;19399:18;;;19392:30;19458:34;19438:18;;;19431:62;-1:-1:-1;;;19509:18:1;;;19502:40;19559:19;;94449:111:0;19178:406:1;36495:151:0;36553:13;36586:52;-1:-1:-1;;;;;36598:22:0;;34370:2;35891:447;35966:13;35992:19;36024:10;36028:6;36024:1;:10;:::i;:::-;:14;;36037:1;36024:14;:::i;:::-;36014:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36014:25:0;;35992:47;;-1:-1:-1;;;36050:6:0;36057:1;36050:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;36050:15:0;;;;;;;;;-1:-1:-1;;;36076:6:0;36083:1;36076:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;36076:15:0;;;;;;;;-1:-1:-1;36107:9:0;36119:10;36123:6;36119:1;:10;:::i;:::-;:14;;36132:1;36119:14;:::i;:::-;36107:26;;36102:131;36139:1;36135;:5;36102:131;;;-1:-1:-1;;;36183:5:0;36191:3;36183:11;36174:21;;;;;;;:::i;:::-;;;;36162:6;36169:1;36162:9;;;;;;;;:::i;:::-;;;;:33;-1:-1:-1;;;;;36162:33:0;;;;;;;;-1:-1:-1;36220:1:0;36210:11;;;;;36142:3;;;:::i;:::-;;;36102:131;;;-1:-1:-1;36251:10:0;;36243:55;;;;-1:-1:-1;;;36243:55:0;;19932:2:1;36243:55:0;;;19914:21:1;;;19951:18;;;19944:30;20010:34;19990:18;;;19983:62;20062:18;;36243:55:0;19730:356:1;29713:98:0;29771:7;29798:5;29802:1;29798;:5;:::i;30112:98::-;30170:7;30197:5;30201:1;30197;:5;:::i;28975:98::-;29033:7;29060:5;29064:1;29060;:5;:::i;111646:510::-;111860:34;;;;;;;;;;;;;111811:7;;;;-1:-1:-1;;;;;111850:9:0;;;111860:34;;111884:9;;111860:34;:::i;:::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;111860:34:0;-1:-1:-1;;;;;;111860:34:0;;;;;;;;;111850:45;;;111860:34;111850:45;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111831:64;;;111912:7;111908:211;;;111998:17;;112048:8;;;;112044:64;;112084:6;;:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;112077:15;;;;;;112044:64;111921:198;111908:211;112146:1;112131:17;;;111646:510;;;;;;;:::o;2104:414::-;2167:4;4297:19;;;:12;;;:19;;;;;;2184:327;;-1:-1:-1;2227:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;2410:18;;2388:19;;;:12;;;:19;;;;;;:40;;;;2443:11;;2184:327;-1:-1:-1;2494:5:0;2487:12;;2694:1420;2760:4;2899:19;;;:12;;;:19;;;;;;2935:15;;2931:1176;;3310:21;3334:14;3347:1;3334:10;:14;:::i;:::-;3383:18;;3310:38;;-1:-1:-1;3363:17:0;;3383:22;;3404:1;;3383:22;:::i;:::-;3363:42;;3439:13;3426:9;:26;3422:405;;3473:17;3493:3;:11;;3505:9;3493:22;;;;;;;;:::i;:::-;;;;;;;;;3473:42;;3647:9;3618:3;:11;;3630:13;3618:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;3732:23;;;:12;;;:23;;;;;:36;;;3422:405;3908:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;4003:3;:12;;:19;4016:5;4003:19;;;;;;;;;;;3996:26;;;4046:4;4039:11;;;;;;;2931:1176;4090:5;4083:12;;;;;43405:229;43542:12;43574:52;43596:6;43604:4;43610:1;43613:12;43542;44779;44793:23;44820:6;-1:-1:-1;;;;;44820:11:0;44839:5;44846:4;44820:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44778:73;;;;44869:69;44896:6;44904:7;44913:10;44925:12;44869:26;:69::i;:::-;44862:76;44491:455;-1:-1:-1;;;;;;;44491:455:0:o;47064:644::-;47249:12;47278:7;47274:427;;;47306:10;:17;47327:1;47306:22;47302:290;;-1:-1:-1;;;;;40945:19:0;;;47516:60;;;;-1:-1:-1;;;47516:60:0;;21418:2:1;47516:60:0;;;21400:21:1;21457:2;21437:18;;;21430:30;21496:31;21476:18;;;21469:59;21545:18;;47516:60:0;21216:353:1;47516:60:0;-1:-1:-1;47613:10:0;47606:17;;47274:427;47656:33;47664:10;47676:12;48411:17;;:21;48407:388;;48643:10;48637:17;48700:15;48687:10;48683:2;48679:19;48672:44;48407:388;48770:12;48763:20;;-1:-1:-1;;;48763:20:0;;;;;;;;:::i;14:286:1:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;167:23;;-1:-1:-1;;;;;;219:32:1;;209:43;;199:71;;266:1;263;256:12;679:250;764:1;774:113;788:6;785:1;782:13;774:113;;;864:11;;;858:18;845:11;;;838:39;810:2;803:10;774:113;;;-1:-1:-1;;921:1:1;903:16;;896:27;679:250::o;934:396::-;1083:2;1072:9;1065:21;1046:4;1115:6;1109:13;1158:6;1153:2;1142:9;1138:18;1131:34;1174:79;1246:6;1241:2;1230:9;1226:18;1221:2;1213:6;1209:15;1174:79;:::i;:::-;1314:2;1293:15;-1:-1:-1;;1289:29:1;1274:45;;;;1321:2;1270:54;;934:396;-1:-1:-1;;934:396:1:o;1335:131::-;-1:-1:-1;;;;;1410:31:1;;1400:42;;1390:70;;1456:1;1453;1446:12;1471:315;1539:6;1547;1600:2;1588:9;1579:7;1575:23;1571:32;1568:52;;;1616:1;1613;1606:12;1568:52;1655:9;1642:23;1674:31;1699:5;1674:31;:::i;:::-;1724:5;1776:2;1761:18;;;;1748:32;;-1:-1:-1;;;1471:315:1:o;1791:118::-;1877:5;1870:13;1863:21;1856:5;1853:32;1843:60;;1899:1;1896;1889:12;1914:382;1979:6;1987;2040:2;2028:9;2019:7;2015:23;2011:32;2008:52;;;2056:1;2053;2046:12;2008:52;2095:9;2082:23;2114:31;2139:5;2114:31;:::i;:::-;2164:5;-1:-1:-1;2221:2:1;2206:18;;2193:32;2234:30;2193:32;2234:30;:::i;:::-;2283:7;2273:17;;;1914:382;;;;;:::o;2509:247::-;2568:6;2621:2;2609:9;2600:7;2596:23;2592:32;2589:52;;;2637:1;2634;2627:12;2589:52;2676:9;2663:23;2695:31;2720:5;2695:31;:::i;2761:456::-;2838:6;2846;2854;2907:2;2895:9;2886:7;2882:23;2878:32;2875:52;;;2923:1;2920;2913:12;2875:52;2962:9;2949:23;2981:31;3006:5;2981:31;:::i;:::-;3031:5;-1:-1:-1;3088:2:1;3073:18;;3060:32;3101:33;3060:32;3101:33;:::i;:::-;2761:456;;3153:7;;-1:-1:-1;;;3207:2:1;3192:18;;;;3179:32;;2761:456::o;3222:180::-;3281:6;3334:2;3322:9;3313:7;3309:23;3305:32;3302:52;;;3350:1;3347;3340:12;3302:52;-1:-1:-1;3373:23:1;;3222:180;-1:-1:-1;3222:180:1:o;3823:315::-;3891:6;3899;3952:2;3940:9;3931:7;3927:23;3923:32;3920:52;;;3968:1;3965;3958:12;3920:52;4004:9;3991:23;3981:33;;4064:2;4053:9;4049:18;4036:32;4077:31;4102:5;4077:31;:::i;4332:316::-;4409:6;4417;4425;4478:2;4466:9;4457:7;4453:23;4449:32;4446:52;;;4494:1;4491;4484:12;4446:52;-1:-1:-1;;4517:23:1;;;4587:2;4572:18;;4559:32;;-1:-1:-1;4638:2:1;4623:18;;;4610:32;;4332:316;-1:-1:-1;4332:316:1:o;5073:248::-;5141:6;5149;5202:2;5190:9;5181:7;5177:23;5173:32;5170:52;;;5218:1;5215;5208:12;5170:52;-1:-1:-1;;5241:23:1;;;5311:2;5296:18;;;5283:32;;-1:-1:-1;5073:248:1:o;5846:241::-;5902:6;5955:2;5943:9;5934:7;5930:23;5926:32;5923:52;;;5971:1;5968;5961:12;5923:52;6010:9;5997:23;6029:28;6051:5;6029:28;:::i;6092:388::-;6160:6;6168;6221:2;6209:9;6200:7;6196:23;6192:32;6189:52;;;6237:1;6234;6227:12;6189:52;6276:9;6263:23;6295:31;6320:5;6295:31;:::i;:::-;6345:5;-1:-1:-1;6402:2:1;6387:18;;6374:32;6415:33;6374:32;6415:33;:::i;6809:380::-;6888:1;6884:12;;;;6931;;;6952:61;;7006:4;6998:6;6994:17;6984:27;;6952:61;7059:2;7051:6;7048:14;7028:18;7025:38;7022:161;;7105:10;7100:3;7096:20;7093:1;7086:31;7140:4;7137:1;7130:15;7168:4;7165:1;7158:15;7022:161;;6809:380;;;:::o;7483:127::-;7544:10;7539:3;7535:20;7532:1;7525:31;7575:4;7572:1;7565:15;7599:4;7596:1;7589:15;7615:125;7680:9;;;7701:10;;;7698:36;;;7714:18;;:::i;9687:184::-;9757:6;9810:2;9798:9;9789:7;9785:23;9781:32;9778:52;;;9826:1;9823;9816:12;9778:52;-1:-1:-1;9849:16:1;;9687:184;-1:-1:-1;9687:184:1:o;9876:128::-;9943:9;;;9964:11;;;9961:37;;;9978:18;;:::i;11926:168::-;11999:9;;;12030;;12047:15;;;12041:22;;12027:37;12017:71;;12068:18;;:::i;12099:217::-;12139:1;12165;12155:132;;12209:10;12204:3;12200:20;12197:1;12190:31;12244:4;12241:1;12234:15;12272:4;12269:1;12262:15;12155:132;-1:-1:-1;12301:9:1;;12099:217::o;13765:812::-;14176:25;14171:3;14164:38;14146:3;14231:6;14225:13;14247:75;14315:6;14310:2;14305:3;14301:12;14294:4;14286:6;14282:17;14247:75;:::i;:::-;-1:-1:-1;;;14381:2:1;14341:16;;;14373:11;;;14366:40;14431:13;;14453:76;14431:13;14515:2;14507:11;;14500:4;14488:17;;14453:76;:::i;:::-;14549:17;14568:2;14545:26;;13765:812;-1:-1:-1;;;;13765:812:1:o;16519:127::-;16580:10;16575:3;16571:20;16568:1;16561:31;16611:4;16608:1;16601:15;16635:4;16632:1;16625:15;16651:127;16712:10;16707:3;16703:20;16700:1;16693:31;16743:4;16740:1;16733:15;16767:4;16764:1;16757:15;16783:251;16853:6;16906:2;16894:9;16885:7;16881:23;16877:32;16874:52;;;16922:1;16919;16912:12;16874:52;16954:9;16948:16;16973:31;16998:5;16973:31;:::i;17039:980::-;17301:4;17349:3;17338:9;17334:19;17380:6;17369:9;17362:25;17406:2;17444:6;17439:2;17428:9;17424:18;17417:34;17487:3;17482:2;17471:9;17467:18;17460:31;17511:6;17546;17540:13;17577:6;17569;17562:22;17615:3;17604:9;17600:19;17593:26;;17654:2;17646:6;17642:15;17628:29;;17675:1;17685:195;17699:6;17696:1;17693:13;17685:195;;;17764:13;;-1:-1:-1;;;;;17760:39:1;17748:52;;17855:15;;;;17820:12;;;;17796:1;17714:9;17685:195;;;-1:-1:-1;;;;;;;17936:32:1;;;;17931:2;17916:18;;17909:60;-1:-1:-1;;;18000:3:1;17985:19;17978:35;17897:3;17039:980;-1:-1:-1;;;17039:980:1:o;18928:245::-;18995:6;19048:2;19036:9;19027:7;19023:23;19019:32;19016:52;;;19064:1;19061;19054:12;19016:52;19096:9;19090:16;19115:28;19137:5;19115:28;:::i;19589:136::-;19628:3;19656:5;19646:39;;19665:18;;:::i;:::-;-1:-1:-1;;;19701:18:1;;19589:136::o;20091:289::-;20222:3;20260:6;20254:13;20276:66;20335:6;20330:3;20323:4;20315:6;20311:17;20276:66;:::i;:::-;20358:16;;;;;20091:289;-1:-1:-1;;20091:289:1:o;20677:127::-;20738:10;20733:3;20729:20;20726:1;20719:31;20769:4;20766:1;20759:15;20793:4;20790:1;20783:15
Swarm Source
ipfs://eb5a0d05e936c360bc2ca7f7440ea1ec9f95831514d9bf1749393e92d3cd24ad
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.