ERC-20
Gaming
Overview
Max Total Supply
420,000,000,000 LG
Holders
38,398 (0.00%)
Market
Price
$0.00 @ 0.000000 ETH
Onchain Market Cap
$171,486.00
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
1,176,000 LGValue
$0.48 ( ~0.000125927238230688 ETH) [0.0003%]Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
Legends
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at Arbiscan.io on 2023-04-23 */ // SPDX-License-Identifier: MIT LICENSE 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); } /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } /** * @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) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator(bytes32 typeHash, bytes32 nameHash, bytes32 versionHash) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } } /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} } /** * @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; } } /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * _Available since v3.4._ */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { using Counters for Counters.Counter; mapping(address => Counters.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private constant _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`. * However, to ensure consistency with the upgradeable transpiler, we will continue * to reserve a slot. * @custom:oz-renamed-from _PERMIT_TYPEHASH */ // solhint-disable-next-line var-name-mixedcase bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT; /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") {} /** * @dev See {IERC20Permit-permit}. */ function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public virtual override { require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. * * _Available since v4.1._ */ function _useNonce(address owner) internal virtual returns (uint256 current) { Counters.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } } /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget(address target, bool success, bytes memory returndata, string memory errorMessage) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } library SafeERC20 { using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit(IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } contract Legends is ERC20Permit, Ownable { using SafeERC20 for IERC20; using Address for address payable; uint256 constant TOTAL_SUPPLY = 420_000_000_000 ether; mapping(address => bool) public transferAllowlist; bool public isLaunched; constructor(address newOwner_) ERC20("Legends", "LG") ERC20Permit("Legends") { _mint(newOwner_, TOTAL_SUPPLY); transferOwnership(newOwner_); } function _beforeTokenTransfer(address from, address, uint256) internal view override { require(isLaunched || transferAllowlist[from] || from == owner() || from == address(0x0), "Unable to transfer"); } // ADMIN function setEnableTransfer() external onlyOwner { require(!isLaunched, "Already launched"); isLaunched = true; } function setTransferAllowlist(address[] calldata accounts, bool isAllowed) external onlyOwner { require(accounts.length > 0, "Whitelist empty"); for (uint256 index = 0; index < accounts.length; ++index) { transferAllowlist[accounts[index]] = isAllowed; } } function renounceOwnership() public override onlyOwner { transferAllowlist[owner()] = false; super.renounceOwnership(); } function transferOwnership(address newOwner) public override onlyOwner { address oldOwner = owner(); transferAllowlist[oldOwner] = false; transferAllowlist[newOwner] = true; super.transferOwnership(newOwner); } function sweep(address[] calldata tokenAddr, address recipient) public onlyOwner { unchecked { uint256 ethers = address(this).balance; if (ethers > 0) { payable(recipient).sendValue(ethers); } for (uint256 index = 0; index < tokenAddr.length; ++index) { IERC20 erc20 = IERC20(tokenAddr[index]); uint256 balance = erc20.balanceOf(address(this)); if (balance > 0) erc20.safeTransfer(recipient, balance); } } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"newOwner_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isLaunched","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setEnableTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"isAllowed","type":"bool"}],"name":"setTransferAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenAddr","type":"address[]"},{"internalType":"address","name":"recipient","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"","type":"address"}],"name":"transferAllowlist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101406040523480156200001257600080fd5b50604051620025333803806200253383398101604081905262000035916200049a565b604051806040016040528060078152602001664c6567656e647360c81b81525080604051806040016040528060018152602001603160f81b815250604051806040016040528060078152602001664c6567656e647360c81b815250604051806040016040528060028152602001614c4760f01b8152508160039081620000bc919062000570565b506004620000cb828262000570565b5050825160209384012082519284019290922060e08390526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818901819052818301979097526060810194909452608080850193909352308483018190528151808603909301835260c09485019091528151919096012090529290925261012052506200016a90503362000195565b62000183816c054d17db76321263eca0000000620001e7565b6200018e81620002bd565b5062000664565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620002435760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b62000251600083836200031f565b80600260008282546200026591906200063c565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35b5050565b620002c7620003bd565b6000620002dc6007546001600160a01b031690565b6001600160a01b03808216600090815260086020526040808220805460ff1990811690915592861682529020805490911660011790559050620002b9826200041b565b60095460ff16806200034957506001600160a01b03831660009081526008602052604090205460ff165b806200036257506007546001600160a01b038481169116145b806200037557506001600160a01b038316155b620003b85760405162461bcd60e51b81526020600482015260126024820152712ab730b13632903a37903a3930b739b332b960711b60448201526064016200023a565b505050565b6007546001600160a01b03163314620004195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200023a565b565b62000425620003bd565b6001600160a01b0381166200048c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016200023a565b620004978162000195565b50565b600060208284031215620004ad57600080fd5b81516001600160a01b0381168114620004c557600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620004f757607f821691505b6020821081036200051857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003b857600081815260208120601f850160051c81016020861015620005475750805b601f850160051c820191505b81811015620005685782815560010162000553565b505050505050565b81516001600160401b038111156200058c576200058c620004cc565b620005a4816200059d8454620004e2565b846200051e565b602080601f831160018114620005dc5760008415620005c35750858301515b600019600386901b1c1916600185901b17855562000568565b600085815260208120601f198616915b828110156200060d57888601518255948401946001909101908401620005ec565b50858210156200062c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156200065e57634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a05160c05160e0516101005161012051611e7f620006b46000396000611075015260006110c40152600061109f01526000610ff8015260006110220152600061104c0152611e7f6000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c8063715018a6116100d8578063a9059cbb1161008c578063dd62ed3e11610066578063dd62ed3e1461030e578063e6ed909014610354578063f2fde38b1461037757600080fd5b8063a9059cbb146102d5578063d20c88bd146102e8578063d505accf146102fb57600080fd5b80638da5cb5b116100bd5780638da5cb5b1461029257806395d89b41146102ba578063a457c2d7146102c257600080fd5b8063715018a6146102775780637ecebe001461027f57600080fd5b8063307aebc91161013a5780633950935111610114578063395093511461021b578063563bc9e51461022e57806370a082311461024157600080fd5b8063307aebc9146101f7578063313ce567146102045780633644e5151461021357600080fd5b806318160ddd1161016b57806318160ddd146101c85780631f1d6dc2146101da57806323b872dd146101e457600080fd5b806306fdde0314610187578063095ea7b3146101a5575b600080fd5b61018f61038a565b60405161019c9190611a25565b60405180910390f35b6101b86101b3366004611a9f565b61041c565b604051901515815260200161019c565b6002545b60405190815260200161019c565b6101e2610436565b005b6101b86101f2366004611ac9565b6104c3565b6009546101b89060ff1681565b6040516012815260200161019c565b6101cc6104e7565b6101b8610229366004611a9f565b6104f6565b6101e261023c366004611b5f565b610542565b6101cc61024f366004611bb6565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6101e2610637565b6101cc61028d366004611bb6565b6106c1565b60075460405173ffffffffffffffffffffffffffffffffffffffff909116815260200161019c565b61018f6106ec565b6101b86102d0366004611a9f565b6106fb565b6101b86102e3366004611a9f565b6107b2565b6101e26102f6366004611bd8565b6107c0565b6101e2610309366004611c2c565b6108f1565b6101cc61031c366004611c9f565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b6101b8610362366004611bb6565b60086020526000908152604090205460ff1681565b6101e2610385366004611bb6565b610a7c565b60606003805461039990611cd2565b80601f01602080910402602001604051908101604052809291908181526020018280546103c590611cd2565b80156104125780601f106103e757610100808354040283529160200191610412565b820191906000526020600020905b8154815290600101906020018083116103f557829003601f168201915b5050505050905090565b60003361042a818585610b15565b60019150505b92915050565b61043e610c94565b60095460ff16156104965760405162461bcd60e51b815260206004820152601060248201527f416c7265616479206c61756e636865640000000000000000000000000000000060448201526064015b60405180910390fd5b600980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6000336104d1858285610cfb565b6104dc858585610db2565b506001949350505050565b60006104f1610fde565b905090565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919061042a908290869061053d908790611d4e565b610b15565b61054a610c94565b816105975760405162461bcd60e51b815260206004820152600f60248201527f57686974656c69737420656d7074790000000000000000000000000000000000604482015260640161048d565b60005b828110156106315781600860008686858181106105b9576105b9611d61565b90506020020160208101906105ce9190611bb6565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905561062a81611d90565b905061059a565b50505050565b61063f610c94565b60006008600061066460075473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790556106bf611112565b565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260056020526040812054610430565b60606004805461039990611cd2565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190838110156107a55760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161048d565b6104dc8286868403610b15565b60003361042a818585610db2565b6107c8610c94565b4780156107ef576107ef73ffffffffffffffffffffffffffffffffffffffff831682611124565b60005b838110156108ea57600085858381811061080e5761080e611d61565b90506020020160208101906108239190611bb6565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290915060009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015610893573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b79190611dc8565b905080156108e0576108e073ffffffffffffffffffffffffffffffffffffffff8316868361124f565b50506001016107f2565b5050505050565b834211156109415760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161048d565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886109708c6112dc565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006109d882611311565b905060006109e88287878761137a565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a655760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161048d565b610a708a8a8a610b15565b50505050505050505050565b610a84610c94565b6000610aa560075473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff80821660009081526008602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090811690915592861682529020805490911660011790559050610b11826113a4565b5050565b73ffffffffffffffffffffffffffffffffffffffff8316610b9d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161048d565b73ffffffffffffffffffffffffffffffffffffffff8216610c265760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161048d565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60075473ffffffffffffffffffffffffffffffffffffffff1633146106bf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161048d565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146106315781811015610da55760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161048d565b6106318484848403610b15565b73ffffffffffffffffffffffffffffffffffffffff8316610e3b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161048d565b73ffffffffffffffffffffffffffffffffffffffff8216610ec45760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161048d565b610ecf838383611441565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015610f6b5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161048d565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610631565b60003073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614801561104457507f000000000000000000000000000000000000000000000000000000000000000046145b1561106e57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b61111a610c94565b6106bf6000611507565b804710156111745760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161048d565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d80600081146111ce576040519150601f19603f3d011682016040523d82523d6000602084013e6111d3565b606091505b505090508061124a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161048d565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261124a90849061157e565b73ffffffffffffffffffffffffffffffffffffffff811660009081526005602052604090208054600181018255905b50919050565b600061043061131e610fde565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061138b87878787611670565b915091506113988161175f565b5090505b949350505050565b6113ac610c94565b73ffffffffffffffffffffffffffffffffffffffff81166114355760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161048d565b61143e81611507565b50565b60095460ff1680611477575073ffffffffffffffffffffffffffffffffffffffff831660009081526008602052604090205460ff165b8061149c575060075473ffffffffffffffffffffffffffffffffffffffff8481169116145b806114bb575073ffffffffffffffffffffffffffffffffffffffff8316155b61124a5760405162461bcd60e51b815260206004820152601260248201527f556e61626c6520746f207472616e736665720000000000000000000000000000604482015260640161048d565b6007805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006115e0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166118c49092919063ffffffff16565b80519091501561124a57808060200190518101906115fe9190611de1565b61124a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161048d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156116a75750600090506003611756565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156116fb573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661174f57600060019250925050611756565b9150600090505b94509492505050565b600081600481111561177357611773611dfe565b0361177b5750565b600181600481111561178f5761178f611dfe565b036117dc5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161048d565b60028160048111156117f0576117f0611dfe565b0361183d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161048d565b600381600481111561185157611851611dfe565b0361143e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161048d565b606061139c8484600085856000808673ffffffffffffffffffffffffffffffffffffffff1685876040516118f89190611e2d565b60006040518083038185875af1925050503d8060008114611935576040519150601f19603f3d011682016040523d82523d6000602084013e61193a565b606091505b509150915061194b87838387611956565b979650505050505050565b606083156119d25782516000036119cb5773ffffffffffffffffffffffffffffffffffffffff85163b6119cb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161048d565b508161139c565b61139c83838151156119e75781518083602001fd5b8060405162461bcd60e51b815260040161048d9190611a25565b60005b83811015611a1c578181015183820152602001611a04565b50506000910152565b6020815260008251806020840152611a44816040850160208701611a01565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b803573ffffffffffffffffffffffffffffffffffffffff81168114611a9a57600080fd5b919050565b60008060408385031215611ab257600080fd5b611abb83611a76565b946020939093013593505050565b600080600060608486031215611ade57600080fd5b611ae784611a76565b9250611af560208501611a76565b9150604084013590509250925092565b60008083601f840112611b1757600080fd5b50813567ffffffffffffffff811115611b2f57600080fd5b6020830191508360208260051b8501011115611b4a57600080fd5b9250929050565b801515811461143e57600080fd5b600080600060408486031215611b7457600080fd5b833567ffffffffffffffff811115611b8b57600080fd5b611b9786828701611b05565b9094509250506020840135611bab81611b51565b809150509250925092565b600060208284031215611bc857600080fd5b611bd182611a76565b9392505050565b600080600060408486031215611bed57600080fd5b833567ffffffffffffffff811115611c0457600080fd5b611c1086828701611b05565b9094509250611c23905060208501611a76565b90509250925092565b600080600080600080600060e0888a031215611c4757600080fd5b611c5088611a76565b9650611c5e60208901611a76565b95506040880135945060608801359350608088013560ff81168114611c8257600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215611cb257600080fd5b611cbb83611a76565b9150611cc960208401611a76565b90509250929050565b600181811c90821680611ce657607f821691505b60208210810361130b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561043057610430611d1f565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611dc157611dc1611d1f565b5060010190565b600060208284031215611dda57600080fd5b5051919050565b600060208284031215611df357600080fd5b8151611bd181611b51565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60008251611e3f818460208701611a01565b919091019291505056fea2646970667358221220d8073a37d727a292ae34d077129cdbdb8cd466a9ca0d20da9ee064903a23fd0064736f6c63430008130033000000000000000000000000d56ccf907dca4c9c85312ad4f71a15687762c02e
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101825760003560e01c8063715018a6116100d8578063a9059cbb1161008c578063dd62ed3e11610066578063dd62ed3e1461030e578063e6ed909014610354578063f2fde38b1461037757600080fd5b8063a9059cbb146102d5578063d20c88bd146102e8578063d505accf146102fb57600080fd5b80638da5cb5b116100bd5780638da5cb5b1461029257806395d89b41146102ba578063a457c2d7146102c257600080fd5b8063715018a6146102775780637ecebe001461027f57600080fd5b8063307aebc91161013a5780633950935111610114578063395093511461021b578063563bc9e51461022e57806370a082311461024157600080fd5b8063307aebc9146101f7578063313ce567146102045780633644e5151461021357600080fd5b806318160ddd1161016b57806318160ddd146101c85780631f1d6dc2146101da57806323b872dd146101e457600080fd5b806306fdde0314610187578063095ea7b3146101a5575b600080fd5b61018f61038a565b60405161019c9190611a25565b60405180910390f35b6101b86101b3366004611a9f565b61041c565b604051901515815260200161019c565b6002545b60405190815260200161019c565b6101e2610436565b005b6101b86101f2366004611ac9565b6104c3565b6009546101b89060ff1681565b6040516012815260200161019c565b6101cc6104e7565b6101b8610229366004611a9f565b6104f6565b6101e261023c366004611b5f565b610542565b6101cc61024f366004611bb6565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6101e2610637565b6101cc61028d366004611bb6565b6106c1565b60075460405173ffffffffffffffffffffffffffffffffffffffff909116815260200161019c565b61018f6106ec565b6101b86102d0366004611a9f565b6106fb565b6101b86102e3366004611a9f565b6107b2565b6101e26102f6366004611bd8565b6107c0565b6101e2610309366004611c2c565b6108f1565b6101cc61031c366004611c9f565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b6101b8610362366004611bb6565b60086020526000908152604090205460ff1681565b6101e2610385366004611bb6565b610a7c565b60606003805461039990611cd2565b80601f01602080910402602001604051908101604052809291908181526020018280546103c590611cd2565b80156104125780601f106103e757610100808354040283529160200191610412565b820191906000526020600020905b8154815290600101906020018083116103f557829003601f168201915b5050505050905090565b60003361042a818585610b15565b60019150505b92915050565b61043e610c94565b60095460ff16156104965760405162461bcd60e51b815260206004820152601060248201527f416c7265616479206c61756e636865640000000000000000000000000000000060448201526064015b60405180910390fd5b600980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6000336104d1858285610cfb565b6104dc858585610db2565b506001949350505050565b60006104f1610fde565b905090565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919061042a908290869061053d908790611d4e565b610b15565b61054a610c94565b816105975760405162461bcd60e51b815260206004820152600f60248201527f57686974656c69737420656d7074790000000000000000000000000000000000604482015260640161048d565b60005b828110156106315781600860008686858181106105b9576105b9611d61565b90506020020160208101906105ce9190611bb6565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905561062a81611d90565b905061059a565b50505050565b61063f610c94565b60006008600061066460075473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790556106bf611112565b565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260056020526040812054610430565b60606004805461039990611cd2565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190838110156107a55760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161048d565b6104dc8286868403610b15565b60003361042a818585610db2565b6107c8610c94565b4780156107ef576107ef73ffffffffffffffffffffffffffffffffffffffff831682611124565b60005b838110156108ea57600085858381811061080e5761080e611d61565b90506020020160208101906108239190611bb6565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290915060009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa158015610893573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b79190611dc8565b905080156108e0576108e073ffffffffffffffffffffffffffffffffffffffff8316868361124f565b50506001016107f2565b5050505050565b834211156109415760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161048d565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886109708c6112dc565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006109d882611311565b905060006109e88287878761137a565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a655760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161048d565b610a708a8a8a610b15565b50505050505050505050565b610a84610c94565b6000610aa560075473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff80821660009081526008602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090811690915592861682529020805490911660011790559050610b11826113a4565b5050565b73ffffffffffffffffffffffffffffffffffffffff8316610b9d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161048d565b73ffffffffffffffffffffffffffffffffffffffff8216610c265760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161048d565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60075473ffffffffffffffffffffffffffffffffffffffff1633146106bf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161048d565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146106315781811015610da55760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161048d565b6106318484848403610b15565b73ffffffffffffffffffffffffffffffffffffffff8316610e3b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161048d565b73ffffffffffffffffffffffffffffffffffffffff8216610ec45760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161048d565b610ecf838383611441565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015610f6b5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161048d565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610631565b60003073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000009c8ef67c9168587134e1f29a71405dc753500a451614801561104457507f000000000000000000000000000000000000000000000000000000000000a4b146145b1561106e57507fe78b1e7dcd40330b5f806bee2e350d3d73ee500a781655408eb09f98560e597090565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527fbd10b81366d104006670187f2d1a3809bae65dfe34baf86ba26f038ea80fa53e828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b61111a610c94565b6106bf6000611507565b804710156111745760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161048d565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d80600081146111ce576040519150601f19603f3d011682016040523d82523d6000602084013e6111d3565b606091505b505090508061124a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161048d565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261124a90849061157e565b73ffffffffffffffffffffffffffffffffffffffff811660009081526005602052604090208054600181018255905b50919050565b600061043061131e610fde565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061138b87878787611670565b915091506113988161175f565b5090505b949350505050565b6113ac610c94565b73ffffffffffffffffffffffffffffffffffffffff81166114355760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161048d565b61143e81611507565b50565b60095460ff1680611477575073ffffffffffffffffffffffffffffffffffffffff831660009081526008602052604090205460ff165b8061149c575060075473ffffffffffffffffffffffffffffffffffffffff8481169116145b806114bb575073ffffffffffffffffffffffffffffffffffffffff8316155b61124a5760405162461bcd60e51b815260206004820152601260248201527f556e61626c6520746f207472616e736665720000000000000000000000000000604482015260640161048d565b6007805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006115e0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166118c49092919063ffffffff16565b80519091501561124a57808060200190518101906115fe9190611de1565b61124a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161048d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156116a75750600090506003611756565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156116fb573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661174f57600060019250925050611756565b9150600090505b94509492505050565b600081600481111561177357611773611dfe565b0361177b5750565b600181600481111561178f5761178f611dfe565b036117dc5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161048d565b60028160048111156117f0576117f0611dfe565b0361183d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161048d565b600381600481111561185157611851611dfe565b0361143e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161048d565b606061139c8484600085856000808673ffffffffffffffffffffffffffffffffffffffff1685876040516118f89190611e2d565b60006040518083038185875af1925050503d8060008114611935576040519150601f19603f3d011682016040523d82523d6000602084013e61193a565b606091505b509150915061194b87838387611956565b979650505050505050565b606083156119d25782516000036119cb5773ffffffffffffffffffffffffffffffffffffffff85163b6119cb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161048d565b508161139c565b61139c83838151156119e75781518083602001fd5b8060405162461bcd60e51b815260040161048d9190611a25565b60005b83811015611a1c578181015183820152602001611a04565b50506000910152565b6020815260008251806020840152611a44816040850160208701611a01565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b803573ffffffffffffffffffffffffffffffffffffffff81168114611a9a57600080fd5b919050565b60008060408385031215611ab257600080fd5b611abb83611a76565b946020939093013593505050565b600080600060608486031215611ade57600080fd5b611ae784611a76565b9250611af560208501611a76565b9150604084013590509250925092565b60008083601f840112611b1757600080fd5b50813567ffffffffffffffff811115611b2f57600080fd5b6020830191508360208260051b8501011115611b4a57600080fd5b9250929050565b801515811461143e57600080fd5b600080600060408486031215611b7457600080fd5b833567ffffffffffffffff811115611b8b57600080fd5b611b9786828701611b05565b9094509250506020840135611bab81611b51565b809150509250925092565b600060208284031215611bc857600080fd5b611bd182611a76565b9392505050565b600080600060408486031215611bed57600080fd5b833567ffffffffffffffff811115611c0457600080fd5b611c1086828701611b05565b9094509250611c23905060208501611a76565b90509250925092565b600080600080600080600060e0888a031215611c4757600080fd5b611c5088611a76565b9650611c5e60208901611a76565b95506040880135945060608801359350608088013560ff81168114611c8257600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215611cb257600080fd5b611cbb83611a76565b9150611cc960208401611a76565b90509250929050565b600181811c90821680611ce657607f821691505b60208210810361130b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561043057610430611d1f565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611dc157611dc1611d1f565b5060010190565b600060208284031215611dda57600080fd5b5051919050565b600060208284031215611df357600080fd5b8151611bd181611b51565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60008251611e3f818460208701611a01565b919091019291505056fea2646970667358221220d8073a37d727a292ae34d077129cdbdb8cd466a9ca0d20da9ee064903a23fd0064736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d56ccf907dca4c9c85312ad4f71a15687762c02e
-----Decoded View---------------
Arg [0] : newOwner_ (address): 0xD56CCf907dca4c9c85312aD4F71a15687762C02e
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000d56ccf907dca4c9c85312ad4f71a15687762c02e
Deployed Bytecode Sourcemap
66199:2113:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35788:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;38139:201;;;;;;:::i;:::-;;:::i;:::-;;;1354:14:1;;1347:22;1329:41;;1317:2;1302:18;38139:201:0;1189:187:1;36908:108:0;36996:12;;36908:108;;;1527:25:1;;;1515:2;1500:18;36908:108:0;1381:177:1;66881:135:0;;;:::i;:::-;;38920:261;;;;;;:::i;:::-;;:::i;66440:22::-;;;;;;;;;36750:93;;;36833:2;2038:36:1;;2026:2;2011:18;36750:93:0;1896:184:1;50618:115:0;;;:::i;39590:238::-;;;;;;:::i;:::-;;:::i;67024:301::-;;;;;;:::i;:::-;;:::i;37079:127::-;;;;;;:::i;:::-;37180:18;;37153:7;37180:18;;;;;;;;;;;;37079:127;67333:144;;;:::i;50360:128::-;;;;;;:::i;:::-;;:::i;52162:87::-;52235:6;;52162:87;;52235:6;;;;3670:74:1;;3658:2;3643:18;52162:87:0;3524:226:1;36007:104:0;;;:::i;40331:436::-;;;;;;:::i;:::-;;:::i;37412:193::-;;;;;;:::i;:::-;;:::i;67744:565::-;;;;;;:::i;:::-;;:::i;49719:575::-;;;;;;:::i;:::-;;:::i;37668:151::-;;;;;;:::i;:::-;37784:18;;;;37757:7;37784:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;37668:151;66384:49;;;;;;:::i;:::-;;;;;;;;;;;;;;;;67485:251;;;;;;:::i;:::-;;:::i;35788:100::-;35842:13;35875:5;35868:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35788:100;:::o;38139:201::-;38222:4;33678:10;38278:32;33678:10;38294:7;38303:6;38278:8;:32::i;:::-;38328:4;38321:11;;;38139:201;;;;;:::o;66881:135::-;52048:13;:11;:13::i;:::-;66949:10:::1;::::0;::::1;;66948:11;66940:40;;;::::0;-1:-1:-1;;;66940:40:0;;5878:2:1;66940:40:0::1;::::0;::::1;5860:21:1::0;5917:2;5897:18;;;5890:30;5956:18;5936;;;5929:46;5992:18;;66940:40:0::1;;;;;;;;;66991:10;:17:::0;;;::::1;67004:4;66991:17;::::0;;66881:135::o;38920:261::-;39017:4;33678:10;39075:38;39091:4;33678:10;39106:6;39075:15;:38::i;:::-;39124:27;39134:4;39140:2;39144:6;39124:9;:27::i;:::-;-1:-1:-1;39169:4:0;;38920:261;-1:-1:-1;;;;38920:261:0:o;50618:115::-;50678:7;50705:20;:18;:20::i;:::-;50698:27;;50618:115;:::o;39590:238::-;33678:10;39678:4;37784:18;;;:11;:18;;;;;;;;;:27;;;;;;;;;;39678:4;;33678:10;39734:64;;33678:10;;37784:27;;39759:38;;39787:10;;39759:38;:::i;:::-;39734:8;:64::i;67024:301::-;52048:13;:11;:13::i;:::-;67137:19;67129:47:::1;;;::::0;-1:-1:-1;;;67129:47:0;;6542:2:1;67129:47:0::1;::::0;::::1;6524:21:1::0;6581:2;6561:18;;;6554:30;6620:17;6600:18;;;6593:45;6655:18;;67129:47:0::1;6340:339:1::0;67129:47:0::1;67192:13;67187:131;67211:23:::0;;::::1;67187:131;;;67297:9;67260:17;:34;67278:8;;67287:5;67278:15;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;67260:34;;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;67260:34:0;:46;;;::::1;::::0;::::1;;::::0;;;::::1;::::0;;67236:7:::1;::::0;::::1;:::i;:::-;;;67187:131;;;;67024:301:::0;;;:::o;67333:144::-;52048:13;:11;:13::i;:::-;67428:5:::1;67399:17;:26;67417:7;52235:6:::0;;;;;52162:87;67417:7:::1;67399:26;;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;67399:26:0;:34;;;::::1;::::0;::::1;;::::0;;;::::1;::::0;;67444:25:::1;:23;:25::i;:::-;67333:144::o:0;50360:128::-;50456:14;;;50429:7;50456:14;;;:7;:14;;;;;47595;50456:24;47503:114;36007:104;36063:13;36096:7;36089:14;;;;;:::i;40331:436::-;33678:10;40424:4;37784:18;;;:11;:18;;;;;;;;;:27;;;;;;;;;;40424:4;;33678:10;40571:15;40551:16;:35;;40543:85;;;;-1:-1:-1;;;40543:85:0;;7275:2:1;40543:85:0;;;7257:21:1;7314:2;7294:18;;;7287:30;7353:34;7333:18;;;7326:62;7424:7;7404:18;;;7397:35;7449:19;;40543:85:0;7073:401:1;40543:85:0;40664:60;40673:5;40680:7;40708:15;40689:16;:34;40664:8;:60::i;37412:193::-;37491:4;33678:10;37547:28;33678:10;37564:2;37568:6;37547:9;:28::i;67744:565::-;52048:13;:11;:13::i;:::-;67878:21:::1;67918:10:::0;;67914:87:::1;;67949:36;:28;::::0;::::1;67978:6:::0;67949:28:::1;:36::i;:::-;68022:13;68017:274;68041:24:::0;;::::1;68017:274;;;68095:12;68117:9;;68127:5;68117:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;68171:30;::::0;;;;68195:4:::1;68171:30;::::0;::::1;3670:74:1::0;68095:39:0;;-1:-1:-1;68153:15:0::1;::::0;68171::::1;::::0;::::1;::::0;::::1;::::0;3643:18:1;;68171:30:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;68153:48:::0;-1:-1:-1;68224:11:0;;68220:55:::1;;68237:38;:18;::::0;::::1;68256:9:::0;68267:7;68237:18:::1;:38::i;:::-;-1:-1:-1::0;;68067:7:0::1;;68017:274;;;;67836:466;67744:565:::0;;;:::o;49719:575::-;49893:8;49874:15;:27;;49866:69;;;;-1:-1:-1;;;49866:69:0;;7870:2:1;49866:69:0;;;7852:21:1;7909:2;7889:18;;;7882:30;7948:31;7928:18;;;7921:59;7997:18;;49866:69:0;7668:353:1;49866:69:0;49948:18;48894:95;50008:5;50015:7;50024:5;50031:16;50041:5;50031:9;:16::i;:::-;49979:79;;;;;;8313:25:1;;;;8357:42;8435:15;;;8415:18;;;8408:43;8487:15;;;;8467:18;;;8460:43;8519:18;;;8512:34;8562:19;;;8555:35;8606:19;;;8599:35;;;8285:19;;49979:79:0;;;;;;;;;;;;49969:90;;;;;;49948:111;;50072:12;50087:28;50104:10;50087:16;:28::i;:::-;50072:43;;50128:14;50145:28;50159:4;50165:1;50168;50171;50145:13;:28::i;:::-;50128:45;;50202:5;50192:15;;:6;:15;;;50184:58;;;;-1:-1:-1;;;50184:58:0;;8847:2:1;50184:58:0;;;8829:21:1;8886:2;8866:18;;;8859:30;8925:32;8905:18;;;8898:60;8975:18;;50184:58:0;8645:354:1;50184:58:0;50255:31;50264:5;50271:7;50280:5;50255:8;:31::i;:::-;49855:439;;;49719:575;;;;;;;:::o;67485:251::-;52048:13;:11;:13::i;:::-;67567:16:::1;67586:7;52235:6:::0;;;;;52162:87;67586:7:::1;67604:27;::::0;;::::1;67634:5;67604:27:::0;;;:17:::1;:27;::::0;;;;;:35;;;;;::::1;::::0;;;67650:27;;::::1;::::0;;;;:34;;;;::::1;67604:35:::0;67650:34:::1;::::0;;67567:26;-1:-1:-1;67695:33:0::1;67668:8:::0;67695:23:::1;:33::i;:::-;67556:180;67485:251:::0;:::o;44324:346::-;44426:19;;;44418:68;;;;-1:-1:-1;;;44418:68:0;;9206:2:1;44418:68:0;;;9188:21:1;9245:2;9225:18;;;9218:30;9284:34;9264:18;;;9257:62;9355:6;9335:18;;;9328:34;9379:19;;44418:68:0;9004:400:1;44418:68:0;44505:21;;;44497:68;;;;-1:-1:-1;;;44497:68:0;;9611:2:1;44497:68:0;;;9593:21:1;9650:2;9630:18;;;9623:30;9689:34;9669:18;;;9662:62;9760:4;9740:18;;;9733:32;9782:19;;44497:68:0;9409:398:1;44497:68:0;44578:18;;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;44630:32;;1527:25:1;;;44630:32:0;;1500:18:1;44630:32:0;;;;;;;44324:346;;;:::o;52327:132::-;52235:6;;52391:23;52235:6;33678:10;52391:23;52383:68;;;;-1:-1:-1;;;52383:68:0;;10014:2:1;52383:68:0;;;9996:21:1;;;10033:18;;;10026:30;10092:34;10072:18;;;10065:62;10144:18;;52383:68:0;9812:356:1;44961:419:0;37784:18;;;;45062:24;37784:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;45149:17;45129:37;;45125:248;;45211:6;45191:16;:26;;45183:68;;;;-1:-1:-1;;;45183:68:0;;10375:2:1;45183:68:0;;;10357:21:1;10414:2;10394:18;;;10387:30;10453:31;10433:18;;;10426:59;10502:18;;45183:68:0;10173:353:1;45183:68:0;45295:51;45304:5;45311:7;45339:6;45320:16;:25;45295:8;:51::i;41237:806::-;41334:18;;;41326:68;;;;-1:-1:-1;;;41326:68:0;;10733:2:1;41326:68:0;;;10715:21:1;10772:2;10752:18;;;10745:30;10811:34;10791:18;;;10784:62;10882:7;10862:18;;;10855:35;10907:19;;41326:68:0;10531:401:1;41326:68:0;41413:16;;;41405:64;;;;-1:-1:-1;;;41405:64:0;;11139:2:1;41405:64:0;;;11121:21:1;11178:2;11158:18;;;11151:30;11217:34;11197:18;;;11190:62;11288:5;11268:18;;;11261:33;11311:19;;41405:64:0;10937:399:1;41405:64:0;41482:38;41503:4;41509:2;41513:6;41482:20;:38::i;:::-;41555:15;;;41533:19;41555:15;;;;;;;;;;;41589:21;;;;41581:72;;;;-1:-1:-1;;;41581:72:0;;11543:2:1;41581:72:0;;;11525:21:1;11582:2;11562:18;;;11555:30;11621:34;11601:18;;;11594:62;11692:8;11672:18;;;11665:36;11718:19;;41581:72:0;11341:402:1;41581:72:0;41689:15;;;;:9;:15;;;;;;;;;;;41707:20;;;41689:38;;41907:13;;;;;;;;;;:23;;;;;;41959:26;;1527:25:1;;;41907:13:0;;41959:26;;1500:18:1;41959:26:0;;;;;;;41998:37;55967:317;31691:314;31744:7;31776:4;31768:29;31785:12;31768:29;;:66;;;;;31818:16;31801:13;:33;31768:66;31764:234;;;-1:-1:-1;31858:24:0;;31691:314::o;31764:234::-;-1:-1:-1;32160:73:0;;;31944:10;32160:73;;;;14058:25:1;;;;31956:12:0;14099:18:1;;;14092:34;31970:15:0;14142:18:1;;;14135:34;32204:13:0;14185:18:1;;;14178:34;32227:4:0;14228:19:1;;;;14221:84;;;;32160:73:0;;;;;;;;;;14030:19:1;;;;32160:73:0;;;32150:84;;;;;;50618:115::o;52810:103::-;52048:13;:11;:13::i;:::-;52875:30:::1;52902:1;52875:18;:30::i;55967:317::-:0;56082:6;56057:21;:31;;56049:73;;;;-1:-1:-1;;;56049:73:0;;11950:2:1;56049:73:0;;;11932:21:1;11989:2;11969:18;;;11962:30;12028:31;12008:18;;;12001:59;12077:18;;56049:73:0;11748:353:1;56049:73:0;56136:12;56154:9;:14;;56176:6;56154:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56135:52;;;56206:7;56198:78;;;;-1:-1:-1;;;56198:78:0;;12518:2:1;56198:78:0;;;12500:21:1;12557:2;12537:18;;;12530:30;12596:34;12576:18;;;12569:62;12667:28;12647:18;;;12640:56;12713:19;;56198:78:0;12316:422:1;56198:78:0;56038:246;55967:317;;:::o;62704:177::-;62814:58;;;12947:42:1;12935:55;;62814:58:0;;;12917:74:1;13007:18;;;;13000:34;;;62814:58:0;;;;;;;;;;12890:18:1;;;;62814:58:0;;;;;;;;;;62837:23;62814:58;;;62787:86;;62807:5;;62787:19;:86::i;50871:207::-;50992:14;;;50931:15;50992:14;;;:7;:14;;;;;47595;;47732:1;47714:19;;;;47595:14;51053:17;50948:130;50871:207;;;:::o;32884:167::-;32961:7;32988:55;33010:20;:18;:20::i;:::-;33032:10;28589:57;;15247:66:1;28589:57:0;;;15235:79:1;15330:11;;;15323:27;;;15366:12;;;15359:28;;;28552:7:0;;15403:12:1;;28589:57:0;;;;;;;;;;;;28579:68;;;;;;28572:75;;28459:196;;;;;26811:236;26896:7;26917:17;26936:18;26958:25;26969:4;26975:1;26978;26981;26958:10;:25::i;:::-;26916:67;;;;26994:18;27006:5;26994:11;:18::i;:::-;-1:-1:-1;27030:9:0;-1:-1:-1;26811:236:0;;;;;;;:::o;53068:201::-;52048:13;:11;:13::i;:::-;53157:22:::1;::::0;::::1;53149:73;;;::::0;-1:-1:-1;;;53149:73:0;;13247:2:1;53149:73:0::1;::::0;::::1;13229:21:1::0;13286:2;13266:18;;;13259:30;13325:34;13305:18;;;13298:62;13396:8;13376:18;;;13369:36;13422:19;;53149:73:0::1;13045:402:1::0;53149:73:0::1;53233:28;53252:8;53233:18;:28::i;:::-;53068:201:::0;:::o;66644:215::-;66748:10;;;;;:37;;-1:-1:-1;66762:23:0;;;;;;;:17;:23;;;;;;;;66748:37;:56;;;-1:-1:-1;52235:6:0;;;66789:15;;;52235:6;;66789:15;66748:56;:80;;;-1:-1:-1;66808:20:0;;;;66748:80;66740:111;;;;-1:-1:-1;;;66740:111:0;;13654:2:1;66740:111:0;;;13636:21:1;13693:2;13673:18;;;13666:30;13732:20;13712:18;;;13705:48;13770:18;;66740:111:0;13452:342:1;53429:191:0;53522:6;;;;53539:17;;;;;;;;;;;53572:40;;53522:6;;;53539:17;53522:6;;53572:40;;53503:16;;53572:40;53492:128;53429:191;:::o;65476:716::-;65900:23;65926:69;65954:4;65926:69;;;;;;;;;;;;;;;;;65934:5;65926:27;;;;:69;;;;;:::i;:::-;66010:17;;65900:95;;-1:-1:-1;66010:21:0;66006:179;;66107:10;66096:30;;;;;;;;;;;;:::i;:::-;66088:85;;;;-1:-1:-1;;;66088:85:0;;14768:2:1;66088:85:0;;;14750:21:1;14807:2;14787:18;;;14780:30;14846:34;14826:18;;;14819:62;14917:12;14897:18;;;14890:40;14947:19;;66088:85:0;14566:406:1;25195:1477:0;25283:7;;26217:66;26204:79;;26200:163;;;-1:-1:-1;26316:1:0;;-1:-1:-1;26320:30:0;26300:51;;26200:163;26477:24;;;26460:14;26477:24;;;;;;;;;15653:25:1;;;15726:4;15714:17;;15694:18;;;15687:45;;;;15748:18;;;15741:34;;;15791:18;;;15784:34;;;26477:24:0;;15625:19:1;;26477:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;26477:24:0;;;;;;-1:-1:-1;;26516:20:0;;;26512:103;;26569:1;26573:29;26553:50;;;;;;;26512:103;26635:6;-1:-1:-1;26643:20:0;;-1:-1:-1;25195:1477:0;;;;;;;;:::o;20655:521::-;20733:20;20724:5;:29;;;;;;;;:::i;:::-;;20720:449;;20655:521;:::o;20720:449::-;20831:29;20822:5;:38;;;;;;;;:::i;:::-;;20818:351;;20877:34;;-1:-1:-1;;;20877:34:0;;16220:2:1;20877:34:0;;;16202:21:1;16259:2;16239:18;;;16232:30;16298:26;16278:18;;;16271:54;16342:18;;20877:34:0;16018:348:1;20818:351:0;20942:35;20933:5;:44;;;;;;;;:::i;:::-;;20929:240;;20994:41;;-1:-1:-1;;;20994:41:0;;16573:2:1;20994:41:0;;;16555:21:1;16612:2;16592:18;;;16585:30;16651:33;16631:18;;;16624:61;16702:18;;20994:41:0;16371:355:1;20929:240:0;21066:30;21057:5;:39;;;;;;;;:::i;:::-;;21053:116;;21113:44;;-1:-1:-1;;;21113:44:0;;16933:2:1;21113:44:0;;;16915:21:1;16972:2;16952:18;;;16945:30;17011:34;16991:18;;;16984:62;17082:4;17062:18;;;17055:32;17104:19;;21113:44:0;16731:398:1;57463:195:0;57566:12;57598:52;57620:6;57628:4;57634:1;57637:12;57566;58760;58774:23;58801:6;:11;;58820:5;58827:4;58801:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58759:73;;;;58850:69;58877:6;58885:7;58894:10;58906:12;58850:26;:69::i;:::-;58843:76;58515:412;-1:-1:-1;;;;;;;58515:412:0:o;60977:601::-;61119:12;61148:7;61144:427;;;61176:10;:17;61197:1;61176:22;61172:290;;55001:19;;;;61386:60;;;;-1:-1:-1;;;61386:60:0;;18035:2:1;61386:60:0;;;18017:21:1;18074:2;18054:18;;;18047:30;18113:31;18093:18;;;18086:59;18162:18;;61386:60:0;17833:353:1;61386:60:0;-1:-1:-1;61483:10:0;61476:17;;61144:427;61526:33;61534:10;61546:12;62247:17;;:21;62243:388;;62479:10;62473:17;62536:15;62523:10;62519:2;62515:19;62508:44;62243:388;62606:12;62599:20;;-1:-1:-1;;;62599:20:0;;;;;;;;:::i;14:250:1:-;99:1;109:113;123:6;120:1;117:13;109:113;;;199:11;;;193:18;180:11;;;173:39;145:2;138:10;109:113;;;-1:-1:-1;;256:1:1;238:16;;231:27;14:250::o;269:455::-;418:2;407:9;400:21;381:4;450:6;444:13;493:6;488:2;477:9;473:18;466:34;509:79;581:6;576:2;565:9;561:18;556:2;548:6;544:15;509:79;:::i;:::-;640:2;628:15;645:66;624:88;609:104;;;;715:2;605:113;;269:455;-1:-1:-1;;269:455:1:o;729:196::-;797:20;;857:42;846:54;;836:65;;826:93;;915:1;912;905:12;826:93;729:196;;;:::o;930:254::-;998:6;1006;1059:2;1047:9;1038:7;1034:23;1030:32;1027:52;;;1075:1;1072;1065:12;1027:52;1098:29;1117:9;1098:29;:::i;:::-;1088:39;1174:2;1159:18;;;;1146:32;;-1:-1:-1;;;930:254:1:o;1563:328::-;1640:6;1648;1656;1709:2;1697:9;1688:7;1684:23;1680:32;1677:52;;;1725:1;1722;1715:12;1677:52;1748:29;1767:9;1748:29;:::i;:::-;1738:39;;1796:38;1830:2;1819:9;1815:18;1796:38;:::i;:::-;1786:48;;1881:2;1870:9;1866:18;1853:32;1843:42;;1563:328;;;;;:::o;2267:367::-;2330:8;2340:6;2394:3;2387:4;2379:6;2375:17;2371:27;2361:55;;2412:1;2409;2402:12;2361:55;-1:-1:-1;2435:20:1;;2478:18;2467:30;;2464:50;;;2510:1;2507;2500:12;2464:50;2547:4;2539:6;2535:17;2523:29;;2607:3;2600:4;2590:6;2587:1;2583:14;2575:6;2571:27;2567:38;2564:47;2561:67;;;2624:1;2621;2614:12;2561:67;2267:367;;;;;:::o;2639:118::-;2725:5;2718:13;2711:21;2704:5;2701:32;2691:60;;2747:1;2744;2737:12;2762:566;2854:6;2862;2870;2923:2;2911:9;2902:7;2898:23;2894:32;2891:52;;;2939:1;2936;2929:12;2891:52;2979:9;2966:23;3012:18;3004:6;3001:30;2998:50;;;3044:1;3041;3034:12;2998:50;3083:70;3145:7;3136:6;3125:9;3121:22;3083:70;:::i;:::-;3172:8;;-1:-1:-1;3057:96:1;-1:-1:-1;;3257:2:1;3242:18;;3229:32;3270:28;3229:32;3270:28;:::i;:::-;3317:5;3307:15;;;2762:566;;;;;:::o;3333:186::-;3392:6;3445:2;3433:9;3424:7;3420:23;3416:32;3413:52;;;3461:1;3458;3451:12;3413:52;3484:29;3503:9;3484:29;:::i;:::-;3474:39;3333:186;-1:-1:-1;;;3333:186:1:o;3755:511::-;3850:6;3858;3866;3919:2;3907:9;3898:7;3894:23;3890:32;3887:52;;;3935:1;3932;3925:12;3887:52;3975:9;3962:23;4008:18;4000:6;3997:30;3994:50;;;4040:1;4037;4030:12;3994:50;4079:70;4141:7;4132:6;4121:9;4117:22;4079:70;:::i;:::-;4168:8;;-1:-1:-1;4053:96:1;-1:-1:-1;4222:38:1;;-1:-1:-1;4256:2:1;4241:18;;4222:38;:::i;:::-;4212:48;;3755:511;;;;;:::o;4271:693::-;4382:6;4390;4398;4406;4414;4422;4430;4483:3;4471:9;4462:7;4458:23;4454:33;4451:53;;;4500:1;4497;4490:12;4451:53;4523:29;4542:9;4523:29;:::i;:::-;4513:39;;4571:38;4605:2;4594:9;4590:18;4571:38;:::i;:::-;4561:48;;4656:2;4645:9;4641:18;4628:32;4618:42;;4707:2;4696:9;4692:18;4679:32;4669:42;;4761:3;4750:9;4746:19;4733:33;4806:4;4799:5;4795:16;4788:5;4785:27;4775:55;;4826:1;4823;4816:12;4775:55;4271:693;;;;-1:-1:-1;4271:693:1;;;;4849:5;4901:3;4886:19;;4873:33;;-1:-1:-1;4953:3:1;4938:19;;;4925:33;;4271:693;-1:-1:-1;;4271:693:1:o;4969:260::-;5037:6;5045;5098:2;5086:9;5077:7;5073:23;5069:32;5066:52;;;5114:1;5111;5104:12;5066:52;5137:29;5156:9;5137:29;:::i;:::-;5127:39;;5185:38;5219:2;5208:9;5204:18;5185:38;:::i;:::-;5175:48;;4969:260;;;;;:::o;5234:437::-;5313:1;5309:12;;;;5356;;;5377:61;;5431:4;5423:6;5419:17;5409:27;;5377:61;5484:2;5476:6;5473:14;5453:18;5450:38;5447:218;;5521:77;5518:1;5511:88;5622:4;5619:1;5612:15;5650:4;5647:1;5640:15;6021:184;6073:77;6070:1;6063:88;6170:4;6167:1;6160:15;6194:4;6191:1;6184:15;6210:125;6275:9;;;6296:10;;;6293:36;;;6309:18;;:::i;6684:184::-;6736:77;6733:1;6726:88;6833:4;6830:1;6823:15;6857:4;6854:1;6847:15;6873:195;6912:3;6943:66;6936:5;6933:77;6930:103;;7013:18;;:::i;:::-;-1:-1:-1;7060:1:1;7049:13;;6873:195::o;7479:184::-;7549:6;7602:2;7590:9;7581:7;7577:23;7573:32;7570:52;;;7618:1;7615;7608:12;7570:52;-1:-1:-1;7641:16:1;;7479:184;-1:-1:-1;7479:184:1:o;14316:245::-;14383:6;14436:2;14424:9;14415:7;14411:23;14407:32;14404:52;;;14452:1;14449;14442:12;14404:52;14484:9;14478:16;14503:28;14525:5;14503:28;:::i;15829:184::-;15881:77;15878:1;15871:88;15978:4;15975:1;15968:15;16002:4;15999:1;15992:15;17541:287;17670:3;17708:6;17702:13;17724:66;17783:6;17778:3;17771:4;17763:6;17759:17;17724:66;:::i;:::-;17806:16;;;;;17541:287;-1:-1:-1;;17541:287:1:o
Swarm Source
ipfs://d8073a37d727a292ae34d077129cdbdb8cd466a9ca0d20da9ee064903a23fd00
[ 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.