ETH Price: $3,399.07 (+5.94%)
 

Overview

Max Total Supply

888 财神爷

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

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CAISHENYE

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : CAISHENYE.sol
//SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;
// File: @openzeppelin/contracts/utils/ReentrancyGuard.sol


// 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.0;


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 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 CAISHENYE is ERC404, Pausable, ReentrancyGuard {
    string public baseTokenURI;
    uint256 public buyLimit;
    uint256 public sellLimit;
    uint256 public txLimit;
    mapping (address => uint256) public userBuylimit;
    mapping (address => uint256) public userSelllimit;
    using Strings for uint256;
    bool public applyTxLimit;

    constructor(
        address _owner,
        uint256 _initialSupply,
        uint8 _decimal,
        uint256 _buylimit,
        uint256 _selllimit
    ) ERC404(unicode"财神爷", unicode"财神爷", _decimal, _initialSupply, _owner) {
        balanceOf[_owner] = _initialSupply * 10 ** _decimal;
        buyLimit = _buylimit * 10 ** _decimal;
        sellLimit = _selllimit * 10 ** _decimal;
        txLimit = 10 * 10 ** _decimal;
    }

    function setLimit(uint256 _buylimit, uint256 _selllimit) public onlyOwner{
        buyLimit = _buylimit;
        sellLimit = _selllimit;
    }

    function _mint(
        address to
    ) internal override whenNotPaused{
        return super._mint(to);
    }

    function startApplyingLimit() external onlyOwner{
        applyTxLimit = true;
    }

    function stopApplyingLimit() external onlyOwner{
        applyTxLimit = false;
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override virtual whenNotPaused returns (bool){
        if(applyTxLimit){
            require(amount < txLimit, "exceed tx limit");
        }
        if(!whitelist[from]){
            userSelllimit[from] += amount;
            require(userSelllimit[from] <= sellLimit, "not allowed anymore to sell");
        }
        if(!whitelist[to]){
            userBuylimit[to] += amount;
            require(userBuylimit[to] <= buyLimit, "not allowed anymore to buy");
        }
        return super._transfer(from, to, amount);
    }

    function setTokenURI(string memory _tokenURI) public onlyOwner {
        baseTokenURI = _tokenURI;
    }

    function setNameSymbol(
        string memory _name,
        string memory _symbol
    ) public onlyOwner {
        _setNameSymbol(_name, _symbol);
    }

    function tokenURI(uint256 id) public view override returns (string memory) {
            uint8 seed = uint8(bytes1(keccak256(abi.encodePacked(id))));
            string memory image;
            string memory description;

            if (seed <= 30) {
                image = "1.jpg";
                description = "Rich";
            } else if (seed <= 60) {
                image = "2.jpg";
                description = "Rich";
            } else if (seed <= 90) {
                image = "4.jpg";
                description = "Rich";
            } else if (seed <= 120) {
                image = "5.jpg";
                description = "Rich";
            } else if (seed <= 150) {
                image = "6.jpg";
                description = "Rich";
            } else if (seed <= 180) {
                image = "7.jpg";
                description = "Rich";
            } else if (seed <= 210) {
                image = "8.jpg";
                description = "Rich";
            } else if (seed <= 254) {
                image = "9.jpg";
                description = "Rich";
            } else if (seed <= 255) {
                image = "3.jpg";
                description = "Treasure";
            }

            string memory jsonPreImage = string.concat(
                string.concat(
                    string.concat('{"name": "CAISHENYE #', Strings.toString(id)),
                    '","description":"A collection of 888 Replicants enabled by ERC404, an experimental token standard.","image":"'
                ),
                string.concat(baseTokenURI,'/', image)
            );
            string memory jsonPostImage = string.concat(
                '","attributes":[{"trait_type":"LUCKBOX","value":"',
                description
            );
            string memory jsonPostTraits = '"}]}';

            return
                string.concat(
                    "data:application/json;utf8,",
                    string.concat(
                        string.concat(jsonPreImage, jsonPostImage),
                        jsonPostTraits
                    )
                );
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_initialSupply","type":"uint256"},{"internalType":"uint8","name":"_decimal","type":"uint8"},{"internalType":"uint256","name":"_buylimit","type":"uint256"},{"internalType":"uint256","name":"_selllimit","type":"uint256"}],"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":[],"name":"applyTxLimit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"buyLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":[],"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":[],"name":"sellLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_buylimit","type":"uint256"},{"internalType":"uint256","name":"_selllimit","type":"uint256"}],"name":"setLimit","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":"startApplyingLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopApplyingLimit","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":[],"name":"txLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userBuylimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userSelllimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60c060405234801562000010575f80fd5b50604051620028c3380380620028c38339810160408190526200003391620001fa565b604080518082018252600980825268e8b4a2e7a59ee788b760b81b602080840182905284518086019095529184529083015290848688806001600160a01b0381166200009857604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b620000a3816200018d565b506002620000b28682620002fb565b506003620000c18582620002fb565b5060ff83166080819052620000d890600a620004d6565b620000e49083620004ed565b60a0525050600d805460ff1916905550506001600e55506200010883600a620004d6565b620001149085620004ed565b6001600160a01b0386165f908152600560205260409020556200013983600a620004d6565b620001459083620004ed565b6010556200015583600a620004d6565b620001619082620004ed565b6011556200017183600a620004d6565b6200017e90600a620004ed565b60125550620005079350505050565b600180546001600160a01b0319169055620001a881620001ab565b50565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f805f805f60a086880312156200020f575f80fd5b85516001600160a01b038116811462000226575f80fd5b60208701516040880151919650945060ff8116811462000244575f80fd5b6060870151608090970151959894975095949392505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200028657607f821691505b602082108103620002a557634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620002f657805f5260205f20601f840160051c81016020851015620002d25750805b601f840160051c820191505b81811015620002f3575f8155600101620002de565b50505b505050565b81516001600160401b038111156200031757620003176200025d565b6200032f8162000328845462000271565b84620002ab565b602080601f83116001811462000365575f84156200034d5750858301515b5f19600386901b1c1916600185901b178555620003bf565b5f85815260208120601f198616915b82811015620003955788860151825594840194600190910190840162000374565b5085821015620003b357878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52601160045260245ffd5b600181815b808511156200041b57815f1904821115620003ff57620003ff620003c7565b808516156200040d57918102915b93841c9390800290620003e0565b509250929050565b5f826200043357506001620004d0565b816200044157505f620004d0565b81600181146200045a5760028114620004655762000485565b6001915050620004d0565b60ff841115620004795762000479620003c7565b50506001821b620004d0565b5060208310610133831016604e8410600b8410161715620004aa575081810a620004d0565b620004b68383620003db565b805f1904821115620004cc57620004cc620003c7565b0290505b92915050565b5f620004e660ff84168362000423565b9392505050565b8082028115828204841417620004d057620004d0620003c7565b60805160a051612393620005305f395f6102a801525f818161031201526112d001526123935ff3fe608060405234801561000f575f80fd5b506004361061021e575f3560e01c8063715018a61161012a578063c87b56dd116100b4578063e30c397811610079578063e30c3978146104e2578063e985e9c5146104f3578063f0306ea414610520578063f2fde38b14610528578063f349b1731461053b575f80fd5b8063c87b56dd1461046b578063d547cfb71461047e578063dd62ed3e14610486578063e0df5b6f146104b0578063e2d6f33a146104c3575f80fd5b80639b19251a116100fa5780639b19251a14610408578063a22cb4651461042a578063a9059cbb1461043d578063b88d4fde14610450578063c6a6035a14610463575f80fd5b8063715018a6146103e057806379ba5097146103e85780638da5cb5b146103f057806395d89b4114610400575f80fd5b80634f02c420116101ab578063589210d91161017b578063589210d9146103915780635c975abb1461039a5780636352211e146103a55780636caae832146103b857806370a08231146103c1575f80fd5b80634f02c420146103595780634f91e48c14610362578063504334c21461036b57806353d6fd591461037e575f80fd5b80631e70b6df116101f15780631e70b6df146102d8578063207add91146102e557806323b872dd146102fa578063313ce5671461030d57806342842e0e14610346575f80fd5b806306fdde0314610222578063081812fc14610240578063095ea7b31461028057806318160ddd146102a3575b5f80fd5b61022a61055a565b6040516102379190611ad5565b60405180910390f35b61026861024e366004611b07565b60076020525f90815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610237565b61029361028e366004611b34565b6105e6565b6040519015158152602001610237565b6102ca7f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610237565b6015546102939060ff1681565b6102f86102f3366004611b5c565b610731565b005b6102f8610308366004611b7c565b610744565b6103347f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff9091168152602001610237565b6102f8610354366004611b7c565b610ac0565b6102ca60045481565b6102ca60115481565b6102f8610379366004611c52565b610b91565b6102f861038c366004611cb2565b610ba7565b6102ca60105481565b600d5460ff16610293565b6102686103b3366004611b07565b610bd9565b6102ca60125481565b6102ca6103cf366004611ceb565b60056020525f908152604090205481565b6102f8610c13565b6102f8610c26565b5f546001600160a01b0316610268565b61022a610c6f565b610293610416366004611ceb565b600c6020525f908152604090205460ff1681565b6102f8610438366004611cb2565b610c7c565b61029361044b366004611b34565b610ce7565b6102f861045e366004611d04565b610cfa565b6102f8610dba565b61022a610479366004611b07565b610dd1565b61022a6111f9565b6102ca610494366004611d97565b600660209081525f928352604080842090915290825290205481565b6102f86104be366004611dc8565b611206565b6102ca6104d1366004611ceb565b60136020525f908152604090205481565b6001546001600160a01b0316610268565b610293610501366004611d97565b600860209081525f928352604080842090915290825290205460ff1681565b6102f861121a565b6102f8610536366004611ceb565b61122e565b6102ca610549366004611ceb565b60146020525f908152604090205481565b6002805461056790611dfa565b80601f016020809104026020016040519081016040528092919081815260200182805461059390611dfa565b80156105de5780601f106105b5576101008083540402835291602001916105de565b820191905f5260205f20905b8154815290600101906020018083116105c157829003601f168201915b505050505081565b5f60045482111580156105f857505f82115b156106cc575f828152600960205260409020546001600160a01b031633811480159061064757506001600160a01b0381165f90815260086020908152604080832033845290915290205460ff16155b15610664576040516282b42960e81b815260040160405180910390fd5b5f8381526007602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350610727565b335f8181526006602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b61073961129e565b601091909155601155565b6004548111610a54575f818152600960205260409020546001600160a01b0384811691161461078657604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0382166107ad57604051634e46966960e11b815260040160405180910390fd5b336001600160a01b038416148015906107e957506001600160a01b0383165f90815260086020908152604080832033845290915290205460ff16155b801561080b57505f818152600760205260409020546001600160a01b03163314155b15610828576040516282b42960e81b815260040160405180910390fd5b6108306112ca565b6001600160a01b0384165f9081526005602052604081208054909190610857908490611e46565b9091555061086590506112ca565b6001600160a01b038084165f81815260056020908152604080832080549096019095558582526009815284822080546001600160a01b031990811690941790556007815284822080549093169092559186168252600a905290812080546108ce90600190611e46565b815481106108de576108de611e59565b5f9182526020808320909101546001600160a01b0387168352600a82526040808420868552600b9093529092205481549293508392811061092157610921611e59565b5f9182526020808320909101929092556001600160a01b0386168152600a9091526040902080548061095557610955611e6d565b5f828152602080822083015f19908101839055909201909255838252600b8152604080832054848452818420556001600160a01b038616808452600a835290832080546001818101835582865293852001869055925290546109b79190611e46565b5f838152600b602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487610a3d6112ca565b60405190815260200160405180910390a350505050565b6001600160a01b0383165f9081526006602090815260408083203384529091529020545f198114610aad57610a898282611e46565b6001600160a01b0385165f9081526006602090815260408083203384529091529020555b610ab88484846112fb565b50505b505050565b610acb838383610744565b6001600160a01b0382163b15801590610b735750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401525f608484015290919084169063150b7a029060a4016020604051808303815f875af1158015610b42573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b669190611e81565b6001600160e01b03191614155b15610abb57604051633da6393160e01b815260040160405180910390fd5b610b9961129e565b610ba382826114cd565b5050565b610baf61129e565b6001600160a01b03919091165f908152600c60205260409020805460ff1916911515919091179055565b5f818152600960205260409020546001600160a01b031680610c0e5760405163c5723b5160e01b815260040160405180910390fd5b919050565b610c1b61129e565b610c245f6114e6565b565b60015433906001600160a01b03168114610c635760405163118cdaa760e01b81526001600160a01b03821660048201526024015b60405180910390fd5b610c6c816114e6565b50565b6003805461056790611dfa565b335f8181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b5f610cf33384846112fb565b9392505050565b610d05858585610744565b6001600160a01b0384163b15801590610d9c5750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610d4f9033908a90899089908990600401611ea8565b6020604051808303815f875af1158015610d6b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d8f9190611e81565b6001600160e01b03191614155b15610ab857604051633da6393160e01b815260040160405180910390fd5b610dc261129e565b6015805460ff19166001179055565b60605f82604051602001610de791815260200190565b6040516020818303038152906040528051906020012060f81c9050606080601e8360ff1611610e545760405180604001604052806005815260200164312e6a706760d81b8152509150604051806040016040528060048152602001630a4d2c6d60e31b81525090506110cc565b603c8360ff1611610ea35760405180604001604052806005815260200164322e6a706760d81b8152509150604051806040016040528060048152602001630a4d2c6d60e31b81525090506110cc565b605a8360ff1611610ef25760405180604001604052806005815260200164342e6a706760d81b8152509150604051806040016040528060048152602001630a4d2c6d60e31b81525090506110cc565b60788360ff1611610f415760405180604001604052806005815260200164352e6a706760d81b8152509150604051806040016040528060048152602001630a4d2c6d60e31b81525090506110cc565b60968360ff1611610f905760405180604001604052806005815260200164362e6a706760d81b8152509150604051806040016040528060048152602001630a4d2c6d60e31b81525090506110cc565b60b48360ff1611610fdf5760405180604001604052806005815260200164372e6a706760d81b8152509150604051806040016040528060048152602001630a4d2c6d60e31b81525090506110cc565b60d28360ff161161102e5760405180604001604052806005815260200164382e6a706760d81b8152509150604051806040016040528060048152602001630a4d2c6d60e31b81525090506110cc565b60fe8360ff161161107d5760405180604001604052806005815260200164392e6a706760d81b8152509150604051806040016040528060048152602001630a4d2c6d60e31b81525090506110cc565b60ff8360ff16116110cc5760405180604001604052806005815260200164332e6a706760d81b815250915060405180604001604052806008815260200167547265617375726560c01b81525090505b5f6110d6866114ff565b6040516020016110e69190611efa565b60408051601f198184030181529082905261110391602001611f37565b604051602081830303815290604052600f84604051602001611126929190611fd9565b60408051601f19818403018152908290526111449291602001612069565b60405160208183030381529060405290505f826040516020016111679190612097565b60408051601f1981840301815282820182526004835263227d5d7d60e01b60208481019190915291519093506111a1918591859101612069565b60408051601f19818403018152908290526111c0918390602001612069565b60408051601f19818403018152908290526111dd916020016120f5565b6040516020818303038152906040529650505050505050919050565b600f805461056790611dfa565b61120e61129e565b600f610ba3828261217d565b61122261129e565b6015805460ff19169055565b61123661129e565b600180546001600160a01b0383166001600160a01b031990911681179091556112665f546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b5f546001600160a01b03163314610c245760405163118cdaa760e01b8152336004820152602401610c5a565b5f6112f67f0000000000000000000000000000000000000000000000000000000000000000600a61231d565b905090565b5f61130461158f565b60155460ff16156113525760125482106113525760405162461bcd60e51b815260206004820152600f60248201526e195e18d95959081d1e081b1a5b5a5d608a1b6044820152606401610c5a565b6001600160a01b0384165f908152600c602052604090205460ff16611406576001600160a01b0384165f908152601460205260408120805484929061139890849061232b565b90915550506011546001600160a01b0385165f9081526014602052604090205411156114065760405162461bcd60e51b815260206004820152601b60248201527f6e6f7420616c6c6f77656420616e796d6f726520746f2073656c6c00000000006044820152606401610c5a565b6001600160a01b0383165f908152600c602052604090205460ff166114ba576001600160a01b0383165f908152601360205260408120805484929061144c90849061232b565b90915550506010546001600160a01b0384165f9081526013602052604090205411156114ba5760405162461bcd60e51b815260206004820152601a60248201527f6e6f7420616c6c6f77656420616e796d6f726520746f206275790000000000006044820152606401610c5a565b6114c58484846115b3565b949350505050565b60026114d9838261217d565b506003610abb828261217d565b600180546001600160a01b0319169055610c6c81611758565b60605f61150b836117a7565b60010190505f8167ffffffffffffffff81111561152a5761152a611bb5565b6040519080825280601f01601f191660200182016040528015611554576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461155e57509392505050565b600d5460ff1615610c245760405163d93c066560e01b815260040160405180910390fd5b5f806115bd6112ca565b6001600160a01b038087165f818152600560205260408082208054948a16835290822054928252939450919290918691906115f88386611e46565b90915550506001600160a01b038087165f90815260056020908152604080832080548a019055928a168252600c9052205460ff16611687576001600160a01b0387165f9081526005602052604081205461165390859061233e565b61165d858561233e565b6116679190611e46565b90505f5b818110156116845761167c8961187e565b60010161166b565b50505b6001600160a01b0386165f908152600c602052604090205460ff166116fe575f6116b1848361233e565b6001600160a01b0388165f908152600560205260409020546116d490869061233e565b6116de9190611e46565b90505f5b818110156116fb576116f38861199f565b6001016116e2565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e0314878760405161174391815260200190565b60405180910390a35060019695505050505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106117e55772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611811576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061182f57662386f26fc10000830492506010015b6305f5e1008310611847576305f5e100830492506008015b612710831061185b57612710830492506004015b6064831061186d576064830492506002015b600a831061072b5760010192915050565b6001600160a01b0381166118a557604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381165f908152600a6020526040812080546118ca90600190611e46565b815481106118da576118da611e59565b905f5260205f2001549050600a5f836001600160a01b03166001600160a01b031681526020019081526020015f2080548061191757611917611e6d565b5f828152602080822083015f19908101839055909201909255828252600b815260408083208390556009825280832080546001600160a01b031990811690915560079092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6119a761158f565b610c6c816001600160a01b0381166119d257604051634e46966960e11b815260040160405180910390fd5b60048054600101908190555f818152600960205260409020546001600160a01b031615611a125760405163119b4fd360e11b815260040160405180910390fd5b5f81815260096020908152604080832080546001600160a01b0319166001600160a01b038716908117909155808452600a83529083208054600181810183558286529385200185905592529054611a699190611e46565b5f828152600b602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5f5b83811015611acd578181015183820152602001611ab5565b50505f910152565b602081525f8251806020840152611af3816040850160208701611ab3565b601f01601f19169190910160400192915050565b5f60208284031215611b17575f80fd5b5035919050565b80356001600160a01b0381168114610c0e575f80fd5b5f8060408385031215611b45575f80fd5b611b4e83611b1e565b946020939093013593505050565b5f8060408385031215611b6d575f80fd5b50508035926020909101359150565b5f805f60608486031215611b8e575f80fd5b611b9784611b1e565b9250611ba560208501611b1e565b9150604084013590509250925092565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112611bd8575f80fd5b813567ffffffffffffffff80821115611bf357611bf3611bb5565b604051601f8301601f19908116603f01168101908282118183101715611c1b57611c1b611bb5565b81604052838152866020858801011115611c33575f80fd5b836020870160208301375f602085830101528094505050505092915050565b5f8060408385031215611c63575f80fd5b823567ffffffffffffffff80821115611c7a575f80fd5b611c8686838701611bc9565b93506020850135915080821115611c9b575f80fd5b50611ca885828601611bc9565b9150509250929050565b5f8060408385031215611cc3575f80fd5b611ccc83611b1e565b915060208301358015158114611ce0575f80fd5b809150509250929050565b5f60208284031215611cfb575f80fd5b610cf382611b1e565b5f805f805f60808688031215611d18575f80fd5b611d2186611b1e565b9450611d2f60208701611b1e565b935060408601359250606086013567ffffffffffffffff80821115611d52575f80fd5b818801915088601f830112611d65575f80fd5b813581811115611d73575f80fd5b896020828501011115611d84575f80fd5b9699959850939650602001949392505050565b5f8060408385031215611da8575f80fd5b611db183611b1e565b9150611dbf60208401611b1e565b90509250929050565b5f60208284031215611dd8575f80fd5b813567ffffffffffffffff811115611dee575f80fd5b6114c584828501611bc9565b600181811c90821680611e0e57607f821691505b602082108103611e2c57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561072b5761072b611e32565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52603160045260245ffd5b5f60208284031215611e91575f80fd5b81516001600160e01b031981168114610cf3575f80fd5b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290525f828460a08401375f60a0848401015260a0601f19601f85011683010190509695505050505050565b747b226e616d65223a20224341495348454e5945202360581b815281515f90611f2a816015850160208701611ab3565b9190910160150192915050565b5f8251611f48818460208701611ab3565b7f222c226465736372697074696f6e223a224120636f6c6c656374696f6e206f669201918252507f20383838205265706c6963616e747320656e61626c656420627920455243343060208201527f342c20616e206578706572696d656e74616c20746f6b656e207374616e64617260408201526c321711161134b6b0b3b2911d1160991b6060820152606d01919050565b5f808454611fe681611dfa565b60018281168015611ffe57600181146120135761203f565b60ff198416875282151583028701945061203f565b885f526020805f205f5b858110156120365781548a82015290840190820161201d565b50505082870194505b50505050602f60f81b8152835161205d816001840160208801611ab3565b01600101949350505050565b5f835161207a818460208801611ab3565b83519083019061208e818360208801611ab3565b01949350505050565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a224c8152702aa1a5a127ac1116113b30b63ab2911d1160791b60208201525f82516120e8816031850160208701611ab3565b9190910160310192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c000000000081525f825161212c81601b850160208701611ab3565b91909101601b0192915050565b601f821115610abb57805f5260205f20601f840160051c8101602085101561215e5750805b601f840160051c820191505b81811015610ab8575f815560010161216a565b815167ffffffffffffffff81111561219757612197611bb5565b6121ab816121a58454611dfa565b84612139565b602080601f8311600181146121de575f84156121c75750858301515b5f19600386901b1c1916600185901b178555612235565b5f85815260208120601f198616915b8281101561220c578886015182559484019460019091019084016121ed565b508582101561222957878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b600181815b8085111561227757815f190482111561225d5761225d611e32565b8085161561226a57918102915b93841c9390800290612242565b509250929050565b5f8261228d5750600161072b565b8161229957505f61072b565b81600181146122af57600281146122b9576122d5565b600191505061072b565b60ff8411156122ca576122ca611e32565b50506001821b61072b565b5060208310610133831016604e8410600b84101617156122f8575081810a61072b565b612302838361223d565b805f190482111561231557612315611e32565b029392505050565b5f610cf360ff84168361227f565b8082018082111561072b5761072b611e32565b5f8261235857634e487b7160e01b5f52601260045260245ffd5b50049056fea2646970667358221220d2f126da2fb09dfdaa1f21b014e7ba2f2a2a242dff61a4ee360a0fac571bb5be64736f6c63430008170033000000000000000000000000cd4c00919d38c1814fb706275faf0c50d300466b00000000000000000000000000000000000000000000000000000000000003780000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a

Deployed Bytecode

0x608060405234801561000f575f80fd5b506004361061021e575f3560e01c8063715018a61161012a578063c87b56dd116100b4578063e30c397811610079578063e30c3978146104e2578063e985e9c5146104f3578063f0306ea414610520578063f2fde38b14610528578063f349b1731461053b575f80fd5b8063c87b56dd1461046b578063d547cfb71461047e578063dd62ed3e14610486578063e0df5b6f146104b0578063e2d6f33a146104c3575f80fd5b80639b19251a116100fa5780639b19251a14610408578063a22cb4651461042a578063a9059cbb1461043d578063b88d4fde14610450578063c6a6035a14610463575f80fd5b8063715018a6146103e057806379ba5097146103e85780638da5cb5b146103f057806395d89b4114610400575f80fd5b80634f02c420116101ab578063589210d91161017b578063589210d9146103915780635c975abb1461039a5780636352211e146103a55780636caae832146103b857806370a08231146103c1575f80fd5b80634f02c420146103595780634f91e48c14610362578063504334c21461036b57806353d6fd591461037e575f80fd5b80631e70b6df116101f15780631e70b6df146102d8578063207add91146102e557806323b872dd146102fa578063313ce5671461030d57806342842e0e14610346575f80fd5b806306fdde0314610222578063081812fc14610240578063095ea7b31461028057806318160ddd146102a3575b5f80fd5b61022a61055a565b6040516102379190611ad5565b60405180910390f35b61026861024e366004611b07565b60076020525f90815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610237565b61029361028e366004611b34565b6105e6565b6040519015158152602001610237565b6102ca7f0000000000000000000000000000000000000000000000302379bf2ca2e0000081565b604051908152602001610237565b6015546102939060ff1681565b6102f86102f3366004611b5c565b610731565b005b6102f8610308366004611b7c565b610744565b6103347f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff9091168152602001610237565b6102f8610354366004611b7c565b610ac0565b6102ca60045481565b6102ca60115481565b6102f8610379366004611c52565b610b91565b6102f861038c366004611cb2565b610ba7565b6102ca60105481565b600d5460ff16610293565b6102686103b3366004611b07565b610bd9565b6102ca60125481565b6102ca6103cf366004611ceb565b60056020525f908152604090205481565b6102f8610c13565b6102f8610c26565b5f546001600160a01b0316610268565b61022a610c6f565b610293610416366004611ceb565b600c6020525f908152604090205460ff1681565b6102f8610438366004611cb2565b610c7c565b61029361044b366004611b34565b610ce7565b6102f861045e366004611d04565b610cfa565b6102f8610dba565b61022a610479366004611b07565b610dd1565b61022a6111f9565b6102ca610494366004611d97565b600660209081525f928352604080842090915290825290205481565b6102f86104be366004611dc8565b611206565b6102ca6104d1366004611ceb565b60136020525f908152604090205481565b6001546001600160a01b0316610268565b610293610501366004611d97565b600860209081525f928352604080842090915290825290205460ff1681565b6102f861121a565b6102f8610536366004611ceb565b61122e565b6102ca610549366004611ceb565b60146020525f908152604090205481565b6002805461056790611dfa565b80601f016020809104026020016040519081016040528092919081815260200182805461059390611dfa565b80156105de5780601f106105b5576101008083540402835291602001916105de565b820191905f5260205f20905b8154815290600101906020018083116105c157829003601f168201915b505050505081565b5f60045482111580156105f857505f82115b156106cc575f828152600960205260409020546001600160a01b031633811480159061064757506001600160a01b0381165f90815260086020908152604080832033845290915290205460ff16155b15610664576040516282b42960e81b815260040160405180910390fd5b5f8381526007602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350610727565b335f8181526006602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b61073961129e565b601091909155601155565b6004548111610a54575f818152600960205260409020546001600160a01b0384811691161461078657604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0382166107ad57604051634e46966960e11b815260040160405180910390fd5b336001600160a01b038416148015906107e957506001600160a01b0383165f90815260086020908152604080832033845290915290205460ff16155b801561080b57505f818152600760205260409020546001600160a01b03163314155b15610828576040516282b42960e81b815260040160405180910390fd5b6108306112ca565b6001600160a01b0384165f9081526005602052604081208054909190610857908490611e46565b9091555061086590506112ca565b6001600160a01b038084165f81815260056020908152604080832080549096019095558582526009815284822080546001600160a01b031990811690941790556007815284822080549093169092559186168252600a905290812080546108ce90600190611e46565b815481106108de576108de611e59565b5f9182526020808320909101546001600160a01b0387168352600a82526040808420868552600b9093529092205481549293508392811061092157610921611e59565b5f9182526020808320909101929092556001600160a01b0386168152600a9091526040902080548061095557610955611e6d565b5f828152602080822083015f19908101839055909201909255838252600b8152604080832054848452818420556001600160a01b038616808452600a835290832080546001818101835582865293852001869055925290546109b79190611e46565b5f838152600b602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e031487610a3d6112ca565b60405190815260200160405180910390a350505050565b6001600160a01b0383165f9081526006602090815260408083203384529091529020545f198114610aad57610a898282611e46565b6001600160a01b0385165f9081526006602090815260408083203384529091529020555b610ab88484846112fb565b50505b505050565b610acb838383610744565b6001600160a01b0382163b15801590610b735750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401525f608484015290919084169063150b7a029060a4016020604051808303815f875af1158015610b42573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b669190611e81565b6001600160e01b03191614155b15610abb57604051633da6393160e01b815260040160405180910390fd5b610b9961129e565b610ba382826114cd565b5050565b610baf61129e565b6001600160a01b03919091165f908152600c60205260409020805460ff1916911515919091179055565b5f818152600960205260409020546001600160a01b031680610c0e5760405163c5723b5160e01b815260040160405180910390fd5b919050565b610c1b61129e565b610c245f6114e6565b565b60015433906001600160a01b03168114610c635760405163118cdaa760e01b81526001600160a01b03821660048201526024015b60405180910390fd5b610c6c816114e6565b50565b6003805461056790611dfa565b335f8181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b5f610cf33384846112fb565b9392505050565b610d05858585610744565b6001600160a01b0384163b15801590610d9c5750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610d4f9033908a90899089908990600401611ea8565b6020604051808303815f875af1158015610d6b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d8f9190611e81565b6001600160e01b03191614155b15610ab857604051633da6393160e01b815260040160405180910390fd5b610dc261129e565b6015805460ff19166001179055565b60605f82604051602001610de791815260200190565b6040516020818303038152906040528051906020012060f81c9050606080601e8360ff1611610e545760405180604001604052806005815260200164312e6a706760d81b8152509150604051806040016040528060048152602001630a4d2c6d60e31b81525090506110cc565b603c8360ff1611610ea35760405180604001604052806005815260200164322e6a706760d81b8152509150604051806040016040528060048152602001630a4d2c6d60e31b81525090506110cc565b605a8360ff1611610ef25760405180604001604052806005815260200164342e6a706760d81b8152509150604051806040016040528060048152602001630a4d2c6d60e31b81525090506110cc565b60788360ff1611610f415760405180604001604052806005815260200164352e6a706760d81b8152509150604051806040016040528060048152602001630a4d2c6d60e31b81525090506110cc565b60968360ff1611610f905760405180604001604052806005815260200164362e6a706760d81b8152509150604051806040016040528060048152602001630a4d2c6d60e31b81525090506110cc565b60b48360ff1611610fdf5760405180604001604052806005815260200164372e6a706760d81b8152509150604051806040016040528060048152602001630a4d2c6d60e31b81525090506110cc565b60d28360ff161161102e5760405180604001604052806005815260200164382e6a706760d81b8152509150604051806040016040528060048152602001630a4d2c6d60e31b81525090506110cc565b60fe8360ff161161107d5760405180604001604052806005815260200164392e6a706760d81b8152509150604051806040016040528060048152602001630a4d2c6d60e31b81525090506110cc565b60ff8360ff16116110cc5760405180604001604052806005815260200164332e6a706760d81b815250915060405180604001604052806008815260200167547265617375726560c01b81525090505b5f6110d6866114ff565b6040516020016110e69190611efa565b60408051601f198184030181529082905261110391602001611f37565b604051602081830303815290604052600f84604051602001611126929190611fd9565b60408051601f19818403018152908290526111449291602001612069565b60405160208183030381529060405290505f826040516020016111679190612097565b60408051601f1981840301815282820182526004835263227d5d7d60e01b60208481019190915291519093506111a1918591859101612069565b60408051601f19818403018152908290526111c0918390602001612069565b60408051601f19818403018152908290526111dd916020016120f5565b6040516020818303038152906040529650505050505050919050565b600f805461056790611dfa565b61120e61129e565b600f610ba3828261217d565b61122261129e565b6015805460ff19169055565b61123661129e565b600180546001600160a01b0383166001600160a01b031990911681179091556112665f546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b5f546001600160a01b03163314610c245760405163118cdaa760e01b8152336004820152602401610c5a565b5f6112f67f0000000000000000000000000000000000000000000000000000000000000012600a61231d565b905090565b5f61130461158f565b60155460ff16156113525760125482106113525760405162461bcd60e51b815260206004820152600f60248201526e195e18d95959081d1e081b1a5b5a5d608a1b6044820152606401610c5a565b6001600160a01b0384165f908152600c602052604090205460ff16611406576001600160a01b0384165f908152601460205260408120805484929061139890849061232b565b90915550506011546001600160a01b0385165f9081526014602052604090205411156114065760405162461bcd60e51b815260206004820152601b60248201527f6e6f7420616c6c6f77656420616e796d6f726520746f2073656c6c00000000006044820152606401610c5a565b6001600160a01b0383165f908152600c602052604090205460ff166114ba576001600160a01b0383165f908152601360205260408120805484929061144c90849061232b565b90915550506010546001600160a01b0384165f9081526013602052604090205411156114ba5760405162461bcd60e51b815260206004820152601a60248201527f6e6f7420616c6c6f77656420616e796d6f726520746f206275790000000000006044820152606401610c5a565b6114c58484846115b3565b949350505050565b60026114d9838261217d565b506003610abb828261217d565b600180546001600160a01b0319169055610c6c81611758565b60605f61150b836117a7565b60010190505f8167ffffffffffffffff81111561152a5761152a611bb5565b6040519080825280601f01601f191660200182016040528015611554576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461155e57509392505050565b600d5460ff1615610c245760405163d93c066560e01b815260040160405180910390fd5b5f806115bd6112ca565b6001600160a01b038087165f818152600560205260408082208054948a16835290822054928252939450919290918691906115f88386611e46565b90915550506001600160a01b038087165f90815260056020908152604080832080548a019055928a168252600c9052205460ff16611687576001600160a01b0387165f9081526005602052604081205461165390859061233e565b61165d858561233e565b6116679190611e46565b90505f5b818110156116845761167c8961187e565b60010161166b565b50505b6001600160a01b0386165f908152600c602052604090205460ff166116fe575f6116b1848361233e565b6001600160a01b0388165f908152600560205260409020546116d490869061233e565b6116de9190611e46565b90505f5b818110156116fb576116f38861199f565b6001016116e2565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e0314878760405161174391815260200190565b60405180910390a35060019695505050505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106117e55772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611811576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061182f57662386f26fc10000830492506010015b6305f5e1008310611847576305f5e100830492506008015b612710831061185b57612710830492506004015b6064831061186d576064830492506002015b600a831061072b5760010192915050565b6001600160a01b0381166118a557604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381165f908152600a6020526040812080546118ca90600190611e46565b815481106118da576118da611e59565b905f5260205f2001549050600a5f836001600160a01b03166001600160a01b031681526020019081526020015f2080548061191757611917611e6d565b5f828152602080822083015f19908101839055909201909255828252600b815260408083208390556009825280832080546001600160a01b031990811690915560079092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6119a761158f565b610c6c816001600160a01b0381166119d257604051634e46966960e11b815260040160405180910390fd5b60048054600101908190555f818152600960205260409020546001600160a01b031615611a125760405163119b4fd360e11b815260040160405180910390fd5b5f81815260096020908152604080832080546001600160a01b0319166001600160a01b038716908117909155808452600a83529083208054600181810183558286529385200185905592529054611a699190611e46565b5f828152600b602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5f5b83811015611acd578181015183820152602001611ab5565b50505f910152565b602081525f8251806020840152611af3816040850160208701611ab3565b601f01601f19169190910160400192915050565b5f60208284031215611b17575f80fd5b5035919050565b80356001600160a01b0381168114610c0e575f80fd5b5f8060408385031215611b45575f80fd5b611b4e83611b1e565b946020939093013593505050565b5f8060408385031215611b6d575f80fd5b50508035926020909101359150565b5f805f60608486031215611b8e575f80fd5b611b9784611b1e565b9250611ba560208501611b1e565b9150604084013590509250925092565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112611bd8575f80fd5b813567ffffffffffffffff80821115611bf357611bf3611bb5565b604051601f8301601f19908116603f01168101908282118183101715611c1b57611c1b611bb5565b81604052838152866020858801011115611c33575f80fd5b836020870160208301375f602085830101528094505050505092915050565b5f8060408385031215611c63575f80fd5b823567ffffffffffffffff80821115611c7a575f80fd5b611c8686838701611bc9565b93506020850135915080821115611c9b575f80fd5b50611ca885828601611bc9565b9150509250929050565b5f8060408385031215611cc3575f80fd5b611ccc83611b1e565b915060208301358015158114611ce0575f80fd5b809150509250929050565b5f60208284031215611cfb575f80fd5b610cf382611b1e565b5f805f805f60808688031215611d18575f80fd5b611d2186611b1e565b9450611d2f60208701611b1e565b935060408601359250606086013567ffffffffffffffff80821115611d52575f80fd5b818801915088601f830112611d65575f80fd5b813581811115611d73575f80fd5b896020828501011115611d84575f80fd5b9699959850939650602001949392505050565b5f8060408385031215611da8575f80fd5b611db183611b1e565b9150611dbf60208401611b1e565b90509250929050565b5f60208284031215611dd8575f80fd5b813567ffffffffffffffff811115611dee575f80fd5b6114c584828501611bc9565b600181811c90821680611e0e57607f821691505b602082108103611e2c57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561072b5761072b611e32565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52603160045260245ffd5b5f60208284031215611e91575f80fd5b81516001600160e01b031981168114610cf3575f80fd5b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290525f828460a08401375f60a0848401015260a0601f19601f85011683010190509695505050505050565b747b226e616d65223a20224341495348454e5945202360581b815281515f90611f2a816015850160208701611ab3565b9190910160150192915050565b5f8251611f48818460208701611ab3565b7f222c226465736372697074696f6e223a224120636f6c6c656374696f6e206f669201918252507f20383838205265706c6963616e747320656e61626c656420627920455243343060208201527f342c20616e206578706572696d656e74616c20746f6b656e207374616e64617260408201526c321711161134b6b0b3b2911d1160991b6060820152606d01919050565b5f808454611fe681611dfa565b60018281168015611ffe57600181146120135761203f565b60ff198416875282151583028701945061203f565b885f526020805f205f5b858110156120365781548a82015290840190820161201d565b50505082870194505b50505050602f60f81b8152835161205d816001840160208801611ab3565b01600101949350505050565b5f835161207a818460208801611ab3565b83519083019061208e818360208801611ab3565b01949350505050565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a224c8152702aa1a5a127ac1116113b30b63ab2911d1160791b60208201525f82516120e8816031850160208701611ab3565b9190910160310192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c000000000081525f825161212c81601b850160208701611ab3565b91909101601b0192915050565b601f821115610abb57805f5260205f20601f840160051c8101602085101561215e5750805b601f840160051c820191505b81811015610ab8575f815560010161216a565b815167ffffffffffffffff81111561219757612197611bb5565b6121ab816121a58454611dfa565b84612139565b602080601f8311600181146121de575f84156121c75750858301515b5f19600386901b1c1916600185901b178555612235565b5f85815260208120601f198616915b8281101561220c578886015182559484019460019091019084016121ed565b508582101561222957878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b600181815b8085111561227757815f190482111561225d5761225d611e32565b8085161561226a57918102915b93841c9390800290612242565b509250929050565b5f8261228d5750600161072b565b8161229957505f61072b565b81600181146122af57600281146122b9576122d5565b600191505061072b565b60ff8411156122ca576122ca611e32565b50506001821b61072b565b5060208310610133831016604e8410600b84101617156122f8575081810a61072b565b612302838361223d565b805f190482111561231557612315611e32565b029392505050565b5f610cf360ff84168361227f565b8082018082111561072b5761072b611e32565b5f8261235857634e487b7160e01b5f52601260045260245ffd5b50049056fea2646970667358221220d2f126da2fb09dfdaa1f21b014e7ba2f2a2a242dff61a4ee360a0fac571bb5be64736f6c63430008170033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000cd4c00919d38c1814fb706275faf0c50d300466b00000000000000000000000000000000000000000000000000000000000003780000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a

-----Decoded View---------------
Arg [0] : _owner (address): 0xCd4C00919d38c1814fB706275FAF0C50D300466b
Arg [1] : _initialSupply (uint256): 888
Arg [2] : _decimal (uint8): 18
Arg [3] : _buylimit (uint256): 10
Arg [4] : _selllimit (uint256): 10

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000cd4c00919d38c1814fb706275faf0c50d300466b
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000378
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000a


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.