ETH Price: $2,746.62 (+1.49%)
Gas: 2.94 Gwei

Token

Meta Boomers (BOOMER)
 

Overview

Max Total Supply

415 BOOMER

Holders

116

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 BOOMER
0x8366956196eb98b1ba5af232746666d71de998f2
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:
MetaBoomers

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : MetaBoomers.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
                                                                                                                                                    
//                   .-----:-`         :////++/. :+oooooossssssssyysoyyyyhhhhhhdhddddddmh/`   omNNNNNNNNs.                                           
//                  sNNNNNNNMm+`     `hNNMMMMMMNdMMMMMMMMMMMMMMNNNMMMMNmmmmmmmmddddddddMMMm/`oMMNhyyyymMMNs.                                         
//                  NMMy+++oNMMm+   .dMMh::--mMMMMMy......```````:MMMM+```````````````-MMMMMmMMN-     .mMMMN.                                        
//                  mMM+    :mMMMy`-mMMy`    mMMMMMy    .::://///oMMMMy/////`    /+ooosMMMMMMMM/       -NMMMm.                                       
//                  dMM+     .dMMMdNMMs      dMMMMMy    sMMMMMMMMMMMMMMMMMMM:    mMMMMMMMMMMMMs   /mo   :NMMMd`                                      
//                  dMMo      `sMMMMM+       hMMMMMh    /hhhhhhhdMMMMMMMMMMM:    mMMMMMMMMMMMh   .NMM/   /NMMMd`                                     
//                  hMMs    `   +NMN/  .-    hMMMMMd     ````   -MMMMMmsyMMM/    mMMMMMsoNMMm`   dMMMN-   /MMMMh`                                    
//                  hMMs   .my`  :y:  :mN`   yMMMMMd    :hhhhddddMMMMMd  mMM/    dMMMMM.+MMN.    +oo++.    +MMMMy                                    
//                  yMMy   .MMm-     /NMM.   sMMMMMm    +MMMMMMMMMMMMMd  mMM+    hMMMMMoNMM:   `........    oMMMMs                ``....`            
//                  yMMy   .MMMN+   +NMMM-   sMMMMMm    .oooo+++++hMMMMy`dMMo    hMMMMMMMM+   `dmmmmNNNNs    sMMMMo```        ./sdmmmmmmmmho-        
//                  sMMh   `MMMMMyoyMMMMM-   oMMMMMN   ```````````sMMMMM/dMMs..--hMMMMMMMd:--:yMMMMMMMMMMoosyhMMMMNmmmdy+-  -hNMdyo+/::/+hMMNy:      
//                  sMMmssssMMMMMMMMMMMMMdhhdmMMMMMMddddddmmmmmmmmNMMMMM+yMMNNNNNMMMMMMMMMNNNNMMMMMMMNNMMMMNhhyysoo++oydNNh+NMd:` `-:::-.dMMMMN      
//                  -dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMs.+mMMMMMMNNmNMMMMNysso+//:---+MMMMm    `.--.  `-dMMMM.   dNMMMNNMMMMMo      
//                   `+dMMMMMMMMMm/o+++//mMMMMMMMMMMMMMMMMMMMMNNNMMmddhNMdo-+dMMMy-..sMMMMN    --://+oyMMMMM`   dNNNms   .MMMM-   :osyyhdmMMMN`      
//                     `:++shNMMMNdddyo:.`-:::sNMMmhs+//+ohmMMmooMM+`  /mMMm:/MMh`   :MMMMM.   mMMMMMMMMMMMM-   hMMMMm   `NMMMmo:-..``  `./mMMd/     
// `-://+ossyhhhhys/.    :ymMmdyooooydmMmy-``yMNy:` `...`  `:hMMmMMs    .yNMMNMd`    .MMMMM/   /o++/::hMMMMM+   :yss+.  .sMMMMMMMNmmmdh:   +MMMM/    
// yMMmmmmddhhyyyhmMNy:.yMMh/.  `..`  ./dMMhdMN/   /hmNNmy.   oMMMMd      /mMMd` ``   NMMMMo   `-://+odMMMMMy    ...   -mMMMMMMmydmmmmh/  `yMMMMd    
// hMM-.```....`  `/MMMmMN/   :hmmmdo`  `sMMMMo   /MMMMMMMm`   dMMMN   `+. .yd. -my   hMMMMh   :MMMMMMMMMMMMm   `mNm+`  :dMMMMM/` ``````-+dMMMMMy    
// oMM-   ymNNNd`  `mMMMMo   /MMMMMMMd`   dMMM:   sMMMMmdMM-   yMMMM-  -Mm/    .mMN   oMMMMN   `ssoo+//:mMMMM` ``NMMMd:--/dMMMMmdhhyhhdmMMMMMMMh`    
// /MM+   smmmds` -hMMMMM:   sMMMMNdMM-   yMMMs   .mMMMmNMd`  `NMMMM/  `MMMy.`.dMMM.  :MMMMM.```....-://dMMMMhhhdNMMMMMMMMMMMMMMMMMMMMMMMMMMNh/`     
// .MMy   `-....` -odMMMMo   -NMMMmNMd`  `mMMMMo`  .+hddy/`  -dMMMMMs   mMMMmhmMMMMs++sMMMMMddmmNNMMMMMMMMMMMMMMMMMMMMhmNNNNNNmd++syyhhyys+:.        
//  NMm   .dmNNNm/   oMMMN/`  .sdmmh+`  .hMMMMMMd+.``   ``./yNMMMMMMmyyhNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNNNNmdohhyysoo/ `::--.``                      
//  hMM`   NNNNNd:   +MMMMMh/``     ``-sNMMMMMysmMMmhyyyhdNMMMMMMNsdMMMMMMMMMhyyso+yNNNNNmds:syso++/::--..``                                         
//  oMM-   .-..```.:yNMMMMNNMNdysssydNMMMMMMNs` `/hNMMMMMMMMMMNdo.  :ymdhhys+`      `.``                                                             
//  :MMy+osyyhhdmNMMMMMMMN:.+mNMMMMMMMMMMNms.      .:+syyyyso/.                                                                                      
//  `hNMMMMMMMMMMMMMMMNms.    -/syhddhys/-                                                                                                           
//    -sNNNNmdhhysso/:.                                                                                                                              
//       `                                                                                                                                           

/// @creator:         Meta Boomers
/// @author:          peker.eth - twitter.com/peker_eth

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

import "./YieldingBoomer.sol";

