ERC-20
Overview
Max Total Supply
4,040,000 Avatar
Holders
0
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Avatar
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: UNLICENSED // OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant NOT_ENTERED = 1; uint256 private constant ENTERED = 2; uint256 private _status; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); constructor() { _status = NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } } // File: @openzeppelin/contracts/utils/math/SignedMath.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the 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 towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (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 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 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. uint256 twos = denominator & (0 - denominator); 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 (unsignedRoundsUp(rounding) && 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 * towards zero. * * 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @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), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; 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] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // File: @openzeppelin/contracts/utils/Pausable.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) pragma solidity ^0.8.20; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { bool private _paused; /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts/access/Ownable2Step.sol // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol) pragma solidity ^0.8.20; /** * @dev Contract module which provides access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is specified at deployment time in the constructor for `Ownable`. This * can later be changed with {transferOwnership} and {acceptOwnership}. * * This module is used through inheritance. It will make available all functions * from parent (Ownable). */ abstract contract Ownable2Step is Ownable { address private _pendingOwner; event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner); /** * @dev Returns the address of the pending owner. */ function pendingOwner() public view virtual returns (address) { return _pendingOwner; } /** * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual override onlyOwner { _pendingOwner = newOwner; emit OwnershipTransferStarted(owner(), newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner. * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual override { delete _pendingOwner; super._transferOwnership(newOwner); } /** * @dev The new owner accepts the ownership transfer. */ function acceptOwnership() public virtual { address sender = _msgSender(); if (pendingOwner() != sender) { revert OwnableUnauthorizedAccount(sender); } _transferOwnership(sender); } } // File: contracts/ERC404.sol pragma solidity ^0.8.20; abstract contract ERC721Receiver { function onERC721Received( address, address, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC721Receiver.onERC721Received.selector; } } /// @notice ERC404 /// A gas-efficient, mixed ERC20 / ERC721 implementation /// with native liquidity and fractionalization. /// /// This is an experimental standard designed to integrate /// with pre-existing ERC20 / ERC721 support as smoothly as /// possible. /// /// @dev In order to support full functionality of ERC20 and ERC721 /// supply assumptions are made that slightly constraint usage. /// Ensure decimals are sufficiently large (standard 18 recommended) /// as ids are effectively encoded in the lowest range of amounts. /// /// NFTs are spent on ERC20 functions in a FILO queue, this is by /// design. /// abstract contract ERC404 is Ownable2Step { // Events event ERC20Transfer( address indexed from, address indexed to, uint256 amount ); event Approval( address indexed owner, address indexed spender, uint256 amount ); event Transfer( address indexed from, address indexed to, uint256 indexed id ); event ERC721Approval( address indexed owner, address indexed spender, uint256 indexed id ); event ApprovalForAll( address indexed owner, address indexed operator, bool approved ); // Errors error NotFound(); error AlreadyExists(); error InvalidRecipient(); error InvalidSender(); error UnsafeRecipient(); error Unauthorized(); error InvalidOwner(); // Metadata /// @dev Token name string public name; /// @dev Token symbol string public symbol; /// @dev Decimals for fractional representation uint8 public immutable decimals; /// @dev Total supply in fractionalized representation uint256 public immutable totalSupply; /// @dev Current mint counter, monotonically increasing to ensure accurate ownership uint256 public minted; // Mappings /// @dev Balance of user in fractional representation mapping(address => uint256) public balanceOf; /// @dev Allowance of user in fractional representation mapping(address => mapping(address => uint256)) public allowance; /// @dev Approval in native representaion mapping(uint256 => address) public getApproved; /// @dev Approval for all in native representation mapping(address => mapping(address => bool)) public isApprovedForAll; /// @dev Owner of id in native representation mapping(uint256 => address) internal _ownerOf; /// @dev Array of owned ids in native representation mapping(address => uint256[]) internal _owned; /// @dev Tracks indices for the _owned mapping mapping(uint256 => uint256) internal _ownedIndex; /// @dev Addresses whitelisted from minting / burning for gas savings (pairs, routers, etc) mapping(address => bool) public whitelist; // Constructor constructor( string memory _name, string memory _symbol, uint8 _decimals, uint256 _totalNativeSupply, address _owner ) Ownable(_owner) { name = _name; symbol = _symbol; decimals = _decimals; totalSupply = _totalNativeSupply * (10 ** decimals); } /// @notice Initialization function to set pairs / etc /// saving gas by avoiding mint / burn on unnecessary targets function setWhitelist(address target, bool state) public onlyOwner { whitelist[target] = state; } /// @notice Function to find owner of a given native token function ownerOf(uint256 id) public view virtual returns (address owner) { owner = _ownerOf[id]; if (owner == address(0)) { revert NotFound(); } } /// @notice tokenURI must be implemented by child contract function tokenURI(uint256 id) public view virtual returns (string memory); /// @notice Function for token approvals /// @dev This function assumes id / native if amount less than or equal to current max id function approve( address spender, uint256 amountOrId ) public virtual returns (bool) { if (amountOrId <= minted && amountOrId > 0) { address owner = _ownerOf[amountOrId]; if (msg.sender != owner && !isApprovedForAll[owner][msg.sender]) { revert Unauthorized(); } getApproved[amountOrId] = spender; emit Approval(owner, spender, amountOrId); } else { allowance[msg.sender][spender] = amountOrId; emit Approval(msg.sender, spender, amountOrId); } return true; } /// @notice Function native approvals function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } /// @notice Function for mixed transfers /// @dev This function assumes id / native if amount less than or equal to current max id function transferFrom( address from, address to, uint256 amountOrId ) public virtual { if (amountOrId <= minted) { if (from != _ownerOf[amountOrId]) { revert InvalidSender(); } if (to == address(0)) { revert InvalidRecipient(); } if ( msg.sender != from && !isApprovedForAll[from][msg.sender] && msg.sender != getApproved[amountOrId] ) { revert Unauthorized(); } balanceOf[from] -= _getUnit(); unchecked { balanceOf[to] += _getUnit(); } _ownerOf[amountOrId] = to; delete getApproved[amountOrId]; // update _owned for sender uint256 updatedId = _owned[from][_owned[from].length - 1]; _owned[from][_ownedIndex[amountOrId]] = updatedId; // pop _owned[from].pop(); // update index for the moved id _ownedIndex[updatedId] = _ownedIndex[amountOrId]; // push token to to owned _owned[to].push(amountOrId); // update index for to owned _ownedIndex[amountOrId] = _owned[to].length - 1; emit Transfer(from, to, amountOrId); emit ERC20Transfer(from, to, _getUnit()); } else { uint256 allowed = allowance[from][msg.sender]; if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amountOrId; _transfer(from, to, amountOrId); } } /// @notice Function for fractional transfers function transfer( address to, uint256 amount ) public virtual returns (bool) { return _transfer(msg.sender, to, amount); } /// @notice Function for native transfers with contract support function safeTransferFrom( address from, address to, uint256 id ) public virtual { transferFrom(from, to, id); if ( to.code.length != 0 && ERC721Receiver(to).onERC721Received(msg.sender, from, id, "") != ERC721Receiver.onERC721Received.selector ) { revert UnsafeRecipient(); } } /// @notice Function for native transfers with contract support and callback data function safeTransferFrom( address from, address to, uint256 id, bytes calldata data ) public virtual { transferFrom(from, to, id); if ( to.code.length != 0 && ERC721Receiver(to).onERC721Received(msg.sender, from, id, data) != ERC721Receiver.onERC721Received.selector ) { revert UnsafeRecipient(); } } /// @notice Internal function for fractional transfers function _transfer( address from, address to, uint256 amount ) internal virtual returns (bool) { uint256 unit = _getUnit(); uint256 balanceBeforeSender = balanceOf[from]; uint256 balanceBeforeReceiver = balanceOf[to]; balanceOf[from] -= amount; unchecked { balanceOf[to] += amount; } // Skip burn for certain addresses to save gas if (!whitelist[from]) { uint256 tokens_to_burn = (balanceBeforeSender / unit) - (balanceOf[from] / unit); for (uint256 i = 0; i < tokens_to_burn; i++) { _burn(from); } } // Skip minting for certain addresses to save gas if (!whitelist[to]) { uint256 tokens_to_mint = (balanceOf[to] / unit) - (balanceBeforeReceiver / unit); for (uint256 i = 0; i < tokens_to_mint; i++) { _mint(to); } } emit ERC20Transfer(from, to, amount); return true; } // Internal utility logic function _getUnit() internal view returns (uint256) { return 10000 * 10 ** decimals; } function _mint(address to) internal virtual { if (to == address(0)) { revert InvalidRecipient(); } unchecked { minted++; } uint256 id = minted; if (_ownerOf[id] != address(0)) { revert AlreadyExists(); } _ownerOf[id] = to; _owned[to].push(id); _ownedIndex[id] = _owned[to].length - 1; emit Transfer(address(0), to, id); } function _burn(address from) internal virtual { if (from == address(0)) { revert InvalidSender(); } uint256 id = _owned[from][_owned[from].length - 1]; _owned[from].pop(); delete _ownedIndex[id]; delete _ownerOf[id]; delete getApproved[id]; emit Transfer(from, address(0), id); } function _setNameSymbol( string memory _name, string memory _symbol ) internal { name = _name; symbol = _symbol; } } contract Avatar is ERC404, Pausable, ReentrancyGuard { string public baseTokenURI; mapping (address => bool) public limitList; constructor() ERC404("Avatar", "Avatar", 18, 4040000, msg.sender) { balanceOf[msg.sender] = 4040000 * 10 ** 18; baseTokenURI = "ipfs://bafkreifytrdjuu2fqshwwbhf3sepl7cr3c7a7vni63n7ftnnsw3dag7ofy"; } function _mint( address to ) internal override whenNotPaused{ return super._mint(to); } function _transfer( address from, address to, uint256 amount ) internal override virtual whenNotPaused returns (bool){ require(!limitList[from],"black!"); require(!limitList[to],"black!"); return super._transfer(from, to, amount); } function transferFrom( address from, address to, uint256 amountOrId ) public override { require(!limitList[from],"black!"); require(!limitList[to],"black!"); if (amountOrId <= minted) { if (from != _ownerOf[amountOrId]) { revert InvalidSender(); } if (to == address(0)) { revert InvalidRecipient(); } if ( msg.sender != from && !isApprovedForAll[from][msg.sender] && msg.sender != getApproved[amountOrId] ) { revert Unauthorized(); } balanceOf[from] -= _getUnit(); unchecked { balanceOf[to] += _getUnit(); } _ownerOf[amountOrId] = to; delete getApproved[amountOrId]; // update _owned for sender uint256 updatedId = _owned[from][_owned[from].length - 1]; _owned[from][_ownedIndex[amountOrId]] = updatedId; // pop _owned[from].pop(); // update index for the moved id _ownedIndex[updatedId] = _ownedIndex[amountOrId]; // push token to to owned _owned[to].push(amountOrId); // update index for to owned _ownedIndex[amountOrId] = _owned[to].length - 1; emit Transfer(from, to, amountOrId); emit ERC20Transfer(from, to, _getUnit()); } else { uint256 allowed = allowance[from][msg.sender]; if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amountOrId; _transfer(from, to, amountOrId); } } function setTokenURI(string memory _tokenURI) public onlyOwner { baseTokenURI = _tokenURI; } function setLimitList(address[] calldata addresses, bool status) external onlyOwner { require(addresses.length < 201); for (uint256 i; i < addresses.length; ++i) { limitList[addresses[i]] = status; } } function setNameSymbol( string memory _name, string memory _symbol ) public onlyOwner { _setNameSymbol(_name, _symbol); } function tokenURI(uint256 id) public view override returns (string memory) { return baseTokenURI; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyExists","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"NotFound","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnsafeRecipient","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","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":"amount","type":"uint256"}],"name":"ERC20Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"ERC721Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amountOrId","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"limitList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setLimitList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"setNameSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountOrId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c06040523480156200001157600080fd5b5060408051808201825260068082526520bb30ba30b960d11b6020808401829052845180860190955291845290830152906012623da5403380806200007057604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6200007b8162000121565b5060026200008a868262000234565b50600362000099858262000234565b5060ff83166080819052620000b090600a62000415565b620000bc90836200042d565b60a0525050600d805460ff1916905550506001600e5550336000908152600560209081526040918290206a035780d6be5aa14d0000009055815160808101909252604280835290620020f090830139600f906200011a908262000234565b5062000447565b600180546001600160a01b03191690556200013c816200013f565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001ba57607f821691505b602082108103620001db57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200022f57600081815260208120601f850160051c810160208610156200020a5750805b601f850160051c820191505b818110156200022b5782815560010162000216565b5050505b505050565b81516001600160401b038111156200025057620002506200018f565b6200026881620002618454620001a5565b84620001e1565b602080601f831160018114620002a05760008415620002875750858301515b600019600386901b1c1916600185901b1785556200022b565b600085815260208120601f198616915b82811015620002d157888601518255948401946001909101908401620002b0565b5085821015620002f05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620003575781600019048211156200033b576200033b62000300565b808516156200034957918102915b93841c93908002906200031b565b509250929050565b60008262000370575060016200040f565b816200037f575060006200040f565b8160018114620003985760028114620003a357620003c3565b60019150506200040f565b60ff841115620003b757620003b762000300565b50506001821b6200040f565b5060208310610133831016604e8410600b8410161715620003e8575081810a6200040f565b620003f4838362000316565b80600019048211156200040b576200040b62000300565b0290505b92915050565b60006200042660ff8416836200035f565b9392505050565b80820281158282048414176200040f576200040f62000300565b60805160a051611c7c6200047460003960006102660152600081816102b00152610f650152611c7c6000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c8063883f68bf11610104578063c87b56dd116100a2578063e0df5b6f11610071578063e0df5b6f14610465578063e30c397814610478578063e985e9c514610489578063f2fde38b146104b757600080fd5b8063c87b56dd146103fc578063d3840b471461040f578063d547cfb714610432578063dd62ed3e1461043a57600080fd5b80639b19251a116100de5780639b19251a146103a0578063a22cb465146103c3578063a9059cbb146103d6578063b88d4fde146103e957600080fd5b8063883f68bf146103745780638da5cb5b1461038757806395d89b411461039857600080fd5b80634f02c4201161017c5780636352211e1161014b5780636352211e1461033157806370a0823114610344578063715018a61461036457806379ba50971461036c57600080fd5b80634f02c420146102f7578063504334c21461030057806353d6fd59146103135780635c975abb1461032657600080fd5b806318160ddd116101b857806318160ddd1461026157806323b872dd14610296578063313ce567146102ab57806342842e0e146102e457600080fd5b806306fdde03146101df578063081812fc146101fd578063095ea7b31461023e575b600080fd5b6101e76104ca565b6040516101f491906114ff565b60405180910390f35b61022661020b36600461154d565b6007602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101f4565b61025161024c36600461157d565b610558565b60405190151581526020016101f4565b6102887f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016101f4565b6102a96102a43660046115a7565b6106a9565b005b6102d27f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff90911681526020016101f4565b6102a96102f23660046115a7565b610aad565b61028860045481565b6102a961030e366004611686565b610b82565b6102a96103213660046116fa565b610b98565b600d5460ff16610251565b61022661033f36600461154d565b610bcb565b61028861035236600461172d565b60056020526000908152604090205481565b6102a9610c06565b6102a9610c1a565b6102a9610382366004611748565b610c5e565b6000546001600160a01b0316610226565b6101e7610ce8565b6102516103ae36600461172d565b600c6020526000908152604090205460ff1681565b6102a96103d13660046116fa565b610cf5565b6102516103e436600461157d565b610d61565b6102a96103f73660046117cc565b610d75565b6101e761040a36600461154d565b610e38565b61025161041d36600461172d565b60106020526000908152604090205460ff1681565b6101e7610ecc565b610288610448366004611867565b600660209081526000928352604080842090915290825290205481565b6102a9610473366004611891565b610ed9565b6001546001600160a01b0316610226565b610251610497366004611867565b600860209081526000928352604080842090915290825290205460ff1681565b6102a96104c536600461172d565b610eed565b600280546104d7906118c6565b80601f0160208091040260200160405190810160405280929190818152602001828054610503906118c6565b80156105505780601f1061052557610100808354040283529160200191610550565b820191906000526020600020905b81548152906001019060200180831161053357829003601f168201915b505050505081565b6000600454821115801561056c5750600082115b15610643576000828152600960205260409020546001600160a01b03163381148015906105bd57506001600160a01b038116600090815260086020908152604080832033845290915290205460ff16155b156105da576040516282b42960e81b815260040160405180910390fd5b60008381526007602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35061069f565b3360008181526006602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b6001600160a01b03831660009081526010602052604090205460ff16156106eb5760405162461bcd60e51b81526004016106e290611900565b60405180910390fd5b6001600160a01b03821660009081526010602052604090205460ff16156107245760405162461bcd60e51b81526004016106e290611900565b6004548111610a3e576000818152600960205260409020546001600160a01b0384811691161461076757604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b03821661078e57604051634e46966960e11b815260040160405180910390fd5b336001600160a01b038416148015906107cb57506001600160a01b038316600090815260086020908152604080832033845290915290205460ff16155b80156107ee57506000818152600760205260409020546001600160a01b03163314155b1561080b576040516282b42960e81b815260040160405180910390fd5b610813610f5e565b6001600160a01b0384166000908152600560205260408120805490919061083b908490611936565b909155506108499050610f5e565b6001600160a01b03808416600081815260056020908152604080832080549096019095558582526009815284822080546001600160a01b031990811690941790556007815284822080549093169092559186168252600a905290812080546108b390600190611936565b815481106108c3576108c3611949565b60009182526020808320909101546001600160a01b0387168352600a82526040808420868552600b9093529092205481549293508392811061090757610907611949565b60009182526020808320909101929092556001600160a01b0386168152600a9091526040902080548061093c5761093c61195f565b600082815260208082208301600019908101839055909201909255838252600b8152604080832054848452818420556001600160a01b038616808452600a835290832080546001818101835582865293852001869055925290546109a09190611936565b6000838152600b602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487610a27610f5e565b60405190815260200160405180910390a350505050565b6001600160a01b03831660009081526006602090815260408083203384529091529020546000198114610a9a57610a758282611936565b6001600160a01b03851660009081526006602090815260408083203384529091529020555b610aa5848484610f9c565b50505b505050565b610ab88383836106a9565b6001600160a01b0382163b15801590610b645750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610b33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b579190611975565b6001600160e01b03191614155b15610aa857604051633da6393160e01b815260040160405180910390fd5b610b8a61102b565b610b948282611058565b5050565b610ba061102b565b6001600160a01b03919091166000908152600c60205260409020805460ff1916911515919091179055565b6000818152600960205260409020546001600160a01b031680610c015760405163c5723b5160e01b815260040160405180910390fd5b919050565b610c0e61102b565b610c186000611071565b565b60015433906001600160a01b03168114610c525760405163118cdaa760e01b81526001600160a01b03821660048201526024016106e2565b610c5b81611071565b50565b610c6661102b565b60c98210610c7357600080fd5b60005b82811015610ce2578160106000868685818110610c9557610c95611949565b9050602002016020810190610caa919061172d565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055610cdb8161199f565b9050610c76565b50505050565b600380546104d7906118c6565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610d6e338484610f9c565b9392505050565b610d808585856106a9565b6001600160a01b0384163b15801590610e1a5750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610dca9033908a908990899089906004016119b8565b6020604051808303816000875af1158015610de9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0d9190611975565b6001600160e01b03191614155b15610aa557604051633da6393160e01b815260040160405180910390fd5b6060600f8054610e47906118c6565b80601f0160208091040260200160405190810160405280929190818152602001828054610e73906118c6565b8015610ec05780601f10610e9557610100808354040283529160200191610ec0565b820191906000526020600020905b815481529060010190602001808311610ea357829003601f168201915b50505050509050919050565b600f80546104d7906118c6565b610ee161102b565b600f610b948282611a5a565b610ef561102b565b600180546001600160a01b0383166001600160a01b03199091168117909155610f266000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6000610f8b7f0000000000000000000000000000000000000000000000000000000000000000600a611bfe565b610f9790612710611c0d565b905090565b6000610fa661108a565b6001600160a01b03841660009081526010602052604090205460ff1615610fdf5760405162461bcd60e51b81526004016106e290611900565b6001600160a01b03831660009081526010602052604090205460ff16156110185760405162461bcd60e51b81526004016106e290611900565b6110238484846110ae565b949350505050565b6000546001600160a01b03163314610c185760405163118cdaa760e01b81523360048201526024016106e2565b60026110648382611a5a565b506003610aa88282611a5a565b600180546001600160a01b0319169055610c5b81611270565b600d5460ff1615610c185760405163d93c066560e01b815260040160405180910390fd5b6000806110b9610f5e565b6001600160a01b038087166000818152600560205260408082208054948a16835290822054928252939450919290918691906110f58386611936565b90915550506001600160a01b03808716600090815260056020908152604080832080548a019055928a168252600c9052205460ff16611191576001600160a01b038716600090815260056020526040812054611152908590611c24565b61115c8585611c24565b6111669190611936565b905060005b8181101561118e5761117c896112c0565b806111868161199f565b91505061116b565b50505b6001600160a01b0386166000908152600c602052604090205460ff166112165760006111bd8483611c24565b6001600160a01b0388166000908152600560205260409020546111e1908690611c24565b6111eb9190611936565b905060005b8181101561121357611201886113e8565b8061120b8161199f565b9150506111f0565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e0314878760405161125b91815260200190565b60405180910390a35060019695505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381166112e757604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381166000908152600a60205260408120805461130d90600190611936565b8154811061131d5761131d611949565b90600052602060002001549050600a6000836001600160a01b03166001600160a01b0316815260200190815260200160002080548061135e5761135e61195f565b600082815260208082208301600019908101839055909201909255828252600b815260408083208390556009825280832080546001600160a01b031990811690915560079092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6113f061108a565b610c5b816001600160a01b03811661141b57604051634e46966960e11b815260040160405180910390fd5b60048054600101908190556000818152600960205260409020546001600160a01b03161561145c5760405163119b4fd360e11b815260040160405180910390fd5b600081815260096020908152604080832080546001600160a01b0319166001600160a01b038716908117909155808452600a835290832080546001818101835582865293852001859055925290546114b49190611936565b6000828152600b602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060208083528351808285015260005b8181101561152c57858101830151858201604001528201611510565b506000604082860101526040601f19601f8301168501019250505092915050565b60006020828403121561155f57600080fd5b5035919050565b80356001600160a01b0381168114610c0157600080fd5b6000806040838503121561159057600080fd5b61159983611566565b946020939093013593505050565b6000806000606084860312156115bc57600080fd5b6115c584611566565b92506115d360208501611566565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261160a57600080fd5b813567ffffffffffffffff80821115611625576116256115e3565b604051601f8301601f19908116603f0116810190828211818310171561164d5761164d6115e3565b8160405283815286602085880101111561166657600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561169957600080fd5b823567ffffffffffffffff808211156116b157600080fd5b6116bd868387016115f9565b935060208501359150808211156116d357600080fd5b506116e0858286016115f9565b9150509250929050565b80358015158114610c0157600080fd5b6000806040838503121561170d57600080fd5b61171683611566565b9150611724602084016116ea565b90509250929050565b60006020828403121561173f57600080fd5b610d6e82611566565b60008060006040848603121561175d57600080fd5b833567ffffffffffffffff8082111561177557600080fd5b818601915086601f83011261178957600080fd5b81358181111561179857600080fd5b8760208260051b85010111156117ad57600080fd5b6020928301955093506117c391860190506116ea565b90509250925092565b6000806000806000608086880312156117e457600080fd5b6117ed86611566565b94506117fb60208701611566565b935060408601359250606086013567ffffffffffffffff8082111561181f57600080fd5b818801915088601f83011261183357600080fd5b81358181111561184257600080fd5b89602082850101111561185457600080fd5b9699959850939650602001949392505050565b6000806040838503121561187a57600080fd5b61188383611566565b915061172460208401611566565b6000602082840312156118a357600080fd5b813567ffffffffffffffff8111156118ba57600080fd5b611023848285016115f9565b600181811c908216806118da57607f821691505b6020821081036118fa57634e487b7160e01b600052602260045260246000fd5b50919050565b602080825260069082015265626c61636b2160d01b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b818103818111156106a3576106a3611920565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b60006020828403121561198757600080fd5b81516001600160e01b031981168114610d6e57600080fd5b6000600182016119b1576119b1611920565b5060010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b601f821115610aa857600081815260208120601f850160051c81016020861015611a335750805b601f850160051c820191505b81811015611a5257828155600101611a3f565b505050505050565b815167ffffffffffffffff811115611a7457611a746115e3565b611a8881611a8284546118c6565b84611a0c565b602080601f831160018114611abd5760008415611aa55750858301515b600019600386901b1c1916600185901b178555611a52565b600085815260208120601f198616915b82811015611aec57888601518255948401946001909101908401611acd565b5085821015611b0a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600181815b80851115611b55578160001904821115611b3b57611b3b611920565b80851615611b4857918102915b93841c9390800290611b1f565b509250929050565b600082611b6c575060016106a3565b81611b79575060006106a3565b8160018114611b8f5760028114611b9957611bb5565b60019150506106a3565b60ff841115611baa57611baa611920565b50506001821b6106a3565b5060208310610133831016604e8410600b8410161715611bd8575081810a6106a3565b611be28383611b1a565b8060001904821115611bf657611bf6611920565b029392505050565b6000610d6e60ff841683611b5d565b80820281158282048414176106a3576106a3611920565b600082611c4157634e487b7160e01b600052601260045260246000fd5b50049056fea264697066735822122088a6d12c8aacccc4eaab0576323a5c61ee5e945c05784eeb7c7081eca1e8fe6664736f6c63430008140033697066733a2f2f6261666b72656966797472646a757532667173687777626866337365706c3763723363376137766e6936336e3766746e6e737733646167376f6679
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101da5760003560e01c8063883f68bf11610104578063c87b56dd116100a2578063e0df5b6f11610071578063e0df5b6f14610465578063e30c397814610478578063e985e9c514610489578063f2fde38b146104b757600080fd5b8063c87b56dd146103fc578063d3840b471461040f578063d547cfb714610432578063dd62ed3e1461043a57600080fd5b80639b19251a116100de5780639b19251a146103a0578063a22cb465146103c3578063a9059cbb146103d6578063b88d4fde146103e957600080fd5b8063883f68bf146103745780638da5cb5b1461038757806395d89b411461039857600080fd5b80634f02c4201161017c5780636352211e1161014b5780636352211e1461033157806370a0823114610344578063715018a61461036457806379ba50971461036c57600080fd5b80634f02c420146102f7578063504334c21461030057806353d6fd59146103135780635c975abb1461032657600080fd5b806318160ddd116101b857806318160ddd1461026157806323b872dd14610296578063313ce567146102ab57806342842e0e146102e457600080fd5b806306fdde03146101df578063081812fc146101fd578063095ea7b31461023e575b600080fd5b6101e76104ca565b6040516101f491906114ff565b60405180910390f35b61022661020b36600461154d565b6007602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101f4565b61025161024c36600461157d565b610558565b60405190151581526020016101f4565b6102887f000000000000000000000000000000000000000000035780d6be5aa14d00000081565b6040519081526020016101f4565b6102a96102a43660046115a7565b6106a9565b005b6102d27f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff90911681526020016101f4565b6102a96102f23660046115a7565b610aad565b61028860045481565b6102a961030e366004611686565b610b82565b6102a96103213660046116fa565b610b98565b600d5460ff16610251565b61022661033f36600461154d565b610bcb565b61028861035236600461172d565b60056020526000908152604090205481565b6102a9610c06565b6102a9610c1a565b6102a9610382366004611748565b610c5e565b6000546001600160a01b0316610226565b6101e7610ce8565b6102516103ae36600461172d565b600c6020526000908152604090205460ff1681565b6102a96103d13660046116fa565b610cf5565b6102516103e436600461157d565b610d61565b6102a96103f73660046117cc565b610d75565b6101e761040a36600461154d565b610e38565b61025161041d36600461172d565b60106020526000908152604090205460ff1681565b6101e7610ecc565b610288610448366004611867565b600660209081526000928352604080842090915290825290205481565b6102a9610473366004611891565b610ed9565b6001546001600160a01b0316610226565b610251610497366004611867565b600860209081526000928352604080842090915290825290205460ff1681565b6102a96104c536600461172d565b610eed565b600280546104d7906118c6565b80601f0160208091040260200160405190810160405280929190818152602001828054610503906118c6565b80156105505780601f1061052557610100808354040283529160200191610550565b820191906000526020600020905b81548152906001019060200180831161053357829003601f168201915b505050505081565b6000600454821115801561056c5750600082115b15610643576000828152600960205260409020546001600160a01b03163381148015906105bd57506001600160a01b038116600090815260086020908152604080832033845290915290205460ff16155b156105da576040516282b42960e81b815260040160405180910390fd5b60008381526007602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35061069f565b3360008181526006602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b6001600160a01b03831660009081526010602052604090205460ff16156106eb5760405162461bcd60e51b81526004016106e290611900565b60405180910390fd5b6001600160a01b03821660009081526010602052604090205460ff16156107245760405162461bcd60e51b81526004016106e290611900565b6004548111610a3e576000818152600960205260409020546001600160a01b0384811691161461076757604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b03821661078e57604051634e46966960e11b815260040160405180910390fd5b336001600160a01b038416148015906107cb57506001600160a01b038316600090815260086020908152604080832033845290915290205460ff16155b80156107ee57506000818152600760205260409020546001600160a01b03163314155b1561080b576040516282b42960e81b815260040160405180910390fd5b610813610f5e565b6001600160a01b0384166000908152600560205260408120805490919061083b908490611936565b909155506108499050610f5e565b6001600160a01b03808416600081815260056020908152604080832080549096019095558582526009815284822080546001600160a01b031990811690941790556007815284822080549093169092559186168252600a905290812080546108b390600190611936565b815481106108c3576108c3611949565b60009182526020808320909101546001600160a01b0387168352600a82526040808420868552600b9093529092205481549293508392811061090757610907611949565b60009182526020808320909101929092556001600160a01b0386168152600a9091526040902080548061093c5761093c61195f565b600082815260208082208301600019908101839055909201909255838252600b8152604080832054848452818420556001600160a01b038616808452600a835290832080546001818101835582865293852001869055925290546109a09190611936565b6000838152600b602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487610a27610f5e565b60405190815260200160405180910390a350505050565b6001600160a01b03831660009081526006602090815260408083203384529091529020546000198114610a9a57610a758282611936565b6001600160a01b03851660009081526006602090815260408083203384529091529020555b610aa5848484610f9c565b50505b505050565b610ab88383836106a9565b6001600160a01b0382163b15801590610b645750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610b33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b579190611975565b6001600160e01b03191614155b15610aa857604051633da6393160e01b815260040160405180910390fd5b610b8a61102b565b610b948282611058565b5050565b610ba061102b565b6001600160a01b03919091166000908152600c60205260409020805460ff1916911515919091179055565b6000818152600960205260409020546001600160a01b031680610c015760405163c5723b5160e01b815260040160405180910390fd5b919050565b610c0e61102b565b610c186000611071565b565b60015433906001600160a01b03168114610c525760405163118cdaa760e01b81526001600160a01b03821660048201526024016106e2565b610c5b81611071565b50565b610c6661102b565b60c98210610c7357600080fd5b60005b82811015610ce2578160106000868685818110610c9557610c95611949565b9050602002016020810190610caa919061172d565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055610cdb8161199f565b9050610c76565b50505050565b600380546104d7906118c6565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610d6e338484610f9c565b9392505050565b610d808585856106a9565b6001600160a01b0384163b15801590610e1a5750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610dca9033908a908990899089906004016119b8565b6020604051808303816000875af1158015610de9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e0d9190611975565b6001600160e01b03191614155b15610aa557604051633da6393160e01b815260040160405180910390fd5b6060600f8054610e47906118c6565b80601f0160208091040260200160405190810160405280929190818152602001828054610e73906118c6565b8015610ec05780601f10610e9557610100808354040283529160200191610ec0565b820191906000526020600020905b815481529060010190602001808311610ea357829003601f168201915b50505050509050919050565b600f80546104d7906118c6565b610ee161102b565b600f610b948282611a5a565b610ef561102b565b600180546001600160a01b0383166001600160a01b03199091168117909155610f266000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6000610f8b7f0000000000000000000000000000000000000000000000000000000000000012600a611bfe565b610f9790612710611c0d565b905090565b6000610fa661108a565b6001600160a01b03841660009081526010602052604090205460ff1615610fdf5760405162461bcd60e51b81526004016106e290611900565b6001600160a01b03831660009081526010602052604090205460ff16156110185760405162461bcd60e51b81526004016106e290611900565b6110238484846110ae565b949350505050565b6000546001600160a01b03163314610c185760405163118cdaa760e01b81523360048201526024016106e2565b60026110648382611a5a565b506003610aa88282611a5a565b600180546001600160a01b0319169055610c5b81611270565b600d5460ff1615610c185760405163d93c066560e01b815260040160405180910390fd5b6000806110b9610f5e565b6001600160a01b038087166000818152600560205260408082208054948a16835290822054928252939450919290918691906110f58386611936565b90915550506001600160a01b03808716600090815260056020908152604080832080548a019055928a168252600c9052205460ff16611191576001600160a01b038716600090815260056020526040812054611152908590611c24565b61115c8585611c24565b6111669190611936565b905060005b8181101561118e5761117c896112c0565b806111868161199f565b91505061116b565b50505b6001600160a01b0386166000908152600c602052604090205460ff166112165760006111bd8483611c24565b6001600160a01b0388166000908152600560205260409020546111e1908690611c24565b6111eb9190611936565b905060005b8181101561121357611201886113e8565b8061120b8161199f565b9150506111f0565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e0314878760405161125b91815260200190565b60405180910390a35060019695505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381166112e757604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381166000908152600a60205260408120805461130d90600190611936565b8154811061131d5761131d611949565b90600052602060002001549050600a6000836001600160a01b03166001600160a01b0316815260200190815260200160002080548061135e5761135e61195f565b600082815260208082208301600019908101839055909201909255828252600b815260408083208390556009825280832080546001600160a01b031990811690915560079092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6113f061108a565b610c5b816001600160a01b03811661141b57604051634e46966960e11b815260040160405180910390fd5b60048054600101908190556000818152600960205260409020546001600160a01b03161561145c5760405163119b4fd360e11b815260040160405180910390fd5b600081815260096020908152604080832080546001600160a01b0319166001600160a01b038716908117909155808452600a835290832080546001818101835582865293852001859055925290546114b49190611936565b6000828152600b602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060208083528351808285015260005b8181101561152c57858101830151858201604001528201611510565b506000604082860101526040601f19601f8301168501019250505092915050565b60006020828403121561155f57600080fd5b5035919050565b80356001600160a01b0381168114610c0157600080fd5b6000806040838503121561159057600080fd5b61159983611566565b946020939093013593505050565b6000806000606084860312156115bc57600080fd5b6115c584611566565b92506115d360208501611566565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261160a57600080fd5b813567ffffffffffffffff80821115611625576116256115e3565b604051601f8301601f19908116603f0116810190828211818310171561164d5761164d6115e3565b8160405283815286602085880101111561166657600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561169957600080fd5b823567ffffffffffffffff808211156116b157600080fd5b6116bd868387016115f9565b935060208501359150808211156116d357600080fd5b506116e0858286016115f9565b9150509250929050565b80358015158114610c0157600080fd5b6000806040838503121561170d57600080fd5b61171683611566565b9150611724602084016116ea565b90509250929050565b60006020828403121561173f57600080fd5b610d6e82611566565b60008060006040848603121561175d57600080fd5b833567ffffffffffffffff8082111561177557600080fd5b818601915086601f83011261178957600080fd5b81358181111561179857600080fd5b8760208260051b85010111156117ad57600080fd5b6020928301955093506117c391860190506116ea565b90509250925092565b6000806000806000608086880312156117e457600080fd5b6117ed86611566565b94506117fb60208701611566565b935060408601359250606086013567ffffffffffffffff8082111561181f57600080fd5b818801915088601f83011261183357600080fd5b81358181111561184257600080fd5b89602082850101111561185457600080fd5b9699959850939650602001949392505050565b6000806040838503121561187a57600080fd5b61188383611566565b915061172460208401611566565b6000602082840312156118a357600080fd5b813567ffffffffffffffff8111156118ba57600080fd5b611023848285016115f9565b600181811c908216806118da57607f821691505b6020821081036118fa57634e487b7160e01b600052602260045260246000fd5b50919050565b602080825260069082015265626c61636b2160d01b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b818103818111156106a3576106a3611920565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b60006020828403121561198757600080fd5b81516001600160e01b031981168114610d6e57600080fd5b6000600182016119b1576119b1611920565b5060010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b601f821115610aa857600081815260208120601f850160051c81016020861015611a335750805b601f850160051c820191505b81811015611a5257828155600101611a3f565b505050505050565b815167ffffffffffffffff811115611a7457611a746115e3565b611a8881611a8284546118c6565b84611a0c565b602080601f831160018114611abd5760008415611aa55750858301515b600019600386901b1c1916600185901b178555611a52565b600085815260208120601f198616915b82811015611aec57888601518255948401946001909101908401611acd565b5085821015611b0a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600181815b80851115611b55578160001904821115611b3b57611b3b611920565b80851615611b4857918102915b93841c9390800290611b1f565b509250929050565b600082611b6c575060016106a3565b81611b79575060006106a3565b8160018114611b8f5760028114611b9957611bb5565b60019150506106a3565b60ff841115611baa57611baa611920565b50506001821b6106a3565b5060208310610133831016604e8410600b8410161715611bd8575081810a6106a3565b611be28383611b1a565b8060001904821115611bf657611bf6611920565b029392505050565b6000610d6e60ff841683611b5d565b80820281158282048414176106a3576106a3611920565b600082611c4157634e487b7160e01b600052601260045260246000fd5b50049056fea264697066735822122088a6d12c8aacccc4eaab0576323a5c61ee5e945c05784eeb7c7081eca1e8fe6664736f6c63430008140033
Loading...
Loading
Loading...
Loading
[ 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.