ETH Price: $3,268.73 (+0.60%)
Gas: 1 Gwei

Token

Big Brain Beings (BBB)
 

Overview

Max Total Supply

307 BBB

Holders

139

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 BBB
0x568f1ba8dac5ddd6c0a910a0b672f993eaa3fa49
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:
BigBrainBeings

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 2000 runs

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

pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

import "@rari-capital/solmate/src/tokens/ERC721.sol";

/**
 * @title MintSchedule
 * @author 0xVersteckt
 * @dev Mint schedule struct for keeping track of price, {cadence} (mints per schedule) and how many {rounds} occur
 * @notice
 */
struct MintSchedule {
    uint256 price;
    uint256 cadence;
    uint256 rounds;
}

/**
 * @title Recipient
 * @author 0xVersteckt
 * @dev Used to keep track of airdrop recipients
 * @notice
 */
struct Recipient {
    uint256 tokenId;
    uint256 timestamp;
    address recipient;
}

/**
 * @title Big Brain Beings NFT
 * @author 0xVersteckt
 * @notice Potentially profitable otherworldly beings in the form of worthless jpegs
 */
contract BigBrainBeings is ERC721, Ownable {
    using Counters for Counters.Counter;

    /// @notice Max supply
    uint256 public constant MAX_SUPPLY = 20000;

    /// @notice Mint price
    uint256 public constant MINT_PRICE = 0.05 ether;

    string private _baseTokenURI = "";

    /// @notice Track current number of mints, starts with 1
    Counters.Counter private _mintCounter;

    /// @notice Track current mint schedules as minting progresses
    Counters.Counter private _mintScheduleCounter;

    /// @notice Tracks total mint schedules. Setup as a Counter to allow for dynamic progressive games.
    Counters.Counter private _totalMintScheduleCounter;

    /// @notice Tracks current round of current mint schedule
    Counters.Counter private _roundCounter;

    /// @notice Tracks total rounds completed
    Counters.Counter private _totalRoundCounter;

    /// @notice Tracks total existing price feeds
    Counters.Counter private _totalPriceFeedCounter;

    mapping(uint256 => MintSchedule) private _mintSchedules;

    /// @notice Keep track of selected recipients for each round
    mapping(uint256 => Recipient) private _recipients;

    /// @notice Creator address
    address private _creatorAddress;

    constructor() ERC721("Big Brain Beings", "BBB") {
        _creatorAddress = msg.sender;

        _setBaseTokenURI("https://api.bigbrainbeings.com/api/traits/");

        /// @notice 5 {cadence} * 4000 {rounds} = 20000 {MAX_SUPPLY}
        _addMintSchedule(MINT_PRICE, 5, 4000);

        /// @notice Start minting at 1 to reduce gas fees for first minter
        _mintCounter.increment();
    }

    modifier isCorrectPayment() {
        require(msg.value == MINT_PRICE, "Incorrect ETH value sent");
        _;
    }

    // #region Public views
    function getRecipientTokenByRound(
        uint256 index
    ) public view returns (uint256) {
        return _recipients[index].tokenId;
    }

    function getRecipientAddressByRound(
        uint256 index
    ) public view returns (address) {
        return _recipients[index].recipient;
    }

    function getRecipientInfoByRound(
        uint256 index
    ) public view returns (Recipient memory) {
        return _recipients[index];
    }

    function getTotalCompletedRounds() public view returns (uint256) {
        return _totalRoundCounter.current();
    }

    function getTotalSchedules() public view returns (uint256) {
        return _totalMintScheduleCounter.current();
    }

    function totalSupply() public view returns (uint256) {
        return _mintCounter.current() - 1;
    }

    function getMintsRemaining() public view returns (uint256) {
        return MAX_SUPPLY - totalSupply();
    }

    function getCurrentSchedule() public view returns (uint256) {
        return _mintScheduleCounter.current();
    }

    function getCurrentPool() public view returns (uint256) {
        return getPoolByIndex(getCurrentSchedule());
    }

    function getPoolByIndex(uint256 index) public view returns (uint256) {
        return _mintSchedules[index].cadence * _mintSchedules[index].price;
    }

    function setBaseTokenURI(string memory uri) public onlyOwner {
        _setBaseTokenURI(uri);
    }

    function baseTokenURI() public view returns (string memory) {
        return _baseTokenURI;
    }

    function tokenURI(
        uint256 _tokenId
    ) public view override returns (string memory) {
        return
            string(
                abi.encodePacked(baseTokenURI(), Strings.toString(_tokenId))
            );
    }

    // #endregion

    // #region Public mint methods
    function mint() external payable isCorrectPayment returns (uint256) {
        return _mintTo(msg.sender);
    }

    // #endregion

    // #region Private functions
    function _setBaseTokenURI(string memory uri) private {
        _baseTokenURI = uri;
    }
    
    function _mintTo(address receiver) internal returns (uint256) {
        require(totalSupply() + 1 <= MAX_SUPPLY, "MAX_SUPPLY hit");

        (bool success1, ) = address(_creatorAddress).call{
            value: (msg.value * 50) / 100
        }("");
        require(success1, "Send to creator failed");

        _safeMint(receiver, _mintCounter.current());

        // New round, select recipient
        if (
            _mintScheduleCounter.current() <
            _totalMintScheduleCounter.current() &&
            (_mintCounter.current() - _sumCompletedRounds()) %
                _mintSchedules[_mintScheduleCounter.current()].cadence ==
            0
        ) {
            uint256 selectedTokenId = _selectTokenId(_mintCounter.current());
            _recipients[_totalRoundCounter.current()] = Recipient(
                selectedTokenId,
                block.timestamp,
                this.ownerOf(selectedTokenId)
            );

            // New MintSchedule
            if (
                _roundCounter.current() ==
                _mintSchedules[_mintScheduleCounter.current()].rounds - 1
            ) {
                _mintScheduleCounter.increment();
                _roundCounter.reset();
            } else {
                _roundCounter.increment();
            }

            // Send Eth balance to recipient
            (bool success2, ) = address(
                _recipients[_totalRoundCounter.current()].recipient
            ).call{value: address(this).balance}("");
            require(success2, "Failed to send Ether");

            _totalRoundCounter.increment();
        }
        _mintCounter.increment();
        return
            _totalRoundCounter.current() > 0
                ? _recipients[_totalRoundCounter.current() - 1].tokenId
                : 0;
    }

    function _addMintSchedule(
        uint256 price,
        uint256 cadence,
        uint256 rounds
    ) private {
        _mintSchedules[_totalMintScheduleCounter.current()] = MintSchedule(
            price,
            cadence,
            rounds
        );
        _totalMintScheduleCounter.increment();
    }

    function _sumCompletedRounds() private view returns (uint256) {
        uint256 aggregateTotal;
        if (_mintScheduleCounter.current() > 0) {
            for (
                uint256 i = 0;
                i < _mintScheduleCounter.current();
                i = _unsafeIncrement(i)
            ) {
                unchecked {
                    aggregateTotal =
                        aggregateTotal +
                        (_mintSchedules[i].cadence * _mintSchedules[i].rounds);
                }
            }
        }
        return aggregateTotal;
    }

    function _selectTokenId(uint256 maxValue) private view returns (uint256) {
        return (uint256((_random() % maxValue) + 1));
    }

    function _unsafeIncrement(uint256 x) private pure returns (uint256) {
        unchecked {
            return x + 1;
        }
    }

    function _random() private view returns (uint256) {
        uint256 seed = uint256(
            keccak256(
                abi.encodePacked(
                    block.timestamp +
                        block.prevrandao +
                        ((
                            uint256(keccak256(abi.encodePacked(block.coinbase)))
                        ) / (block.timestamp)) +
                        gasleft() +
                        _mintCounter.current() +
                        ((uint256(keccak256(abi.encodePacked(msg.sender)))) /
                            (block.timestamp)) +
                        block.number
                )
            )
        );
        return (seed - (seed / _mintCounter.current()));
    }

    function withdrawERC20(address tokenContract) external {
        bool success = IERC20(tokenContract).transfer(
            address(_creatorAddress),
            IERC20(tokenContract).balanceOf(address(this))
        );
        require(success, "Withdraw faied");
    }

    // #endregion
}