contract MetaBoomers is YieldingBoomer {
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIdCounter;
    
    bytes32 public root;
    
    address proxyRegistryAddress;

    string BASE_URI = "https://api.metaboomersnft.com/metadata/";
    
    bool public IS_PRESALE_ACTIVE = false;
    bool public IS_SALE_ACTIVE = false;
    
    uint constant TOTAL_SUPPLY = 8888;
    uint constant INCREASED_MAX_TOKEN_ID = TOTAL_SUPPLY + 2;
    uint constant PRESALE_MINT_PRICE = 0.020 ether; 
    uint constant MINT_PRICE = 0.045 ether; 

    uint constant NUMBER_OF_TOKENS_ALLOWED_PER_TX = 10;
    uint constant NUMBER_OF_TOKENS_ALLOWED_PER_ADDRESS = 20;
    
    mapping (address => uint) addressToMintCount;
    mapping (address => bool) isTeamMember;
    
    address COMMUNITY_WALLET = 0xb07996B2dAB2E70D867EEA20F6b80F2Eb9DA15aD;
    address TEAM_1 = 0x936152245B8e47cCde665C228868F403a45c035b;
    address TEAM_2 = 0xA800F34505e8b340cf3Ab8793cB40Bf09042B28F;
    address TEAM_3 = 0xCF06446c0372Bf1BB771d0E9AD9c16fD0d3cdD7B;
    address TEAM_4 = 0xbDf3EA86444E2C19fc170D89438eE02868F85706;
    address TEAM_5 = 0x808FD8816c71AeD45071dfce57e2929af507f033;
    address TEAM_6 = 0xBDE8236C535B86be55F8a3c0af862d316Ce0A6FC;
    address TEAM_7 = 0x0eD45B6e251d59c7f5A0aa162238D73E96cc61f6;
    address TEAM_8 = 0xd536cDDf1aDEB9d805efe265A1278302BAA1e988;
    address TEAM_9 = 0x433AA2913eFc08042899aB9b6fCFC7B7E901Fa8a;
    address TEAM_10 = 0xa80f0bA14407Ae078B7dE5cbEBcd2367a5e1576E;
    address TEAM_11 = 0x2a92e1d6614c3e6817E7E9bfA004525814118a82;
    address TEAM_12 = 0x0F0Fb9aFD70CfF14C9e5E443f11b4f5585297c0D;

    constructor(string memory name, string memory symbol, bytes32 merkleroot)
    ERC721(name, symbol)
    {
        root = merkleroot;
        _tokenIdCounter.increment();

        isTeamMember[TEAM_1] = true;
        isTeamMember[TEAM_2] = true;
        isTeamMember[TEAM_3] = true;
        isTeamMember[TEAM_4] = true;
        isTeamMember[TEAM_5] = true;
        isTeamMember[TEAM_6] = true;
        isTeamMember[TEAM_7] = true;
        isTeamMember[TEAM_8] = true;
        isTeamMember[TEAM_9] = true;
        isTeamMember[TEAM_10] = true;
        isTeamMember[TEAM_11] = true;
        isTeamMember[TEAM_12] = true;
    }

    function setMerkleRoot(bytes32 merkleroot) 
    onlyOwner 
    public 
    {
        root = merkleroot;
    }

    function _baseURI() internal view override returns (string memory) {
        return BASE_URI;
    }
    
    function setBaseURI(string memory newUri) 
    public 
    onlyOwner {
        BASE_URI = newUri;
    }

    function togglePublicSale() public 
    onlyOwner 
    {
        IS_SALE_ACTIVE = !IS_SALE_ACTIVE;
    }

    function togglePreSale() public 
    onlyOwner 
    {
        IS_PRESALE_ACTIVE = !IS_PRESALE_ACTIVE;
    }

    modifier onlyAccounts () {
        require(msg.sender == tx.origin, "Not allowed origin");
        _;
    }

    modifier onlyTeam () {
        require(isTeamMember[msg.sender] == true, "Caller must be a team member");
        _;
    }

    function ownerMint(uint numberOfTokens) 
    public 
    onlyOwner {
        uint current = _tokenIdCounter.current();
        require(current + numberOfTokens < INCREASED_MAX_TOKEN_ID, "Exceeds total supply");

        for (uint i = 0; i < numberOfTokens; i++) {
            mintInternal();
        }
    }

    function teamMint(uint numberOfTokens) 
    public 
    onlyTeam {
        uint current = _tokenIdCounter.current();
        require(current + numberOfTokens < INCREASED_MAX_TOKEN_ID, "Exceeds total supply");

        require(addressToMintCount[msg.sender] + numberOfTokens <= 25, "Exceeds allowance");
        
        addressToMintCount[msg.sender] += numberOfTokens;

        for (uint i = 0; i < numberOfTokens; i++) {
            mintInternal();
        }
    }

    function presaleMint(address account, uint numberOfTokens, uint256 allowance, string memory key, bytes32[] calldata proof)
    public
    payable
    onlyAccounts
    {
        require(msg.sender == account, "Not allowed");
        require(IS_PRESALE_ACTIVE, "Pre-sale haven't started");
        require(msg.value >= numberOfTokens * PRESALE_MINT_PRICE, "Not enough ethers sent");

        string memory payload = string(abi.encodePacked(Strings.toString(allowance), ":", key));

        require(_verify(_leaf(msg.sender, payload), proof), "Invalid merkle proof");
        
        uint current = _tokenIdCounter.current();
        
        require(current + numberOfTokens < INCREASED_MAX_TOKEN_ID, "Exceeds total supply");
        require(addressToMintCount[msg.sender] + numberOfTokens <= allowance, "Exceeds allowance");

        addressToMintCount[msg.sender] += numberOfTokens;

        for (uint i = 0; i < numberOfTokens; i++) {
            mintInternal();
        }
    }

    function publicSaleMint(uint numberOfTokens) 
    public 
    payable
    onlyAccounts
    {
        require(IS_SALE_ACTIVE, "Sale haven't started");
        require(numberOfTokens <= NUMBER_OF_TOKENS_ALLOWED_PER_TX, "Too many requested");
        require(msg.value >= numberOfTokens * MINT_PRICE, "Not enough ethers sent");
        
        uint current = _tokenIdCounter.current();
        
        require(current + numberOfTokens < INCREASED_MAX_TOKEN_ID, "Exceeds total supply");
        require(addressToMintCount[msg.sender] + numberOfTokens <= NUMBER_OF_TOKENS_ALLOWED_PER_ADDRESS, "Exceeds allowance");
        
        addressToMintCount[msg.sender] += numberOfTokens;

        for (uint i = 0; i < numberOfTokens; i++) {
            mintInternal();
        }
    }

    function getCurrentMintCount(address _account) public view returns (uint) {
        return addressToMintCount[_account];
    }

    function mintInternal() internal {
        uint256 tokenId = _tokenIdCounter.current();
        _tokenIdCounter.increment();
        _mint(msg.sender, tokenId);
        yieldToken.updateRewardOnMint(msg.sender, 1);
    }

    function withdrawAll() public onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0);

        _withdraw(COMMUNITY_WALLET, (balance * 240) / 1000);
        _withdraw(TEAM_1, (balance * 250) / 1000);
        _withdraw(TEAM_2, (balance * 130) / 1000);
        _withdraw(TEAM_3, (balance * 80) / 1000);
        _withdraw(TEAM_4, (balance * 75) / 1000);
        _withdraw(TEAM_5, (balance * 55) / 1000);
        _withdraw(TEAM_6, (balance * 35) / 1000);
        _withdraw(TEAM_7, (balance * 35) / 1000);
        _withdraw(TEAM_8, (balance * 30) / 1000);
        _withdraw(TEAM_9, (balance * 30) / 1000);
        _withdraw(TEAM_10, (balance * 15) / 1000);
        _withdraw(TEAM_11, (balance * 10) / 1000);
        _withdraw(TEAM_12, (balance * 15) / 1000);
        
        _withdraw(owner(), address(this).balance);
    }

    function _withdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{value: _amount}("");
        require(success, "Transfer failed.");
    }

    function totalSupply() public view returns (uint) {
        return _tokenIdCounter.current() - 1;
    }

    function tokensOfOwner(address _owner, uint startId, uint endId) external view returns(uint256[] memory ) {
        uint256 tokenCount = balanceOf(_owner);
        if (tokenCount == 0) {
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            uint256 index = 0;

            for (uint256 tokenId = startId; tokenId < endId; tokenId++) {
                if (index == tokenCount) break;

                if (ownerOf(tokenId) == _owner) {
                    result[index] = tokenId;
                    index++;
                }
            }

            return result;
        }
    }

    function _leaf(address account, string memory payload)
    internal pure returns (bytes32)
    {
        return keccak256(abi.encodePacked(payload, account));
    }

    function _verify(bytes32 leaf, bytes32[] memory proof)
    internal view returns (bool)
    {
        return MerkleProof.verify(proof, root, leaf);
    }
}

