ETH Price: $2,426.17 (-2.55%)

Token

Elder Apez (ELDER)
 

Overview

Max Total Supply

316 ELDER

Holders

101

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
jett2.eth
Balance
1 ELDER
0xb4Ecb79D14FcEc69BaB4375ae341EbEeE0d4d85D
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:
ElderApez

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : ElderApez.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

interface IScrapV2 {
    function increaseScrapBalance(address _address, uint256 _amount) external;
}

contract ElderApez is ERC721("Elder Apez", "ELDER"), ERC721Enumerable, Ownable {
    bool public isWLReservePhase = false;
    bool public isPublicReservePhase = false;
    bool public isBurnPhase = false;
    bool public isClaimPhase = false;
    bool public stakeLocked = true;
    uint256 internal maxSupply = 0;
    uint256 public mintPrice = 0.15 ether;
    uint256 public reservedSupply = 0;
    mapping(uint256 => address) public reserveAddress;
    mapping(address => uint256[]) public staked;
    mapping(address => uint256) public numReserved;
    mapping(address => uint256) public scrapClaimEpoch;
    bytes32 public merkleRoot;
    string public baseURI;
    ERC20 public ScrapV1 = ERC20(0xEEdcd8448bC38A6f43A3aa18651F44782c318fD0);
    IScrapV2 public ScrapV2 = IScrapV2(0x829cE04A6114e11217B6DcF38884d15260e569d0);
    ERC721 public DystoApez = ERC721(0x648E8428e0104Ec7D08667866a3568a72Fe3898F);

    event ScoreIncrease(uint256 indexed tokenId, uint256 indexed amount);
    
    function setMaxSupply(uint256 value) external onlyOwner {
        require(value > 0 && totalSupply() < value && reservedSupply < value, "Invalid max supply");
        maxSupply = value;
    }

    function setMintPrice(uint256 value) external onlyOwner {
        require(value >= 0, "Invalid mint price");
        mintPrice = value;
    }

    function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
        merkleRoot = _merkleRoot;
    }

    function setScrapV1(address _scrapV1) external onlyOwner {
        ScrapV1 = ERC20(_scrapV1);
    }

    function setScrapV2(address _scrapV2) external onlyOwner {
        ScrapV2 = IScrapV2(_scrapV2);
    }

    function setDystoApez(address _dystoApez) external onlyOwner {
        DystoApez = ERC721(_dystoApez);
    } 

    function setBaseURI(string calldata _uri) external onlyOwner {
        baseURI = _uri;
    }

    function startWLReservePhase() external onlyOwner {
        require(!isWLReservePhase, "Whitelist reserve already started");
        require(!isPublicReservePhase && !isBurnPhase && !isClaimPhase, "Whitelist reserve phase cannot be started while other phases are active");
        isWLReservePhase = true;
    }

    function startPublicReservePhase() external onlyOwner {
        require(isWLReservePhase, "Public reserve phase can only start after the whitelist reserve phase");
        isPublicReservePhase = true;
        isWLReservePhase = false;
    }

    function startBurnPhase() external onlyOwner {
        require(isPublicReservePhase, "Burn can only start phase after the public reserve phase");
        isBurnPhase = true;
        isPublicReservePhase = false;
    }

    function startClaimPhase() external onlyOwner {
        require(isBurnPhase, "Claim phase can only start after the burn phase");
        isClaimPhase = true;
        isBurnPhase = false;
    }

    function stopAllPhases() external onlyOwner {
        isWLReservePhase = false;
        isPublicReservePhase = false;
        isBurnPhase = false;
        isClaimPhase = false;
    }

    function lockStaking() external onlyOwner {
        require(!stakeLocked, "Staking is already locked");
        stakeLocked = true;
    }

    function unlockStaking() external onlyOwner {
        require(stakeLocked, "Staking is already unlocked");
        stakeLocked = false;
    }

    function withdrawFunds() external onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }

    function withdrawERC20(address tokenAddress) external onlyOwner {
        ERC20 ERC20Contract = ERC20(tokenAddress);
        ERC20Contract.transfer(msg.sender, ERC20Contract.balanceOf(address(this)));
    }

    function adminMint(uint256 amount) external onlyOwner {
        require (reservedSupply + amount <= maxSupply, "Max supply exceeded");
        for (uint256 i = 1; i <= amount; i = unsafe_inc(i)){
            reserveAddress[reservedSupply + i] = msg.sender;
            _safeMint(msg.sender, reservedSupply + i);
        }
        numReserved[msg.sender] += amount;
        reservedSupply += amount;
    }

    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }

    function unsafe_inc(uint256 x) internal pure returns (uint256) {
        unchecked { 
            return x + 1; 
        }
    }
    
    function isWhitelisted(bytes32[] calldata _merkleProof, address user) public view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(user));
        return MerkleProof.verify(_merkleProof, merkleRoot, leaf);
    }

    function reservedTokenOfOwnerByIndex(address user, uint256 index) public view returns (uint256) {
        require(index < numReserved[user], "Index out of bounds");
        uint256 currentIndex = 0;
        for (uint256 i = 1; i <= reservedSupply; i++){
            if (reserveAddress[i] == user) {
                if (currentIndex == index) {
                    return i;
                }
                currentIndex += 1;
            }
        }
        return 0;
    }

    function reserveElderWL(uint256[] calldata tokenIds, bytes32[] calldata _merkleProof) public payable {
        require(isWLReservePhase, "Whitelist reserve phase is not active");
        require(tokenIds.length == 5 || tokenIds.length == 10, "Cannot stake this amount of Dysto Apez");
        uint256 reserveAmount = tokenIds.length/5;
        require(msg.value >= mintPrice*reserveAmount, "Not enough ETH to complete this transaction");
        require((reservedSupply + reserveAmount) <= maxSupply, "Max reserve supply exceeded");
        require((numReserved[msg.sender] + reserveAmount) <= 2, "Max mint for this address has been exceeded");
        require(isWhitelisted(_merkleProof, msg.sender), "Address not whitelisted");
        for (uint256 i = 1; i <= reserveAmount; i = unsafe_inc(i)) {
            reserveAddress[reservedSupply + i] = msg.sender;
        }
        scrapClaimEpoch[msg.sender] = block.timestamp;
        reservedSupply += reserveAmount;
        numReserved[msg.sender] += reserveAmount;
        for (uint256 i = 0; i < tokenIds.length; i = unsafe_inc(i)) {
            staked[msg.sender].push(tokenIds[i]);
            DystoApez.transferFrom(msg.sender, address(this), tokenIds[i]);
        }
    }

    function reserveElderPublic(uint256[5] calldata tokenIds) public payable {
        require(isPublicReservePhase, "Public reserve phase is not active");
        require(msg.value >= mintPrice, "Not enough ETH to complete this transaction");
        require(reservedSupply < maxSupply, "Max reserve supply exceeded");
        require(numReserved[msg.sender] == 0, "Max mint for this address has been exceeded");
        reservedSupply += 1;
        numReserved[msg.sender] += 1;
        reserveAddress[reservedSupply] = msg.sender;
        staked[msg.sender] = tokenIds;
        scrapClaimEpoch[msg.sender] = block.timestamp;
        for (uint256 i = 0; i < 5; i = unsafe_inc(i)) {
            DystoApez.transferFrom(msg.sender, address(this), tokenIds[i]);
        }
    }

    function increaseScore(uint256 tokenId, uint256 amount, bytes32[] calldata _merkleProof) public {
        require(isBurnPhase, "Burn phase is not active");
        require(reserveAddress[tokenId] == msg.sender, "Address did not reserve this Elder Ape");
        uint256 multiplier;
        if (isWhitelisted(_merkleProof, msg.sender)) {
            multiplier = 4;
        } else {
            multiplier = 1;
        }
        ScrapV1.transferFrom(msg.sender, address(this), amount);
        emit ScoreIncrease(tokenId, amount*multiplier); 
    }

    function claimElderApe(uint256 tokenId) public {
        require(isClaimPhase, "Claim phase is not active");
        require(reserveAddress[tokenId] == msg.sender, "Address did not reserve this Elder Ape");
        require(totalSupply() < maxSupply, "Max mint supply exceeded");
        _safeMint(msg.sender, tokenId);
    }

    function unstakeDystoApez() public {
        require(!stakeLocked, "Unstaking is not possible yet");
        require(staked[msg.sender].length > 0, "This address has no staked Dysto Apez");
        for (uint256 i = 0; i < staked[msg.sender].length; i = unsafe_inc(i)) {
            DystoApez.transferFrom(address(this), msg.sender, staked[msg.sender][i]);
        }
        claimScrap();
        delete staked[msg.sender];
    }

    function claimScrap() public {
        require (block.timestamp > scrapClaimEpoch[msg.sender], "Cannot claim at this time");
        uint256 stakedAmount = staked[msg.sender].length;
        uint256 rate = 0;
        uint delta = block.timestamp - scrapClaimEpoch[msg.sender];
        if (stakedAmount == 5) {
            rate = 550 ether;
        } else if (stakedAmount == 10) {
            rate = 1150 ether;
        }
        uint256 claimableScrap = (rate*delta)/86400;
        scrapClaimEpoch[msg.sender] = block.timestamp;
        ScrapV2.increaseScrapBalance(msg.sender, claimableScrap);
    }

    function _beforeTokenTransfer(address from, address to, uint256 tokenId)
        internal
        override(ERC721, ERC721Enumerable)
    {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

File 2 of 17 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 3 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 4 of 17 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * 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;
        }
        _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;
        _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;
        }
        _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 5 of 17 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

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

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 6 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` 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 tokenId
    ) internal virtual {}
}

File 7 of 17 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 8 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 9 of 17 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @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] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 10 of 17 : 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 11 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 13 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 14 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 15 of 17 : 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 16 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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 17 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","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":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ScoreIncrease","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":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DystoApez","outputs":[{"internalType":"contract ERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ScrapV1","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ScrapV2","outputs":[{"internalType":"contract IScrapV2","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimElderApe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimScrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"increaseScore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBurnPhase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isClaimPhase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicReservePhase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWLReservePhase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"address","name":"user","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numReserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"reserveAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[5]","name":"tokenIds","type":"uint256[5]"}],"name":"reserveElderPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"reserveElderWL","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"reservedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"reservedTokenOfOwnerByIndex","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":"tokenId","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":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"scrapClaimEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_dystoApez","type":"address"}],"name":"setDystoApez","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_scrapV1","type":"address"}],"name":"setScrapV1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_scrapV2","type":"address"}],"name":"setScrapV2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"staked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startBurnPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startClaimPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPublicReservePhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startWLReservePhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopAllPhases","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstakeDystoApez","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600a805464ffffffffff60a01b1916600160c01b1790556000600b819055670214e8348c4f0000600c55600d55601480546001600160a01b031990811673eedcd8448bc38a6f43a3aa18651f44782c318fd01790915560158054821673829ce04a6114e11217b6dcf38884d15260e569d01790556016805490911673648e8428e0104ec7d08667866a3568a72fe3898f179055348015620000a457600080fd5b50604080518082018252600a81526922b63232b91020b832bd60b11b60208083019182528351808501909452600584526422a62222a960d91b908401528151919291620000f49160009162000183565b5080516200010a90600190602084019062000183565b50505062000127620001216200012d60201b60201c565b62000131565b62000265565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001919062000229565b90600052602060002090601f016020900481019282620001b5576000855562000200565b82601f10620001d057805160ff191683800117855562000200565b8280016001018555821562000200579182015b8281111562000200578251825591602001919060010190620001e3565b506200020e92915062000212565b5090565b5b808211156200020e576000815560010162000213565b600181811c908216806200023e57607f821691505b6020821081036200025f57634e487b7160e01b600052602260045260246000fd5b50919050565b613d2a80620002756000396000f3fe6080604052600436106103975760003560e01c8063839b5e66116101dc578063dce4b99311610102578063eddd2143116100a0578063f4a0a5281161006f578063f4a0a52814610a77578063f4f3b20014610a97578063f842da3714610ab7578063f91b963614610acc57600080fd5b8063eddd214314610a0d578063ee07a07b14610a22578063f2ecddd514610a42578063f2fde38b14610a5757600080fd5b8063e3ba60ce116100dc578063e3ba60ce14610962578063e527e56f14610982578063e985e9c514610997578063ea17a9d9146109e057600080fd5b8063dce4b99314610901578063debefaa614610922578063e33f627e1461094257600080fd5b8063a77730201161017a578063c1f2612311610149578063c1f261231461086b578063c87b56dd1461088b578063cd8d1c2e146108ab578063d12bcbb4146108cb57600080fd5b8063a7773020146107f8578063af9bad7714610818578063b88d4fde14610838578063bef6ed191461085857600080fd5b806395d89b41116101b657806395d89b41146107755780639bc49f6e1461078a5780639c24a74d146107ab578063a22cb465146107d857600080fd5b8063839b5e66146107245780638da5cb5b146107375780638f1698161461075557600080fd5b80632f745c59116102c15780636352211e1161025f57806370a082311161022e57806370a08231146106ae578063715018a6146106ce57806377248e72146106e35780637cb647591461070457600080fd5b80636352211e146106435780636817c76c146106635780636c0360eb146106795780636f8b44b01461068e57600080fd5b806344d19d2b1161029b57806344d19d2b146105cc5780634f6ccce7146105e25780635525d6f41461060257806355f804b31461062357600080fd5b80632f745c591461056c57806335ffc8371461058c57806342842e0e146105ac57600080fd5b806316da65a71161033957806323b872dd1161030857806323b872dd1461050157806324600fc3146105215780632b91a176146105365780632eb4a7ab1461055657600080fd5b806316da65a71461049857806318160ddd146104b85780631b359e60146104d757806321288363146104ec57600080fd5b8063095ea7b311610375578063095ea7b31461042b5780630b29897c1461044d5780630d376c801461046257806314b20b631461047757600080fd5b806301ffc9a71461039c57806306fdde03146103d1578063081812fc146103f3575b600080fd5b3480156103a857600080fd5b506103bc6103b73660046134ad565b610ae1565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103e6610af2565b6040516103c89190613522565b3480156103ff57600080fd5b5061041361040e366004613535565b610b84565b6040516001600160a01b0390911681526020016103c8565b34801561043757600080fd5b5061044b61044636600461356a565b610c1e565b005b34801561045957600080fd5b5061044b610d33565b34801561046e57600080fd5b5061044b610d6f565b34801561048357600080fd5b50600a546103bc90600160a01b900460ff1681565b3480156104a457600080fd5b5061044b6104b3366004613594565b610e01565b3480156104c457600080fd5b506008545b6040519081526020016103c8565b3480156104e357600080fd5b5061044b610e4d565b3480156104f857600080fd5b5061044b610ff4565b34801561050d57600080fd5b5061044b61051c3660046135af565b6110b3565b34801561052d57600080fd5b5061044b6110e4565b34801561054257600080fd5b5061044b610551366004613594565b61113d565b34801561056257600080fd5b506104c960125481565b34801561057857600080fd5b506104c961058736600461356a565b611189565b34801561059857600080fd5b5061044b6105a7366004613594565b61121f565b3480156105b857600080fd5b5061044b6105c73660046135af565b61126b565b3480156105d857600080fd5b506104c9600d5481565b3480156105ee57600080fd5b506104c96105fd366004613535565b611286565b34801561060e57600080fd5b50600a546103bc90600160a81b900460ff1681565b34801561062f57600080fd5b5061044b61063e3660046135eb565b611319565b34801561064f57600080fd5b5061041361065e366004613535565b61134f565b34801561066f57600080fd5b506104c9600c5481565b34801561068557600080fd5b506103e66113c6565b34801561069a57600080fd5b5061044b6106a9366004613535565b611454565b3480156106ba57600080fd5b506104c96106c9366004613594565b6114e8565b3480156106da57600080fd5b5061044b61156f565b3480156106ef57600080fd5b50600a546103bc90600160c01b900460ff1681565b34801561071057600080fd5b5061044b61071f366004613535565b6115a3565b61044b6107323660046136a9565b6115d2565b34801561074357600080fd5b50600a546001600160a01b0316610413565b34801561076157600080fd5b506104c961077036600461356a565b611956565b34801561078157600080fd5b506103e6611987565b34801561079657600080fd5b50600a546103bc90600160b01b900460ff1681565b3480156107b757600080fd5b506104c96107c6366004613594565b60106020526000908152604090205481565b3480156107e457600080fd5b5061044b6107f3366004613723565b611996565b34801561080457600080fd5b5061044b61081336600461375a565b6119a5565b34801561082457600080fd5b50601554610413906001600160a01b031681565b34801561084457600080fd5b5061044b6108533660046137b7565b611b06565b61044b610866366004613893565b611b3e565b34801561087757600080fd5b5061044b610886366004613535565b611d65565b34801561089757600080fd5b506103e66108a6366004613535565b611e93565b3480156108b757600080fd5b50601454610413906001600160a01b031681565b3480156108d757600080fd5b506104136108e6366004613535565b600e602052600090815260409020546001600160a01b031681565b34801561090d57600080fd5b50600a546103bc90600160b81b900460ff1681565b34801561092e57600080fd5b506103bc61093d3660046138bb565b611f6e565b34801561094e57600080fd5b50601654610413906001600160a01b031681565b34801561096e57600080fd5b5061044b61097d366004613535565b611ff4565b34801561098e57600080fd5b5061044b6120e0565b3480156109a357600080fd5b506103bc6109b236600461390f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109ec57600080fd5b506104c96109fb366004613594565b60116020526000908152604090205481565b348015610a1957600080fd5b5061044b612179565b348015610a2e57600080fd5b506104c9610a3d36600461356a565b61222a565b348015610a4e57600080fd5b5061044b6122f1565b348015610a6357600080fd5b5061044b610a72366004613594565b612450565b348015610a8357600080fd5b5061044b610a92366004613535565b6124e8565b348015610aa357600080fd5b5061044b610ab2366004613594565b612517565b348015610ac357600080fd5b5061044b612624565b348015610ad857600080fd5b5061044b6126f1565b6000610aec82612845565b92915050565b606060008054610b0190613942565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2d90613942565b8015610b7a5780601f10610b4f57610100808354040283529160200191610b7a565b820191906000526020600020905b815481529060010190602001808311610b5d57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c025760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c298261134f565b9050806001600160a01b0316836001600160a01b031603610c965760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bf9565b336001600160a01b0382161480610cb25750610cb281336109b2565b610d245760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bf9565b610d2e838361286a565b505050565b600a546001600160a01b03163314610d5d5760405162461bcd60e51b8152600401610bf990613976565b600a805463ffffffff60a01b19169055565b600a546001600160a01b03163314610d995760405162461bcd60e51b8152600401610bf990613976565b600a54600160c01b900460ff16610df25760405162461bcd60e51b815260206004820152601b60248201527f5374616b696e6720697320616c726561647920756e6c6f636b656400000000006044820152606401610bf9565b600a805460ff60c01b19169055565b600a546001600160a01b03163314610e2b5760405162461bcd60e51b8152600401610bf990613976565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b600a54600160c01b900460ff1615610ea75760405162461bcd60e51b815260206004820152601d60248201527f556e7374616b696e67206973206e6f7420706f737369626c65207965740000006044820152606401610bf9565b336000908152600f6020526040902054610f115760405162461bcd60e51b815260206004820152602560248201527f54686973206164647265737320686173206e6f207374616b656420447973746f6044820152641020b832bd60d91b6064820152608401610bf9565b60005b336000908152600f6020526040902054811015610fd157601654336000818152600f6020526040902080546001600160a01b03909316926323b872dd923092909186908110610f6557610f656139ab565b90600052602060002001546040518463ffffffff1660e01b8152600401610f8e939291906139c1565b600060405180830381600087803b158015610fa857600080fd5b505af1158015610fbc573d6000803e3d6000fd5b50505050610fca8160010190565b9050610f14565b50610fda6126f1565b336000908152600f60205260408120610ff2916133a6565b565b600a546001600160a01b0316331461101e5760405162461bcd60e51b8152600401610bf990613976565b600a54600160a81b900460ff1661109d5760405162461bcd60e51b815260206004820152603860248201527f4275726e2063616e206f6e6c792073746172742070686173652061667465722060448201527f746865207075626c6963207265736572766520706861736500000000000000006064820152608401610bf9565b600a805461ffff60a81b1916600160b01b179055565b6110bd33826128d8565b6110d95760405162461bcd60e51b8152600401610bf9906139e5565b610d2e8383836129cf565b600a546001600160a01b0316331461110e5760405162461bcd60e51b8152600401610bf990613976565b60405133904780156108fc02916000818181858888f1935050505015801561113a573d6000803e3d6000fd5b50565b600a546001600160a01b031633146111675760405162461bcd60e51b8152600401610bf990613976565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6000611194836114e8565b82106111f65760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610bf9565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b031633146112495760405162461bcd60e51b8152600401610bf990613976565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b610d2e83838360405180602001604052806000815250611b06565b600061129160085490565b82106112f45760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610bf9565b60088281548110611307576113076139ab565b90600052602060002001549050919050565b600a546001600160a01b031633146113435760405162461bcd60e51b8152600401610bf990613976565b610d2e601383836133c4565b6000818152600260205260408120546001600160a01b031680610aec5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bf9565b601380546113d390613942565b80601f01602080910402602001604051908101604052809291908181526020018280546113ff90613942565b801561144c5780601f106114215761010080835404028352916020019161144c565b820191906000526020600020905b81548152906001019060200180831161142f57829003601f168201915b505050505081565b600a546001600160a01b0316331461147e5760405162461bcd60e51b8152600401610bf990613976565b60008111801561149557508061149360085490565b105b80156114a2575080600d54105b6114e35760405162461bcd60e51b8152602060048201526012602482015271496e76616c6964206d617820737570706c7960701b6044820152606401610bf9565b600b55565b60006001600160a01b0382166115535760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bf9565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146115995760405162461bcd60e51b8152600401610bf990613976565b610ff26000612b7a565b600a546001600160a01b031633146115cd5760405162461bcd60e51b8152600401610bf990613976565b601255565b600a54600160a01b900460ff166116395760405162461bcd60e51b815260206004820152602560248201527f57686974656c6973742072657365727665207068617365206973206e6f742061604482015264637469766560d81b6064820152608401610bf9565b60058314806116485750600a83145b6116a35760405162461bcd60e51b815260206004820152602660248201527f43616e6e6f74207374616b65207468697320616d6f756e74206f662044797374604482015265379020b832bd60d11b6064820152608401610bf9565b60006116b0600585613a62565b905080600c546116c09190613a76565b3410156116df5760405162461bcd60e51b8152600401610bf990613a95565b600b5481600d546116f09190613ae0565b111561173e5760405162461bcd60e51b815260206004820152601b60248201527f4d6178207265736572766520737570706c7920657863656564656400000000006044820152606401610bf9565b3360009081526010602052604090205460029061175c908390613ae0565b111561177a5760405162461bcd60e51b8152600401610bf990613af8565b611785838333611f6e565b6117d15760405162461bcd60e51b815260206004820152601760248201527f41646472657373206e6f742077686974656c69737465640000000000000000006044820152606401610bf9565b60015b8181116118245733600e600083600d546117ee9190613ae0565b8152602081019190915260400160002080546001600160a01b0319166001600160a01b03929092169190911790556001016117d4565b50336000908152601160205260408120429055600d8054839290611849908490613ae0565b9091555050336000908152601060205260408120805483929061186d908490613ae0565b90915550600090505b8481101561194e57336000908152600f6020526040902086868381811061189f5761189f6139ab565b835460018101855560009485526020948590209190940292909201359190920155506016546001600160a01b03166323b872dd33308989868181106118e6576118e66139ab565b905060200201356040518463ffffffff1660e01b815260040161190b939291906139c1565b600060405180830381600087803b15801561192557600080fd5b505af1158015611939573d6000803e3d6000fd5b505050506119478160010190565b9050611876565b505050505050565b600f602052816000526040600020818154811061197257600080fd5b90600052602060002001600091509150505481565b606060018054610b0190613942565b6119a1338383612bcc565b5050565b600a54600160b01b900460ff166119fe5760405162461bcd60e51b815260206004820152601860248201527f4275726e207068617365206973206e6f742061637469766500000000000000006044820152606401610bf9565b6000848152600e60205260409020546001600160a01b03163314611a345760405162461bcd60e51b8152600401610bf990613b43565b6000611a41838333611f6e565b15611a4e57506004611a52565b5060015b6014546040516323b872dd60e01b81526001600160a01b03909116906323b872dd90611a86903390309089906004016139c1565b6020604051808303816000875af1158015611aa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac99190613b89565b50611ad48185613a76565b60405186907f9e608633aa21d7438111667657cad4642f8ffedb0b592e9f0e90606afab120a490600090a35050505050565b611b1033836128d8565b611b2c5760405162461bcd60e51b8152600401610bf9906139e5565b611b3884848484612c9a565b50505050565b600a54600160a81b900460ff16611ba25760405162461bcd60e51b815260206004820152602260248201527f5075626c69632072657365727665207068617365206973206e6f742061637469604482015261766560f01b6064820152608401610bf9565b600c54341015611bc45760405162461bcd60e51b8152600401610bf990613a95565b600b54600d5410611c175760405162461bcd60e51b815260206004820152601b60248201527f4d6178207265736572766520737570706c7920657863656564656400000000006044820152606401610bf9565b3360009081526010602052604090205415611c445760405162461bcd60e51b8152600401610bf990613af8565b6001600d6000828254611c579190613ae0565b9091555050336000908152601060205260408120805460019290611c7c908490613ae0565b9091555050600d546000908152600e6020908152604080832080546001600160a01b031916339081179091558352600f9091529020611cbd90826005613448565b503360009081526011602052604081204290555b60058110156119a1576016546001600160a01b03166323b872dd3330858560058110611cff57611cff6139ab565b60200201356040518463ffffffff1660e01b8152600401611d22939291906139c1565b600060405180830381600087803b158015611d3c57600080fd5b505af1158015611d50573d6000803e3d6000fd5b50505050611d5e8160010190565b9050611cd1565b600a546001600160a01b03163314611d8f5760405162461bcd60e51b8152600401610bf990613976565b600b5481600d54611da09190613ae0565b1115611de45760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610bf9565b60015b818111611e525733600e600083600d54611e019190613ae0565b815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550611e4a3382600d54611e459190613ae0565b612ccd565b600101611de7565b503360009081526010602052604081208054839290611e72908490613ae0565b9250508190555080600d6000828254611e8b9190613ae0565b909155505050565b6000818152600260205260409020546060906001600160a01b0316611f125760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610bf9565b6000611f1c612ce7565b90506000815111611f3c5760405180602001604052806000815250611f67565b80611f4684612cf6565b604051602001611f57929190613ba6565b6040516020818303038152906040525b9392505050565b6040516bffffffffffffffffffffffff19606083901b1660208201526000908190603401604051602081830303815290604052805190602001209050611feb858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506012549150849050612df7565b95945050505050565b600a54600160b81b900460ff1661204d5760405162461bcd60e51b815260206004820152601960248201527f436c61696d207068617365206973206e6f7420616374697665000000000000006044820152606401610bf9565b6000818152600e60205260409020546001600160a01b031633146120835760405162461bcd60e51b8152600401610bf990613b43565b600b54600854106120d65760405162461bcd60e51b815260206004820152601860248201527f4d6178206d696e7420737570706c7920657863656564656400000000000000006044820152606401610bf9565b61113a3382612ccd565b600a546001600160a01b0316331461210a5760405162461bcd60e51b8152600401610bf990613976565b600a54600160c01b900460ff16156121645760405162461bcd60e51b815260206004820152601960248201527f5374616b696e6720697320616c7265616479206c6f636b6564000000000000006044820152606401610bf9565b600a805460ff60c01b1916600160c01b179055565b600a546001600160a01b031633146121a35760405162461bcd60e51b8152600401610bf990613976565b600a54600160b01b900460ff166122145760405162461bcd60e51b815260206004820152602f60248201527f436c61696d2070686173652063616e206f6e6c7920737461727420616674657260448201526e20746865206275726e20706861736560881b6064820152608401610bf9565b600a805461ffff60b01b1916600160b81b179055565b6001600160a01b03821660009081526010602052604081205482106122875760405162461bcd60e51b8152602060048201526013602482015272496e646578206f7574206f6620626f756e647360681b6044820152606401610bf9565b600060015b600d5481116122e6576000818152600e60205260409020546001600160a01b038087169116036122d4578382036122c6579150610aec9050565b6122d1600183613ae0565b91505b806122de81613bd5565b91505061228c565b506000949350505050565b600a546001600160a01b0316331461231b5760405162461bcd60e51b8152600401610bf990613976565b600a54600160a01b900460ff161561237f5760405162461bcd60e51b815260206004820152602160248201527f57686974656c697374207265736572766520616c7265616479207374617274656044820152601960fa1b6064820152608401610bf9565b600a54600160a81b900460ff161580156123a35750600a54600160b01b900460ff16155b80156123b95750600a54600160b81b900460ff16155b61243b5760405162461bcd60e51b815260206004820152604760248201527f57686974656c69737420726573657276652070686173652063616e6e6f74206260448201527f652073746172746564207768696c65206f7468657220706861736573206172656064820152662061637469766560c81b608482015260a401610bf9565b600a805460ff60a01b1916600160a01b179055565b600a546001600160a01b0316331461247a5760405162461bcd60e51b8152600401610bf990613976565b6001600160a01b0381166124df5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bf9565b61113a81612b7a565b600a546001600160a01b031633146125125760405162461bcd60e51b8152600401610bf990613976565b600c55565b600a546001600160a01b031633146125415760405162461bcd60e51b8152600401610bf990613976565b6040516370a0823160e01b815230600482015281906001600160a01b0382169063a9059cbb90339083906370a0823190602401602060405180830381865afa158015612591573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125b59190613bee565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015612600573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2e9190613b89565b600a546001600160a01b0316331461264e5760405162461bcd60e51b8152600401610bf990613976565b600a54600160a01b900460ff166126db5760405162461bcd60e51b815260206004820152604560248201527f5075626c696320726573657276652070686173652063616e206f6e6c7920737460448201527f617274206166746572207468652077686974656c697374207265736572766520606482015264706861736560d81b608482015260a401610bf9565b600a805461ffff60a01b1916600160a81b179055565b33600090815260116020526040902054421161274f5760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f7420636c61696d20617420746869732074696d65000000000000006044820152606401610bf9565b336000908152600f6020908152604080832054601190925282205490919081906127799042613c07565b90508260050361279457681dd0c885f9a0d8000091506127a9565b82600a036127a957683e5774bb09f338000091505b6000620151806127b98385613a76565b6127c39190613a62565b33600081815260116020526040908190204290556015549051633a159daf60e11b81526004810192909252602482018390529192506001600160a01b039091169063742b3b5e90604401600060405180830381600087803b15801561282757600080fd5b505af115801561283b573d6000803e3d6000fd5b5050505050505050565b60006001600160e01b0319821663780e9d6360e01b1480610aec5750610aec82612e0d565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061289f8261134f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166129515760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bf9565b600061295c8361134f565b9050806001600160a01b0316846001600160a01b031614806129975750836001600160a01b031661298c84610b84565b6001600160a01b0316145b806129c757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166129e28261134f565b6001600160a01b031614612a4a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610bf9565b6001600160a01b038216612aac5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bf9565b612ab7838383612e5d565b612ac260008261286a565b6001600160a01b0383166000908152600360205260408120805460019290612aeb908490613c07565b90915550506001600160a01b0382166000908152600360205260408120805460019290612b19908490613ae0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603612c2d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bf9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612ca58484846129cf565b612cb184848484612e68565b611b385760405162461bcd60e51b8152600401610bf990613c1e565b6119a1828260405180602001604052806000815250612f69565b606060138054610b0190613942565b606081600003612d1d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612d475780612d3181613bd5565b9150612d409050600a83613a62565b9150612d21565b60008167ffffffffffffffff811115612d6257612d626137a1565b6040519080825280601f01601f191660200182016040528015612d8c576020820181803683370190505b5090505b84156129c757612da1600183613c07565b9150612dae600a86613c70565b612db9906030613ae0565b60f81b818381518110612dce57612dce6139ab565b60200101906001600160f81b031916908160001a905350612df0600a86613a62565b9450612d90565b600082612e048584612f9c565b14949350505050565b60006001600160e01b031982166380ac58cd60e01b1480612e3e57506001600160e01b03198216635b5e139f60e01b145b80610aec57506301ffc9a760e01b6001600160e01b0319831614610aec565b610d2e838383613010565b60006001600160a01b0384163b15612f5e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612eac903390899088908890600401613c84565b6020604051808303816000875af1925050508015612ee7575060408051601f3d908101601f19168201909252612ee491810190613cc1565b60015b612f44573d808015612f15576040519150601f19603f3d011682016040523d82523d6000602084013e612f1a565b606091505b508051600003612f3c5760405162461bcd60e51b8152600401610bf990613c1e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506129c7565b506001949350505050565b612f7383836130c8565b612f806000848484612e68565b610d2e5760405162461bcd60e51b8152600401610bf990613c1e565b600081815b8451811015613008576000858281518110612fbe57612fbe6139ab565b60200260200101519050808311612fe45760008381526020829052604090209250612ff5565b600081815260208490526040902092505b508061300081613bd5565b915050612fa1565b509392505050565b6001600160a01b03831661306b5761306681600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61308e565b816001600160a01b0316836001600160a01b03161461308e5761308e8382613216565b6001600160a01b0382166130a557610d2e816132b3565b826001600160a01b0316826001600160a01b031614610d2e57610d2e8282613362565b6001600160a01b03821661311e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bf9565b6000818152600260205260409020546001600160a01b0316156131835760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bf9565b61318f60008383612e5d565b6001600160a01b03821660009081526003602052604081208054600192906131b8908490613ae0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001613223846114e8565b61322d9190613c07565b600083815260076020526040902054909150808214613280576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906132c590600190613c07565b600083815260096020526040812054600880549394509092849081106132ed576132ed6139ab565b90600052602060002001549050806008838154811061330e5761330e6139ab565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061334657613346613cde565b6001900381819060005260206000200160009055905550505050565b600061336d836114e8565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b508054600082559060005260206000209081019061113a9190613482565b8280546133d090613942565b90600052602060002090601f0160209004810192826133f25760008555613438565b82601f1061340b5782800160ff19823516178555613438565b82800160010185558215613438579182015b8281111561343857823582559160200191906001019061341d565b50613444929150613482565b5090565b828054828255906000526020600020908101928215613438579160200282018281111561343857823582559160200191906001019061341d565b5b808211156134445760008155600101613483565b6001600160e01b03198116811461113a57600080fd5b6000602082840312156134bf57600080fd5b8135611f6781613497565b60005b838110156134e55781810151838201526020016134cd565b83811115611b385750506000910152565b6000815180845261350e8160208601602086016134ca565b601f01601f19169290920160200192915050565b602081526000611f6760208301846134f6565b60006020828403121561354757600080fd5b5035919050565b80356001600160a01b038116811461356557600080fd5b919050565b6000806040838503121561357d57600080fd5b6135868361354e565b946020939093013593505050565b6000602082840312156135a657600080fd5b611f678261354e565b6000806000606084860312156135c457600080fd5b6135cd8461354e565b92506135db6020850161354e565b9150604084013590509250925092565b600080602083850312156135fe57600080fd5b823567ffffffffffffffff8082111561361657600080fd5b818501915085601f83011261362a57600080fd5b81358181111561363957600080fd5b86602082850101111561364b57600080fd5b60209290920196919550909350505050565b60008083601f84011261366f57600080fd5b50813567ffffffffffffffff81111561368757600080fd5b6020830191508360208260051b85010111156136a257600080fd5b9250929050565b600080600080604085870312156136bf57600080fd5b843567ffffffffffffffff808211156136d757600080fd5b6136e38883890161365d565b909650945060208701359150808211156136fc57600080fd5b506137098782880161365d565b95989497509550505050565b801515811461113a57600080fd5b6000806040838503121561373657600080fd5b61373f8361354e565b9150602083013561374f81613715565b809150509250929050565b6000806000806060858703121561377057600080fd5b8435935060208501359250604085013567ffffffffffffffff81111561379557600080fd5b6137098782880161365d565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156137cd57600080fd5b6137d68561354e565b93506137e46020860161354e565b925060408501359150606085013567ffffffffffffffff8082111561380857600080fd5b818701915087601f83011261381c57600080fd5b81358181111561382e5761382e6137a1565b604051601f8201601f19908116603f01168101908382118183101715613856576138566137a1565b816040528281528a602084870101111561386f57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600060a082840312156138a557600080fd5b8260a0830111156138b557600080fd5b50919050565b6000806000604084860312156138d057600080fd5b833567ffffffffffffffff8111156138e757600080fd5b6138f38682870161365d565b909450925061390690506020850161354e565b90509250925092565b6000806040838503121561392257600080fd5b61392b8361354e565b91506139396020840161354e565b90509250929050565b600181811c9082168061395657607f821691505b6020821081036138b557634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b039384168152919092166020820152604081019190915260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082613a7157613a71613a36565b500490565b6000816000190483118215151615613a9057613a90613a4c565b500290565b6020808252602b908201527f4e6f7420656e6f7567682045544820746f20636f6d706c65746520746869732060408201526a3a3930b739b0b1ba34b7b760a91b606082015260800190565b60008219821115613af357613af3613a4c565b500190565b6020808252602b908201527f4d6178206d696e7420666f72207468697320616464726573732068617320626560408201526a195b88195e18d95959195960aa1b606082015260800190565b60208082526026908201527f4164647265737320646964206e6f742072657365727665207468697320456c6460408201526565722041706560d01b606082015260800190565b600060208284031215613b9b57600080fd5b8151611f6781613715565b60008351613bb88184602088016134ca565b835190830190613bcc8183602088016134ca565b01949350505050565b600060018201613be757613be7613a4c565b5060010190565b600060208284031215613c0057600080fd5b5051919050565b600082821015613c1957613c19613a4c565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082613c7f57613c7f613a36565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613cb7908301846134f6565b9695505050505050565b600060208284031215613cd357600080fd5b8151611f6781613497565b634e487b7160e01b600052603160045260246000fdfea26469706673582212206cd5eb257bd5301faaf1adaecfca234cc896fea5dd9688aa92aed35d83d94d1a64736f6c634300080e0033

Deployed Bytecode

0x6080604052600436106103975760003560e01c8063839b5e66116101dc578063dce4b99311610102578063eddd2143116100a0578063f4a0a5281161006f578063f4a0a52814610a77578063f4f3b20014610a97578063f842da3714610ab7578063f91b963614610acc57600080fd5b8063eddd214314610a0d578063ee07a07b14610a22578063f2ecddd514610a42578063f2fde38b14610a5757600080fd5b8063e3ba60ce116100dc578063e3ba60ce14610962578063e527e56f14610982578063e985e9c514610997578063ea17a9d9146109e057600080fd5b8063dce4b99314610901578063debefaa614610922578063e33f627e1461094257600080fd5b8063a77730201161017a578063c1f2612311610149578063c1f261231461086b578063c87b56dd1461088b578063cd8d1c2e146108ab578063d12bcbb4146108cb57600080fd5b8063a7773020146107f8578063af9bad7714610818578063b88d4fde14610838578063bef6ed191461085857600080fd5b806395d89b41116101b657806395d89b41146107755780639bc49f6e1461078a5780639c24a74d146107ab578063a22cb465146107d857600080fd5b8063839b5e66146107245780638da5cb5b146107375780638f1698161461075557600080fd5b80632f745c59116102c15780636352211e1161025f57806370a082311161022e57806370a08231146106ae578063715018a6146106ce57806377248e72146106e35780637cb647591461070457600080fd5b80636352211e146106435780636817c76c146106635780636c0360eb146106795780636f8b44b01461068e57600080fd5b806344d19d2b1161029b57806344d19d2b146105cc5780634f6ccce7146105e25780635525d6f41461060257806355f804b31461062357600080fd5b80632f745c591461056c57806335ffc8371461058c57806342842e0e146105ac57600080fd5b806316da65a71161033957806323b872dd1161030857806323b872dd1461050157806324600fc3146105215780632b91a176146105365780632eb4a7ab1461055657600080fd5b806316da65a71461049857806318160ddd146104b85780631b359e60146104d757806321288363146104ec57600080fd5b8063095ea7b311610375578063095ea7b31461042b5780630b29897c1461044d5780630d376c801461046257806314b20b631461047757600080fd5b806301ffc9a71461039c57806306fdde03146103d1578063081812fc146103f3575b600080fd5b3480156103a857600080fd5b506103bc6103b73660046134ad565b610ae1565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103e6610af2565b6040516103c89190613522565b3480156103ff57600080fd5b5061041361040e366004613535565b610b84565b6040516001600160a01b0390911681526020016103c8565b34801561043757600080fd5b5061044b61044636600461356a565b610c1e565b005b34801561045957600080fd5b5061044b610d33565b34801561046e57600080fd5b5061044b610d6f565b34801561048357600080fd5b50600a546103bc90600160a01b900460ff1681565b3480156104a457600080fd5b5061044b6104b3366004613594565b610e01565b3480156104c457600080fd5b506008545b6040519081526020016103c8565b3480156104e357600080fd5b5061044b610e4d565b3480156104f857600080fd5b5061044b610ff4565b34801561050d57600080fd5b5061044b61051c3660046135af565b6110b3565b34801561052d57600080fd5b5061044b6110e4565b34801561054257600080fd5b5061044b610551366004613594565b61113d565b34801561056257600080fd5b506104c960125481565b34801561057857600080fd5b506104c961058736600461356a565b611189565b34801561059857600080fd5b5061044b6105a7366004613594565b61121f565b3480156105b857600080fd5b5061044b6105c73660046135af565b61126b565b3480156105d857600080fd5b506104c9600d5481565b3480156105ee57600080fd5b506104c96105fd366004613535565b611286565b34801561060e57600080fd5b50600a546103bc90600160a81b900460ff1681565b34801561062f57600080fd5b5061044b61063e3660046135eb565b611319565b34801561064f57600080fd5b5061041361065e366004613535565b61134f565b34801561066f57600080fd5b506104c9600c5481565b34801561068557600080fd5b506103e66113c6565b34801561069a57600080fd5b5061044b6106a9366004613535565b611454565b3480156106ba57600080fd5b506104c96106c9366004613594565b6114e8565b3480156106da57600080fd5b5061044b61156f565b3480156106ef57600080fd5b50600a546103bc90600160c01b900460ff1681565b34801561071057600080fd5b5061044b61071f366004613535565b6115a3565b61044b6107323660046136a9565b6115d2565b34801561074357600080fd5b50600a546001600160a01b0316610413565b34801561076157600080fd5b506104c961077036600461356a565b611956565b34801561078157600080fd5b506103e6611987565b34801561079657600080fd5b50600a546103bc90600160b01b900460ff1681565b3480156107b757600080fd5b506104c96107c6366004613594565b60106020526000908152604090205481565b3480156107e457600080fd5b5061044b6107f3366004613723565b611996565b34801561080457600080fd5b5061044b61081336600461375a565b6119a5565b34801561082457600080fd5b50601554610413906001600160a01b031681565b34801561084457600080fd5b5061044b6108533660046137b7565b611b06565b61044b610866366004613893565b611b3e565b34801561087757600080fd5b5061044b610886366004613535565b611d65565b34801561089757600080fd5b506103e66108a6366004613535565b611e93565b3480156108b757600080fd5b50601454610413906001600160a01b031681565b3480156108d757600080fd5b506104136108e6366004613535565b600e602052600090815260409020546001600160a01b031681565b34801561090d57600080fd5b50600a546103bc90600160b81b900460ff1681565b34801561092e57600080fd5b506103bc61093d3660046138bb565b611f6e565b34801561094e57600080fd5b50601654610413906001600160a01b031681565b34801561096e57600080fd5b5061044b61097d366004613535565b611ff4565b34801561098e57600080fd5b5061044b6120e0565b3480156109a357600080fd5b506103bc6109b236600461390f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109ec57600080fd5b506104c96109fb366004613594565b60116020526000908152604090205481565b348015610a1957600080fd5b5061044b612179565b348015610a2e57600080fd5b506104c9610a3d36600461356a565b61222a565b348015610a4e57600080fd5b5061044b6122f1565b348015610a6357600080fd5b5061044b610a72366004613594565b612450565b348015610a8357600080fd5b5061044b610a92366004613535565b6124e8565b348015610aa357600080fd5b5061044b610ab2366004613594565b612517565b348015610ac357600080fd5b5061044b612624565b348015610ad857600080fd5b5061044b6126f1565b6000610aec82612845565b92915050565b606060008054610b0190613942565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2d90613942565b8015610b7a5780601f10610b4f57610100808354040283529160200191610b7a565b820191906000526020600020905b815481529060010190602001808311610b5d57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c025760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c298261134f565b9050806001600160a01b0316836001600160a01b031603610c965760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bf9565b336001600160a01b0382161480610cb25750610cb281336109b2565b610d245760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bf9565b610d2e838361286a565b505050565b600a546001600160a01b03163314610d5d5760405162461bcd60e51b8152600401610bf990613976565b600a805463ffffffff60a01b19169055565b600a546001600160a01b03163314610d995760405162461bcd60e51b8152600401610bf990613976565b600a54600160c01b900460ff16610df25760405162461bcd60e51b815260206004820152601b60248201527f5374616b696e6720697320616c726561647920756e6c6f636b656400000000006044820152606401610bf9565b600a805460ff60c01b19169055565b600a546001600160a01b03163314610e2b5760405162461bcd60e51b8152600401610bf990613976565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b600a54600160c01b900460ff1615610ea75760405162461bcd60e51b815260206004820152601d60248201527f556e7374616b696e67206973206e6f7420706f737369626c65207965740000006044820152606401610bf9565b336000908152600f6020526040902054610f115760405162461bcd60e51b815260206004820152602560248201527f54686973206164647265737320686173206e6f207374616b656420447973746f6044820152641020b832bd60d91b6064820152608401610bf9565b60005b336000908152600f6020526040902054811015610fd157601654336000818152600f6020526040902080546001600160a01b03909316926323b872dd923092909186908110610f6557610f656139ab565b90600052602060002001546040518463ffffffff1660e01b8152600401610f8e939291906139c1565b600060405180830381600087803b158015610fa857600080fd5b505af1158015610fbc573d6000803e3d6000fd5b50505050610fca8160010190565b9050610f14565b50610fda6126f1565b336000908152600f60205260408120610ff2916133a6565b565b600a546001600160a01b0316331461101e5760405162461bcd60e51b8152600401610bf990613976565b600a54600160a81b900460ff1661109d5760405162461bcd60e51b815260206004820152603860248201527f4275726e2063616e206f6e6c792073746172742070686173652061667465722060448201527f746865207075626c6963207265736572766520706861736500000000000000006064820152608401610bf9565b600a805461ffff60a81b1916600160b01b179055565b6110bd33826128d8565b6110d95760405162461bcd60e51b8152600401610bf9906139e5565b610d2e8383836129cf565b600a546001600160a01b0316331461110e5760405162461bcd60e51b8152600401610bf990613976565b60405133904780156108fc02916000818181858888f1935050505015801561113a573d6000803e3d6000fd5b50565b600a546001600160a01b031633146111675760405162461bcd60e51b8152600401610bf990613976565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6000611194836114e8565b82106111f65760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610bf9565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b031633146112495760405162461bcd60e51b8152600401610bf990613976565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b610d2e83838360405180602001604052806000815250611b06565b600061129160085490565b82106112f45760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610bf9565b60088281548110611307576113076139ab565b90600052602060002001549050919050565b600a546001600160a01b031633146113435760405162461bcd60e51b8152600401610bf990613976565b610d2e601383836133c4565b6000818152600260205260408120546001600160a01b031680610aec5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bf9565b601380546113d390613942565b80601f01602080910402602001604051908101604052809291908181526020018280546113ff90613942565b801561144c5780601f106114215761010080835404028352916020019161144c565b820191906000526020600020905b81548152906001019060200180831161142f57829003601f168201915b505050505081565b600a546001600160a01b0316331461147e5760405162461bcd60e51b8152600401610bf990613976565b60008111801561149557508061149360085490565b105b80156114a2575080600d54105b6114e35760405162461bcd60e51b8152602060048201526012602482015271496e76616c6964206d617820737570706c7960701b6044820152606401610bf9565b600b55565b60006001600160a01b0382166115535760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bf9565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146115995760405162461bcd60e51b8152600401610bf990613976565b610ff26000612b7a565b600a546001600160a01b031633146115cd5760405162461bcd60e51b8152600401610bf990613976565b601255565b600a54600160a01b900460ff166116395760405162461bcd60e51b815260206004820152602560248201527f57686974656c6973742072657365727665207068617365206973206e6f742061604482015264637469766560d81b6064820152608401610bf9565b60058314806116485750600a83145b6116a35760405162461bcd60e51b815260206004820152602660248201527f43616e6e6f74207374616b65207468697320616d6f756e74206f662044797374604482015265379020b832bd60d11b6064820152608401610bf9565b60006116b0600585613a62565b905080600c546116c09190613a76565b3410156116df5760405162461bcd60e51b8152600401610bf990613a95565b600b5481600d546116f09190613ae0565b111561173e5760405162461bcd60e51b815260206004820152601b60248201527f4d6178207265736572766520737570706c7920657863656564656400000000006044820152606401610bf9565b3360009081526010602052604090205460029061175c908390613ae0565b111561177a5760405162461bcd60e51b8152600401610bf990613af8565b611785838333611f6e565b6117d15760405162461bcd60e51b815260206004820152601760248201527f41646472657373206e6f742077686974656c69737465640000000000000000006044820152606401610bf9565b60015b8181116118245733600e600083600d546117ee9190613ae0565b8152602081019190915260400160002080546001600160a01b0319166001600160a01b03929092169190911790556001016117d4565b50336000908152601160205260408120429055600d8054839290611849908490613ae0565b9091555050336000908152601060205260408120805483929061186d908490613ae0565b90915550600090505b8481101561194e57336000908152600f6020526040902086868381811061189f5761189f6139ab565b835460018101855560009485526020948590209190940292909201359190920155506016546001600160a01b03166323b872dd33308989868181106118e6576118e66139ab565b905060200201356040518463ffffffff1660e01b815260040161190b939291906139c1565b600060405180830381600087803b15801561192557600080fd5b505af1158015611939573d6000803e3d6000fd5b505050506119478160010190565b9050611876565b505050505050565b600f602052816000526040600020818154811061197257600080fd5b90600052602060002001600091509150505481565b606060018054610b0190613942565b6119a1338383612bcc565b5050565b600a54600160b01b900460ff166119fe5760405162461bcd60e51b815260206004820152601860248201527f4275726e207068617365206973206e6f742061637469766500000000000000006044820152606401610bf9565b6000848152600e60205260409020546001600160a01b03163314611a345760405162461bcd60e51b8152600401610bf990613b43565b6000611a41838333611f6e565b15611a4e57506004611a52565b5060015b6014546040516323b872dd60e01b81526001600160a01b03909116906323b872dd90611a86903390309089906004016139c1565b6020604051808303816000875af1158015611aa5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac99190613b89565b50611ad48185613a76565b60405186907f9e608633aa21d7438111667657cad4642f8ffedb0b592e9f0e90606afab120a490600090a35050505050565b611b1033836128d8565b611b2c5760405162461bcd60e51b8152600401610bf9906139e5565b611b3884848484612c9a565b50505050565b600a54600160a81b900460ff16611ba25760405162461bcd60e51b815260206004820152602260248201527f5075626c69632072657365727665207068617365206973206e6f742061637469604482015261766560f01b6064820152608401610bf9565b600c54341015611bc45760405162461bcd60e51b8152600401610bf990613a95565b600b54600d5410611c175760405162461bcd60e51b815260206004820152601b60248201527f4d6178207265736572766520737570706c7920657863656564656400000000006044820152606401610bf9565b3360009081526010602052604090205415611c445760405162461bcd60e51b8152600401610bf990613af8565b6001600d6000828254611c579190613ae0565b9091555050336000908152601060205260408120805460019290611c7c908490613ae0565b9091555050600d546000908152600e6020908152604080832080546001600160a01b031916339081179091558352600f9091529020611cbd90826005613448565b503360009081526011602052604081204290555b60058110156119a1576016546001600160a01b03166323b872dd3330858560058110611cff57611cff6139ab565b60200201356040518463ffffffff1660e01b8152600401611d22939291906139c1565b600060405180830381600087803b158015611d3c57600080fd5b505af1158015611d50573d6000803e3d6000fd5b50505050611d5e8160010190565b9050611cd1565b600a546001600160a01b03163314611d8f5760405162461bcd60e51b8152600401610bf990613976565b600b5481600d54611da09190613ae0565b1115611de45760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610bf9565b60015b818111611e525733600e600083600d54611e019190613ae0565b815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550611e4a3382600d54611e459190613ae0565b612ccd565b600101611de7565b503360009081526010602052604081208054839290611e72908490613ae0565b9250508190555080600d6000828254611e8b9190613ae0565b909155505050565b6000818152600260205260409020546060906001600160a01b0316611f125760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610bf9565b6000611f1c612ce7565b90506000815111611f3c5760405180602001604052806000815250611f67565b80611f4684612cf6565b604051602001611f57929190613ba6565b6040516020818303038152906040525b9392505050565b6040516bffffffffffffffffffffffff19606083901b1660208201526000908190603401604051602081830303815290604052805190602001209050611feb858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506012549150849050612df7565b95945050505050565b600a54600160b81b900460ff1661204d5760405162461bcd60e51b815260206004820152601960248201527f436c61696d207068617365206973206e6f7420616374697665000000000000006044820152606401610bf9565b6000818152600e60205260409020546001600160a01b031633146120835760405162461bcd60e51b8152600401610bf990613b43565b600b54600854106120d65760405162461bcd60e51b815260206004820152601860248201527f4d6178206d696e7420737570706c7920657863656564656400000000000000006044820152606401610bf9565b61113a3382612ccd565b600a546001600160a01b0316331461210a5760405162461bcd60e51b8152600401610bf990613976565b600a54600160c01b900460ff16156121645760405162461bcd60e51b815260206004820152601960248201527f5374616b696e6720697320616c7265616479206c6f636b6564000000000000006044820152606401610bf9565b600a805460ff60c01b1916600160c01b179055565b600a546001600160a01b031633146121a35760405162461bcd60e51b8152600401610bf990613976565b600a54600160b01b900460ff166122145760405162461bcd60e51b815260206004820152602f60248201527f436c61696d2070686173652063616e206f6e6c7920737461727420616674657260448201526e20746865206275726e20706861736560881b6064820152608401610bf9565b600a805461ffff60b01b1916600160b81b179055565b6001600160a01b03821660009081526010602052604081205482106122875760405162461bcd60e51b8152602060048201526013602482015272496e646578206f7574206f6620626f756e647360681b6044820152606401610bf9565b600060015b600d5481116122e6576000818152600e60205260409020546001600160a01b038087169116036122d4578382036122c6579150610aec9050565b6122d1600183613ae0565b91505b806122de81613bd5565b91505061228c565b506000949350505050565b600a546001600160a01b0316331461231b5760405162461bcd60e51b8152600401610bf990613976565b600a54600160a01b900460ff161561237f5760405162461bcd60e51b815260206004820152602160248201527f57686974656c697374207265736572766520616c7265616479207374617274656044820152601960fa1b6064820152608401610bf9565b600a54600160a81b900460ff161580156123a35750600a54600160b01b900460ff16155b80156123b95750600a54600160b81b900460ff16155b61243b5760405162461bcd60e51b815260206004820152604760248201527f57686974656c69737420726573657276652070686173652063616e6e6f74206260448201527f652073746172746564207768696c65206f7468657220706861736573206172656064820152662061637469766560c81b608482015260a401610bf9565b600a805460ff60a01b1916600160a01b179055565b600a546001600160a01b0316331461247a5760405162461bcd60e51b8152600401610bf990613976565b6001600160a01b0381166124df5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bf9565b61113a81612b7a565b600a546001600160a01b031633146125125760405162461bcd60e51b8152600401610bf990613976565b600c55565b600a546001600160a01b031633146125415760405162461bcd60e51b8152600401610bf990613976565b6040516370a0823160e01b815230600482015281906001600160a01b0382169063a9059cbb90339083906370a0823190602401602060405180830381865afa158015612591573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125b59190613bee565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015612600573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2e9190613b89565b600a546001600160a01b0316331461264e5760405162461bcd60e51b8152600401610bf990613976565b600a54600160a01b900460ff166126db5760405162461bcd60e51b815260206004820152604560248201527f5075626c696320726573657276652070686173652063616e206f6e6c7920737460448201527f617274206166746572207468652077686974656c697374207265736572766520606482015264706861736560d81b608482015260a401610bf9565b600a805461ffff60a01b1916600160a81b179055565b33600090815260116020526040902054421161274f5760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f7420636c61696d20617420746869732074696d65000000000000006044820152606401610bf9565b336000908152600f6020908152604080832054601190925282205490919081906127799042613c07565b90508260050361279457681dd0c885f9a0d8000091506127a9565b82600a036127a957683e5774bb09f338000091505b6000620151806127b98385613a76565b6127c39190613a62565b33600081815260116020526040908190204290556015549051633a159daf60e11b81526004810192909252602482018390529192506001600160a01b039091169063742b3b5e90604401600060405180830381600087803b15801561282757600080fd5b505af115801561283b573d6000803e3d6000fd5b5050505050505050565b60006001600160e01b0319821663780e9d6360e01b1480610aec5750610aec82612e0d565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061289f8261134f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166129515760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bf9565b600061295c8361134f565b9050806001600160a01b0316846001600160a01b031614806129975750836001600160a01b031661298c84610b84565b6001600160a01b0316145b806129c757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166129e28261134f565b6001600160a01b031614612a4a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610bf9565b6001600160a01b038216612aac5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bf9565b612ab7838383612e5d565b612ac260008261286a565b6001600160a01b0383166000908152600360205260408120805460019290612aeb908490613c07565b90915550506001600160a01b0382166000908152600360205260408120805460019290612b19908490613ae0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603612c2d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bf9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612ca58484846129cf565b612cb184848484612e68565b611b385760405162461bcd60e51b8152600401610bf990613c1e565b6119a1828260405180602001604052806000815250612f69565b606060138054610b0190613942565b606081600003612d1d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612d475780612d3181613bd5565b9150612d409050600a83613a62565b9150612d21565b60008167ffffffffffffffff811115612d6257612d626137a1565b6040519080825280601f01601f191660200182016040528015612d8c576020820181803683370190505b5090505b84156129c757612da1600183613c07565b9150612dae600a86613c70565b612db9906030613ae0565b60f81b818381518110612dce57612dce6139ab565b60200101906001600160f81b031916908160001a905350612df0600a86613a62565b9450612d90565b600082612e048584612f9c565b14949350505050565b60006001600160e01b031982166380ac58cd60e01b1480612e3e57506001600160e01b03198216635b5e139f60e01b145b80610aec57506301ffc9a760e01b6001600160e01b0319831614610aec565b610d2e838383613010565b60006001600160a01b0384163b15612f5e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612eac903390899088908890600401613c84565b6020604051808303816000875af1925050508015612ee7575060408051601f3d908101601f19168201909252612ee491810190613cc1565b60015b612f44573d808015612f15576040519150601f19603f3d011682016040523d82523d6000602084013e612f1a565b606091505b508051600003612f3c5760405162461bcd60e51b8152600401610bf990613c1e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506129c7565b506001949350505050565b612f7383836130c8565b612f806000848484612e68565b610d2e5760405162461bcd60e51b8152600401610bf990613c1e565b600081815b8451811015613008576000858281518110612fbe57612fbe6139ab565b60200260200101519050808311612fe45760008381526020829052604090209250612ff5565b600081815260208490526040902092505b508061300081613bd5565b915050612fa1565b509392505050565b6001600160a01b03831661306b5761306681600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61308e565b816001600160a01b0316836001600160a01b03161461308e5761308e8382613216565b6001600160a01b0382166130a557610d2e816132b3565b826001600160a01b0316826001600160a01b031614610d2e57610d2e8282613362565b6001600160a01b03821661311e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bf9565b6000818152600260205260409020546001600160a01b0316156131835760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bf9565b61318f60008383612e5d565b6001600160a01b03821660009081526003602052604081208054600192906131b8908490613ae0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001613223846114e8565b61322d9190613c07565b600083815260076020526040902054909150808214613280576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906132c590600190613c07565b600083815260096020526040812054600880549394509092849081106132ed576132ed6139ab565b90600052602060002001549050806008838154811061330e5761330e6139ab565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061334657613346613cde565b6001900381819060005260206000200160009055905550505050565b600061336d836114e8565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b508054600082559060005260206000209081019061113a9190613482565b8280546133d090613942565b90600052602060002090601f0160209004810192826133f25760008555613438565b82601f1061340b5782800160ff19823516178555613438565b82800160010185558215613438579182015b8281111561343857823582559160200191906001019061341d565b50613444929150613482565b5090565b828054828255906000526020600020908101928215613438579160200282018281111561343857823582559160200191906001019061341d565b5b808211156134445760008155600101613483565b6001600160e01b03198116811461113a57600080fd5b6000602082840312156134bf57600080fd5b8135611f6781613497565b60005b838110156134e55781810151838201526020016134cd565b83811115611b385750506000910152565b6000815180845261350e8160208601602086016134ca565b601f01601f19169290920160200192915050565b602081526000611f6760208301846134f6565b60006020828403121561354757600080fd5b5035919050565b80356001600160a01b038116811461356557600080fd5b919050565b6000806040838503121561357d57600080fd5b6135868361354e565b946020939093013593505050565b6000602082840312156135a657600080fd5b611f678261354e565b6000806000606084860312156135c457600080fd5b6135cd8461354e565b92506135db6020850161354e565b9150604084013590509250925092565b600080602083850312156135fe57600080fd5b823567ffffffffffffffff8082111561361657600080fd5b818501915085601f83011261362a57600080fd5b81358181111561363957600080fd5b86602082850101111561364b57600080fd5b60209290920196919550909350505050565b60008083601f84011261366f57600080fd5b50813567ffffffffffffffff81111561368757600080fd5b6020830191508360208260051b85010111156136a257600080fd5b9250929050565b600080600080604085870312156136bf57600080fd5b843567ffffffffffffffff808211156136d757600080fd5b6136e38883890161365d565b909650945060208701359150808211156136fc57600080fd5b506137098782880161365d565b95989497509550505050565b801515811461113a57600080fd5b6000806040838503121561373657600080fd5b61373f8361354e565b9150602083013561374f81613715565b809150509250929050565b6000806000806060858703121561377057600080fd5b8435935060208501359250604085013567ffffffffffffffff81111561379557600080fd5b6137098782880161365d565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156137cd57600080fd5b6137d68561354e565b93506137e46020860161354e565b925060408501359150606085013567ffffffffffffffff8082111561380857600080fd5b818701915087601f83011261381c57600080fd5b81358181111561382e5761382e6137a1565b604051601f8201601f19908116603f01168101908382118183101715613856576138566137a1565b816040528281528a602084870101111561386f57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600060a082840312156138a557600080fd5b8260a0830111156138b557600080fd5b50919050565b6000806000604084860312156138d057600080fd5b833567ffffffffffffffff8111156138e757600080fd5b6138f38682870161365d565b909450925061390690506020850161354e565b90509250925092565b6000806040838503121561392257600080fd5b61392b8361354e565b91506139396020840161354e565b90509250929050565b600181811c9082168061395657607f821691505b6020821081036138b557634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b039384168152919092166020820152604081019190915260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082613a7157613a71613a36565b500490565b6000816000190483118215151615613a9057613a90613a4c565b500290565b6020808252602b908201527f4e6f7420656e6f7567682045544820746f20636f6d706c65746520746869732060408201526a3a3930b739b0b1ba34b7b760a91b606082015260800190565b60008219821115613af357613af3613a4c565b500190565b6020808252602b908201527f4d6178206d696e7420666f72207468697320616464726573732068617320626560408201526a195b88195e18d95959195960aa1b606082015260800190565b60208082526026908201527f4164647265737320646964206e6f742072657365727665207468697320456c6460408201526565722041706560d01b606082015260800190565b600060208284031215613b9b57600080fd5b8151611f6781613715565b60008351613bb88184602088016134ca565b835190830190613bcc8183602088016134ca565b01949350505050565b600060018201613be757613be7613a4c565b5060010190565b600060208284031215613c0057600080fd5b5051919050565b600082821015613c1957613c19613a4c565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082613c7f57613c7f613a36565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613cb7908301846134f6565b9695505050505050565b600060208284031215613cd357600080fd5b8151611f6781613497565b634e487b7160e01b600052603160045260246000fdfea26469706673582212206cd5eb257bd5301faaf1adaecfca234cc896fea5dd9688aa92aed35d83d94d1a64736f6c634300080e0033

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.