File 2 of 12 : ERC721.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 indexed id);

    event Approval(address indexed owner, address indexed spender, uint256 indexed id);

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /*//////////////////////////////////////////////////////////////
                         METADATA STORAGE/LOGIC
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    function tokenURI(uint256 id) public view virtual returns (string memory);

    /*//////////////////////////////////////////////////////////////
                      ERC721 BALANCE/OWNER STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) internal _ownerOf;

    mapping(address => uint256) internal _balanceOf;

    function ownerOf(uint256 id) public view virtual returns (address owner) {
        require((owner = _ownerOf[id]) != address(0), "NOT_MINTED");
    }

    function balanceOf(address owner) public view virtual returns (uint256) {
        require(owner != address(0), "ZERO_ADDRESS");

        return _balanceOf[owner];
    }

    /*//////////////////////////////////////////////////////////////
                         ERC721 APPROVAL STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) public getApproved;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    /*//////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 id) public virtual {
        address owner = _ownerOf[id];

        require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");

        getApproved[id] = spender;

        emit Approval(owner, spender, id);
    }

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        require(from == _ownerOf[id], "WRONG_FROM");

        require(to != address(0), "INVALID_RECIPIENT");

        require(
            msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id],
            "NOT_AUTHORIZED"
        );

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        unchecked {
            _balanceOf[from]--;

            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        delete getApproved[id];

        emit Transfer(from, to, id);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes calldata data
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    /*//////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 id) internal virtual {
        require(to != address(0), "INVALID_RECIPIENT");

        require(_ownerOf[id] == address(0), "ALREADY_MINTED");

        // Counter overflow is incredibly unrealistic.
        unchecked {
            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        emit Transfer(address(0), to, id);
    }

    function _burn(uint256 id) internal virtual {
        address owner = _ownerOf[id];

        require(owner != address(0), "NOT_MINTED");

        // Ownership check above ensures no underflow.
        unchecked {
            _balanceOf[owner]--;
        }

        delete _ownerOf[id];

        delete getApproved[id];

        emit Transfer(owner, address(0), id);
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL SAFE MINT LOGIC
    //////////////////////////////////////////////////////////////*/

    function _safeMint(address to, uint256 id) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _safeMint(
        address to,
        uint256 id,
        bytes memory data
    ) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }
}

/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721TokenReceiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721TokenReceiver.onERC721Received.selector;
    }
}

File 3 of 12 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 4 of 12 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 5 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 6 of 12 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 7 of 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 8 of 12 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 9 of 12 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC20.sol";
import "../../../utils/Context.sol";

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

File 10 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

File 11 of 12 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(address from, address to, uint256 amount) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}