File 2 of 18 : YieldingBoomer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

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

import "./SafeMath.sol";

interface IBoomers is IERC721 {}

contract YieldToken is ERC20("Meta Boomers Token", "MBM") {
	using SafeMath for uint256;

	uint256 constant public BASE_RATE = 14 ether;
	uint256 constant public INITIAL_ISSUANCE = 1 ether;
	uint256 immutable public END;

	mapping(address => uint256) public _rewards;
	mapping(address => uint256) public _lastUpdate;

	IBoomers public _boomersContract;

    address GAME_REWARDS_ADDRESS = address(0x150556ad0c82183618ED86164FC8a380fe37a225);

	event RewardClaimed(address indexed user, uint256 reward);

	constructor(address _boomers) public {
        END = block.timestamp + 400 days;
		_boomersContract = IBoomers(_boomers);

        _mint(GAME_REWARDS_ADDRESS, 14 * 8888 * 400 * 1e18);
	}

	function min(uint256 a, uint256 b) internal pure returns (uint256) {
		return a < b ? a : b;
	}

	function updateRewardOnMint(address _user, uint256 _amount) external {
		require(msg.sender == address(_boomersContract), "Can't call this");
		uint256 time = min(block.timestamp, END);
		uint256 timerUser = _lastUpdate[_user];

		if (timerUser > 0)
			_rewards[_user] = _rewards[_user].add(_boomersContract.balanceOf(_user).mul(BASE_RATE.mul((time.sub(timerUser)))).div(86400)
				.add(_amount.mul(INITIAL_ISSUANCE)));
		else 
			_rewards[_user] = _rewards[_user].add(_amount.mul(INITIAL_ISSUANCE));

		_lastUpdate[_user] = time;
	}

	// called on transfers
	function updateReward(address _from, address _to, uint256 _tokenId) external {
		require(msg.sender == address(_boomersContract));

		uint256 time = min(block.timestamp, END);
		uint256 timerFrom = _lastUpdate[_from];

		if (timerFrom > 0)
			_rewards[_from] += _boomersContract.balanceOf(_from).mul(BASE_RATE.mul((time.sub(timerFrom)))).div(86400);

		if (timerFrom != END)
			_lastUpdate[_from] = time;

		if (_to != address(0)) {
			uint256 timerTo = _lastUpdate[_to];

			if (timerTo > 0)
				_rewards[_to] += _boomersContract.balanceOf(_to).mul(BASE_RATE.mul((time.sub(timerTo)))).div(86400);

			if (timerTo != END)
				_lastUpdate[_to] = time;
		}
	}

	function getReward(address _to) external {
		require(msg.sender == address(_boomersContract));

		uint256 reward = _rewards[_to];

		if (reward > 0) {
			_rewards[_to] = 0;

			_mint(_to, reward);

			emit RewardClaimed(_to, reward);
		}
	}

	function burn(address _from, uint256 _amount) external {
		require(msg.sender == address(_boomersContract));
        
		_burn(_from, _amount);
	}

	function getTotalClaimable(address _user) external view returns(uint256) {
		uint256 time = min(block.timestamp, END);
		uint256 pending = _boomersContract.balanceOf(_user).mul(BASE_RATE.mul((time.sub(_lastUpdate[_user])))).div(86400);

		return _rewards[_user] + pending;
	}
}

abstract contract YieldingBoomer is ERC721, Ownable {
	address public constant burn = address(0x000000000000000000000000000000000000dEaD);

	YieldToken public yieldToken;

	function setYieldToken(address _yield) external onlyOwner {
		yieldToken = YieldToken(_yield);
	}

	function getReward() external {
		yieldToken.updateReward(msg.sender, address(0), 0);
		yieldToken.getReward(msg.sender);
	}

	function transferFrom(address from, address to, uint256 tokenId) public override {
		yieldToken.updateReward(from, to, tokenId);
		ERC721.transferFrom(from, to, tokenId);
	}

	function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public override {
		yieldToken.updateReward(from, to, tokenId);
		ERC721.safeTransferFrom(from, to, tokenId, _data);
	}
}

File 3 of 18 : 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 18 : 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 5 of 18 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 18 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

File 7 of 18 : 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 8 of 18 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 9 of 18 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), 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}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - 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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), 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:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, 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 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 10 of 18 : 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 11 of 18 : 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 12 of 18 : 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 13 of 18 : 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 14 of 18 : 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 15 of 18 : 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 16 of 18 : 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);
}

