ERC-20
DeFi
Overview
Max Total Supply
1,000,000 XMT
Holders
5,821
Total Transfers
-
Market
Price
$0.0126 @ 0.000003 ETH (-9.31%)
Onchain Market Cap
$12,566.68
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
MetalSwap
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at lineascan.build/ on 2023-11-23 */ // File: @openzeppelin/[email protected]/utils/Counters.sol // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } // File: @openzeppelin/[email protected]/interfaces/IERC5267.sol // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol) pragma solidity ^0.8.0; interface IERC5267 { /** * @dev MAY be emitted to signal that the domain could have changed. */ event EIP712DomainChanged(); /** * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712 * signature. */ function eip712Domain() external view returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ); } // File: @openzeppelin/[email protected]/utils/StorageSlot.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._ * _Available since v4.9 for `string`, `bytes`._ */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } } // File: @openzeppelin/[email protected]/utils/ShortStrings.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/ShortStrings.sol) pragma solidity ^0.8.8; // | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | // | length | 0x BB | type ShortString is bytes32; /** * @dev This library provides functions to convert short memory strings * into a `ShortString` type that can be used as an immutable variable. * * Strings of arbitrary length can be optimized using this library if * they are short enough (up to 31 bytes) by packing them with their * length (1 byte) in a single EVM word (32 bytes). Additionally, a * fallback mechanism can be used for every other case. * * Usage example: * * ```solidity * contract Named { * using ShortStrings for *; * * ShortString private immutable _name; * string private _nameFallback; * * constructor(string memory contractName) { * _name = contractName.toShortStringWithFallback(_nameFallback); * } * * function name() external view returns (string memory) { * return _name.toStringWithFallback(_nameFallback); * } * } * ``` */ library ShortStrings { // Used as an identifier for strings longer than 31 bytes. bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF; error StringTooLong(string str); error InvalidShortString(); /** * @dev Encode a string of at most 31 chars into a `ShortString`. * * This will trigger a `StringTooLong` error is the input string is too long. */ function toShortString(string memory str) internal pure returns (ShortString) { bytes memory bstr = bytes(str); if (bstr.length > 31) { revert StringTooLong(str); } return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length)); } /** * @dev Decode a `ShortString` back to a "normal" string. */ function toString(ShortString sstr) internal pure returns (string memory) { uint256 len = byteLength(sstr); // using `new string(len)` would work locally but is not memory safe. string memory str = new string(32); /// @solidity memory-safe-assembly assembly { mstore(str, len) mstore(add(str, 0x20), sstr) } return str; } /** * @dev Return the length of a `ShortString`. */ function byteLength(ShortString sstr) internal pure returns (uint256) { uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF; if (result > 31) { revert InvalidShortString(); } return result; } /** * @dev Encode a string into a `ShortString`, or write it to storage if it is too long. */ function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) { if (bytes(value).length < 32) { return toShortString(value); } else { StorageSlot.getStringSlot(store).value = value; return ShortString.wrap(_FALLBACK_SENTINEL); } } /** * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}. */ function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) { if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) { return toString(value); } else { return store; } } /** * @dev Return the length of a string that was encoded to `ShortString` or written to storage using {setWithFallback}. * * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of * actual characters as the UTF-8 encoding of a single character can span over multiple bytes. */ function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) { if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) { return byteLength(value); } else { return bytes(store).length; } } } // File: @openzeppelin/[email protected]/token/ERC20/extensions/IERC20Permit.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File: @openzeppelin/[email protected]/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/[email protected]/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/[email protected]/utils/math/SignedMath.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @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); } } } // File: @openzeppelin/[email protected]/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // 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); } } } // File: @openzeppelin/[email protected]/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `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)); } } // File: @openzeppelin/[email protected]/utils/cryptography/ECDSA.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) { // 32 is the length in bytes of hash, // enforced by the type signature above /// @solidity memory-safe-assembly assembly { mstore(0x00, "\x19Ethereum Signed Message:\n32") mstore(0x1c, hash) message := keccak256(0x00, 0x3c) } } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, "\x19\x01") mstore(add(ptr, 0x02), domainSeparator) mstore(add(ptr, 0x22), structHash) data := keccak256(ptr, 0x42) } } /** * @dev Returns an Ethereum Signed Data with intended validator, created from a * `validator` and `data` according to the version 0 of EIP-191. * * See {recover}. */ function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x00", validator, data)); } } // File: @openzeppelin/[email protected]/utils/cryptography/EIP712.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol) pragma solidity ^0.8.8; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the * separator from the immutable values, which is cheaper than accessing a cached version in cold storage. * * _Available since v3.4._ * * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment */ abstract contract EIP712 is IERC5267 { using ShortStrings for *; bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _cachedDomainSeparator; uint256 private immutable _cachedChainId; address private immutable _cachedThis; bytes32 private immutable _hashedName; bytes32 private immutable _hashedVersion; ShortString private immutable _name; ShortString private immutable _version; string private _nameFallback; string private _versionFallback; /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { _name = name.toShortStringWithFallback(_nameFallback); _version = version.toShortStringWithFallback(_versionFallback); _hashedName = keccak256(bytes(name)); _hashedVersion = keccak256(bytes(version)); _cachedChainId = block.chainid; _cachedDomainSeparator = _buildDomainSeparator(); _cachedThis = address(this); } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _cachedThis && block.chainid == _cachedChainId) { return _cachedDomainSeparator; } else { return _buildDomainSeparator(); } } function _buildDomainSeparator() private view returns (bytes32) { return keccak256(abi.encode(_TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } /** * @dev See {EIP-5267}. * * _Available since v4.9._ */ function eip712Domain() public view virtual override returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ) { return ( hex"0f", // 01111 _name.toStringWithFallback(_nameFallback), _version.toStringWithFallback(_versionFallback), block.chainid, address(this), bytes32(0), new uint256[](0) ); } } // File: @openzeppelin/[email protected]/access/IAccessControl.sol // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } // File: @openzeppelin/[email protected]/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/[email protected]/access/AccessControl.sol // OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol) pragma solidity ^0.8.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ```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()); } } } // File: @openzeppelin/[email protected]/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); } // File: @openzeppelin/[email protected]/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/[email protected]/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * 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 {} } // File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20Permit.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/ERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * _Available since v3.4._ */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { using Counters for Counters.Counter; mapping(address => Counters.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private constant _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`. * However, to ensure consistency with the upgradeable transpiler, we will continue * to reserve a slot. * @custom:oz-renamed-from _PERMIT_TYPEHASH */ // solhint-disable-next-line var-name-mixedcase bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT; /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") {} /** * @dev See {IERC20Permit-permit}. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. * * _Available since v4.1._ */ function _useNonce(address owner) internal virtual returns (uint256 current) { Counters.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } } // SPDX-License-Identifier: MIT // File: Linea-Swap-System/contracts/tokens/XMT_linea/MetalSwap.sol pragma solidity ^0.8.19; contract MetalSwap is ERC20, AccessControl, ERC20Permit { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); constructor(address defaultAdmin, address minter) ERC20("MetalSwap", "XMT") ERC20Permit("MetalSwap") { _grantRole(DEFAULT_ADMIN_ROLE, defaultAdmin); _grantRole(MINTER_ROLE, minter); } function mint(address to, uint256 amount) external onlyRole(MINTER_ROLE) { _mint(to, amount); } function burn(address _account, uint256 _amount) external onlyRole(MINTER_ROLE) { _spendAllowance(_account, msg.sender, _amount); _burn(_account, _amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"defaultAdmin","type":"address"},{"internalType":"address","name":"minter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","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":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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"}]
Contract Creation Code
6101606040523480156200001257600080fd5b5060405162001fa538038062001fa5833981016040819052620000359162000313565b6040518060400160405280600981526020016804d6574616c537761760bc1b81525080604051806040016040528060018152602001603160f81b8152506040518060400160405280600981526020016804d6574616c537761760bc1b8152506040518060400160405280600381526020016216135560ea1b8152508160039081620000c19190620003f0565b506004620000d08282620003f0565b50620000e291508390506006620001cc565b61012052620000f3816007620001cc565b61014052815160208084019190912060e052815190820120610100524660a0526200018160e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60805250503060c052506200019860008362000205565b620001c47f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a68262000205565b505062000531565b6000602083511015620001ec57620001e483620002aa565b9050620001ff565b81620001f98482620003f0565b5060ff90505b92915050565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff16620002a65760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002653390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600080829050601f81511115620002e1578260405163305a27a960e01b8152600401620002d89190620004bc565b60405180910390fd5b8051620002ee826200050c565b179392505050565b80516001600160a01b03811681146200030e57600080fd5b919050565b600080604083850312156200032757600080fd5b6200033283620002f6565b91506200034260208401620002f6565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200037657607f821691505b6020821081036200039757634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003eb57600081815260208120601f850160051c81016020861015620003c65750805b601f850160051c820191505b81811015620003e757828155600101620003d2565b5050505b505050565b81516001600160401b038111156200040c576200040c6200034b565b62000424816200041d845462000361565b846200039d565b602080601f8311600181146200045c5760008415620004435750858301515b600019600386901b1c1916600185901b178555620003e7565b600085815260208120601f198616915b828110156200048d578886015182559484019460019091019084016200046c565b5085821015620004ac5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208083528351808285015260005b81811015620004eb57858101830151858201604001528201620004cd565b506000604082860101526040601f19601f8301168501019250505092915050565b80516020808301519190811015620003975760001960209190910360031b1b16919050565b60805160a05160c05160e051610100516101205161014051611a196200058c60003960006105f6015260006105cb01526000610dab01526000610d8301526000610cde01526000610d0801526000610d320152611a196000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c806370a08231116100de578063a217fddf11610097578063d505accf11610071578063d505accf14610328578063d53913931461033b578063d547741f14610362578063dd62ed3e1461037557600080fd5b8063a217fddf146102fa578063a457c2d714610302578063a9059cbb1461031557600080fd5b806370a08231146102755780637ecebe001461029e57806384b0196e146102b157806391d14854146102cc57806395d89b41146102df5780639dc29fac146102e757600080fd5b80632f2ff15d116101305780632f2ff15d14610210578063313ce567146102255780633644e5151461023457806336568abe1461023c578063395093511461024f57806340c10f191461026257600080fd5b806301ffc9a71461017857806306fdde03146101a0578063095ea7b3146101b557806318160ddd146101c857806323b872dd146101da578063248a9ca3146101ed575b600080fd5b61018b6101863660046115ff565b610388565b60405190151581526020015b60405180910390f35b6101a86103bf565b6040516101979190611679565b61018b6101c33660046116a8565b610451565b6002545b604051908152602001610197565b61018b6101e83660046116d2565b610469565b6101cc6101fb36600461170e565b60009081526005602052604090206001015490565b61022361021e366004611727565b61048d565b005b60405160128152602001610197565b6101cc6104b7565b61022361024a366004611727565b6104c6565b61018b61025d3660046116a8565b610549565b6102236102703660046116a8565b61056b565b6101cc610283366004611753565b6001600160a01b031660009081526020819052604090205490565b6101cc6102ac366004611753565b61059f565b6102b96105bd565b604051610197979695949392919061176e565b61018b6102da366004611727565b610646565b6101a8610671565b6102236102f53660046116a8565b610680565b6101cc600081565b61018b6103103660046116a8565b6106bf565b61018b6103233660046116a8565b61073a565b610223610336366004611804565b610748565b6101cc7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b610223610370366004611727565b6108ac565b6101cc610383366004611877565b6108d1565b60006001600160e01b03198216637965db0b60e01b14806103b957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600380546103ce906118a1565b80601f01602080910402602001604051908101604052809291908181526020018280546103fa906118a1565b80156104475780601f1061041c57610100808354040283529160200191610447565b820191906000526020600020905b81548152906001019060200180831161042a57829003601f168201915b5050505050905090565b60003361045f8185856108fc565b5060019392505050565b600033610477858285610a20565b610482858585610a9a565b506001949350505050565b6000828152600560205260409020600101546104a881610c3e565b6104b28383610c4b565b505050565b60006104c1610cd1565b905090565b6001600160a01b038116331461053b5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6105458282610dfc565b5050565b60003361045f81858561055c83836108d1565b61056691906118eb565b6108fc565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661059581610c3e565b6104b28383610e63565b6001600160a01b0381166000908152600860205260408120546103b9565b6000606080828080836105f17f00000000000000000000000000000000000000000000000000000000000000006006610f22565b61061c7f00000000000000000000000000000000000000000000000000000000000000006007610f22565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600480546103ce906118a1565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66106aa81610c3e565b6106b5833384610a20565b6104b28383610fcd565b600033816106cd82866108d1565b90508381101561072d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610532565b61048282868684036108fc565b60003361045f818585610a9a565b834211156107985760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610532565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886107c78c6110ff565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061082282611127565b9050600061083282878787611154565b9050896001600160a01b0316816001600160a01b0316146108955760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610532565b6108a08a8a8a6108fc565b50505050505050505050565b6000828152600560205260409020600101546108c781610c3e565b6104b28383610dfc565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b03831661095e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610532565b6001600160a01b0382166109bf5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610532565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610a2c84846108d1565b90506000198114610a945781811015610a875760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610532565b610a9484848484036108fc565b50505050565b6001600160a01b038316610afe5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610532565b6001600160a01b038216610b605760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610532565b6001600160a01b03831660009081526020819052604090205481811015610bd85760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610532565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610a94565b610c48813361117c565b50565b610c558282610646565b6105455760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610c8d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015610d2a57507f000000000000000000000000000000000000000000000000000000000000000046145b15610d5457507f000000000000000000000000000000000000000000000000000000000000000090565b6104c1604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b610e068282610646565b156105455760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b038216610eb95760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610532565b8060026000828254610ecb91906118eb565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b606060ff8314610f3c57610f35836111d5565b90506103b9565b818054610f48906118a1565b80601f0160208091040260200160405190810160405280929190818152602001828054610f74906118a1565b8015610fc15780601f10610f9657610100808354040283529160200191610fc1565b820191906000526020600020905b815481529060010190602001808311610fa457829003601f168201915b505050505090506103b9565b6001600160a01b03821661102d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610532565b6001600160a01b038216600090815260208190526040902054818110156110a15760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610532565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001600160a01b03811660009081526008602052604090208054600181018255905b50919050565b60006103b9611134610cd1565b8360405161190160f01b8152600281019290925260228201526042902090565b600080600061116587878787611214565b91509150611172816112d8565b5095945050505050565b6111868282610646565b6105455761119381611422565b61119e836020611434565b6040516020016111af929190611914565b60408051601f198184030181529082905262461bcd60e51b825261053291600401611679565b606060006111e2836115d7565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561124b57506000905060036112cf565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561129f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166112c8576000600192509250506112cf565b9150600090505b94509492505050565b60008160048111156112ec576112ec611989565b036112f45750565b600181600481111561130857611308611989565b036113555760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610532565b600281600481111561136957611369611989565b036113b65760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610532565b60038160048111156113ca576113ca611989565b03610c485760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610532565b60606103b96001600160a01b03831660145b6060600061144383600261199f565b61144e9060026118eb565b67ffffffffffffffff811115611466576114666118fe565b6040519080825280601f01601f191660200182016040528015611490576020820181803683370190505b509050600360fc1b816000815181106114ab576114ab6119b6565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106114da576114da6119b6565b60200101906001600160f81b031916908160001a90535060006114fe84600261199f565b6115099060016118eb565b90505b6001811115611581576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061153d5761153d6119b6565b1a60f81b828281518110611553576115536119b6565b60200101906001600160f81b031916908160001a90535060049490941c9361157a816119cc565b905061150c565b5083156115d05760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610532565b9392505050565b600060ff8216601f8111156103b957604051632cd44ac360e21b815260040160405180910390fd5b60006020828403121561161157600080fd5b81356001600160e01b0319811681146115d057600080fd5b60005b8381101561164457818101518382015260200161162c565b50506000910152565b60008151808452611665816020860160208601611629565b601f01601f19169290920160200192915050565b6020815260006115d0602083018461164d565b80356001600160a01b03811681146116a357600080fd5b919050565b600080604083850312156116bb57600080fd5b6116c48361168c565b946020939093013593505050565b6000806000606084860312156116e757600080fd5b6116f08461168c565b92506116fe6020850161168c565b9150604084013590509250925092565b60006020828403121561172057600080fd5b5035919050565b6000806040838503121561173a57600080fd5b8235915061174a6020840161168c565b90509250929050565b60006020828403121561176557600080fd5b6115d08261168c565b60ff60f81b881681526000602060e08184015261178e60e084018a61164d565b83810360408501526117a0818a61164d565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825283870192509083019060005b818110156117f2578351835292840192918401916001016117d6565b50909c9b505050505050505050505050565b600080600080600080600060e0888a03121561181f57600080fd5b6118288861168c565b96506118366020890161168c565b95506040880135945060608801359350608088013560ff8116811461185a57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561188a57600080fd5b6118938361168c565b915061174a6020840161168c565b600181811c908216806118b557607f821691505b60208210810361112157634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156103b9576103b96118d5565b634e487b7160e01b600052604160045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161194c816017850160208801611629565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161197d816028840160208801611629565b01602801949350505050565b634e487b7160e01b600052602160045260246000fd5b80820281158282048414176103b9576103b96118d5565b634e487b7160e01b600052603260045260246000fd5b6000816119db576119db6118d5565b50600019019056fea2646970667358221220449f7c59b003d72b22e7ecc5bf5807d3f93864b4e1f2de1ddd5d282c362580c864736f6c63430008130033000000000000000000000000fdf6fa86058d1eacb441adb5acfc143672e59a58000000000000000000000000353012dc4a9a6cf55c941badc267f82004a8ceb9
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101735760003560e01c806370a08231116100de578063a217fddf11610097578063d505accf11610071578063d505accf14610328578063d53913931461033b578063d547741f14610362578063dd62ed3e1461037557600080fd5b8063a217fddf146102fa578063a457c2d714610302578063a9059cbb1461031557600080fd5b806370a08231146102755780637ecebe001461029e57806384b0196e146102b157806391d14854146102cc57806395d89b41146102df5780639dc29fac146102e757600080fd5b80632f2ff15d116101305780632f2ff15d14610210578063313ce567146102255780633644e5151461023457806336568abe1461023c578063395093511461024f57806340c10f191461026257600080fd5b806301ffc9a71461017857806306fdde03146101a0578063095ea7b3146101b557806318160ddd146101c857806323b872dd146101da578063248a9ca3146101ed575b600080fd5b61018b6101863660046115ff565b610388565b60405190151581526020015b60405180910390f35b6101a86103bf565b6040516101979190611679565b61018b6101c33660046116a8565b610451565b6002545b604051908152602001610197565b61018b6101e83660046116d2565b610469565b6101cc6101fb36600461170e565b60009081526005602052604090206001015490565b61022361021e366004611727565b61048d565b005b60405160128152602001610197565b6101cc6104b7565b61022361024a366004611727565b6104c6565b61018b61025d3660046116a8565b610549565b6102236102703660046116a8565b61056b565b6101cc610283366004611753565b6001600160a01b031660009081526020819052604090205490565b6101cc6102ac366004611753565b61059f565b6102b96105bd565b604051610197979695949392919061176e565b61018b6102da366004611727565b610646565b6101a8610671565b6102236102f53660046116a8565b610680565b6101cc600081565b61018b6103103660046116a8565b6106bf565b61018b6103233660046116a8565b61073a565b610223610336366004611804565b610748565b6101cc7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b610223610370366004611727565b6108ac565b6101cc610383366004611877565b6108d1565b60006001600160e01b03198216637965db0b60e01b14806103b957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600380546103ce906118a1565b80601f01602080910402602001604051908101604052809291908181526020018280546103fa906118a1565b80156104475780601f1061041c57610100808354040283529160200191610447565b820191906000526020600020905b81548152906001019060200180831161042a57829003601f168201915b5050505050905090565b60003361045f8185856108fc565b5060019392505050565b600033610477858285610a20565b610482858585610a9a565b506001949350505050565b6000828152600560205260409020600101546104a881610c3e565b6104b28383610c4b565b505050565b60006104c1610cd1565b905090565b6001600160a01b038116331461053b5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6105458282610dfc565b5050565b60003361045f81858561055c83836108d1565b61056691906118eb565b6108fc565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661059581610c3e565b6104b28383610e63565b6001600160a01b0381166000908152600860205260408120546103b9565b6000606080828080836105f17f4d6574616c5377617000000000000000000000000000000000000000000000096006610f22565b61061c7f31000000000000000000000000000000000000000000000000000000000000016007610f22565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600480546103ce906118a1565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66106aa81610c3e565b6106b5833384610a20565b6104b28383610fcd565b600033816106cd82866108d1565b90508381101561072d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610532565b61048282868684036108fc565b60003361045f818585610a9a565b834211156107985760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610532565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886107c78c6110ff565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061082282611127565b9050600061083282878787611154565b9050896001600160a01b0316816001600160a01b0316146108955760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610532565b6108a08a8a8a6108fc565b50505050505050505050565b6000828152600560205260409020600101546108c781610c3e565b6104b28383610dfc565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b03831661095e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610532565b6001600160a01b0382166109bf5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610532565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610a2c84846108d1565b90506000198114610a945781811015610a875760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610532565b610a9484848484036108fc565b50505050565b6001600160a01b038316610afe5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610532565b6001600160a01b038216610b605760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610532565b6001600160a01b03831660009081526020819052604090205481811015610bd85760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610532565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610a94565b610c48813361117c565b50565b610c558282610646565b6105455760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610c8d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000306001600160a01b037f0000000000000000000000003e5d9d8a63cc8a88748f229999cf59487e90721e16148015610d2a57507f000000000000000000000000000000000000000000000000000000000000e70846145b15610d5457507f5dda4b7afb0fc7d5ecfa8e115debbddb8be1f43bb934421c94bd2518f8138eae90565b6104c1604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527fd177aa1e7f031a8d21f6f16697c692c443b376cf51378be94a83ab0304572e2b918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b610e068282610646565b156105455760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b038216610eb95760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610532565b8060026000828254610ecb91906118eb565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b606060ff8314610f3c57610f35836111d5565b90506103b9565b818054610f48906118a1565b80601f0160208091040260200160405190810160405280929190818152602001828054610f74906118a1565b8015610fc15780601f10610f9657610100808354040283529160200191610fc1565b820191906000526020600020905b815481529060010190602001808311610fa457829003601f168201915b505050505090506103b9565b6001600160a01b03821661102d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610532565b6001600160a01b038216600090815260208190526040902054818110156110a15760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610532565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001600160a01b03811660009081526008602052604090208054600181018255905b50919050565b60006103b9611134610cd1565b8360405161190160f01b8152600281019290925260228201526042902090565b600080600061116587878787611214565b91509150611172816112d8565b5095945050505050565b6111868282610646565b6105455761119381611422565b61119e836020611434565b6040516020016111af929190611914565b60408051601f198184030181529082905262461bcd60e51b825261053291600401611679565b606060006111e2836115d7565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561124b57506000905060036112cf565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561129f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166112c8576000600192509250506112cf565b9150600090505b94509492505050565b60008160048111156112ec576112ec611989565b036112f45750565b600181600481111561130857611308611989565b036113555760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610532565b600281600481111561136957611369611989565b036113b65760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610532565b60038160048111156113ca576113ca611989565b03610c485760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610532565b60606103b96001600160a01b03831660145b6060600061144383600261199f565b61144e9060026118eb565b67ffffffffffffffff811115611466576114666118fe565b6040519080825280601f01601f191660200182016040528015611490576020820181803683370190505b509050600360fc1b816000815181106114ab576114ab6119b6565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106114da576114da6119b6565b60200101906001600160f81b031916908160001a90535060006114fe84600261199f565b6115099060016118eb565b90505b6001811115611581576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061153d5761153d6119b6565b1a60f81b828281518110611553576115536119b6565b60200101906001600160f81b031916908160001a90535060049490941c9361157a816119cc565b905061150c565b5083156115d05760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610532565b9392505050565b600060ff8216601f8111156103b957604051632cd44ac360e21b815260040160405180910390fd5b60006020828403121561161157600080fd5b81356001600160e01b0319811681146115d057600080fd5b60005b8381101561164457818101518382015260200161162c565b50506000910152565b60008151808452611665816020860160208601611629565b601f01601f19169290920160200192915050565b6020815260006115d0602083018461164d565b80356001600160a01b03811681146116a357600080fd5b919050565b600080604083850312156116bb57600080fd5b6116c48361168c565b946020939093013593505050565b6000806000606084860312156116e757600080fd5b6116f08461168c565b92506116fe6020850161168c565b9150604084013590509250925092565b60006020828403121561172057600080fd5b5035919050565b6000806040838503121561173a57600080fd5b8235915061174a6020840161168c565b90509250929050565b60006020828403121561176557600080fd5b6115d08261168c565b60ff60f81b881681526000602060e08184015261178e60e084018a61164d565b83810360408501526117a0818a61164d565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825283870192509083019060005b818110156117f2578351835292840192918401916001016117d6565b50909c9b505050505050505050505050565b600080600080600080600060e0888a03121561181f57600080fd5b6118288861168c565b96506118366020890161168c565b95506040880135945060608801359350608088013560ff8116811461185a57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561188a57600080fd5b6118938361168c565b915061174a6020840161168c565b600181811c908216806118b557607f821691505b60208210810361112157634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156103b9576103b96118d5565b634e487b7160e01b600052604160045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161194c816017850160208801611629565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161197d816028840160208801611629565b01602801949350505050565b634e487b7160e01b600052602160045260246000fd5b80820281158282048414176103b9576103b96118d5565b634e487b7160e01b600052603260045260246000fd5b6000816119db576119db6118d5565b50600019019056fea2646970667358221220449f7c59b003d72b22e7ecc5bf5807d3f93864b4e1f2de1ddd5d282c362580c864736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000fdf6fa86058d1eacb441adb5acfc143672e59a58000000000000000000000000353012dc4a9a6cf55c941badc267f82004a8ceb9
-----Decoded View---------------
Arg [0] : defaultAdmin (address): 0xFDf6Fa86058D1Eacb441aDB5aCfC143672E59A58
Arg [1] : minter (address): 0x353012dc4a9A6cF55c941bADC267f82004A8ceB9
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000fdf6fa86058d1eacb441adb5acfc143672e59a58
Arg [1] : 000000000000000000000000353012dc4a9a6cf55c941badc267f82004a8ceb9
Deployed Bytecode Sourcemap
80239:671:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54411:204;;;;;;:::i;:::-;;:::i;:::-;;;470:14:1;;463:22;445:41;;433:2;418:18;54411:204:0;;;;;;;;65826:100;;;:::i;:::-;;;;;;;:::i;68186:201::-;;;;;;:::i;:::-;;:::i;66955:108::-;67043:12;;66955:108;;;1836:25:1;;;1824:2;1809:18;66955:108:0;1690:177:1;68967:261:0;;;;;;:::i;:::-;;:::i;56234:131::-;;;;;;:::i;:::-;56308:7;56335:12;;;:6;:12;;;;;:22;;;;56234:131;56675:147;;;;;;:::i;:::-;;:::i;:::-;;66797:93;;;66880:2;2973:36:1;;2961:2;2946:18;66797:93:0;2831:184:1;79632:115:0;;;:::i;57819:218::-;;;;;;:::i;:::-;;:::i;69637:238::-;;;;;;:::i;:::-;;:::i;80610:109::-;;;;;;:::i;:::-;;:::i;67126:127::-;;;;;;:::i;:::-;-1:-1:-1;;;;;67227:18:0;67200:7;67227:18;;;;;;;;;;;;67126:127;79374:128;;;;;;:::i;:::-;;:::i;47091:657::-;;;:::i;:::-;;;;;;;;;;;;;:::i;54707:147::-;;;;;;:::i;:::-;;:::i;66045:104::-;;;:::i;80727:180::-;;;;;;:::i;:::-;;:::i;53812:49::-;;53857:4;53812:49;;70378:436;;;;;;:::i;:::-;;:::i;67459:193::-;;;;;;:::i;:::-;;:::i;78663:645::-;;;;;;:::i;:::-;;:::i;80302:62::-;;80340:24;80302:62;;57115:149;;;;;;:::i;:::-;;:::i;67715:151::-;;;;;;:::i;:::-;;:::i;54411:204::-;54496:4;-1:-1:-1;;;;;;54520:47:0;;-1:-1:-1;;;54520:47:0;;:87;;-1:-1:-1;;;;;;;;;;15245:40:0;;;54571:36;54513:94;54411:204;-1:-1:-1;;54411:204:0:o;65826:100::-;65880:13;65913:5;65906:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65826:100;:::o;68186:201::-;68269:4;51567:10;68325:32;51567:10;68341:7;68350:6;68325:8;:32::i;:::-;-1:-1:-1;68375:4:0;;68186:201;-1:-1:-1;;;68186:201:0:o;68967:261::-;69064:4;51567:10;69122:38;69138:4;51567:10;69153:6;69122:15;:38::i;:::-;69171:27;69181:4;69187:2;69191:6;69171:9;:27::i;:::-;-1:-1:-1;69216:4:0;;68967:261;-1:-1:-1;;;;68967:261:0:o;56675:147::-;56308:7;56335:12;;;:6;:12;;;;;:22;;;54303:16;54314:4;54303:10;:16::i;:::-;56789:25:::1;56800:4;56806:7;56789:10;:25::i;:::-;56675:147:::0;;;:::o;79632:115::-;79692:7;79719:20;:18;:20::i;:::-;79712:27;;79632:115;:::o;57819:218::-;-1:-1:-1;;;;;57915:23:0;;51567:10;57915:23;57907:83;;;;-1:-1:-1;;;57907:83:0;;6025:2:1;57907:83:0;;;6007:21:1;6064:2;6044:18;;;6037:30;6103:34;6083:18;;;6076:62;-1:-1:-1;;;6154:18:1;;;6147:45;6209:19;;57907:83:0;;;;;;;;;58003:26;58015:4;58021:7;58003:11;:26::i;:::-;57819:218;;:::o;69637:238::-;69725:4;51567:10;69781:64;51567:10;69797:7;69834:10;69806:25;51567:10;69797:7;69806:9;:25::i;:::-;:38;;;;:::i;:::-;69781:8;:64::i;80610:109::-;80340:24;54303:16;54314:4;54303:10;:16::i;:::-;80694:17:::1;80700:2;80704:6;80694:5;:17::i;79374:128::-:0;-1:-1:-1;;;;;79470:14:0;;79443:7;79470:14;;;:7;:14;;;;;970;79470:24;878:114;47091:657;47212:13;47240:18;;47212:13;;;47240:18;47514:41;:5;47541:13;47514:26;:41::i;:::-;47570:47;:8;47600:16;47570:29;:47::i;:::-;47713:16;;;47696:1;47713:16;;;;;;;;;-1:-1:-1;;;47461:279:0;;;-1:-1:-1;47461:279:0;;-1:-1:-1;47632:13:0;;-1:-1:-1;47668:4:0;;-1:-1:-1;47696:1:0;-1:-1:-1;47713:16:0;-1:-1:-1;47461:279:0;-1:-1:-1;47091:657:0:o;54707:147::-;54793:4;54817:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;54817:29:0;;;;;;;;;;;;;;;54707:147::o;66045:104::-;66101:13;66134:7;66127:14;;;;;:::i;80727:180::-;80340:24;54303:16;54314:4;54303:10;:16::i;:::-;80818:46:::1;80834:8;80844:10;80856:7;80818:15;:46::i;:::-;80875:24;80881:8;80891:7;80875:5;:24::i;70378:436::-:0;70471:4;51567:10;70471:4;70554:25;51567:10;70571:7;70554:9;:25::i;:::-;70527:52;;70618:15;70598:16;:35;;70590:85;;;;-1:-1:-1;;;70590:85:0;;6835:2:1;70590:85:0;;;6817:21:1;6874:2;6854:18;;;6847:30;6913:34;6893:18;;;6886:62;-1:-1:-1;;;6964:18:1;;;6957:35;7009:19;;70590:85:0;6633:401:1;70590:85:0;70711:60;70720:5;70727:7;70755:15;70736:16;:34;70711:8;:60::i;67459:193::-;67538:4;51567:10;67594:28;51567:10;67611:2;67615:6;67594:9;:28::i;78663:645::-;78907:8;78888:15;:27;;78880:69;;;;-1:-1:-1;;;78880:69:0;;7241:2:1;78880:69:0;;;7223:21:1;7280:2;7260:18;;;7253:30;7319:31;7299:18;;;7292:59;7368:18;;78880:69:0;7039:353:1;78880:69:0;78962:18;77838:95;79022:5;79029:7;79038:5;79045:16;79055:5;79045:9;:16::i;:::-;78993:79;;;;;;7684:25:1;;;;-1:-1:-1;;;;;7783:15:1;;;7763:18;;;7756:43;7835:15;;;;7815:18;;;7808:43;7867:18;;;7860:34;7910:19;;;7903:35;7954:19;;;7947:35;;;7656:19;;78993:79:0;;;;;;;;;;;;78983:90;;;;;;78962:111;;79086:12;79101:28;79118:10;79101:16;:28::i;:::-;79086:43;;79142:14;79159:28;79173:4;79179:1;79182;79185;79159:13;:28::i;:::-;79142:45;;79216:5;-1:-1:-1;;;;;79206:15:0;:6;-1:-1:-1;;;;;79206:15:0;;79198:58;;;;-1:-1:-1;;;79198:58:0;;8195:2:1;79198:58:0;;;8177:21:1;8234:2;8214:18;;;8207:30;8273:32;8253:18;;;8246:60;8323:18;;79198:58:0;7993:354:1;79198:58:0;79269:31;79278:5;79285:7;79294:5;79269:8;:31::i;:::-;78869:439;;;78663:645;;;;;;;:::o;57115:149::-;56308:7;56335:12;;;:6;:12;;;;;:22;;;54303:16;54314:4;54303:10;:16::i;:::-;57230:26:::1;57242:4;57248:7;57230:11;:26::i;67715:151::-:0;-1:-1:-1;;;;;67831:18:0;;;67804:7;67831:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;67715:151::o;74371:346::-;-1:-1:-1;;;;;74473:19:0;;74465:68;;;;-1:-1:-1;;;74465:68:0;;8554:2:1;74465:68:0;;;8536:21:1;8593:2;8573:18;;;8566:30;8632:34;8612:18;;;8605:62;-1:-1:-1;;;8683:18:1;;;8676:34;8727:19;;74465:68:0;8352:400:1;74465:68:0;-1:-1:-1;;;;;74552:21:0;;74544:68;;;;-1:-1:-1;;;74544:68:0;;8959:2:1;74544:68:0;;;8941:21:1;8998:2;8978:18;;;8971:30;9037:34;9017:18;;;9010:62;-1:-1:-1;;;9088:18:1;;;9081:32;9130:19;;74544:68:0;8757:398:1;74544:68:0;-1:-1:-1;;;;;74625:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;74677:32;;1836:25:1;;;74677:32:0;;1809:18:1;74677:32:0;;;;;;;74371:346;;;:::o;75008:419::-;75109:24;75136:25;75146:5;75153:7;75136:9;:25::i;:::-;75109:52;;-1:-1:-1;;75176:16:0;:37;75172:248;;75258:6;75238:16;:26;;75230:68;;;;-1:-1:-1;;;75230:68:0;;9362:2:1;75230:68:0;;;9344:21:1;9401:2;9381:18;;;9374:30;9440:31;9420:18;;;9413:59;9489:18;;75230:68:0;9160:353:1;75230:68:0;75342:51;75351:5;75358:7;75386:6;75367:16;:25;75342:8;:51::i;:::-;75098:329;75008:419;;;:::o;71284:806::-;-1:-1:-1;;;;;71381:18:0;;71373:68;;;;-1:-1:-1;;;71373:68:0;;9720:2:1;71373:68:0;;;9702:21:1;9759:2;9739:18;;;9732:30;9798:34;9778:18;;;9771:62;-1:-1:-1;;;9849:18:1;;;9842:35;9894:19;;71373:68:0;9518:401:1;71373:68:0;-1:-1:-1;;;;;71460:16:0;;71452:64;;;;-1:-1:-1;;;71452:64:0;;10126:2:1;71452:64:0;;;10108:21:1;10165:2;10145:18;;;10138:30;10204:34;10184:18;;;10177:62;-1:-1:-1;;;10255:18:1;;;10248:33;10298:19;;71452:64:0;9924:399:1;71452:64:0;-1:-1:-1;;;;;71602:15:0;;71580:19;71602:15;;;;;;;;;;;71636:21;;;;71628:72;;;;-1:-1:-1;;;71628:72:0;;10530:2:1;71628:72:0;;;10512:21:1;10569:2;10549:18;;;10542:30;10608:34;10588:18;;;10581:62;-1:-1:-1;;;10659:18:1;;;10652:36;10705:19;;71628:72:0;10328:402:1;71628:72:0;-1:-1:-1;;;;;71736:15:0;;;:9;:15;;;;;;;;;;;71754:20;;;71736:38;;71954:13;;;;;;;;;;:23;;;;;;72006:26;;1836:25:1;;;71954:13:0;;72006:26;;1809:18:1;72006:26:0;;;;;;;72045:37;56675:147;55158:105;55225:30;55236:4;51567:10;55225;:30::i;:::-;55158:105;:::o;59416:238::-;59500:22;59508:4;59514:7;59500;:22::i;:::-;59495:152;;59539:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;59539:29:0;;;;;;;;;:36;;-1:-1:-1;;59539:36:0;59571:4;59539:36;;;59622:12;51567:10;;51487:98;59622:12;-1:-1:-1;;;;;59595:40:0;59613:7;-1:-1:-1;;;;;59595:40:0;59607:4;59595:40;;;;;;;;;;59416:238;;:::o;45729:268::-;45782:7;45814:4;-1:-1:-1;;;;;45823:11:0;45806:28;;:63;;;;;45855:14;45838:13;:31;45806:63;45802:188;;;-1:-1:-1;45893:22:0;;45729:268::o;45802:188::-;45955:23;46097:81;;;43921:95;46097:81;;;12976:25:1;46120:11:0;13017:18:1;;;13010:34;;;;46133:14:0;13060:18:1;;;13053:34;46149:13:0;13103:18:1;;;13096:34;46172:4:0;13146:19:1;;;13139:61;46060:7:0;;12948:19:1;;46097:81:0;;;;;;;;;;;;46087:92;;;;;;46080:99;;46005:182;;59834:239;59918:22;59926:4;59932:7;59918;:22::i;:::-;59914:152;;;59989:5;59957:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;59957:29:0;;;;;;;;;;:37;;-1:-1:-1;;59957:37:0;;;60014:40;51567:10;;59957:12;;60014:40;;59989:5;60014:40;59834:239;;:::o;72377:548::-;-1:-1:-1;;;;;72461:21:0;;72453:65;;;;-1:-1:-1;;;72453:65:0;;10937:2:1;72453:65:0;;;10919:21:1;10976:2;10956:18;;;10949:30;11015:33;10995:18;;;10988:61;11066:18;;72453:65:0;10735:355:1;72453:65:0;72609:6;72593:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;72764:18:0;;:9;:18;;;;;;;;;;;:28;;;;;;72819:37;1836:25:1;;;72819:37:0;;1809:18:1;72819:37:0;;;;;;;57819:218;;:::o;10025:274::-;10119:13;7970:66;10149:47;;10145:147;;10220:15;10229:5;10220:8;:15::i;:::-;10213:22;;;;10145:147;10275:5;10268:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73258:675;-1:-1:-1;;;;;73342:21:0;;73334:67;;;;-1:-1:-1;;;73334:67:0;;11297:2:1;73334:67:0;;;11279:21:1;11336:2;11316:18;;;11309:30;11375:34;11355:18;;;11348:62;-1:-1:-1;;;11426:18:1;;;11419:31;11467:19;;73334:67:0;11095:397:1;73334:67:0;-1:-1:-1;;;;;73501:18:0;;73476:22;73501:18;;;;;;;;;;;73538:24;;;;73530:71;;;;-1:-1:-1;;;73530:71:0;;11699:2:1;73530:71:0;;;11681:21:1;11738:2;11718:18;;;11711:30;11777:34;11757:18;;;11750:62;-1:-1:-1;;;11828:18:1;;;11821:32;11870:19;;73530:71:0;11497:398:1;73530:71:0;-1:-1:-1;;;;;73637:18:0;;:9;:18;;;;;;;;;;;73658:23;;;73637:44;;73776:12;:22;;;;;;;73827:37;1836:25:1;;;73637:9:0;;:18;73827:37;;1809:18:1;73827:37:0;;;;;;;56675:147;;;:::o;79885:207::-;-1:-1:-1;;;;;80006:14:0;;79945:15;80006:14;;;:7;:14;;;;;970;;1107:1;1089:19;;;;970:14;80067:17;79962:130;79885:207;;;:::o;46829:167::-;46906:7;46933:55;46955:20;:18;:20::i;:::-;46977:10;41389:4;41383:11;-1:-1:-1;;;41408:23:0;;41461:4;41452:14;;41445:39;;;;41514:4;41505:14;;41498:34;41569:4;41554:20;;;41186:406;39402:236;39487:7;39508:17;39527:18;39549:25;39560:4;39566:1;39569;39572;39549:10;:25::i;:::-;39507:67;;;;39585:18;39597:5;39585:11;:18::i;:::-;-1:-1:-1;39621:9:0;39402:236;-1:-1:-1;;;;;39402:236:0:o;55553:492::-;55642:22;55650:4;55656:7;55642;:22::i;:::-;55637:401;;55830:28;55850:7;55830:19;:28::i;:::-;55931:38;55959:4;55966:2;55931:19;:38::i;:::-;55735:257;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;55735:257:0;;;;;;;;;;-1:-1:-1;;;55681:345:0;;;;;;;:::i;8679:415::-;8738:13;8764:11;8778:16;8789:4;8778:10;:16::i;:::-;8904:14;;;8915:2;8904:14;;;;;;;;;8764:30;;-1:-1:-1;8884:17:0;;8904:14;;;;;;;;;-1:-1:-1;;;8997:16:0;;;-1:-1:-1;9043:4:0;9034:14;;9027:28;;;;-1:-1:-1;8997:16:0;8679:415::o;37786:1477::-;37874:7;;38808:66;38795:79;;38791:163;;;-1:-1:-1;38907:1:0;;-1:-1:-1;38911:30:0;38891:51;;38791:163;39068:24;;;39051:14;39068:24;;;;;;;;;13438:25:1;;;13511:4;13499:17;;13479:18;;;13472:45;;;;13533:18;;;13526:34;;;13576:18;;;13569:34;;;39068:24:0;;13410:19:1;;39068:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;39068:24:0;;-1:-1:-1;;39068:24:0;;;-1:-1:-1;;;;;;;39107:20:0;;39103:103;;39160:1;39164:29;39144:50;;;;;;;39103:103;39226:6;-1:-1:-1;39234:20:0;;-1:-1:-1;37786:1477:0;;;;;;;;:::o;33246:521::-;33324:20;33315:5;:29;;;;;;;;:::i;:::-;;33311:449;;33246:521;:::o;33311:449::-;33422:29;33413:5;:38;;;;;;;;:::i;:::-;;33409:351;;33468:34;;-1:-1:-1;;;33468:34:0;;13948:2:1;33468:34:0;;;13930:21:1;13987:2;13967:18;;;13960:30;14026:26;14006:18;;;13999:54;14070:18;;33468:34:0;13746:348:1;33409:351:0;33533:35;33524:5;:44;;;;;;;;:::i;:::-;;33520:240;;33585:41;;-1:-1:-1;;;33585:41:0;;14301:2:1;33585:41:0;;;14283:21:1;14340:2;14320:18;;;14313:30;14379:33;14359:18;;;14352:61;14430:18;;33585:41:0;14099:355:1;33520:240:0;33657:30;33648:5;:39;;;;;;;;:::i;:::-;;33644:116;;33704:44;;-1:-1:-1;;;33704:44:0;;14661:2:1;33704:44:0;;;14643:21:1;14700:2;14680:18;;;14673:30;14739:34;14719:18;;;14712:62;-1:-1:-1;;;14790:18:1;;;14783:32;14832:19;;33704:44:0;14459:398:1;32254:151:0;32312:13;32345:52;-1:-1:-1;;;;;32357:22:0;;30129:2;31650:447;31725:13;31751:19;31783:10;31787:6;31783:1;:10;:::i;:::-;:14;;31796:1;31783:14;:::i;:::-;31773:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31773:25:0;;31751:47;;-1:-1:-1;;;31809:6:0;31816:1;31809:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;31809:15:0;;;;;;;;;-1:-1:-1;;;31835:6:0;31842:1;31835:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;31835:15:0;;;;;;;;-1:-1:-1;31866:9:0;31878:10;31882:6;31878:1;:10;:::i;:::-;:14;;31891:1;31878:14;:::i;:::-;31866:26;;31861:131;31898:1;31894;:5;31861:131;;;-1:-1:-1;;;31942:5:0;31950:3;31942:11;31933:21;;;;;;;:::i;:::-;;;;31921:6;31928:1;31921:9;;;;;;;;:::i;:::-;;;;:33;-1:-1:-1;;;;;31921:33:0;;;;;;;;-1:-1:-1;31979:1:0;31969:11;;;;;31901:3;;;:::i;:::-;;;31861:131;;;-1:-1:-1;32010:10:0;;32002:55;;;;-1:-1:-1;;;32002:55:0;;15510:2:1;32002:55:0;;;15492:21:1;;;15529:18;;;15522:30;15588:34;15568:18;;;15561:62;15640:18;;32002:55:0;15308:356:1;32002:55:0;32082:6;31650:447;-1:-1:-1;;;31650:447:0:o;9171:251::-;9232:7;9305:4;9269:40;;9333:2;9324:11;;9320:71;;;9359:20;;-1:-1:-1;;;9359:20:0;;;;;;;;;;;14:286:1;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;167:23;;-1:-1:-1;;;;;;219:32:1;;209:43;;199:71;;266:1;263;256:12;497:250;582:1;592:113;606:6;603:1;600:13;592:113;;;682:11;;;676:18;663:11;;;656:39;628:2;621:10;592:113;;;-1:-1:-1;;739:1:1;721:16;;714:27;497:250::o;752:271::-;794:3;832:5;826:12;859:6;854:3;847:19;875:76;944:6;937:4;932:3;928:14;921:4;914:5;910:16;875:76;:::i;:::-;1005:2;984:15;-1:-1:-1;;980:29:1;971:39;;;;1012:4;967:50;;752:271;-1:-1:-1;;752:271:1:o;1028:220::-;1177:2;1166:9;1159:21;1140:4;1197:45;1238:2;1227:9;1223:18;1215:6;1197:45;:::i;1253:173::-;1321:20;;-1:-1:-1;;;;;1370:31:1;;1360:42;;1350:70;;1416:1;1413;1406:12;1350:70;1253:173;;;:::o;1431:254::-;1499:6;1507;1560:2;1548:9;1539:7;1535:23;1531:32;1528:52;;;1576:1;1573;1566:12;1528:52;1599:29;1618:9;1599:29;:::i;:::-;1589:39;1675:2;1660:18;;;;1647:32;;-1:-1:-1;;;1431:254:1:o;1872:328::-;1949:6;1957;1965;2018:2;2006:9;1997:7;1993:23;1989:32;1986:52;;;2034:1;2031;2024:12;1986:52;2057:29;2076:9;2057:29;:::i;:::-;2047:39;;2105:38;2139:2;2128:9;2124:18;2105:38;:::i;:::-;2095:48;;2190:2;2179:9;2175:18;2162:32;2152:42;;1872:328;;;;;:::o;2205:180::-;2264:6;2317:2;2305:9;2296:7;2292:23;2288:32;2285:52;;;2333:1;2330;2323:12;2285:52;-1:-1:-1;2356:23:1;;2205:180;-1:-1:-1;2205:180:1:o;2572:254::-;2640:6;2648;2701:2;2689:9;2680:7;2676:23;2672:32;2669:52;;;2717:1;2714;2707:12;2669:52;2753:9;2740:23;2730:33;;2782:38;2816:2;2805:9;2801:18;2782:38;:::i;:::-;2772:48;;2572:254;;;;;:::o;3020:186::-;3079:6;3132:2;3120:9;3111:7;3107:23;3103:32;3100:52;;;3148:1;3145;3138:12;3100:52;3171:29;3190:9;3171:29;:::i;3211:1259::-;3617:3;3612;3608:13;3600:6;3596:26;3585:9;3578:45;3559:4;3642:2;3680:3;3675:2;3664:9;3660:18;3653:31;3707:46;3748:3;3737:9;3733:19;3725:6;3707:46;:::i;:::-;3801:9;3793:6;3789:22;3784:2;3773:9;3769:18;3762:50;3835:33;3861:6;3853;3835:33;:::i;:::-;3899:2;3884:18;;3877:34;;;-1:-1:-1;;;;;3948:32:1;;3942:3;3927:19;;3920:61;3968:3;3997:19;;3990:35;;;4062:22;;;4056:3;4041:19;;4034:51;4134:13;;4156:22;;;4232:15;;;;-1:-1:-1;4194:15:1;;;;-1:-1:-1;4275:169:1;4289:6;4286:1;4283:13;4275:169;;;4350:13;;4338:26;;4419:15;;;;4384:12;;;;4311:1;4304:9;4275:169;;;-1:-1:-1;4461:3:1;;3211:1259;-1:-1:-1;;;;;;;;;;;;3211:1259:1:o;4475:693::-;4586:6;4594;4602;4610;4618;4626;4634;4687:3;4675:9;4666:7;4662:23;4658:33;4655:53;;;4704:1;4701;4694:12;4655:53;4727:29;4746:9;4727:29;:::i;:::-;4717:39;;4775:38;4809:2;4798:9;4794:18;4775:38;:::i;:::-;4765:48;;4860:2;4849:9;4845:18;4832:32;4822:42;;4911:2;4900:9;4896:18;4883:32;4873:42;;4965:3;4954:9;4950:19;4937:33;5010:4;5003:5;4999:16;4992:5;4989:27;4979:55;;5030:1;5027;5020:12;4979:55;4475:693;;;;-1:-1:-1;4475:693:1;;;;5053:5;5105:3;5090:19;;5077:33;;-1:-1:-1;5157:3:1;5142:19;;;5129:33;;4475:693;-1:-1:-1;;4475:693:1:o;5173:260::-;5241:6;5249;5302:2;5290:9;5281:7;5277:23;5273:32;5270:52;;;5318:1;5315;5308:12;5270:52;5341:29;5360:9;5341:29;:::i;:::-;5331:39;;5389:38;5423:2;5412:9;5408:18;5389:38;:::i;5438:380::-;5517:1;5513:12;;;;5560;;;5581:61;;5635:4;5627:6;5623:17;5613:27;;5581:61;5688:2;5680:6;5677:14;5657:18;5654:38;5651:161;;5734:10;5729:3;5725:20;5722:1;5715:31;5769:4;5766:1;5759:15;5797:4;5794:1;5787:15;6239:127;6300:10;6295:3;6291:20;6288:1;6281:31;6331:4;6328:1;6321:15;6355:4;6352:1;6345:15;6371:125;6436:9;;;6457:10;;;6454:36;;;6470:18;;:::i;6501:127::-;6562:10;6557:3;6553:20;6550:1;6543:31;6593:4;6590:1;6583:15;6617:4;6614:1;6607:15;11900:812;12311:25;12306:3;12299:38;12281:3;12366:6;12360:13;12382:75;12450:6;12445:2;12440:3;12436:12;12429:4;12421:6;12417:17;12382:75;:::i;:::-;-1:-1:-1;;;12516:2:1;12476:16;;;12508:11;;;12501:40;12566:13;;12588:76;12566:13;12650:2;12642:11;;12635:4;12623:17;;12588:76;:::i;:::-;12684:17;12703:2;12680:26;;11900:812;-1:-1:-1;;;;11900:812:1:o;13614:127::-;13675:10;13670:3;13666:20;13663:1;13656:31;13706:4;13703:1;13696:15;13730:4;13727:1;13720:15;14862:168;14935:9;;;14966;;14983:15;;;14977:22;;14963:37;14953:71;;15004:18;;:::i;15035:127::-;15096:10;15091:3;15087:20;15084:1;15077:31;15127:4;15124:1;15117:15;15151:4;15148:1;15141:15;15167:136;15206:3;15234:5;15224:39;;15243:18;;:::i;:::-;-1:-1:-1;;;15279:18:1;;15167:136::o
Swarm Source
ipfs://449f7c59b003d72b22e7ecc5bf5807d3f93864b4e1f2de1ddd5d282c362580c8
[ 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.