File 12 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. 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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 2000
  },
  "evmVersion": "shanghai",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentSchedule","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintsRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getPoolByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRecipientAddressByRound","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRecipientInfoByRound","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct Recipient","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRecipientTokenByRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalCompletedRounds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalSchedules","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContract","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040525f608090815260079062000019908262000276565b5034801562000026575f80fd5b506040518060400160405280601081526020016f42696720427261696e204265696e677360801b8152506040518060400160405280600381526020016221212160e91b815250815f90816200007c919062000276565b5060016200008b828262000276565b505050620000a8620000a26200010b60201b60201c565b6200010f565b601080546001600160a01b031916331790556040805160608101909152602a808252620000df91906200249c602083013962000160565b620000f666b1a2bc2ec500006005610fa062000172565b62000105600880546001019055565b6200033e565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b60076200016e828262000276565b5050565b6040805160608101825284815260208101849052908101829052600e5f62000199600a5490565b815260208082019290925260409081015f20835181559183015160018301559190910151600290910155620001d2600a80546001019055565b505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200020057607f821691505b6020821081036200021f57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620001d2575f81815260208120601f850160051c810160208610156200024d5750805b601f850160051c820191505b818110156200026e5782815560010162000259565b505050505050565b81516001600160401b03811115620002925762000292620001d7565b620002aa81620002a38454620001eb565b8462000225565b602080601f831160018114620002e0575f8415620002c85750858301515b5f19600386901b1c1916600185901b1785556200026e565b5f85815260208120601f198616915b828110156200031057888601518255948401946001909101908401620002ef565b50858210156200032e57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b612150806200034c5f395ff3fe6080604052600436106101db575f3560e01c8063715018a6116100fd578063bd3ac01811610092578063d547cfb711610062578063d547cfb714610566578063e985e9c51461057a578063f2fde38b146105b3578063f4f3b200146105d2575f80fd5b8063bd3ac018146104cb578063c002d23d14610502578063c87b56dd1461051c578063cb34ca1d1461053b575f80fd5b806395d89b41116100cd57806395d89b4114610465578063966fc43314610479578063a22cb4651461048d578063b88d4fde146104ac575f80fd5b8063715018a61461040c5780638a1a5f3f146104205780638c2d3ad0146104345780638da5cb5b14610448575f80fd5b80631a595f651161017357806342842e0e1161014357806342842e0e146103905780636352211e146103af5780636ce0c4b5146103ce57806370a08231146103ed575f80fd5b80631a595f651461032957806323b872dd1461033d57806330176e131461035c57806332cb6b0c1461037b575f80fd5b80630dbf3dfa116101ae5780630dbf3dfa146102a157806311f888b3146102c35780631249c58b1461030d57806318160ddd14610315575f80fd5b806301ffc9a7146101df57806306fdde0314610213578063081812fc14610234578063095ea7b314610280575b5f80fd5b3480156101ea575f80fd5b506101fe6101f9366004611b89565b6105f1565b60405190151581526020015b60405180910390f35b34801561021e575f80fd5b5061022761068d565b60405161020a9190611bc6565b34801561023f575f80fd5b5061026861024e366004611bf8565b60046020525f90815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161020a565b34801561028b575f80fd5b5061029f61029a366004611c23565b610718565b005b3480156102ac575f80fd5b506102b5610818565b60405190815260200161020a565b3480156102ce575f80fd5b506102e26102dd366004611bf8565b610832565b604080518251815260208084015190820152918101516001600160a01b03169082015260600161020a565b6102b561089d565b348015610320575f80fd5b506102b56108fd565b348015610334575f80fd5b506102b5610913565b348015610348575f80fd5b5061029f610357366004611c4d565b61091f565b348015610367575f80fd5b5061029f610376366004611c9f565b610b1c565b348015610386575f80fd5b506102b5614e2081565b34801561039b575f80fd5b5061029f6103aa366004611c4d565b610b30565b3480156103ba575f80fd5b506102686103c9366004611bf8565b610c31565b3480156103d9575f80fd5b506102b56103e8366004611bf8565b610c9a565b3480156103f8575f80fd5b506102b5610407366004611d4a565b610cb9565b348015610417575f80fd5b5061029f610d2b565b34801561042b575f80fd5b506102b5610d3e565b34801561043f575f80fd5b506102b5610d48565b348015610453575f80fd5b506006546001600160a01b0316610268565b348015610470575f80fd5b50610227610d52565b348015610484575f80fd5b506102b5610d5f565b348015610498575f80fd5b5061029f6104a7366004611d72565b610d69565b3480156104b7575f80fd5b5061029f6104c6366004611da9565b610df2565b3480156104d6575f80fd5b506102686104e5366004611bf8565b5f908152600f60205260409020600201546001600160a01b031690565b34801561050d575f80fd5b506102b566b1a2bc2ec5000081565b348015610527575f80fd5b50610227610536366004611bf8565b610ee4565b348015610546575f80fd5b506102b5610555366004611bf8565b5f908152600f602052604090205490565b348015610571575f80fd5b50610227610f1e565b348015610585575f80fd5b506101fe610594366004611e40565b600560209081525f928352604080842090915290825290205460ff1681565b3480156105be575f80fd5b5061029f6105cd366004611d4a565b610fae565b3480156105dd575f80fd5b5061029f6105ec366004611d4a565b61103b565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316148061065357507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b8061068757507f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b5f805461069990611e6c565b80601f01602080910402602001604051908101604052809291908181526020018280546106c590611e6c565b80156107105780601f106106e757610100808354040283529160200191610710565b820191905f5260205f20905b8154815290600101906020018083116106f357829003601f168201915b505050505081565b5f818152600260205260409020546001600160a01b03163381148061075f57506001600160a01b0381165f90815260056020908152604080832033845290915290205460ff165b6107b05760405162461bcd60e51b815260206004820152600e60248201527f4e4f545f415554484f52495a454400000000000000000000000000000000000060448201526064015b60405180910390fd5b5f82815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b5f6108216108fd565b61082d90614e20611eb2565b905090565b61085c60405180606001604052805f81526020015f81526020015f6001600160a01b031681525090565b505f908152600f6020908152604091829020825160608101845281548152600182015492810192909252600201546001600160a01b03169181019190915290565b5f66b1a2bc2ec5000034146108f45760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e74000000000000000060448201526064016107a7565b61082d3361118c565b5f600161090960085490565b61082d9190611eb2565b5f61082d6103e8610d3e565b5f818152600260205260409020546001600160a01b038481169116146109875760405162461bcd60e51b815260206004820152600a60248201527f57524f4e475f46524f4d0000000000000000000000000000000000000000000060448201526064016107a7565b6001600160a01b0382166109dd5760405162461bcd60e51b815260206004820152601160248201527f494e56414c49445f524543495049454e5400000000000000000000000000000060448201526064016107a7565b336001600160a01b0384161480610a1657506001600160a01b0383165f90815260056020908152604080832033845290915290205460ff165b80610a3657505f818152600460205260409020546001600160a01b031633145b610a825760405162461bcd60e51b815260206004820152600e60248201527f4e4f545f415554484f52495a454400000000000000000000000000000000000060448201526064016107a7565b6001600160a01b038084165f81815260036020908152604080832080545f190190559386168083528483208054600101905585835260028252848320805473ffffffffffffffffffffffffffffffffffffffff199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610b24611589565b610b2d816115e3565b50565b610b3b83838361091f565b6001600160a01b0382163b1580610be05750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401525f608484015290919084169063150b7a029060a4016020604051808303815f875af1158015610bb0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bd49190611ec5565b6001600160e01b031916145b610c2c5760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e540000000000000000000000000000000060448201526064016107a7565b505050565b5f818152600260205260409020546001600160a01b031680610c955760405162461bcd60e51b815260206004820152600a60248201527f4e4f545f4d494e5445440000000000000000000000000000000000000000000060448201526064016107a7565b919050565b5f818152600e6020526040812080546001909101546106879190611ee0565b5f6001600160a01b038216610d105760405162461bcd60e51b815260206004820152600c60248201527f5a45524f5f41444452455353000000000000000000000000000000000000000060448201526064016107a7565b506001600160a01b03165f9081526003602052604090205490565b610d33611589565b610d3c5f6115ef565b565b5f61082d60095490565b5f61082d600a5490565b6001805461069990611e6c565b5f61082d600c5490565b335f8181526005602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610dfd85858561091f565b6001600160a01b0384163b1580610e915750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610e459033908a90899089908990600401611ef7565b6020604051808303815f875af1158015610e61573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e859190611ec5565b6001600160e01b031916145b610edd5760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e540000000000000000000000000000000060448201526064016107a7565b5050505050565b6060610eee610f1e565b610ef78361164d565b604051602001610f08929190611f49565b6040516020818303038152906040529050919050565b606060078054610f2d90611e6c565b80601f0160208091040260200160405190810160405280929190818152602001828054610f5990611e6c565b8015610fa45780601f10610f7b57610100808354040283529160200191610fa4565b820191905f5260205f20905b815481529060010190602001808311610f8757829003601f168201915b5050505050905090565b610fb6611589565b6001600160a01b0381166110325760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107a7565b610b2d816115ef565b6010546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f916001600160a01b038481169263a9059cbb92919091169083906370a0823190602401602060405180830381865afa1580156110a9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110cd9190611f77565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af1158015611115573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111399190611f8e565b9050806111885760405162461bcd60e51b815260206004820152600e60248201527f576974686472617720666169656400000000000000000000000000000000000060448201526064016107a7565b5050565b5f614e206111986108fd565b6111a3906001611fa9565b11156111f15760405162461bcd60e51b815260206004820152600e60248201527f4d41585f535550504c592068697400000000000000000000000000000000000060448201526064016107a7565b6010545f906001600160a01b0316606461120c346032611ee0565b6112169190611fd0565b6040515f81818185875af1925050503d805f811461124f576040519150601f19603f3d011682016040523d82523d5f602084013e611254565b606091505b50509050806112a55760405162461bcd60e51b815260206004820152601660248201527f53656e6420746f2063726561746f72206661696c65640000000000000000000060448201526064016107a7565b6112b7836112b260085490565b6116ea565b600a546009541080156113035750600e5f6112d160095490565b81526020019081526020015f20600101546112ea6117e2565b6008546112f79190611eb2565b6113019190611fe3565b155b15611536575f61131a61131560085490565b61182a565b6040805160608101825282815242602082015281517f6352211e0000000000000000000000000000000000000000000000000000000081526004810184905292935091908201903090636352211e90602401602060405180830381865afa158015611387573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113ab9190611ff6565b6001600160a01b03169052600f5f6113c2600c5490565b81526020019081526020015f205f820151815f0155602082015181600101556040820151816002015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055509050506001600e5f61141e60095490565b81526020019081526020015f20600201546114399190611eb2565b600b54036114585761144f600980546001019055565b5f600b55611466565b611466600b80546001019055565b5f600f5f611473600c5490565b8152602081019190915260409081015f9081206002015491516001600160a01b0390921691479181818185875af1925050503d805f81146114cf576040519150601f19603f3d011682016040523d82523d5f602084013e6114d4565b606091505b50509050806115255760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e6420457468657200000000000000000000000060448201526064016107a7565b611533600c80546001019055565b50505b611544600880546001019055565b5f61154e600c5490565b11611559575f611582565b600f5f6001611567600c5490565b6115719190611eb2565b81526020019081526020015f205f01545b9392505050565b6006546001600160a01b03163314610d3c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107a7565b6007611188828261205e565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b60605f61165983611849565b60010190505f8167ffffffffffffffff81111561167857611678611c8b565b6040519080825280601f01601f1916602001820160405280156116a2576020820181803683370190505b5090508181016020015b5f19017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85049450846116ac57509392505050565b6116f4828261192a565b6001600160a01b0382163b15806117965750604051630a85bd0160e11b8082523360048301525f6024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303815f875af1158015611766573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061178a9190611ec5565b6001600160e01b031916145b6111885760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e540000000000000000000000000000000060448201526064016107a7565b5f805f6117ee60095490565b1115610c95575f5b600954811015611824575f818152600e602052604090206002810154600191820154029290920191016117f6565b50919050565b5f81611834611a5b565b61183e9190611fe3565b610687906001611fa9565b5f807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611891577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106118bd576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106118db57662386f26fc10000830492506010015b6305f5e10083106118f3576305f5e100830492506008015b612710831061190757612710830492506004015b60648310611919576064830492506002015b600a83106106875760010192915050565b6001600160a01b0382166119805760405162461bcd60e51b815260206004820152601160248201527f494e56414c49445f524543495049454e5400000000000000000000000000000060448201526064016107a7565b5f818152600260205260409020546001600160a01b0316156119e45760405162461bcd60e51b815260206004820152600e60248201527f414c52454144595f4d494e54454400000000000000000000000000000000000060448201526064016107a7565b6001600160a01b0382165f818152600360209081526040808320805460010190558483526002909152808220805473ffffffffffffffffffffffffffffffffffffffff19168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040516bffffffffffffffffffffffff193360601b1660208201525f90819043904290603401604051602081830303815290604052805190602001205f1c611aa39190611fd0565b6008545a6040516bffffffffffffffffffffffff194160601b1660208201524290603401604051602081830303815290604052805190602001205f1c611ae99190611fd0565b611af34442611fa9565b611afd9190611fa9565b611b079190611fa9565b611b119190611fa9565b611b1b9190611fa9565b611b259190611fa9565b604051602001611b3791815260200190565b604051602081830303815290604052805190602001205f1c9050611b5a60085490565b611b649082611fd0565b611b6e9082611eb2565b91505090565b6001600160e01b031981168114610b2d575f80fd5b5f60208284031215611b99575f80fd5b813561158281611b74565b5f5b83811015611bbe578181015183820152602001611ba6565b50505f910152565b602081525f8251806020840152611be4816040850160208701611ba4565b601f01601f19169190910160400192915050565b5f60208284031215611c08575f80fd5b5035919050565b6001600160a01b0381168114610b2d575f80fd5b5f8060408385031215611c34575f80fd5b8235611c3f81611c0f565b946020939093013593505050565b5f805f60608486031215611c5f575f80fd5b8335611c6a81611c0f565b92506020840135611c7a81611c0f565b929592945050506040919091013590565b634e487b7160e01b5f52604160045260245ffd5b5f60208284031215611caf575f80fd5b813567ffffffffffffffff80821115611cc6575f80fd5b818401915084601f830112611cd9575f80fd5b813581811115611ceb57611ceb611c8b565b604051601f8201601f19908116603f01168101908382118183101715611d1357611d13611c8b565b81604052828152876020848701011115611d2b575f80fd5b826020860160208301375f928101602001929092525095945050505050565b5f60208284031215611d5a575f80fd5b813561158281611c0f565b8015158114610b2d575f80fd5b5f8060408385031215611d83575f80fd5b8235611d8e81611c0f565b91506020830135611d9e81611d65565b809150509250929050565b5f805f805f60808688031215611dbd575f80fd5b8535611dc881611c0f565b94506020860135611dd881611c0f565b935060408601359250606086013567ffffffffffffffff80821115611dfb575f80fd5b818801915088601f830112611e0e575f80fd5b813581811115611e1c575f80fd5b896020828501011115611e2d575f80fd5b9699959850939650602001949392505050565b5f8060408385031215611e51575f80fd5b8235611e5c81611c0f565b91506020830135611d9e81611c0f565b600181811c90821680611e8057607f821691505b60208210810361182457634e487b7160e01b5f52602260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8181038181111561068757610687611e9e565b5f60208284031215611ed5575f80fd5b815161158281611b74565b808202811582820484141761068757610687611e9e565b5f6001600160a01b03808816835280871660208401525084604083015260806060830152826080830152828460a08401375f60a0848401015260a0601f19601f85011683010190509695505050505050565b5f8351611f5a818460208801611ba4565b835190830190611f6e818360208801611ba4565b01949350505050565b5f60208284031215611f87575f80fd5b5051919050565b5f60208284031215611f9e575f80fd5b815161158281611d65565b8082018082111561068757610687611e9e565b634e487b7160e01b5f52601260045260245ffd5b5f82611fde57611fde611fbc565b500490565b5f82611ff157611ff1611fbc565b500690565b5f60208284031215612006575f80fd5b815161158281611c0f565b601f821115610c2c575f81815260208120601f850160051c810160208610156120375750805b601f850160051c820191505b8181101561205657828155600101612043565b505050505050565b815167ffffffffffffffff81111561207857612078611c8b565b61208c816120868454611e6c565b84612011565b602080601f8311600181146120bf575f84156120a85750858301515b5f19600386901b1c1916600185901b178555612056565b5f85815260208120601f198616915b828110156120ed578886015182559484019460019091019084016120ce565b508582101561210a57878501515f19600388901b60f8161c191681555b5050505050600190811b0190555056fea26469706673582212207d715c4da3625a9232cf6da979d0fed269afa58d712376da26f810cdc474d54464736f6c6343000814003368747470733a2f2f6170692e626967627261696e6265696e67732e636f6d2f6170692f7472616974732f

