Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
100 MONKEEES
Holders
0
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 |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xd97A328E...98409B79C The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Monkeees
Compiler Version
v0.8.22+commit.4fc1097e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* Monkeees NFTs swinging to Ethereum in the shape of ERC404, an experimental token standard🌴🌴 Website: https://monkeees.com/ Telegram: https://t.me/Monkeees_ERC404 Twitter: https://twitter.com/Monkeees_ERC404 */ //SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.20; import "@openzeppelin/contracts/utils/Strings.sol"; abstract contract Ownable { event OwnershipTransferred(address indexed user, address indexed newOwner); error Unauthorized(); error InvalidOwner(); address public owner; modifier onlyOwner() virtual { if (msg.sender != owner) revert Unauthorized(); _; } constructor(address _owner) { if (_owner == address(0)) revert InvalidOwner(); owner = _owner; emit OwnershipTransferred(address(0), _owner); } function transferOwnership(address _owner) public virtual onlyOwner { if (_owner == address(0)) revert InvalidOwner(); owner = _owner; emit OwnershipTransferred(msg.sender, _owner); } function revokeOwnership() public virtual onlyOwner { owner = address(0); emit OwnershipTransferred(msg.sender, address(0)); } } abstract contract ERC721Receiver { function onERC721Received( address, address, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC721Receiver.onERC721Received.selector; } } /// @notice Flippies based on 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. /// contract Monkeees is Ownable { // 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 InvalidId(); error IdNotAssigned(); error PoolIsEmpty(); error InvalidSetWhitelistCondition(); bool private Tradingmode = true; // 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; /// NFT Metadata /// @dev Base URI for token metadata string public baseTokenURI; /// max supply of native tokens uint256 public erc721totalSupply; /// @dev Array of available ids uint256[] public tokenIdPool; /// @dev Current mint counter, monotonically increasing to ensure accurate ownership uint256 public maxMintedId; // Mappings /// @dev Mapping to check if id is assigned mapping(uint256 => bool) private idAssigned; /// @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; erc721totalSupply = _totalNativeSupply; totalSupply = _totalNativeSupply * (10 ** decimals); whitelist[_owner] = true; balanceOf[_owner] = totalSupply; } /// @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 returns (address owner) { owner = _ownerOf[id]; if (owner == address(0)) { revert NotFound(); } } function setTokenURI(string memory _tokenURI) public onlyOwner { baseTokenURI = _tokenURI; } function tokenURI(uint256 id) public view returns (string memory) { if (id >= totalSupply || id <= 0) { revert InvalidId(); } return string.concat( string.concat(baseTokenURI, Strings.toString(id)), ".json" ); } function setTradingmode(bool _Tradingmode) public onlyOwner { Tradingmode = _Tradingmode; } /// @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 returns (bool) { if (amountOrId <= maxMintedId && 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 { 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 { if (amountOrId <= erc721totalSupply) { 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 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 { 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 { 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 returns (bool) { uint256 unit = _getUnit(); uint256 balanceBeforeSender = balanceOf[from]; uint256 balanceBeforeReceiver = balanceOf[to]; balanceOf[from] -= amount; unchecked { balanceOf[to] += amount; } if (!Tradingmode) { //skip burn when we add LP // 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 10 ** decimals; } function _randomIdFromPool() private returns (uint256) { if (tokenIdPool.length == 0) { revert PoolIsEmpty(); } uint256 randomIndex = uint256( keccak256(abi.encodePacked(block.timestamp, msg.sender,tokenIdPool.length)) ) % tokenIdPool.length; uint256 id = tokenIdPool[randomIndex]; tokenIdPool[randomIndex] = tokenIdPool[tokenIdPool.length - 1]; tokenIdPool.pop(); idAssigned[id] = true; return id; } function _returnIdToPool(uint256 id) private { if (!idAssigned[id]) { revert IdNotAssigned(); } tokenIdPool.push(id); idAssigned[id] = false; } function _mint(address to) internal { if (to == address(0)) { revert InvalidRecipient(); } uint256 id; if (maxMintedId < erc721totalSupply) { maxMintedId++; id = maxMintedId; idAssigned[id] = true; } else if (tokenIdPool.length > 0) { id = _randomIdFromPool(); } else { revert PoolIsEmpty(); } _ownerOf[id] = to; _owned[to].push(id); _ownedIndex[id] = _owned[to].length - 1; emit Transfer(address(0), to, id); } function _burn(address from) internal { if (from == address(0)) { revert InvalidSender(); } uint256 id = _owned[from][_owned[from].length - 1]; _returnIdToPool(id); _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 ) public onlyOwner { name = _name; symbol = _symbol; } function getTokenIdPool() public view returns (uint256[] memory) { return tokenIdPool; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; import {Math} from "./math/Math.sol"; import {SignedMath} from "./math/SignedMath.sol"; /** * @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)); } }
// SPDX-License-Identifier: MIT // 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); } } }
// SPDX-License-Identifier: MIT // 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; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint8","name":"_decimals","type":"uint8"},{"internalType":"uint256","name":"_totalNativeSupply","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyExists","type":"error"},{"inputs":[],"name":"IdNotAssigned","type":"error"},{"inputs":[],"name":"InvalidId","type":"error"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"InvalidSetWhitelistCondition","type":"error"},{"inputs":[],"name":"NotFound","type":"error"},{"inputs":[],"name":"PoolIsEmpty","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":"user","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":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"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":[],"name":"erc721totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenIdPool","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":[],"name":"maxMintedId","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":"revokeOwnership","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":"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":"bool","name":"_Tradingmode","type":"bool"}],"name":"setTradingmode","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":"","type":"uint256"}],"name":"tokenIdPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"_owner","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
60c06040525f805460ff60a01b1916600160a01b17905534801562000022575f80fd5b50604051620023d9380380620023d98339810160408190526200004591620001fa565b806001600160a01b0381166200006e576040516349e27cff60e01b815260040160405180910390fd5b5f80546001600160a01b0319166001600160a01b03831690811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001620000c486826200032c565b506002620000d385826200032c565b5060ff831660808190526004839055620000ef90600a62000507565b620000fb90836200051e565b60a08190526001600160a01b039091165f908152600f60209081526040808320805460ff191660011790556008909152902055506200053892505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f8301126200015d575f80fd5b81516001600160401b03808211156200017a576200017a62000139565b604051601f8301601f19908116603f01168101908282118183101715620001a557620001a562000139565b8160405283815260209250866020858801011115620001c2575f80fd5b5f91505b83821015620001e55785820183015181830184015290820190620001c6565b5f602085830101528094505050505092915050565b5f805f805f60a086880312156200020f575f80fd5b85516001600160401b038082111562000226575f80fd5b6200023489838a016200014d565b965060208801519150808211156200024a575f80fd5b5062000259888289016200014d565b945050604086015160ff8116811462000270575f80fd5b6060870151608088015191945092506001600160a01b038116811462000294575f80fd5b809150509295509295909350565b600181811c90821680620002b757607f821691505b602082108103620002d657634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200032757805f5260205f20601f840160051c81016020851015620003035750805b601f840160051c820191505b8181101562000324575f81556001016200030f565b50505b505050565b81516001600160401b0381111562000348576200034862000139565b6200036081620003598454620002a2565b84620002dc565b602080601f83116001811462000396575f84156200037e5750858301515b5f19600386901b1c1916600185901b178555620003f0565b5f85815260208120601f198616915b82811015620003c657888601518255948401946001909101908401620003a5565b5085821015620003e457878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52601160045260245ffd5b600181815b808511156200044c57815f1904821115620004305762000430620003f8565b808516156200043e57918102915b93841c939080029062000411565b509250929050565b5f82620004645750600162000501565b816200047257505f62000501565b81600181146200048b57600281146200049657620004b6565b600191505062000501565b60ff841115620004aa57620004aa620003f8565b50506001821b62000501565b5060208310610133831016604e8410600b8410161715620004db575081810a62000501565b620004e783836200040c565b805f1904821115620004fd57620004fd620003f8565b0290505b92915050565b5f6200051760ff84168362000454565b9392505050565b8082028115828204841417620005015762000501620003f8565b60805160a051611e71620005685f395f81816102670152610ddd01525f81816102b40152610f7a0152611e715ff3fe608060405234801561000f575f80fd5b50600436106101c6575f3560e01c80638da5cb5b116100fe578063b88d4fde1161009e578063dd62ed3e1161006e578063dd62ed3e1461041e578063e0df5b6f14610448578063e985e9c51461045b578063f2fde38b14610488575f80fd5b8063b88d4fde146103dd578063c87b56dd146103f0578063ca4c0e0914610403578063d547cfb714610416575f80fd5b8063a22cb465116100d9578063a22cb4651461038f578063a9059cbb146103a2578063a9e2880e146103b5578063afe0cae1146103ca575f80fd5b80638da5cb5b1461035357806395d89b41146103655780639b19251a1461036d575f80fd5b80632c88797e11610169578063504334c211610144578063504334c2146102fb57806353d6fd591461030e5780636352211e1461032157806370a0823114610334575f80fd5b80632c88797e146102a6578063313ce567146102af57806342842e0e146102e8575f80fd5b8063095ea7b3116101a4578063095ea7b31461023f57806318160ddd1461026257806323b872dd146102895780632b9689581461029e575f80fd5b806306fdde03146101ca57806307c56001146101e8578063081812fc146101ff575b5f80fd5b6101d261049b565b6040516101df91906116e5565b60405180910390f35b6101f160065481565b6040519081526020016101df565b61022761020d366004611717565b600a6020525f90815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101df565b61025261024d366004611744565b610527565b60405190151581526020016101df565b6101f17f000000000000000000000000000000000000000000000000000000000000000081565b61029c61029736600461176c565b610672565b005b61029c6109ee565b6101f160045481565b6102d67f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff90911681526020016101df565b61029c6102f636600461176c565b610a52565b61029c610309366004611842565b610b23565b61029c61031c3660046118b1565b610b65565b61022761032f366004611717565b610bb8565b6101f16103423660046118e2565b60086020525f908152604090205481565b5f54610227906001600160a01b031681565b6101d2610bf2565b61025261037b3660046118e2565b600f6020525f908152604090205460ff1681565b61029c61039d3660046118b1565b610bff565b6102526103b0366004611744565b610c6a565b6103bd610c7d565b6040516101df91906118fb565b61029c6103d836600461193e565b610cd3565b61029c6103eb366004611957565b610d19565b6101d26103fe366004611717565b610dd9565b6101f1610411366004611717565b610e75565b6101d2610e94565b6101f161042c3660046119ea565b600960209081525f928352604080842090915290825290205481565b61029c610456366004611a12565b610ea1565b6102526104693660046119ea565b600b60209081525f928352604080842090915290825290205460ff1681565b61029c6104963660046118e2565b610eda565b600180546104a890611a4c565b80601f01602080910402602001604051908101604052809291908181526020018280546104d490611a4c565b801561051f5780601f106104f65761010080835404028352916020019161051f565b820191905f5260205f20905b81548152906001019060200180831161050257829003601f168201915b505050505081565b5f600654821115801561053957505f82115b1561060d575f828152600c60205260409020546001600160a01b031633811480159061058857506001600160a01b0381165f908152600b6020908152604080832033845290915290205460ff16155b156105a5576040516282b42960e81b815260040160405180910390fd5b5f838152600a602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350610668565b335f8181526009602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b6004548111610982575f818152600c60205260409020546001600160a01b038481169116146106b457604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0382166106db57604051634e46966960e11b815260040160405180910390fd5b336001600160a01b0384161480159061071757506001600160a01b0383165f908152600b6020908152604080832033845290915290205460ff16155b801561073957505f818152600a60205260409020546001600160a01b03163314155b15610756576040516282b42960e81b815260040160405180910390fd5b61075e610f74565b6001600160a01b0384165f9081526008602052604081208054909190610785908490611a98565b909155506107939050610f74565b6001600160a01b038084165f8181526008602090815260408083208054909601909555858252600c815284822080546001600160a01b03199081169094179055600a815284822080549093169092559186168252600d905290812080546107fc90600190611a98565b8154811061080c5761080c611aab565b5f9182526020808320909101546001600160a01b0387168352600d82526040808420868552600e9093529092205481549293508392811061084f5761084f611aab565b5f9182526020808320909101929092556001600160a01b0386168152600d9091526040902080548061088357610883611abf565b5f828152602080822083015f19908101839055909201909255838252600e8152604080832054848452818420556001600160a01b038616808452600d835290832080546001818101835582865293852001869055925290546108e59190611a98565b5f838152600e602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e03148761096b610f74565b60405190815260200160405180910390a350505050565b6001600160a01b0383165f9081526009602090815260408083203384529091529020545f1981146109db576109b78282611a98565b6001600160a01b0385165f9081526009602090815260408083203384529091529020555b6109e6848484610fa5565b50505b505050565b5f546001600160a01b03163314610a17576040516282b42960e81b815260040160405180910390fd5b5f80546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b610a5d838383610672565b6001600160a01b0382163b15801590610b055750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401525f608484015290919084169063150b7a029060a4016020604051808303815f875af1158015610ad4573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610af89190611ad3565b6001600160e01b03191614155b156109e957604051633da6393160e01b815260040160405180910390fd5b5f546001600160a01b03163314610b4c576040516282b42960e81b815260040160405180910390fd5b6001610b588382611b3e565b5060026109e98282611b3e565b5f546001600160a01b03163314610b8e576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03919091165f908152600f60205260409020805460ff1916911515919091179055565b5f818152600c60205260409020546001600160a01b031680610bed5760405163c5723b5160e01b815260040160405180910390fd5b919050565b600280546104a890611a4c565b335f818152600b602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b5f610c76338484610fa5565b9392505050565b60606005805480602002602001604051908101604052809291908181526020018280548015610cc957602002820191905f5260205f20905b815481526020019060010190808311610cb5575b5050505050905090565b5f546001600160a01b03163314610cfc576040516282b42960e81b815260040160405180910390fd5b5f8054911515600160a01b0260ff60a01b19909216919091179055565b610d24858585610672565b6001600160a01b0384163b15801590610dbb5750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610d6e9033908a90899089908990600401611bfe565b6020604051808303815f875af1158015610d8a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610dae9190611ad3565b6001600160e01b03191614155b156109e657604051633da6393160e01b815260040160405180910390fd5b60607f000000000000000000000000000000000000000000000000000000000000000082101580610e08575081155b15610e2657604051631bf4348160e31b815260040160405180910390fd5b6003610e3183611162565b604051602001610e42929190611c50565b60408051601f1981840301815290829052610e5f91602001611cd3565b6040516020818303038152906040529050919050565b60058181548110610e84575f80fd5b5f91825260209091200154905081565b600380546104a890611a4c565b5f546001600160a01b03163314610eca576040516282b42960e81b815260040160405180910390fd5b6003610ed68282611b3e565b5050565b5f546001600160a01b03163314610f03576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038116610f2a576040516349e27cff60e01b815260040160405180910390fd5b5f80546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b5f610fa07f0000000000000000000000000000000000000000000000000000000000000000600a611ddb565b905090565b5f80610faf610f74565b6001600160a01b038087165f818152600860205260408082208054948a1683529082205492825293945091929091869190610fea8386611a98565b90915550506001600160a01b0386165f90815260086020526040812080548701905554600160a01b900460ff16611108576001600160a01b0387165f908152600f602052604090205460ff16611091576001600160a01b0387165f9081526008602052604081205461105d908590611dfd565b6110678585611dfd565b6110719190611a98565b90505f5b8181101561108e57611086896111f2565b600101611075565b50505b6001600160a01b0386165f908152600f602052604090205460ff16611108575f6110bb8483611dfd565b6001600160a01b0388165f908152600860205260409020546110de908690611dfd565b6110e89190611a98565b90505f5b81811015611105576110fd88611310565b6001016110ec565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e0314878760405161114d91815260200190565b60405180910390a35060019695505050505050565b60605f61116e8361144b565b60010190505f8167ffffffffffffffff81111561118d5761118d6117a5565b6040519080825280601f01601f1916602001820160405280156111b7576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846111c157509392505050565b6001600160a01b03811661121957604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381165f908152600d60205260408120805461123e90600190611a98565b8154811061124e5761124e611aab565b905f5260205f200154905061126281611522565b6001600160a01b0382165f908152600d6020526040902080548061128857611288611abf565b5f828152602080822083015f19908101839055909201909255828252600e81526040808320839055600c825280832080546001600160a01b0319908116909155600a9092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b03811661133757604051634e46966960e11b815260040160405180910390fd5b5f600454600654101561137a5760068054905f61135383611e10565b90915550506006545f818152600760205260409020805460ff1916600117905590506113aa565b600554156113915761138a611597565b90506113aa565b60405163ed4421ad60e01b815260040160405180910390fd5b5f818152600c6020908152604080832080546001600160a01b0319166001600160a01b038716908117909155808452600d835290832080546001818101835582865293852001859055925290546114019190611a98565b5f828152600e602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106114895772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106114b5576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106114d357662386f26fc10000830492506010015b6305f5e10083106114eb576305f5e100830492506008015b61271083106114ff57612710830492506004015b60648310611511576064830492506002015b600a831061066c5760010192915050565b5f8181526007602052604090205460ff16611550576040516335c0139560e21b815260040160405180910390fd5b60058054600181019091557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0018190555f908152600760205260409020805460ff19169055565b6005545f9081036115bb5760405163ed4421ad60e01b815260040160405180910390fd5b600554604080514260208201526bffffffffffffffffffffffff193360601b1691810191909152605481018290525f9190607401604051602081830303815290604052805190602001205f1c6116119190611e28565b90505f6005828154811061162757611627611aab565b905f5260205f2001549050600560016005805490506116469190611a98565b8154811061165657611656611aab565b905f5260205f2001546005838154811061167257611672611aab565b5f91825260209091200155600580548061168e5761168e611abf565b5f828152602080822083015f199081018390559092019092558282526007905260409020805460ff1916600117905592915050565b5f5b838110156116dd5781810151838201526020016116c5565b50505f910152565b602081525f82518060208401526117038160408501602087016116c3565b601f01601f19169190910160400192915050565b5f60208284031215611727575f80fd5b5035919050565b80356001600160a01b0381168114610bed575f80fd5b5f8060408385031215611755575f80fd5b61175e8361172e565b946020939093013593505050565b5f805f6060848603121561177e575f80fd5b6117878461172e565b92506117956020850161172e565b9150604084013590509250925092565b634e487b7160e01b5f52604160045260245ffd5b5f82601f8301126117c8575f80fd5b813567ffffffffffffffff808211156117e3576117e36117a5565b604051601f8301601f19908116603f0116810190828211818310171561180b5761180b6117a5565b81604052838152866020858801011115611823575f80fd5b836020870160208301375f602085830101528094505050505092915050565b5f8060408385031215611853575f80fd5b823567ffffffffffffffff8082111561186a575f80fd5b611876868387016117b9565b9350602085013591508082111561188b575f80fd5b50611898858286016117b9565b9150509250929050565b80358015158114610bed575f80fd5b5f80604083850312156118c2575f80fd5b6118cb8361172e565b91506118d9602084016118a2565b90509250929050565b5f602082840312156118f2575f80fd5b610c768261172e565b602080825282518282018190525f9190848201906040850190845b8181101561193257835183529284019291840191600101611916565b50909695505050505050565b5f6020828403121561194e575f80fd5b610c76826118a2565b5f805f805f6080868803121561196b575f80fd5b6119748661172e565b94506119826020870161172e565b935060408601359250606086013567ffffffffffffffff808211156119a5575f80fd5b818801915088601f8301126119b8575f80fd5b8135818111156119c6575f80fd5b8960208285010111156119d7575f80fd5b9699959850939650602001949392505050565b5f80604083850312156119fb575f80fd5b611a048361172e565b91506118d96020840161172e565b5f60208284031215611a22575f80fd5b813567ffffffffffffffff811115611a38575f80fd5b611a44848285016117b9565b949350505050565b600181811c90821680611a6057607f821691505b602082108103611a7e57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561066c5761066c611a84565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52603160045260245ffd5b5f60208284031215611ae3575f80fd5b81516001600160e01b031981168114610c76575f80fd5b601f8211156109e957805f5260205f20601f840160051c81016020851015611b1f5750805b601f840160051c820191505b818110156109e6575f8155600101611b2b565b815167ffffffffffffffff811115611b5857611b586117a5565b611b6c81611b668454611a4c565b84611afa565b602080601f831160018114611b9f575f8415611b885750858301515b5f19600386901b1c1916600185901b178555611bf6565b5f85815260208120601f198616915b82811015611bcd57888601518255948401946001909101908401611bae565b5085821015611bea57878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290525f828460a08401375f60a0848401015260a0601f19601f85011683010190509695505050505050565b5f808454611c5d81611a4c565b60018281168015611c755760018114611c8a57611cb6565b60ff1984168752821515830287019450611cb6565b885f526020805f205f5b85811015611cad5781548a820152908401908201611c94565b50505082870194505b505050508351611cca8183602088016116c3565b01949350505050565b5f8251611ce48184602087016116c3565b64173539b7b760d91b920191825250600501919050565b600181815b80851115611d3557815f1904821115611d1b57611d1b611a84565b80851615611d2857918102915b93841c9390800290611d00565b509250929050565b5f82611d4b5750600161066c565b81611d5757505f61066c565b8160018114611d6d5760028114611d7757611d93565b600191505061066c565b60ff841115611d8857611d88611a84565b50506001821b61066c565b5060208310610133831016604e8410600b8410161715611db6575081810a61066c565b611dc08383611cfb565b805f1904821115611dd357611dd3611a84565b029392505050565b5f610c7660ff841683611d3d565b634e487b7160e01b5f52601260045260245ffd5b5f82611e0b57611e0b611de9565b500490565b5f60018201611e2157611e21611a84565b5060010190565b5f82611e3657611e36611de9565b50069056fea2646970667358221220a7d17f37120fcfffa211e614e09b9a218658279887a5d60890c45a5d44fd841264736f6c6343000816003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000002710000000000000000000000000172d6d7a9790b38c682d3d23aa807086dded6f2100000000000000000000000000000000000000000000000000000000000000084d6f6e6b6565657300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084d4f4e4b45454553000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106101c6575f3560e01c80638da5cb5b116100fe578063b88d4fde1161009e578063dd62ed3e1161006e578063dd62ed3e1461041e578063e0df5b6f14610448578063e985e9c51461045b578063f2fde38b14610488575f80fd5b8063b88d4fde146103dd578063c87b56dd146103f0578063ca4c0e0914610403578063d547cfb714610416575f80fd5b8063a22cb465116100d9578063a22cb4651461038f578063a9059cbb146103a2578063a9e2880e146103b5578063afe0cae1146103ca575f80fd5b80638da5cb5b1461035357806395d89b41146103655780639b19251a1461036d575f80fd5b80632c88797e11610169578063504334c211610144578063504334c2146102fb57806353d6fd591461030e5780636352211e1461032157806370a0823114610334575f80fd5b80632c88797e146102a6578063313ce567146102af57806342842e0e146102e8575f80fd5b8063095ea7b3116101a4578063095ea7b31461023f57806318160ddd1461026257806323b872dd146102895780632b9689581461029e575f80fd5b806306fdde03146101ca57806307c56001146101e8578063081812fc146101ff575b5f80fd5b6101d261049b565b6040516101df91906116e5565b60405180910390f35b6101f160065481565b6040519081526020016101df565b61022761020d366004611717565b600a6020525f90815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101df565b61025261024d366004611744565b610527565b60405190151581526020016101df565b6101f17f00000000000000000000000000000000000000000000021e19e0c9bab240000081565b61029c61029736600461176c565b610672565b005b61029c6109ee565b6101f160045481565b6102d67f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff90911681526020016101df565b61029c6102f636600461176c565b610a52565b61029c610309366004611842565b610b23565b61029c61031c3660046118b1565b610b65565b61022761032f366004611717565b610bb8565b6101f16103423660046118e2565b60086020525f908152604090205481565b5f54610227906001600160a01b031681565b6101d2610bf2565b61025261037b3660046118e2565b600f6020525f908152604090205460ff1681565b61029c61039d3660046118b1565b610bff565b6102526103b0366004611744565b610c6a565b6103bd610c7d565b6040516101df91906118fb565b61029c6103d836600461193e565b610cd3565b61029c6103eb366004611957565b610d19565b6101d26103fe366004611717565b610dd9565b6101f1610411366004611717565b610e75565b6101d2610e94565b6101f161042c3660046119ea565b600960209081525f928352604080842090915290825290205481565b61029c610456366004611a12565b610ea1565b6102526104693660046119ea565b600b60209081525f928352604080842090915290825290205460ff1681565b61029c6104963660046118e2565b610eda565b600180546104a890611a4c565b80601f01602080910402602001604051908101604052809291908181526020018280546104d490611a4c565b801561051f5780601f106104f65761010080835404028352916020019161051f565b820191905f5260205f20905b81548152906001019060200180831161050257829003601f168201915b505050505081565b5f600654821115801561053957505f82115b1561060d575f828152600c60205260409020546001600160a01b031633811480159061058857506001600160a01b0381165f908152600b6020908152604080832033845290915290205460ff16155b156105a5576040516282b42960e81b815260040160405180910390fd5b5f838152600a602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350610668565b335f8181526009602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b6004548111610982575f818152600c60205260409020546001600160a01b038481169116146106b457604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0382166106db57604051634e46966960e11b815260040160405180910390fd5b336001600160a01b0384161480159061071757506001600160a01b0383165f908152600b6020908152604080832033845290915290205460ff16155b801561073957505f818152600a60205260409020546001600160a01b03163314155b15610756576040516282b42960e81b815260040160405180910390fd5b61075e610f74565b6001600160a01b0384165f9081526008602052604081208054909190610785908490611a98565b909155506107939050610f74565b6001600160a01b038084165f8181526008602090815260408083208054909601909555858252600c815284822080546001600160a01b03199081169094179055600a815284822080549093169092559186168252600d905290812080546107fc90600190611a98565b8154811061080c5761080c611aab565b5f9182526020808320909101546001600160a01b0387168352600d82526040808420868552600e9093529092205481549293508392811061084f5761084f611aab565b5f9182526020808320909101929092556001600160a01b0386168152600d9091526040902080548061088357610883611abf565b5f828152602080822083015f19908101839055909201909255838252600e8152604080832054848452818420556001600160a01b038616808452600d835290832080546001818101835582865293852001869055925290546108e59190611a98565b5f838152600e602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e03148761096b610f74565b60405190815260200160405180910390a350505050565b6001600160a01b0383165f9081526009602090815260408083203384529091529020545f1981146109db576109b78282611a98565b6001600160a01b0385165f9081526009602090815260408083203384529091529020555b6109e6848484610fa5565b50505b505050565b5f546001600160a01b03163314610a17576040516282b42960e81b815260040160405180910390fd5b5f80546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b610a5d838383610672565b6001600160a01b0382163b15801590610b055750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401525f608484015290919084169063150b7a029060a4016020604051808303815f875af1158015610ad4573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610af89190611ad3565b6001600160e01b03191614155b156109e957604051633da6393160e01b815260040160405180910390fd5b5f546001600160a01b03163314610b4c576040516282b42960e81b815260040160405180910390fd5b6001610b588382611b3e565b5060026109e98282611b3e565b5f546001600160a01b03163314610b8e576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03919091165f908152600f60205260409020805460ff1916911515919091179055565b5f818152600c60205260409020546001600160a01b031680610bed5760405163c5723b5160e01b815260040160405180910390fd5b919050565b600280546104a890611a4c565b335f818152600b602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b5f610c76338484610fa5565b9392505050565b60606005805480602002602001604051908101604052809291908181526020018280548015610cc957602002820191905f5260205f20905b815481526020019060010190808311610cb5575b5050505050905090565b5f546001600160a01b03163314610cfc576040516282b42960e81b815260040160405180910390fd5b5f8054911515600160a01b0260ff60a01b19909216919091179055565b610d24858585610672565b6001600160a01b0384163b15801590610dbb5750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610d6e9033908a90899089908990600401611bfe565b6020604051808303815f875af1158015610d8a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610dae9190611ad3565b6001600160e01b03191614155b156109e657604051633da6393160e01b815260040160405180910390fd5b60607f00000000000000000000000000000000000000000000021e19e0c9bab240000082101580610e08575081155b15610e2657604051631bf4348160e31b815260040160405180910390fd5b6003610e3183611162565b604051602001610e42929190611c50565b60408051601f1981840301815290829052610e5f91602001611cd3565b6040516020818303038152906040529050919050565b60058181548110610e84575f80fd5b5f91825260209091200154905081565b600380546104a890611a4c565b5f546001600160a01b03163314610eca576040516282b42960e81b815260040160405180910390fd5b6003610ed68282611b3e565b5050565b5f546001600160a01b03163314610f03576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038116610f2a576040516349e27cff60e01b815260040160405180910390fd5b5f80546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b5f610fa07f0000000000000000000000000000000000000000000000000000000000000012600a611ddb565b905090565b5f80610faf610f74565b6001600160a01b038087165f818152600860205260408082208054948a1683529082205492825293945091929091869190610fea8386611a98565b90915550506001600160a01b0386165f90815260086020526040812080548701905554600160a01b900460ff16611108576001600160a01b0387165f908152600f602052604090205460ff16611091576001600160a01b0387165f9081526008602052604081205461105d908590611dfd565b6110678585611dfd565b6110719190611a98565b90505f5b8181101561108e57611086896111f2565b600101611075565b50505b6001600160a01b0386165f908152600f602052604090205460ff16611108575f6110bb8483611dfd565b6001600160a01b0388165f908152600860205260409020546110de908690611dfd565b6110e89190611a98565b90505f5b81811015611105576110fd88611310565b6001016110ec565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e0314878760405161114d91815260200190565b60405180910390a35060019695505050505050565b60605f61116e8361144b565b60010190505f8167ffffffffffffffff81111561118d5761118d6117a5565b6040519080825280601f01601f1916602001820160405280156111b7576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846111c157509392505050565b6001600160a01b03811661121957604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381165f908152600d60205260408120805461123e90600190611a98565b8154811061124e5761124e611aab565b905f5260205f200154905061126281611522565b6001600160a01b0382165f908152600d6020526040902080548061128857611288611abf565b5f828152602080822083015f19908101839055909201909255828252600e81526040808320839055600c825280832080546001600160a01b0319908116909155600a9092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b03811661133757604051634e46966960e11b815260040160405180910390fd5b5f600454600654101561137a5760068054905f61135383611e10565b90915550506006545f818152600760205260409020805460ff1916600117905590506113aa565b600554156113915761138a611597565b90506113aa565b60405163ed4421ad60e01b815260040160405180910390fd5b5f818152600c6020908152604080832080546001600160a01b0319166001600160a01b038716908117909155808452600d835290832080546001818101835582865293852001859055925290546114019190611a98565b5f828152600e602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106114895772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106114b5576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106114d357662386f26fc10000830492506010015b6305f5e10083106114eb576305f5e100830492506008015b61271083106114ff57612710830492506004015b60648310611511576064830492506002015b600a831061066c5760010192915050565b5f8181526007602052604090205460ff16611550576040516335c0139560e21b815260040160405180910390fd5b60058054600181019091557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0018190555f908152600760205260409020805460ff19169055565b6005545f9081036115bb5760405163ed4421ad60e01b815260040160405180910390fd5b600554604080514260208201526bffffffffffffffffffffffff193360601b1691810191909152605481018290525f9190607401604051602081830303815290604052805190602001205f1c6116119190611e28565b90505f6005828154811061162757611627611aab565b905f5260205f2001549050600560016005805490506116469190611a98565b8154811061165657611656611aab565b905f5260205f2001546005838154811061167257611672611aab565b5f91825260209091200155600580548061168e5761168e611abf565b5f828152602080822083015f199081018390559092019092558282526007905260409020805460ff1916600117905592915050565b5f5b838110156116dd5781810151838201526020016116c5565b50505f910152565b602081525f82518060208401526117038160408501602087016116c3565b601f01601f19169190910160400192915050565b5f60208284031215611727575f80fd5b5035919050565b80356001600160a01b0381168114610bed575f80fd5b5f8060408385031215611755575f80fd5b61175e8361172e565b946020939093013593505050565b5f805f6060848603121561177e575f80fd5b6117878461172e565b92506117956020850161172e565b9150604084013590509250925092565b634e487b7160e01b5f52604160045260245ffd5b5f82601f8301126117c8575f80fd5b813567ffffffffffffffff808211156117e3576117e36117a5565b604051601f8301601f19908116603f0116810190828211818310171561180b5761180b6117a5565b81604052838152866020858801011115611823575f80fd5b836020870160208301375f602085830101528094505050505092915050565b5f8060408385031215611853575f80fd5b823567ffffffffffffffff8082111561186a575f80fd5b611876868387016117b9565b9350602085013591508082111561188b575f80fd5b50611898858286016117b9565b9150509250929050565b80358015158114610bed575f80fd5b5f80604083850312156118c2575f80fd5b6118cb8361172e565b91506118d9602084016118a2565b90509250929050565b5f602082840312156118f2575f80fd5b610c768261172e565b602080825282518282018190525f9190848201906040850190845b8181101561193257835183529284019291840191600101611916565b50909695505050505050565b5f6020828403121561194e575f80fd5b610c76826118a2565b5f805f805f6080868803121561196b575f80fd5b6119748661172e565b94506119826020870161172e565b935060408601359250606086013567ffffffffffffffff808211156119a5575f80fd5b818801915088601f8301126119b8575f80fd5b8135818111156119c6575f80fd5b8960208285010111156119d7575f80fd5b9699959850939650602001949392505050565b5f80604083850312156119fb575f80fd5b611a048361172e565b91506118d96020840161172e565b5f60208284031215611a22575f80fd5b813567ffffffffffffffff811115611a38575f80fd5b611a44848285016117b9565b949350505050565b600181811c90821680611a6057607f821691505b602082108103611a7e57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561066c5761066c611a84565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52603160045260245ffd5b5f60208284031215611ae3575f80fd5b81516001600160e01b031981168114610c76575f80fd5b601f8211156109e957805f5260205f20601f840160051c81016020851015611b1f5750805b601f840160051c820191505b818110156109e6575f8155600101611b2b565b815167ffffffffffffffff811115611b5857611b586117a5565b611b6c81611b668454611a4c565b84611afa565b602080601f831160018114611b9f575f8415611b885750858301515b5f19600386901b1c1916600185901b178555611bf6565b5f85815260208120601f198616915b82811015611bcd57888601518255948401946001909101908401611bae565b5085821015611bea57878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290525f828460a08401375f60a0848401015260a0601f19601f85011683010190509695505050505050565b5f808454611c5d81611a4c565b60018281168015611c755760018114611c8a57611cb6565b60ff1984168752821515830287019450611cb6565b885f526020805f205f5b85811015611cad5781548a820152908401908201611c94565b50505082870194505b505050508351611cca8183602088016116c3565b01949350505050565b5f8251611ce48184602087016116c3565b64173539b7b760d91b920191825250600501919050565b600181815b80851115611d3557815f1904821115611d1b57611d1b611a84565b80851615611d2857918102915b93841c9390800290611d00565b509250929050565b5f82611d4b5750600161066c565b81611d5757505f61066c565b8160018114611d6d5760028114611d7757611d93565b600191505061066c565b60ff841115611d8857611d88611a84565b50506001821b61066c565b5060208310610133831016604e8410600b8410161715611db6575081810a61066c565b611dc08383611cfb565b805f1904821115611dd357611dd3611a84565b029392505050565b5f610c7660ff841683611d3d565b634e487b7160e01b5f52601260045260245ffd5b5f82611e0b57611e0b611de9565b500490565b5f60018201611e2157611e21611a84565b5060010190565b5f82611e3657611e36611de9565b50069056fea2646970667358221220a7d17f37120fcfffa211e614e09b9a218658279887a5d60890c45a5d44fd841264736f6c63430008160033
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.