File 17 of 18 : 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 18 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"bytes32","name":"merkleroot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"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":"IS_PRESALE_ACTIVE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IS_SALE_ACTIVE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"burn","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getCurrentMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"string","name":"key","type":"string"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleroot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_yield","type":"address"}],"name":"setYieldToken","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":"numberOfTokens","type":"uint256"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"startId","type":"uint256"},{"internalType":"uint256","name":"endId","type":"uint256"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yieldToken","outputs":[{"internalType":"contract YieldToken","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60e06040526028608081815290620030e060a03980516200002991600b91602090910190620003bb565b50600c805461ffff19169055600f80546001600160a01b031990811673b07996b2dab2e70d867eea20f6b80f2eb9da15ad1790915560108054821673936152245b8e47ccde665c228868f403a45c035b17905560118054821673a800f34505e8b340cf3ab8793cb40bf09042b28f17905560128054821673cf06446c0372bf1bb771d0e9ad9c16fd0d3cdd7b17905560138054821673bdf3ea86444e2c19fc170d89438ee02868f8570617905560148054821673808fd8816c71aed45071dfce57e2929af507f03317905560158054821673bde8236c535b86be55f8a3c0af862d316ce0a6fc179055601680548216730ed45b6e251d59c7f5a0aa162238d73e96cc61f617905560178054821673d536cddf1adeb9d805efe265a1278302baa1e98817905560188054821673433aa2913efc08042899ab9b6fcfc7b7e901fa8a17905560198054821673a80f0ba14407ae078b7de5cbebcd2367a5e1576e179055601a80548216732a92e1d6614c3e6817e7e9bfa004525814118a82179055601b8054909116730f0fb9afd70cff14c9e5e443f11b4f5585297c0d179055348015620001d457600080fd5b506040516200310838038062003108833981016040819052620001f79162000518565b82518390839062000210906000906020850190620003bb565b50805162000226906001906020840190620003bb565b505050620002436200023d6200035c60201b60201c565b62000360565b80600981905550620002616008620003b260201b620018491760201c565b50506010546001600160a01b039081166000908152600e60205260408082208054600160ff199182168117909255601154851684528284208054821683179055601254851684528284208054821683179055601354851684528284208054821683179055601454851684528284208054821683179055601554851684528284208054821683179055601654851684528284208054821683179055601754851684528284208054821683179055601854851684528284208054821683179055601954851684528284208054821683179055601a54851684528284208054821683179055601b5490941683529120805490921617905550620005de565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80546001019055565b828054620003c9906200058b565b90600052602060002090601f016020900481019282620003ed576000855562000438565b82601f106200040857805160ff191683800117855562000438565b8280016001018555821562000438579182015b82811115620004385782518255916020019190600101906200041b565b50620004469291506200044a565b5090565b5b808211156200044657600081556001016200044b565b600082601f8301126200047357600080fd5b81516001600160401b0380821115620004905762000490620005c8565b604051601f8301601f19908116603f01168101908282118183101715620004bb57620004bb620005c8565b81604052838152602092508683858801011115620004d857600080fd5b600091505b83821015620004fc5785820183015181830184015290820190620004dd565b838211156200050e5760008385830101525b9695505050505050565b6000806000606084860312156200052e57600080fd5b83516001600160401b03808211156200054657600080fd5b620005548783880162000461565b945060208601519150808211156200056b57600080fd5b506200057a8682870162000461565b925050604084015190509250925092565b600181811c90821680620005a057607f821691505b60208210811415620005c257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612af280620005ee6000396000f3fe6080604052600436106102045760003560e01c806376d02b7111610118578063b88d4fde116100a0578063e222c7f91161006f578063e222c7f9146105bc578063e985e9c5146105d1578063ebf0c7171461061a578063f19e75d414610630578063f2fde38b1461065057600080fd5b8063b88d4fde1461053a578063c839fe941461055a578063c87b56dd14610587578063ca3cb522146105a757600080fd5b8063853828b6116100e7578063853828b6146104bf5780638da5cb5b146104d457806395d89b41146104f2578063a22cb46514610507578063b3ab66b01461052757600080fd5b806376d02b711461044657806376d5de85146104655780637cb647591461048557806382d29a0f146104a557600080fd5b806323ffce851161019b57806344df8e701161016a57806344df8e70146103bb57806355f804b3146103d15780636352211e146103f157806370a0823114610411578063715018a61461043157600080fd5b806323ffce85146103465780632fbba115146103665780633d18b9121461038657806342842e0e1461039b57600080fd5b80631545fb9a116101d75780631545fb9a146102ba57806318160ddd146102cd5780631d0d1257146102f057806323b872dd1461032657600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b50610229610224366004612654565b610670565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b506102536106c2565b6040516102359190612812565b34801561026c57600080fd5b5061028061027b36600461263b565b610754565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b3366004612521565b6107ee565b005b6102b86102c836600461257e565b610904565b3480156102d957600080fd5b506102e2610bc1565b604051908152602001610235565b3480156102fc57600080fd5b506102e261030b3660046123df565b6001600160a01b03166000908152600d602052604090205490565b34801561033257600080fd5b506102b861034136600461242d565b610bdd565b34801561035257600080fd5b506102b86103613660046123df565b610c56565b34801561037257600080fd5b506102b861038136600461263b565b610ca2565b34801561039257600080fd5b506102b8610dcd565b3480156103a757600080fd5b506102b86103b636600461242d565b610e97565b3480156103c757600080fd5b5061028061dead81565b3480156103dd57600080fd5b506102b86103ec36600461268e565b610eb2565b3480156103fd57600080fd5b5061028061040c36600461263b565b610ef3565b34801561041d57600080fd5b506102e261042c3660046123df565b610f6a565b34801561043d57600080fd5b506102b8610ff1565b34801561045257600080fd5b50600c5461022990610100900460ff1681565b34801561047157600080fd5b50600754610280906001600160a01b031681565b34801561049157600080fd5b506102b86104a036600461263b565b611027565b3480156104b157600080fd5b50600c546102299060ff1681565b3480156104cb57600080fd5b506102b8611056565b3480156104e057600080fd5b506006546001600160a01b0316610280565b3480156104fe57600080fd5b5061025361123e565b34801561051357600080fd5b506102b86105223660046124e5565b61124d565b6102b861053536600461263b565b611258565b34801561054657600080fd5b506102b8610555366004612469565b611450565b34801561056657600080fd5b5061057a61057536600461254b565b6114ca565b60405161023591906127ce565b34801561059357600080fd5b506102536105a236600461263b565b6115c2565b3480156105b357600080fd5b506102b861169c565b3480156105c857600080fd5b506102b86116da565b3480156105dd57600080fd5b506102296105ec3660046123fa565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561062657600080fd5b506102e260095481565b34801561063c57600080fd5b506102b861064b36600461263b565b611721565b34801561065c57600080fd5b506102b861066b3660046123df565b6117b1565b60006001600160e01b031982166380ac58cd60e01b14806106a157506001600160e01b03198216635b5e139f60e01b145b806106bc57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106d1906129e4565b80601f01602080910402602001604051908101604052809291908181526020018280546106fd906129e4565b801561074a5780601f1061071f5761010080835404028352916020019161074a565b820191906000526020600020905b81548152906001019060200180831161072d57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107d25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006107f982610ef3565b9050806001600160a01b0316836001600160a01b031614156108675760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107c9565b336001600160a01b0382161480610883575061088381336105ec565b6108f55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107c9565b6108ff8383611852565b505050565b3332146109485760405162461bcd60e51b81526020600482015260126024820152712737ba1030b63637bbb2b21037b934b3b4b760711b60448201526064016107c9565b336001600160a01b0387161461098e5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b60448201526064016107c9565b600c5460ff166109e05760405162461bcd60e51b815260206004820152601860248201527f5072652d73616c6520686176656e27742073746172746564000000000000000060448201526064016107c9565b6109f166470de4df82000086612982565b341015610a395760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da08195d1a195c9cc81cd95b9d60521b60448201526064016107c9565b6000610a44856118c0565b84604051602001610a56929190612755565b6040516020818303038152906040529050610aad610a7433836119c6565b8484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506119f992505050565b610af05760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21036b2b935b63290383937b7b360611b60448201526064016107c9565b6000610afb60085490565b9050610b0a6122b86002612956565b610b148883612956565b10610b315760405162461bcd60e51b81526004016107c9906128a2565b336000908152600d60205260409020548690610b4e908990612956565b1115610b6c5760405162461bcd60e51b81526004016107c990612877565b336000908152600d602052604081208054899290610b8b908490612956565b90915550600090505b87811015610bb657610ba4611a08565b80610bae81612a1f565b915050610b94565b505050505050505050565b60006001610bce60085490565b610bd891906129a1565b905090565b60075460405163164746fd60e11b81526001600160a01b03858116600483015284811660248301526044820184905290911690632c8e8dfa90606401600060405180830381600087803b158015610c3357600080fd5b505af1158015610c47573d6000803e3d6000fd5b505050506108ff838383611a94565b6006546001600160a01b03163314610c805760405162461bcd60e51b81526004016107c9906128d0565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152600e602052604090205460ff161515600114610d065760405162461bcd60e51b815260206004820152601c60248201527f43616c6c6572206d7573742062652061207465616d206d656d6265720000000060448201526064016107c9565b6000610d1160085490565b9050610d206122b86002612956565b610d2a8383612956565b10610d475760405162461bcd60e51b81526004016107c9906128a2565b336000908152600d6020526040902054601990610d65908490612956565b1115610d835760405162461bcd60e51b81526004016107c990612877565b336000908152600d602052604081208054849290610da2908490612956565b90915550600090505b828110156108ff57610dbb611a08565b80610dc581612a1f565b915050610dab565b60075460405163164746fd60e11b815233600482015260006024820181905260448201526001600160a01b0390911690632c8e8dfa90606401600060405180830381600087803b158015610e2057600080fd5b505af1158015610e34573d6000803e3d6000fd5b5050600754604051630c00007b60e41b81523360048201526001600160a01b03909116925063c00007b09150602401600060405180830381600087803b158015610e7d57600080fd5b505af1158015610e91573d6000803e3d6000fd5b50505050565b6108ff83838360405180602001604052806000815250611450565b6006546001600160a01b03163314610edc5760405162461bcd60e51b81526004016107c9906128d0565b8051610eef90600b906020840190612294565b5050565b6000818152600260205260408120546001600160a01b0316806106bc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107c9565b60006001600160a01b038216610fd55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107c9565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461101b5760405162461bcd60e51b81526004016107c9906128d0565b6110256000611ac5565b565b6006546001600160a01b031633146110515760405162461bcd60e51b81526004016107c9906128d0565b600955565b6006546001600160a01b031633146110805760405162461bcd60e51b81526004016107c9906128d0565b478061108b57600080fd5b600f546110b8906001600160a01b03166103e86110a98460f0612982565b6110b3919061296e565b611b17565b6010546110d6906001600160a01b03166103e86110a98460fa612982565b6011546110f4906001600160a01b03166103e86110a9846082612982565b601254611112906001600160a01b03166103e86110a9846050612982565b601354611130906001600160a01b03166103e86110a984604b612982565b60145461114e906001600160a01b03166103e86110a9846037612982565b60155461116c906001600160a01b03166103e86110a9846023612982565b60165461118a906001600160a01b03166103e86110a9846023612982565b6017546111a8906001600160a01b03166103e86110a984601e612982565b6018546111c6906001600160a01b03166103e86110a984601e612982565b6019546111e4906001600160a01b03166103e86110a984600f612982565b601a54611202906001600160a01b03166103e86110a984600a612982565b601b54611220906001600160a01b03166103e86110a984600f612982565b61123b6112356006546001600160a01b031690565b47611b17565b50565b6060600180546106d1906129e4565b610eef338383611bad565b33321461129c5760405162461bcd60e51b81526020600482015260126024820152712737ba1030b63637bbb2b21037b934b3b4b760711b60448201526064016107c9565b600c54610100900460ff166112ea5760405162461bcd60e51b815260206004820152601460248201527314d85b19481a185d995b89dd081cdd185c9d195960621b60448201526064016107c9565b600a8111156113305760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b60448201526064016107c9565b611341669fdf42f6e4800082612982565b3410156113895760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da08195d1a195c9cc81cd95b9d60521b60448201526064016107c9565b600061139460085490565b90506113a36122b86002612956565b6113ad8383612956565b106113ca5760405162461bcd60e51b81526004016107c9906128a2565b336000908152600d60205260409020546014906113e8908490612956565b11156114065760405162461bcd60e51b81526004016107c990612877565b336000908152600d602052604081208054849290611425908490612956565b90915550600090505b828110156108ff5761143e611a08565b8061144881612a1f565b91505061142e565b60075460405163164746fd60e11b81526001600160a01b03868116600483015285811660248301526044820185905290911690632c8e8dfa90606401600060405180830381600087803b1580156114a657600080fd5b505af11580156114ba573d6000803e3d6000fd5b50505050610e9184848484611c7c565b606060006114d785610f6a565b9050806114f45750506040805160008152602081019091526115bb565b60008167ffffffffffffffff81111561150f5761150f612a90565b604051908082528060200260200182016040528015611538578160200160208202803683370190505b5090506000855b858110156115b45783821415611554576115b4565b876001600160a01b031661156782610ef3565b6001600160a01b031614156115a2578083838151811061158957611589612a7a565b60209081029190910101528161159e81612a1f565b9250505b806115ac81612a1f565b91505061153f565b5090925050505b9392505050565b6000818152600260205260409020546060906001600160a01b03166116415760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107c9565b600061164b611cae565b9050600081511161166b57604051806020016040528060008152506115bb565b80611675846118c0565b604051602001611686929190612726565b6040516020818303038152906040529392505050565b6006546001600160a01b031633146116c65760405162461bcd60e51b81526004016107c9906128d0565b600c805460ff19811660ff90911615179055565b6006546001600160a01b031633146117045760405162461bcd60e51b81526004016107c9906128d0565b600c805461ff001981166101009182900460ff1615909102179055565b6006546001600160a01b0316331461174b5760405162461bcd60e51b81526004016107c9906128d0565b600061175660085490565b90506117656122b86002612956565b61176f8383612956565b1061178c5760405162461bcd60e51b81526004016107c9906128a2565b60005b828110156108ff5761179f611a08565b806117a981612a1f565b91505061178f565b6006546001600160a01b031633146117db5760405162461bcd60e51b81526004016107c9906128d0565b6001600160a01b0381166118405760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107c9565b61123b81611ac5565b80546001019055565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061188782610ef3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6060816118e45750506040805180820190915260018152600360fc1b602082015290565b8160005b811561190e57806118f881612a1f565b91506119079050600a8361296e565b91506118e8565b60008167ffffffffffffffff81111561192957611929612a90565b6040519080825280601f01601f191660200182016040528015611953576020820181803683370190505b5090505b84156119be576119686001836129a1565b9150611975600a86612a3a565b611980906030612956565b60f81b81838151811061199557611995612a7a565b60200101906001600160f81b031916908160001a9053506119b7600a8661296e565b9450611957565b949350505050565b600081836040516020016119db9291906126ef565b60405160208183030381529060405280519060200120905092915050565b60006115bb8260095485611cbd565b6000611a1360085490565b9050611a23600880546001019055565b611a2d3382611cd3565b60075460405163cc240c0160e01b8152336004820152600160248201526001600160a01b039091169063cc240c0190604401600060405180830381600087803b158015611a7957600080fd5b505af1158015611a8d573d6000803e3d6000fd5b5050505050565b611a9e3382611e15565b611aba5760405162461bcd60e51b81526004016107c990612905565b6108ff838383611f08565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611b64576040519150601f19603f3d011682016040523d82523d6000602084013e611b69565b606091505b50509050806108ff5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016107c9565b816001600160a01b0316836001600160a01b03161415611c0f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107c9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611c863383611e15565b611ca25760405162461bcd60e51b81526004016107c990612905565b610e91848484846120a8565b6060600b80546106d1906129e4565b600082611cca85846120db565b14949350505050565b6001600160a01b038216611d295760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107c9565b6000818152600260205260409020546001600160a01b031615611d8e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107c9565b6001600160a01b0382166000908152600360205260408120805460019290611db7908490612956565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600260205260408120546001600160a01b0316611e8e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107c9565b6000611e9983610ef3565b9050806001600160a01b0316846001600160a01b03161480611ed45750836001600160a01b0316611ec984610754565b6001600160a01b0316145b806119be57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff166119be565b826001600160a01b0316611f1b82610ef3565b6001600160a01b031614611f835760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107c9565b6001600160a01b038216611fe55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107c9565b611ff0600082611852565b6001600160a01b03831660009081526003602052604081208054600192906120199084906129a1565b90915550506001600160a01b0382166000908152600360205260408120805460019290612047908490612956565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6120b3848484611f08565b6120bf84848484612187565b610e915760405162461bcd60e51b81526004016107c990612825565b600081815b845181101561217f5760008582815181106120fd576120fd612a7a565b6020026020010151905080831161213f57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061216c565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061217781612a1f565b9150506120e0565b509392505050565b60006001600160a01b0384163b1561228957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121cb903390899088908890600401612791565b602060405180830381600087803b1580156121e557600080fd5b505af1925050508015612215575060408051601f3d908101601f1916820190925261221291810190612671565b60015b61226f573d808015612243576040519150601f19603f3d011682016040523d82523d6000602084013e612248565b606091505b5080516122675760405162461bcd60e51b81526004016107c990612825565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506119be565b506001949350505050565b8280546122a0906129e4565b90600052602060002090601f0160209004810192826122c25760008555612308565b82601f106122db57805160ff1916838001178555612308565b82800160010185558215612308579182015b828111156123085782518255916020019190600101906122ed565b50612314929150612318565b5090565b5b808211156123145760008155600101612319565b600067ffffffffffffffff8084111561234857612348612a90565b604051601f8501601f19908116603f0116810190828211818310171561237057612370612a90565b8160405280935085815286868601111561238957600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146123ba57600080fd5b919050565b600082601f8301126123d057600080fd5b6115bb8383356020850161232d565b6000602082840312156123f157600080fd5b6115bb826123a3565b6000806040838503121561240d57600080fd5b612416836123a3565b9150612424602084016123a3565b90509250929050565b60008060006060848603121561244257600080fd5b61244b846123a3565b9250612459602085016123a3565b9150604084013590509250925092565b6000806000806080858703121561247f57600080fd5b612488856123a3565b9350612496602086016123a3565b925060408501359150606085013567ffffffffffffffff8111156124b957600080fd5b8501601f810187136124ca57600080fd5b6124d98782356020840161232d565b91505092959194509250565b600080604083850312156124f857600080fd5b612501836123a3565b91506020830135801515811461251657600080fd5b809150509250929050565b6000806040838503121561253457600080fd5b61253d836123a3565b946020939093013593505050565b60008060006060848603121561256057600080fd5b612569846123a3565b95602085013595506040909401359392505050565b60008060008060008060a0878903121561259757600080fd5b6125a0876123a3565b95506020870135945060408701359350606087013567ffffffffffffffff808211156125cb57600080fd5b6125d78a838b016123bf565b945060808901359150808211156125ed57600080fd5b818901915089601f83011261260157600080fd5b81358181111561261057600080fd5b8a60208260051b850101111561262557600080fd5b6020830194508093505050509295509295509295565b60006020828403121561264d57600080fd5b5035919050565b60006020828403121561266657600080fd5b81356115bb81612aa6565b60006020828403121561268357600080fd5b81516115bb81612aa6565b6000602082840312156126a057600080fd5b813567ffffffffffffffff8111156126b757600080fd5b6119be848285016123bf565b600081518084526126db8160208601602086016129b8565b601f01601f19169290920160200192915050565b600083516127018184602088016129b8565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600083516127388184602088016129b8565b83519083019061274c8183602088016129b8565b01949350505050565b600083516127678184602088016129b8565b601d60f91b90830190815283516127858160018401602088016129b8565b01600101949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906127c4908301846126c3565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612806578351835292840192918401916001016127ea565b50909695505050505050565b6020815260006115bb60208301846126c3565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601190820152704578636565647320616c6c6f77616e636560781b604082015260600190565b6020808252601490820152734578636565647320746f74616c20737570706c7960601b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000821982111561296957612969612a4e565b500190565b60008261297d5761297d612a64565b500490565b600081600019048311821515161561299c5761299c612a4e565b500290565b6000828210156129b3576129b3612a4e565b500390565b60005b838110156129d35781810151838201526020016129bb565b83811115610e915750506000910152565b600181811c908216806129f857607f821691505b60208210811415612a1957634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612a3357612a33612a4e565b5060010190565b600082612a4957612a49612a64565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461123b57600080fdfea2646970667358221220a55ef73b68a3109645b691ec99980223a25ce9dbf2ddb4cac7ac023b2bd7a9e364736f6c6343000807003368747470733a2f2f6170692e6d657461626f6f6d6572736e66742e636f6d2f6d657461646174612f000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0ea018b514efc4b51647f2e2986db51839d5414beee2f41f63518988edd124edb000000000000000000000000000000000000000000000000000000000000000c4d65746120426f6f6d65727300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006424f4f4d45520000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102045760003560e01c806376d02b7111610118578063b88d4fde116100a0578063e222c7f91161006f578063e222c7f9146105bc578063e985e9c5146105d1578063ebf0c7171461061a578063f19e75d414610630578063f2fde38b1461065057600080fd5b8063b88d4fde1461053a578063c839fe941461055a578063c87b56dd14610587578063ca3cb522146105a757600080fd5b8063853828b6116100e7578063853828b6146104bf5780638da5cb5b146104d457806395d89b41146104f2578063a22cb46514610507578063b3ab66b01461052757600080fd5b806376d02b711461044657806376d5de85146104655780637cb647591461048557806382d29a0f146104a557600080fd5b806323ffce851161019b57806344df8e701161016a57806344df8e70146103bb57806355f804b3146103d15780636352211e146103f157806370a0823114610411578063715018a61461043157600080fd5b806323ffce85146103465780632fbba115146103665780633d18b9121461038657806342842e0e1461039b57600080fd5b80631545fb9a116101d75780631545fb9a146102ba57806318160ddd146102cd5780631d0d1257146102f057806323b872dd1461032657600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b50610229610224366004612654565b610670565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b506102536106c2565b6040516102359190612812565b34801561026c57600080fd5b5061028061027b36600461263b565b610754565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b3366004612521565b6107ee565b005b6102b86102c836600461257e565b610904565b3480156102d957600080fd5b506102e2610bc1565b604051908152602001610235565b3480156102fc57600080fd5b506102e261030b3660046123df565b6001600160a01b03166000908152600d602052604090205490565b34801561033257600080fd5b506102b861034136600461242d565b610bdd565b34801561035257600080fd5b506102b86103613660046123df565b610c56565b34801561037257600080fd5b506102b861038136600461263b565b610ca2565b34801561039257600080fd5b506102b8610dcd565b3480156103a757600080fd5b506102b86103b636600461242d565b610e97565b3480156103c757600080fd5b5061028061dead81565b3480156103dd57600080fd5b506102b86103ec36600461268e565b610eb2565b3480156103fd57600080fd5b5061028061040c36600461263b565b610ef3565b34801561041d57600080fd5b506102e261042c3660046123df565b610f6a565b34801561043d57600080fd5b506102b8610ff1565b34801561045257600080fd5b50600c5461022990610100900460ff1681565b34801561047157600080fd5b50600754610280906001600160a01b031681565b34801561049157600080fd5b506102b86104a036600461263b565b611027565b3480156104b157600080fd5b50600c546102299060ff1681565b3480156104cb57600080fd5b506102b8611056565b3480156104e057600080fd5b506006546001600160a01b0316610280565b3480156104fe57600080fd5b5061025361123e565b34801561051357600080fd5b506102b86105223660046124e5565b61124d565b6102b861053536600461263b565b611258565b34801561054657600080fd5b506102b8610555366004612469565b611450565b34801561056657600080fd5b5061057a61057536600461254b565b6114ca565b60405161023591906127ce565b34801561059357600080fd5b506102536105a236600461263b565b6115c2565b3480156105b357600080fd5b506102b861169c565b3480156105c857600080fd5b506102b86116da565b3480156105dd57600080fd5b506102296105ec3660046123fa565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561062657600080fd5b506102e260095481565b34801561063c57600080fd5b506102b861064b36600461263b565b611721565b34801561065c57600080fd5b506102b861066b3660046123df565b6117b1565b60006001600160e01b031982166380ac58cd60e01b14806106a157506001600160e01b03198216635b5e139f60e01b145b806106bc57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106d1906129e4565b80601f01602080910402602001604051908101604052809291908181526020018280546106fd906129e4565b801561074a5780601f1061071f5761010080835404028352916020019161074a565b820191906000526020600020905b81548152906001019060200180831161072d57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107d25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006107f982610ef3565b9050806001600160a01b0316836001600160a01b031614156108675760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107c9565b336001600160a01b0382161480610883575061088381336105ec565b6108f55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107c9565b6108ff8383611852565b505050565b3332146109485760405162461bcd60e51b81526020600482015260126024820152712737ba1030b63637bbb2b21037b934b3b4b760711b60448201526064016107c9565b336001600160a01b0387161461098e5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b60448201526064016107c9565b600c5460ff166109e05760405162461bcd60e51b815260206004820152601860248201527f5072652d73616c6520686176656e27742073746172746564000000000000000060448201526064016107c9565b6109f166470de4df82000086612982565b341015610a395760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da08195d1a195c9cc81cd95b9d60521b60448201526064016107c9565b6000610a44856118c0565b84604051602001610a56929190612755565b6040516020818303038152906040529050610aad610a7433836119c6565b8484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506119f992505050565b610af05760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21036b2b935b63290383937b7b360611b60448201526064016107c9565b6000610afb60085490565b9050610b0a6122b86002612956565b610b148883612956565b10610b315760405162461bcd60e51b81526004016107c9906128a2565b336000908152600d60205260409020548690610b4e908990612956565b1115610b6c5760405162461bcd60e51b81526004016107c990612877565b336000908152600d602052604081208054899290610b8b908490612956565b90915550600090505b87811015610bb657610ba4611a08565b80610bae81612a1f565b915050610b94565b505050505050505050565b60006001610bce60085490565b610bd891906129a1565b905090565b60075460405163164746fd60e11b81526001600160a01b03858116600483015284811660248301526044820184905290911690632c8e8dfa90606401600060405180830381600087803b158015610c3357600080fd5b505af1158015610c47573d6000803e3d6000fd5b505050506108ff838383611a94565b6006546001600160a01b03163314610c805760405162461bcd60e51b81526004016107c9906128d0565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152600e602052604090205460ff161515600114610d065760405162461bcd60e51b815260206004820152601c60248201527f43616c6c6572206d7573742062652061207465616d206d656d6265720000000060448201526064016107c9565b6000610d1160085490565b9050610d206122b86002612956565b610d2a8383612956565b10610d475760405162461bcd60e51b81526004016107c9906128a2565b336000908152600d6020526040902054601990610d65908490612956565b1115610d835760405162461bcd60e51b81526004016107c990612877565b336000908152600d602052604081208054849290610da2908490612956565b90915550600090505b828110156108ff57610dbb611a08565b80610dc581612a1f565b915050610dab565b60075460405163164746fd60e11b815233600482015260006024820181905260448201526001600160a01b0390911690632c8e8dfa90606401600060405180830381600087803b158015610e2057600080fd5b505af1158015610e34573d6000803e3d6000fd5b5050600754604051630c00007b60e41b81523360048201526001600160a01b03909116925063c00007b09150602401600060405180830381600087803b158015610e7d57600080fd5b505af1158015610e91573d6000803e3d6000fd5b50505050565b6108ff83838360405180602001604052806000815250611450565b6006546001600160a01b03163314610edc5760405162461bcd60e51b81526004016107c9906128d0565b8051610eef90600b906020840190612294565b5050565b6000818152600260205260408120546001600160a01b0316806106bc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107c9565b60006001600160a01b038216610fd55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107c9565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461101b5760405162461bcd60e51b81526004016107c9906128d0565b6110256000611ac5565b565b6006546001600160a01b031633146110515760405162461bcd60e51b81526004016107c9906128d0565b600955565b6006546001600160a01b031633146110805760405162461bcd60e51b81526004016107c9906128d0565b478061108b57600080fd5b600f546110b8906001600160a01b03166103e86110a98460f0612982565b6110b3919061296e565b611b17565b6010546110d6906001600160a01b03166103e86110a98460fa612982565b6011546110f4906001600160a01b03166103e86110a9846082612982565b601254611112906001600160a01b03166103e86110a9846050612982565b601354611130906001600160a01b03166103e86110a984604b612982565b60145461114e906001600160a01b03166103e86110a9846037612982565b60155461116c906001600160a01b03166103e86110a9846023612982565b60165461118a906001600160a01b03166103e86110a9846023612982565b6017546111a8906001600160a01b03166103e86110a984601e612982565b6018546111c6906001600160a01b03166103e86110a984601e612982565b6019546111e4906001600160a01b03166103e86110a984600f612982565b601a54611202906001600160a01b03166103e86110a984600a612982565b601b54611220906001600160a01b03166103e86110a984600f612982565b61123b6112356006546001600160a01b031690565b47611b17565b50565b6060600180546106d1906129e4565b610eef338383611bad565b33321461129c5760405162461bcd60e51b81526020600482015260126024820152712737ba1030b63637bbb2b21037b934b3b4b760711b60448201526064016107c9565b600c54610100900460ff166112ea5760405162461bcd60e51b815260206004820152601460248201527314d85b19481a185d995b89dd081cdd185c9d195960621b60448201526064016107c9565b600a8111156113305760405162461bcd60e51b8152602060048201526012602482015271151bdbc81b585b9e481c995c5d595cdd195960721b60448201526064016107c9565b611341669fdf42f6e4800082612982565b3410156113895760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da08195d1a195c9cc81cd95b9d60521b60448201526064016107c9565b600061139460085490565b90506113a36122b86002612956565b6113ad8383612956565b106113ca5760405162461bcd60e51b81526004016107c9906128a2565b336000908152600d60205260409020546014906113e8908490612956565b11156114065760405162461bcd60e51b81526004016107c990612877565b336000908152600d602052604081208054849290611425908490612956565b90915550600090505b828110156108ff5761143e611a08565b8061144881612a1f565b91505061142e565b60075460405163164746fd60e11b81526001600160a01b03868116600483015285811660248301526044820185905290911690632c8e8dfa90606401600060405180830381600087803b1580156114a657600080fd5b505af11580156114ba573d6000803e3d6000fd5b50505050610e9184848484611c7c565b606060006114d785610f6a565b9050806114f45750506040805160008152602081019091526115bb565b60008167ffffffffffffffff81111561150f5761150f612a90565b604051908082528060200260200182016040528015611538578160200160208202803683370190505b5090506000855b858110156115b45783821415611554576115b4565b876001600160a01b031661156782610ef3565b6001600160a01b031614156115a2578083838151811061158957611589612a7a565b60209081029190910101528161159e81612a1f565b9250505b806115ac81612a1f565b91505061153f565b5090925050505b9392505050565b6000818152600260205260409020546060906001600160a01b03166116415760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107c9565b600061164b611cae565b9050600081511161166b57604051806020016040528060008152506115bb565b80611675846118c0565b604051602001611686929190612726565b6040516020818303038152906040529392505050565b6006546001600160a01b031633146116c65760405162461bcd60e51b81526004016107c9906128d0565b600c805460ff19811660ff90911615179055565b6006546001600160a01b031633146117045760405162461bcd60e51b81526004016107c9906128d0565b600c805461ff001981166101009182900460ff1615909102179055565b6006546001600160a01b0316331461174b5760405162461bcd60e51b81526004016107c9906128d0565b600061175660085490565b90506117656122b86002612956565b61176f8383612956565b1061178c5760405162461bcd60e51b81526004016107c9906128a2565b60005b828110156108ff5761179f611a08565b806117a981612a1f565b91505061178f565b6006546001600160a01b031633146117db5760405162461bcd60e51b81526004016107c9906128d0565b6001600160a01b0381166118405760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107c9565b61123b81611ac5565b80546001019055565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061188782610ef3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6060816118e45750506040805180820190915260018152600360fc1b602082015290565b8160005b811561190e57806118f881612a1f565b91506119079050600a8361296e565b91506118e8565b60008167ffffffffffffffff81111561192957611929612a90565b6040519080825280601f01601f191660200182016040528015611953576020820181803683370190505b5090505b84156119be576119686001836129a1565b9150611975600a86612a3a565b611980906030612956565b60f81b81838151811061199557611995612a7a565b60200101906001600160f81b031916908160001a9053506119b7600a8661296e565b9450611957565b949350505050565b600081836040516020016119db9291906126ef565b60405160208183030381529060405280519060200120905092915050565b60006115bb8260095485611cbd565b6000611a1360085490565b9050611a23600880546001019055565b611a2d3382611cd3565b60075460405163cc240c0160e01b8152336004820152600160248201526001600160a01b039091169063cc240c0190604401600060405180830381600087803b158015611a7957600080fd5b505af1158015611a8d573d6000803e3d6000fd5b5050505050565b611a9e3382611e15565b611aba5760405162461bcd60e51b81526004016107c990612905565b6108ff838383611f08565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611b64576040519150601f19603f3d011682016040523d82523d6000602084013e611b69565b606091505b50509050806108ff5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016107c9565b816001600160a01b0316836001600160a01b03161415611c0f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107c9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611c863383611e15565b611ca25760405162461bcd60e51b81526004016107c990612905565b610e91848484846120a8565b6060600b80546106d1906129e4565b600082611cca85846120db565b14949350505050565b6001600160a01b038216611d295760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107c9565b6000818152600260205260409020546001600160a01b031615611d8e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107c9565b6001600160a01b0382166000908152600360205260408120805460019290611db7908490612956565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600260205260408120546001600160a01b0316611e8e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107c9565b6000611e9983610ef3565b9050806001600160a01b0316846001600160a01b03161480611ed45750836001600160a01b0316611ec984610754565b6001600160a01b0316145b806119be57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff166119be565b826001600160a01b0316611f1b82610ef3565b6001600160a01b031614611f835760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107c9565b6001600160a01b038216611fe55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107c9565b611ff0600082611852565b6001600160a01b03831660009081526003602052604081208054600192906120199084906129a1565b90915550506001600160a01b0382166000908152600360205260408120805460019290612047908490612956565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6120b3848484611f08565b6120bf84848484612187565b610e915760405162461bcd60e51b81526004016107c990612825565b600081815b845181101561217f5760008582815181106120fd576120fd612a7a565b6020026020010151905080831161213f57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061216c565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061217781612a1f565b9150506120e0565b509392505050565b60006001600160a01b0384163b1561228957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121cb903390899088908890600401612791565b602060405180830381600087803b1580156121e557600080fd5b505af1925050508015612215575060408051601f3d908101601f1916820190925261221291810190612671565b60015b61226f573d808015612243576040519150601f19603f3d011682016040523d82523d6000602084013e612248565b606091505b5080516122675760405162461bcd60e51b81526004016107c990612825565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506119be565b506001949350505050565b8280546122a0906129e4565b90600052602060002090601f0160209004810192826122c25760008555612308565b82601f106122db57805160ff1916838001178555612308565b82800160010185558215612308579182015b828111156123085782518255916020019190600101906122ed565b50612314929150612318565b5090565b5b808211156123145760008155600101612319565b600067ffffffffffffffff8084111561234857612348612a90565b604051601f8501601f19908116603f0116810190828211818310171561237057612370612a90565b8160405280935085815286868601111561238957600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146123ba57600080fd5b919050565b600082601f8301126123d057600080fd5b6115bb8383356020850161232d565b6000602082840312156123f157600080fd5b6115bb826123a3565b6000806040838503121561240d57600080fd5b612416836123a3565b9150612424602084016123a3565b90509250929050565b60008060006060848603121561244257600080fd5b61244b846123a3565b9250612459602085016123a3565b9150604084013590509250925092565b6000806000806080858703121561247f57600080fd5b612488856123a3565b9350612496602086016123a3565b925060408501359150606085013567ffffffffffffffff8111156124b957600080fd5b8501601f810187136124ca57600080fd5b6124d98782356020840161232d565b91505092959194509250565b600080604083850312156124f857600080fd5b612501836123a3565b91506020830135801515811461251657600080fd5b809150509250929050565b6000806040838503121561253457600080fd5b61253d836123a3565b946020939093013593505050565b60008060006060848603121561256057600080fd5b612569846123a3565b95602085013595506040909401359392505050565b60008060008060008060a0878903121561259757600080fd5b6125a0876123a3565b95506020870135945060408701359350606087013567ffffffffffffffff808211156125cb57600080fd5b6125d78a838b016123bf565b945060808901359150808211156125ed57600080fd5b818901915089601f83011261260157600080fd5b81358181111561261057600080fd5b8a60208260051b850101111561262557600080fd5b6020830194508093505050509295509295509295565b60006020828403121561264d57600080fd5b5035919050565b60006020828403121561266657600080fd5b81356115bb81612aa6565b60006020828403121561268357600080fd5b81516115bb81612aa6565b6000602082840312156126a057600080fd5b813567ffffffffffffffff8111156126b757600080fd5b6119be848285016123bf565b600081518084526126db8160208601602086016129b8565b601f01601f19169290920160200192915050565b600083516127018184602088016129b8565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600083516127388184602088016129b8565b83519083019061274c8183602088016129b8565b01949350505050565b600083516127678184602088016129b8565b601d60f91b90830190815283516127858160018401602088016129b8565b01600101949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906127c4908301846126c3565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612806578351835292840192918401916001016127ea565b50909695505050505050565b6020815260006115bb60208301846126c3565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601190820152704578636565647320616c6c6f77616e636560781b604082015260600190565b6020808252601490820152734578636565647320746f74616c20737570706c7960601b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000821982111561296957612969612a4e565b500190565b60008261297d5761297d612a64565b500490565b600081600019048311821515161561299c5761299c612a4e565b500290565b6000828210156129b3576129b3612a4e565b500390565b60005b838110156129d35781810151838201526020016129bb565b83811115610e915750506000910152565b600181811c908216806129f857607f821691505b60208210811415612a1957634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612a3357612a33612a4e565b5060010190565b600082612a4957612a49612a64565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461123b57600080fdfea2646970667358221220a55ef73b68a3109645b691ec99980223a25ce9dbf2ddb4cac7ac023b2bd7a9e364736f6c63430008070033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0ea018b514efc4b51647f2e2986db51839d5414beee2f41f63518988edd124edb000000000000000000000000000000000000000000000000000000000000000c4d65746120426f6f6d65727300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006424f4f4d45520000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Meta Boomers
Arg [1] : symbol (string): BOOMER
Arg [2] : merkleroot (bytes32): 0xea018b514efc4b51647f2e2986db51839d5414beee2f41f63518988edd124edb

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : ea018b514efc4b51647f2e2986db51839d5414beee2f41f63518988edd124edb
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [4] : 4d65746120426f6f6d6572730000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 424f4f4d45520000000000000000000000000000000000000000000000000000


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.