Deployed Bytecode

0x6080604052600436106101db575f3560e01c8063715018a6116100fd578063bd3ac01811610092578063d547cfb711610062578063d547cfb714610566578063e985e9c51461057a578063f2fde38b146105b3578063f4f3b200146105d2575f80fd5b8063bd3ac018146104cb578063c002d23d14610502578063c87b56dd1461051c578063cb34ca1d1461053b575f80fd5b806395d89b41116100cd57806395d89b4114610465578063966fc43314610479578063a22cb4651461048d578063b88d4fde146104ac575f80fd5b8063715018a61461040c5780638a1a5f3f146104205780638c2d3ad0146104345780638da5cb5b14610448575f80fd5b80631a595f651161017357806342842e0e1161014357806342842e0e146103905780636352211e146103af5780636ce0c4b5146103ce57806370a08231146103ed575f80fd5b80631a595f651461032957806323b872dd1461033d57806330176e131461035c57806332cb6b0c1461037b575f80fd5b80630dbf3dfa116101ae5780630dbf3dfa146102a157806311f888b3146102c35780631249c58b1461030d57806318160ddd14610315575f80fd5b806301ffc9a7146101df57806306fdde0314610213578063081812fc14610234578063095ea7b314610280575b5f80fd5b3480156101ea575f80fd5b506101fe6101f9366004611b89565b6105f1565b60405190151581526020015b60405180910390f35b34801561021e575f80fd5b5061022761068d565b60405161020a9190611bc6565b34801561023f575f80fd5b5061026861024e366004611bf8565b60046020525f90815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161020a565b34801561028b575f80fd5b5061029f61029a366004611c23565b610718565b005b3480156102ac575f80fd5b506102b5610818565b60405190815260200161020a565b3480156102ce575f80fd5b506102e26102dd366004611bf8565b610832565b604080518251815260208084015190820152918101516001600160a01b03169082015260600161020a565b6102b561089d565b348015610320575f80fd5b506102b56108fd565b348015610334575f80fd5b506102b5610913565b348015610348575f80fd5b5061029f610357366004611c4d565b61091f565b348015610367575f80fd5b5061029f610376366004611c9f565b610b1c565b348015610386575f80fd5b506102b5614e2081565b34801561039b575f80fd5b5061029f6103aa366004611c4d565b610b30565b3480156103ba575f80fd5b506102686103c9366004611bf8565b610c31565b3480156103d9575f80fd5b506102b56103e8366004611bf8565b610c9a565b3480156103f8575f80fd5b506102b5610407366004611d4a565b610cb9565b348015610417575f80fd5b5061029f610d2b565b34801561042b575f80fd5b506102b5610d3e565b34801561043f575f80fd5b506102b5610d48565b348015610453575f80fd5b506006546001600160a01b0316610268565b348015610470575f80fd5b50610227610d52565b348015610484575f80fd5b506102b5610d5f565b348015610498575f80fd5b5061029f6104a7366004611d72565b610d69565b3480156104b7575f80fd5b5061029f6104c6366004611da9565b610df2565b3480156104d6575f80fd5b506102686104e5366004611bf8565b5f908152600f60205260409020600201546001600160a01b031690565b34801561050d575f80fd5b506102b566b1a2bc2ec5000081565b348015610527575f80fd5b50610227610536366004611bf8565b610ee4565b348015610546575f80fd5b506102b5610555366004611bf8565b5f908152600f602052604090205490565b348015610571575f80fd5b50610227610f1e565b348015610585575f80fd5b506101fe610594366004611e40565b600560209081525f928352604080842090915290825290205460ff1681565b3480156105be575f80fd5b5061029f6105cd366004611d4a565b610fae565b3480156105dd575f80fd5b5061029f6105ec366004611d4a565b61103b565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316148061065357507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b8061068757507f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b5f805461069990611e6c565b80601f01602080910402602001604051908101604052809291908181526020018280546106c590611e6c565b80156107105780601f106106e757610100808354040283529160200191610710565b820191905f5260205f20905b8154815290600101906020018083116106f357829003601f168201915b505050505081565b5f818152600260205260409020546001600160a01b03163381148061075f57506001600160a01b0381165f90815260056020908152604080832033845290915290205460ff165b6107b05760405162461bcd60e51b815260206004820152600e60248201527f4e4f545f415554484f52495a454400000000000000000000000000000000000060448201526064015b60405180910390fd5b5f82815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b5f6108216108fd565b61082d90614e20611eb2565b905090565b61085c60405180606001604052805f81526020015f81526020015f6001600160a01b031681525090565b505f908152600f6020908152604091829020825160608101845281548152600182015492810192909252600201546001600160a01b03169181019190915290565b5f66b1a2bc2ec5000034146108f45760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e74000000000000000060448201526064016107a7565b61082d3361118c565b5f600161090960085490565b61082d9190611eb2565b5f61082d6103e8610d3e565b5f818152600260205260409020546001600160a01b038481169116146109875760405162461bcd60e51b815260206004820152600a60248201527f57524f4e475f46524f4d0000000000000000000000000000000000000000000060448201526064016107a7565b6001600160a01b0382166109dd5760405162461bcd60e51b815260206004820152601160248201527f494e56414c49445f524543495049454e5400000000000000000000000000000060448201526064016107a7565b336001600160a01b0384161480610a1657506001600160a01b0383165f90815260056020908152604080832033845290915290205460ff165b80610a3657505f818152600460205260409020546001600160a01b031633145b610a825760405162461bcd60e51b815260206004820152600e60248201527f4e4f545f415554484f52495a454400000000000000000000000000000000000060448201526064016107a7565b6001600160a01b038084165f81815260036020908152604080832080545f190190559386168083528483208054600101905585835260028252848320805473ffffffffffffffffffffffffffffffffffffffff199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610b24611589565b610b2d816115e3565b50565b610b3b83838361091f565b6001600160a01b0382163b1580610be05750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401525f608484015290919084169063150b7a029060a4016020604051808303815f875af1158015610bb0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bd49190611ec5565b6001600160e01b031916145b610c2c5760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e540000000000000000000000000000000060448201526064016107a7565b505050565b5f818152600260205260409020546001600160a01b031680610c955760405162461bcd60e51b815260206004820152600a60248201527f4e4f545f4d494e5445440000000000000000000000000000000000000000000060448201526064016107a7565b919050565b5f818152600e6020526040812080546001909101546106879190611ee0565b5f6001600160a01b038216610d105760405162461bcd60e51b815260206004820152600c60248201527f5a45524f5f41444452455353000000000000000000000000000000000000000060448201526064016107a7565b506001600160a01b03165f9081526003602052604090205490565b610d33611589565b610d3c5f6115ef565b565b5f61082d60095490565b5f61082d600a5490565b6001805461069990611e6c565b5f61082d600c5490565b335f8181526005602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610dfd85858561091f565b6001600160a01b0384163b1580610e915750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610e459033908a90899089908990600401611ef7565b6020604051808303815f875af1158015610e61573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e859190611ec5565b6001600160e01b031916145b610edd5760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e540000000000000000000000000000000060448201526064016107a7565b5050505050565b6060610eee610f1e565b610ef78361164d565b604051602001610f08929190611f49565b6040516020818303038152906040529050919050565b606060078054610f2d90611e6c565b80601f0160208091040260200160405190810160405280929190818152602001828054610f5990611e6c565b8015610fa45780601f10610f7b57610100808354040283529160200191610fa4565b820191905f5260205f20905b815481529060010190602001808311610f8757829003601f168201915b5050505050905090565b610fb6611589565b6001600160a01b0381166110325760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107a7565b610b2d816115ef565b6010546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f916001600160a01b038481169263a9059cbb92919091169083906370a0823190602401602060405180830381865afa1580156110a9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110cd9190611f77565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af1158015611115573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111399190611f8e565b9050806111885760405162461bcd60e51b815260206004820152600e60248201527f576974686472617720666169656400000000000000000000000000000000000060448201526064016107a7565b5050565b5f614e206111986108fd565b6111a3906001611fa9565b11156111f15760405162461bcd60e51b815260206004820152600e60248201527f4d41585f535550504c592068697400000000000000000000000000000000000060448201526064016107a7565b6010545f906001600160a01b0316606461120c346032611ee0565b6112169190611fd0565b6040515f81818185875af1925050503d805f811461124f576040519150601f19603f3d011682016040523d82523d5f602084013e611254565b606091505b50509050806112a55760405162461bcd60e51b815260206004820152601660248201527f53656e6420746f2063726561746f72206661696c65640000000000000000000060448201526064016107a7565b6112b7836112b260085490565b6116ea565b600a546009541080156113035750600e5f6112d160095490565b81526020019081526020015f20600101546112ea6117e2565b6008546112f79190611eb2565b6113019190611fe3565b155b15611536575f61131a61131560085490565b61182a565b6040805160608101825282815242602082015281517f6352211e0000000000000000000000000000000000000000000000000000000081526004810184905292935091908201903090636352211e90602401602060405180830381865afa158015611387573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113ab9190611ff6565b6001600160a01b03169052600f5f6113c2600c5490565b81526020019081526020015f205f820151815f0155602082015181600101556040820151816002015f6101000a8154816001600160a01b0302191690836001600160a01b031602179055509050506001600e5f61141e60095490565b81526020019081526020015f20600201546114399190611eb2565b600b54036114585761144f600980546001019055565b5f600b55611466565b611466600b80546001019055565b5f600f5f611473600c5490565b8152602081019190915260409081015f9081206002015491516001600160a01b0390921691479181818185875af1925050503d805f81146114cf576040519150601f19603f3d011682016040523d82523d5f602084013e6114d4565b606091505b50509050806115255760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e6420457468657200000000000000000000000060448201526064016107a7565b611533600c80546001019055565b50505b611544600880546001019055565b5f61154e600c5490565b11611559575f611582565b600f5f6001611567600c5490565b6115719190611eb2565b81526020019081526020015f205f01545b9392505050565b6006546001600160a01b03163314610d3c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107a7565b6007611188828261205e565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b60605f61165983611849565b60010190505f8167ffffffffffffffff81111561167857611678611c8b565b6040519080825280601f01601f1916602001820160405280156116a2576020820181803683370190505b5090508181016020015b5f19017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85049450846116ac57509392505050565b6116f4828261192a565b6001600160a01b0382163b15806117965750604051630a85bd0160e11b8082523360048301525f6024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303815f875af1158015611766573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061178a9190611ec5565b6001600160e01b031916145b6111885760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e540000000000000000000000000000000060448201526064016107a7565b5f805f6117ee60095490565b1115610c95575f5b600954811015611824575f818152600e602052604090206002810154600191820154029290920191016117f6565b50919050565b5f81611834611a5b565b61183e9190611fe3565b610687906001611fa9565b5f807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611891577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106118bd576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106118db57662386f26fc10000830492506010015b6305f5e10083106118f3576305f5e100830492506008015b612710831061190757612710830492506004015b60648310611919576064830492506002015b600a83106106875760010192915050565b6001600160a01b0382166119805760405162461bcd60e51b815260206004820152601160248201527f494e56414c49445f524543495049454e5400000000000000000000000000000060448201526064016107a7565b5f818152600260205260409020546001600160a01b0316156119e45760405162461bcd60e51b815260206004820152600e60248201527f414c52454144595f4d494e54454400000000000000000000000000000000000060448201526064016107a7565b6001600160a01b0382165f818152600360209081526040808320805460010190558483526002909152808220805473ffffffffffffffffffffffffffffffffffffffff19168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040516bffffffffffffffffffffffff193360601b1660208201525f90819043904290603401604051602081830303815290604052805190602001205f1c611aa39190611fd0565b6008545a6040516bffffffffffffffffffffffff194160601b1660208201524290603401604051602081830303815290604052805190602001205f1c611ae99190611fd0565b611af34442611fa9565b611afd9190611fa9565b611b079190611fa9565b611b119190611fa9565b611b1b9190611fa9565b611b259190611fa9565b604051602001611b3791815260200190565b604051602081830303815290604052805190602001205f1c9050611b5a60085490565b611b649082611fd0565b611b6e9082611eb2565b91505090565b6001600160e01b031981168114610b2d575f80fd5b5f60208284031215611b99575f80fd5b813561158281611b74565b5f5b83811015611bbe578181015183820152602001611ba6565b50505f910152565b602081525f8251806020840152611be4816040850160208701611ba4565b601f01601f19169190910160400192915050565b5f60208284031215611c08575f80fd5b5035919050565b6001600160a01b0381168114610b2d575f80fd5b5f8060408385031215611c34575f80fd5b8235611c3f81611c0f565b946020939093013593505050565b5f805f60608486031215611c5f575f80fd5b8335611c6a81611c0f565b92506020840135611c7a81611c0f565b929592945050506040919091013590565b634e487b7160e01b5f52604160045260245ffd5b5f60208284031215611caf575f80fd5b813567ffffffffffffffff80821115611cc6575f80fd5b818401915084601f830112611cd9575f80fd5b813581811115611ceb57611ceb611c8b565b604051601f8201601f19908116603f01168101908382118183101715611d1357611d13611c8b565b81604052828152876020848701011115611d2b575f80fd5b826020860160208301375f928101602001929092525095945050505050565b5f60208284031215611d5a575f80fd5b813561158281611c0f565b8015158114610b2d575f80fd5b5f8060408385031215611d83575f80fd5b8235611d8e81611c0f565b91506020830135611d9e81611d65565b809150509250929050565b5f805f805f60808688031215611dbd575f80fd5b8535611dc881611c0f565b94506020860135611dd881611c0f565b935060408601359250606086013567ffffffffffffffff80821115611dfb575f80fd5b818801915088601f830112611e0e575f80fd5b813581811115611e1c575f80fd5b896020828501011115611e2d575f80fd5b9699959850939650602001949392505050565b5f8060408385031215611e51575f80fd5b8235611e5c81611c0f565b91506020830135611d9e81611c0f565b600181811c90821680611e8057607f821691505b60208210810361182457634e487b7160e01b5f52602260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8181038181111561068757610687611e9e565b5f60208284031215611ed5575f80fd5b815161158281611b74565b808202811582820484141761068757610687611e9e565b5f6001600160a01b03808816835280871660208401525084604083015260806060830152826080830152828460a08401375f60a0848401015260a0601f19601f85011683010190509695505050505050565b5f8351611f5a818460208801611ba4565b835190830190611f6e818360208801611ba4565b01949350505050565b5f60208284031215611f87575f80fd5b5051919050565b5f60208284031215611f9e575f80fd5b815161158281611d65565b8082018082111561068757610687611e9e565b634e487b7160e01b5f52601260045260245ffd5b5f82611fde57611fde611fbc565b500490565b5f82611ff157611ff1611fbc565b500690565b5f60208284031215612006575f80fd5b815161158281611c0f565b601f821115610c2c575f81815260208120601f850160051c810160208610156120375750805b601f850160051c820191505b8181101561205657828155600101612043565b505050505050565b815167ffffffffffffffff81111561207857612078611c8b565b61208c816120868454611e6c565b84612011565b602080601f8311600181146120bf575f84156120a85750858301515b5f19600386901b1c1916600185901b178555612056565b5f85815260208120601f198616915b828110156120ed578886015182559484019460019091019084016120ce565b508582101561210a57878501515f19600388901b60f8161c191681555b5050505050600190811b0190555056fea26469706673582212207d715c4da3625a9232cf6da979d0fed269afa58d712376da26f810cdc474d54464736f6c63430008140033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.