Contract 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x44e23d978ae7a3cb24f56a55c2d7d612031976034ab2dfd8fecff96a2062718aMint NFT449015212022-12-09 17:19:481 hr 44 mins ago0xc8851c13dd7dc1800cdecf90de50f381e8bbd72c IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00106005
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292Claim Mech Token...449013992022-12-09 17:19:061 hr 45 mins ago0xc8851c13dd7dc1800cdecf90de50f381e8bbd72c IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.0019782
0x386a07222f6a6c0cb2a3951d8e55fd05406a811c210454831464b7ea258b20d0Mint NFT448456352022-12-09 12:47:276 hrs 17 mins ago0x07a4c60c6ccdf6ff3ea28bbe8d0c21d6d1260ced IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.0000371
0x0a08f38fac57e32363aade05a267288ca10cf72f07bd0c2d6ff9aa3fb3fe33c1Claim Mech Token...448455202022-12-09 12:46:556 hrs 17 mins ago0x07a4c60c6ccdf6ff3ea28bbe8d0c21d6d1260ced IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00005429
0x724e2fb6422d7748d954fe7212b4296a066bf233ce42c1c9174e49e2cf8cb9c7Mint NFT447357722022-12-09 1:53:3517 hrs 11 mins ago0x68a80f974c1cd147119aa685b241b75e93de464b IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00003302
0xcf4353f675dbdd1bd988408f6e2e1cc3b8fc2da6afc1de0712af866fc9c96f4eClaim Mech Token...447356222022-12-09 1:52:3617 hrs 12 mins ago0x68a80f974c1cd147119aa685b241b75e93de464b IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.0000506
0x8a04e37e8071c2ed029e0557813e6b4f76e6e9646066292c49550b3bc90b7561Mint NFT447073832022-12-08 22:12:1820 hrs 52 mins ago0x89eb534e60cf13377eada52e30e1fd725a372b3c IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00092453
0xd90e1fa5e60a39b87509d2c9944fd4e36a1dee6843e8eccf2d7b561b83d61ecbClaim Mech Token...447072712022-12-08 22:11:3620 hrs 53 mins ago0x89eb534e60cf13377eada52e30e1fd725a372b3c IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.0028384
0x3f27789935fec156d758e69541880de6b6bd99c45ae4d9128d3da5cab259bb6bMint NFT447067552022-12-08 22:07:5420 hrs 56 mins ago0x71ac01152cf805fab95f9d874c542fd35be2c913 IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00091787
0x04c443f017004b6791a5729664017ef08afaa3bb293126c98a3cf93670195609Mint NFT447067122022-12-08 22:07:3720 hrs 57 mins ago0x71ac01152cf805fab95f9d874c542fd35be2c913 IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00091787
0x3251a2be2406aa872a54a614aa3b436418bda0bb93fc8906bb955ea4026b748cMint NFT447066672022-12-08 22:07:1520 hrs 57 mins ago0x71ac01152cf805fab95f9d874c542fd35be2c913 IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00091787
0x77a60b80854b681dda801de3e3d4faf4043dfba9b7c73c305208cc4639122c59Mint NFT447066202022-12-08 22:06:5420 hrs 57 mins ago0x71ac01152cf805fab95f9d874c542fd35be2c913 IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00091787
0x4ceaa00b439f03f999666da9cfdee1de33314f56c6836a167a3275305face30cMint NFT447065682022-12-08 22:06:3320 hrs 58 mins ago0x71ac01152cf805fab95f9d874c542fd35be2c913 IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00091787
0x191cd9d1b353997da2aaddeed55ae4ae008205aac88e03b787fdc308e48e5a85Mint NFT447065172022-12-08 22:06:1220 hrs 58 mins ago0x71ac01152cf805fab95f9d874c542fd35be2c913 IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00091787
0xe52a61002e54000578ee70a07ccf3a916a6578c9061757050f66fd0b4588d5afMint NFT447064732022-12-08 22:05:5520 hrs 58 mins ago0x71ac01152cf805fab95f9d874c542fd35be2c913 IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00091787
0xb5b307f4db539280296e17f0f22d4f2a23109d824651c341e95f5b03aeac40ceMint NFT447063982022-12-08 22:05:2720 hrs 59 mins ago0x71ac01152cf805fab95f9d874c542fd35be2c913 IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00091787
0xd656ce5b5e5d98a1ece573cdceb7529e85490dc658e21cfcfc2529b69878d4bcMint NFT447063092022-12-08 22:04:5220 hrs 59 mins ago0x71ac01152cf805fab95f9d874c542fd35be2c913 IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00091787
0x0df6cf52aae6cd1fc592b2433990f267b8188e538a2ff413779c03d513c4c4f3Mint NFT447062652022-12-08 22:04:3221 hrs ago0x71ac01152cf805fab95f9d874c542fd35be2c913 IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00091787
0x95d719613dde5b78a6d854a1ea4a7ce764307a5c9414fd9afe50e268de307bbeMint NFT447061962022-12-08 22:04:0721 hrs ago0x71ac01152cf805fab95f9d874c542fd35be2c913 IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00091787
0xb8dc6a5c81f184461c863043b5bf4b7c9834b2d56381390f3be185640ac11c01Mint NFT447061302022-12-08 22:03:4021 hrs 1 min ago0x71ac01152cf805fab95f9d874c542fd35be2c913 IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00091787
0x8df6f1bd12da77897b27e087860461527ad250d4489b1327ba74bb5b09f08a0cMint NFT447060722022-12-08 22:03:1721 hrs 1 min ago0x71ac01152cf805fab95f9d874c542fd35be2c913 IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00091787
0xbac4bce8c68b3b97de382d465efe807e725048967f9c8afeeaf68a8694b4923bMint NFT447059922022-12-08 22:02:5021 hrs 1 min ago0x71ac01152cf805fab95f9d874c542fd35be2c913 IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00091787
0xad9566fcc17e1a7b82ae10cdb7aeffe21ad73f762db0e782cdbff93528b08f06Claim Mech Token...447046612022-12-08 21:53:4121 hrs 10 mins ago0x71ac01152cf805fab95f9d874c542fd35be2c913 IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.01013929
0x2bc54602ca7522d8b2bbb72d3d7d9467f7e7ede72a2e4e9d237733c025572a66Mint NFT446935142022-12-08 20:50:1022 hrs 14 mins ago0x45dbed09feeefc14b7151f7b3bcc01f4833e47d4 IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00100188
0xbf7d1c1cc300616546995dc0901fd7b5735eba749b6b05e944645295c6120657Claim Mech Token...446934772022-12-08 20:49:5922 hrs 14 mins ago0x45dbed09feeefc14b7151f7b3bcc01f4833e47d4 IN  0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH0.00225863
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x44e23d978ae7a3cb24f56a55c2d7d612031976034ab2dfd8fecff96a2062718a449015212022-12-09 17:19:481 hr 44 mins ago 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac60 ETH
0x44e23d978ae7a3cb24f56a55c2d7d612031976034ab2dfd8fecff96a2062718a449015212022-12-09 17:19:481 hr 44 mins ago 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac60 ETH
0x44e23d978ae7a3cb24f56a55c2d7d612031976034ab2dfd8fecff96a2062718a449015212022-12-09 17:19:481 hr 44 mins ago 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac60 ETH
0x44e23d978ae7a3cb24f56a55c2d7d612031976034ab2dfd8fecff96a2062718a449015212022-12-09 17:19:481 hr 44 mins ago 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac60 ETH
0x44e23d978ae7a3cb24f56a55c2d7d612031976034ab2dfd8fecff96a2062718a449015212022-12-09 17:19:481 hr 44 mins ago 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac60 ETH
0x44e23d978ae7a3cb24f56a55c2d7d612031976034ab2dfd8fecff96a2062718a449015212022-12-09 17:19:481 hr 44 mins ago 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac60 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac6 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac6 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac6 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac6 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac60 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac6 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac6 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac6 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac6 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac60 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac6 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac6 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac6 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac6 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac60 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac6 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac6 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac6 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH
0x2e9feb108a0d8c66977f50e973a14f8d28bc6d4ef1b6d84e830661cb28388292449013992022-12-09 17:19:061 hr 45 mins ago 0x2d4622181f66616d7ca358a2d7395dc1b5e0dac6 0x9d3ebe1cbc34614b414bbb6d83f9b0875b8365ee0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MechaPunkx

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 20 : MechaPunkx.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.1;

import "./MechToken.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

/*
******************************
**** M E C H A P U N K X *****
******************************

MechaPunkx NFT (by LamboCorp)

ERC721
Yields ERC20 MECH Token to owner, allowing mint/distribution of more NFTs
Yields ERC20 LAMBO instead of MECH if converted
*/
contract MechaPunkx is ERC721, ERC721Enumerable, ERC721Burnable, Ownable, ReentrancyGuard {

	string public baseTokenURI = "https://lambo.lol/metadata/mechapunkx/";
	string public contractURI = "https://lambo.lol/mechapunkx/contract.json";

	uint256 public constant MAX_MECHAPUNKX = 7848;
	uint256 public saleRemaining = 200;
	uint256 public numMinted = 0;

	// For limiting maximum MechaPunkx mint per day
	bool public canBurn = true;
	bool private useDailyLimit = true;
	uint256 private dailyLimitStartDay = 0;
	uint256 private dailyLimitStartQuantity = 0;
	
	// Map MechaPunkx tokenId to start date of LAMBO yield
	mapping(uint256 => uint256) private lamboYieldStart;
	mapping(address => uint256) public allowlist;

	MechToken private mech;

	event ContractCreated(address newAddress);
	event AllowlistMint(uint256 quantity);
	event LamboYield(uint256 tokenId);
	event MechaPunkxGraveyard(uint256 tokenId);

	constructor() ERC721("MechaPunkx", "MECHAPUNKX") {
		mech = new MechToken(address(this));
		emit ContractCreated(address(mech));
	}

	// Cost in MECH Token required to claim a MechaPunkx NFT 
	// approx. # of days since launch
	function mintCost() public view returns (uint256) {

		// cost = min(100, max(9, day + 0))
		uint256 day = mech.maxEarned();
		if (day < 9) day = 9;
		else if (day > 100) day = 100;

		return day;
	}

	function mechTokenAddress() external view returns (address) {
		return address(mech);
	}

	function claimMechToken(uint256 tokenId) public {
		require(ownerOf(tokenId) == msg.sender, "Must be owner");
		require(lamboYieldStart[tokenId] == 0, "NFT yields LAMBO");
		mech.claim(tokenId);
	}

	function claimMechTokenAll() external {
		uint256[] memory tokens = tokensInWallet(msg.sender);
		for(uint256 i = 0; i < tokens.length; i++){
			// Skip any NFT yielding LAMBO
			if (lamboYieldStart[tokens[i]] == 0) {
				claimMechToken(tokens[i]);
			}
		}
	}

	function tokensInWallet(address owner) public view returns(uint256[] memory) {
		uint256 tokenCount = balanceOf(owner);
		uint256[] memory tokensId = new uint256[](tokenCount);
		for(uint256 i = 0; i < tokenCount; i++){
			tokensId[i] = tokenOfOwnerByIndex(owner, i);
		}
		return tokensId;
	}

	// Mint NFT for whitelist, 200 spots
	function mintAllowlist() external nonReentrant() {
		uint256 quantity = allowlist[msg.sender];
		require(quantity > 0, "Not on list");
		require(numMinted + quantity <= MAX_MECHAPUNKX, "All MechaPunkx claimed");
		allowlist[msg.sender] = 0;
		uint256 mintIndex = numMinted;
		numMinted += quantity;
		for (uint256 i = 0; i < quantity; i++) {
			_mint(msg.sender, mintIndex + i);
		}
		emit AllowlistMint(quantity);
	}

	// Public Sale, 200 spots
	function mintSale(uint256 quantity) external payable nonReentrant() {
		require(quantity > 0 && quantity <= 20, "Between 1 and 21");
		require(numMinted + quantity <= MAX_MECHAPUNKX, "Not enough remain");
		require((0.1 ether * quantity) <= msg.value, "Eth value incorrect");
		require(saleRemaining - quantity >= 0, "Not enough left for sale");

		saleRemaining -= quantity;
		uint256 mintIndex = numMinted;
		numMinted += quantity;

		for(uint i = 0; i < quantity; i++) {
			_mint(msg.sender, mintIndex + i);
		}
	}

	// Mint NFT by burning MECH
	function mintNFT() external nonReentrant() {
		require(numMinted + 1 <= MAX_MECHAPUNKX, "All MechaPunkx claimed.");

		if (useDailyLimit) {
			// At most, 100 MechaPunkx per day can be minted, starting once 500 minted
			uint256 currentDay = mech.maxEarned();
			uint256 nDaysPassed = currentDay - dailyLimitStartDay;

			if (numMinted > 500) {
				if (nDaysPassed < 1) {
					uint256 nMintedToday = numMinted - dailyLimitStartQuantity;
					require(nMintedToday < 100, "Try again tomorrow, limit of 100 MechaPunkx already minted today");
				}
				else {
					// If more than 1 day since start of last interval, reset daily limit
					dailyLimitStartQuantity = numMinted;
					dailyLimitStartDay = currentDay;
				}
			}
		}
		
		uint256 cost = mintCost() * (10**18);
		uint256 mechBalance = mech.balanceOf(msg.sender);
		require(mechBalance >= cost, "Not enough MECH");

		uint256 allowance = mech.allowance(msg.sender, address(this));
		require(allowance >= cost, "Needs approval to spend MECH");

		uint256 mintIndex = numMinted;
		numMinted += 1;
		mech.burnFrom(msg.sender, cost);
		// Calls _beforeTokenTransfer hook to start earning
		_mint(msg.sender, mintIndex);
	}

	// Burn NFT, stop accumulating MECH token, release unclaimed
	function burn(uint256 tokenId) public override nonReentrant() {
		require(ownerOf(tokenId) == msg.sender, "Must be owner");
		require(canBurn, "Burning NFT not allowed.");
		// Exclude the NFT from earning LAMBO
		lamboYieldStart[tokenId] = 0;
		emit MechaPunkxGraveyard(tokenId);
		mech.startEarning(tokenId);
		mech.burnNFT(tokenId, msg.sender);
		super._burn(tokenId);
	}
	
	// Permanently switch an NFT from yielding MECH Token to yielding LAMBO by spending 50 MECH
	function convertYieldToLambo(uint256 tokenId) external {
		require(ownerOf(tokenId) == msg.sender, "Must be owner");
		require(lamboYieldStart[tokenId] == 0, "Already yields LAMBO");

		uint256 burnRequirement = 50 * (10**18);
		uint256 mechBalance = mech.balanceOf(msg.sender);
		require(mechBalance >= burnRequirement, "Need 50 MECH");
		uint256 allowance = mech.allowance(msg.sender, address(this));
		require(allowance >= burnRequirement, "Needs approval to spend MECH");

		lamboYieldStart[tokenId] = block.timestamp;
		mech.burnFrom(msg.sender, burnRequirement);
		emit LamboYield(tokenId);
	}

	function isOverDailyLimit() external view returns (bool) {
		if (useDailyLimit) {
			// At most, 100 MechaPunkx per day can be minted (starting once 500 minted)
			uint256 currentDay = mech.maxEarned();
			uint256 nDaysPassed = currentDay - dailyLimitStartDay;
			if (numMinted > 500) {
				if (nDaysPassed < 1) {
					uint256 nMintedToday = numMinted - dailyLimitStartQuantity;
					if (nMintedToday >= 100) return true;
				}
			}
		}
		return false;
	}

	function seedAllowlist(address[] memory addresses, uint256 quantity) external onlyOwner {
		require(quantity >= 0, "Need positive quantity");
		for (uint256 i = 0; i < addresses.length; i++) {
			allowlist[addresses[i]] = quantity;
		}
	}

	function exists(uint256 tokenId) external view returns (bool) {
		return _exists(tokenId);
	}

	function setOptions(bool canBurnStatus, bool dailyLimitStatus) external onlyOwner {
		canBurn = canBurnStatus;
		useDailyLimit = dailyLimitStatus;
	}

	function nBurned() external view returns (uint256) {
		return numMinted - totalSupply();
	}

	function lamboYieldStartTime(uint256 tokenId) external view returns (uint256) {
		return lamboYieldStart[tokenId];
	}

	function yieldsLambo(uint256 tokenId) public view returns (bool) {
		return _exists(tokenId) && lamboYieldStart[tokenId] > 0;
	}

	// When transferring MechaPunkx NFT, void any unclaimed Mech Token
	function _beforeTokenTransfer(address _from, address _to, uint256 _tokenId) internal virtual override(ERC721, ERC721Enumerable) {
		if (numMinted < MAX_MECHAPUNKX || mech.maxEarned() < 500) mech.startEarning(_tokenId);
		super._beforeTokenTransfer(_from, _to, _tokenId);
	}

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

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

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

	function setBaseURI(string memory baseURI) external onlyOwner {
		baseTokenURI = baseURI;
	}
}

File 2 of 20 : MechToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.1;

import "./MechaPunkx.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";

/*
******************************
********* MECH TOKEN *********
******************************

MECH Token is an ERC20 that yields on a schedule to owners of MechaPunkx NFTs
*/
contract MechToken is ERC20, ERC20Burnable, Ownable {

	uint256 public startTime = block.timestamp;

	MechaPunkx private MechaPunkxNFT;

	// Map NFT ID to MECH claimed, resets on NFT transfer, "offset" is a better name
	mapping(uint256 => uint256) private claimed;

	constructor(address mAddress) ERC20("MECH Token", "MECH") { 
		MechaPunkxNFT = MechaPunkx(mAddress);
	}
	
	// Tokens stop existing when they are burned
	function tokenExists(uint256 tokenId) public view returns (bool) {
		return MechaPunkxNFT.exists(tokenId);
	}

	// Returns max amount of MECH earned by any single NFT minted day 0, at a rate of 1 MECH / DAY
	function maxEarned() public view returns (uint256) {   
		uint nDays = (block.timestamp - startTime) / 1 days;
		return nDays;
	}

	// Set the claimed amount equal to the max possible, effectively setting the pending balance to zero
	// When an address sells or transfers NFT, reset again for the new owner
	function startEarning(uint256 tokenId) external onlyOwner {
		claimed[tokenId] = maxEarned();
	}

	// MECH token balance accumulating
	function pendingBalance(uint256 tokenId) public view returns (uint256) {
		require(tokenExists(tokenId), "tokenId does not exist");
		return maxEarned() - claimed[tokenId];
	}

	// Set limiting schedule to make distribution fair (limits compounding)
	function claimUpperBound() public view returns (uint256) {
		
		uint day = maxEarned();

		if (day > 141) {
			uint wks = (day - 141) / 7;
			return 1208 + (100 * wks);
		}

		uint256[2][17] memory milestones;
		milestones[0] = [uint256(141),uint256(1208)];
		milestones[1] = [uint256(135),uint256(1106)];
		milestones[2] = [uint256(128),uint256(994)];
		milestones[3] = [uint256(122),uint256(904)];
		milestones[4] = [uint256(114),uint256(806)];
		milestones[5] = [uint256(107),uint256(702)];
		milestones[6] = [uint256(98),uint256(594)];
		milestones[7] = [uint256(89),uint256(495)];
		milestones[8] = [uint256(80),uint256(405)];
		milestones[9] = [uint256(71),uint256(324)];
		milestones[10] = [uint256(62),uint256(252)];
		milestones[11] = [uint256(53),uint256(189)];
		milestones[12] = [uint256(44),uint256(135)];
		milestones[13] = [uint256(35),uint256(90)];
		milestones[14] = [uint256(26),uint256(54)];
		milestones[15] = [uint256(17),uint256(27)];
		milestones[16] = [uint256(8),uint256(9)];

		for (uint8 i = 0; i < milestones.length; i++) {
			if (day >= milestones[i][0]) {
				return milestones[i][1];
			}
		}

		return 0;
	} 

	// Returns claimable amount, according to schedule
	// Can return value higher than 1 per day, schedule has an upper bound on compounding
	// "Claimable" means "allowed to claim up to this amount if earned", and is not "the amount earned"
	function claimableBalance(uint256 tokenId) public view returns (uint256) {
		require(tokenExists(tokenId), "tokenId does not exist");
		uint256 amountCanClaim = claimUpperBound();
		uint256 amountClaimed = claimed[tokenId];

		// Because "claimed" resets to maxEarned value on transfer, value can exceed the claim upper bound
		if (amountClaimed >= amountCanClaim) {
			return 0;
		}
		return amountCanClaim - amountClaimed;
	}

	// Update MECH balance of NFT (owned by caller)
	function claim(uint256 tokenId) external onlyOwner {
		require(tokenExists(tokenId), "tokenId does not exist");
		uint256 p = pendingBalance(tokenId);
		uint256 canClaim = claimableBalance(tokenId);

		if (canClaim > p) {
			canClaim = p;
		}

		if (canClaim > 0) {
			claimed[tokenId] += canClaim;
			address owner = MechaPunkxNFT.ownerOf(tokenId);
			_mint(owner, canClaim * (10**18));
		}
	}

	
	// Before burning NFT, give some MECH back to the user for minting
	function burnNFT(uint256 tokenId, address owner) external onlyOwner {
		require(tokenExists(tokenId), "tokenId does not exist");
		
		uint256 rebate = 1 * (10**18);

		if (maxEarned() >= 10) {
			rebate = (MechaPunkxNFT.mintCost() * (10**18)) / 2;
		}
		
		_mint(owner, rebate);
	}
	
}

File 3 of 20 : 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 4 of 20 : 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 5 of 20 : 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 6 of 20 : 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 7 of 20 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 8 of 20 : 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 9 of 20 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 20 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 20 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 12 of 20 : 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 13 of 20 : 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 14 of 20 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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);

        _afterTokenTransfer(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);

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(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 {}

    /**
     * @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.
     * - `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 tokenId
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

File 17 of 20 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

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

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

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

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

File 18 of 20 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

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

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

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

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

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

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

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

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

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

File 19 of 20 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 20 of 20 : 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);
    }
}

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

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"AllowlistMint","type":"event"},{"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":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"ContractCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"LamboYield","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MechaPunkxGraveyard","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":"MAX_MECHAPUNKX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowlist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"canBurn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimMechToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimMechTokenAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"convertYieldToLambo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOverDailyLimit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"lamboYieldStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mechTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"nBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":[],"name":"saleRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"seedAllowlist","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":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"canBurnStatus","type":"bool"},{"internalType":"bool","name":"dailyLimitStatus","type":"bool"}],"name":"setOptions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensInWallet","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":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"yieldsLambo","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60e060405260266080818152906200511060a039600c90620000229082620002a5565b506040518060600160405280602a8152602001620050e6602a9139600d906200004c9082620002a5565b5060c8600e556000600f8190556010805461ffff191661010117905560118190556012553480156200007d57600080fd5b506040518060400160405280600a81526020016909acac6d0c2a0eadcd6f60b31b8152506040518060400160405280600a81526020016909a8a869082a0aa9c96b60b31b8152508160009081620000d59190620002a5565b506001620000e48282620002a5565b50505062000101620000fb6200019c60201b60201c565b620001a0565b6001600b5560405130906200011690620001f2565b6001600160a01b039091168152602001604051809103906000f08015801562000143573d6000803e3d6000fd5b50601580546001600160a01b0319166001600160a01b039290921691821790556040519081527fcf78cf0d6f3d8371e1075c69c492ab4ec5d8cf23a1a239b6a51a1d00be7ca3129060200160405180910390a162000371565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6118c7806200381f83390190565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200022b57607f821691505b6020821081036200024c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002a057600081815260208120601f850160051c810160208610156200027b5750805b601f850160051c820191505b818110156200029c5782815560010162000287565b5050505b505050565b81516001600160401b03811115620002c157620002c162000200565b620002d981620002d2845462000216565b8462000252565b602080601f831160018114620003115760008415620002f85750858301515b600019600386901b1c1916600185901b1785556200029c565b600085815260208120601f198616915b82811015620003425788860151825594840194600190910190840162000321565b5085821015620003615787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61349e80620003816000396000f3fe6080604052600436106102725760003560e01c8063715018a61161014f578063bdb4b848116100c1578063e6f4c9cc1161007a578063e6f4c9cc14610709578063e8a3d48514610729578063e985e9c51461073e578063f2fde38b14610787578063f7a225a4146107a7578063fdf70c28146107bc57600080fd5b8063bdb4b8481461066f578063c1eb184014610684578063c54c21cc1461069e578063c87b56dd146106be578063d52079b4146106de578063d547cfb7146106f457600080fd5b8063a5bf64e311610113578063a5bf64e3146105b7578063a7cd52cb146105cc578063ab4fda8e146105f9578063ae075b001461060f578063b64a09af1461062f578063b88d4fde1461064f57600080fd5b8063715018a6146105395780638da5cb5b1461054e57806395d89b411461056c57806395dec87914610581578063a22cb4651461059757600080fd5b806342842e0e116101e857806355f804b3116101ac57806355f804b31461048257806358702a58146104a257806361c5c935146104b75780636352211e146104e457806370a082311461050457806370d3dfae1461052457600080fd5b806342842e0e146103ef57806342966c681461040f5780634875bccb1461042f5780634f558e79146104425780634f6ccce71461046257600080fd5b8063151841991161023a578063151841991461033d57806318160ddd1461035b57806323b872dd1461037a5780632f745c591461039a5780633bff8ecb146103ba5780633ccfd60b146103da57600080fd5b806301ffc9a71461027757806306fdde03146102ac578063081812fc146102ce578063095ea7b31461030657806314f710fe14610328575b600080fd5b34801561028357600080fd5b50610297610292366004612c44565b6107e9565b60405190151581526020015b60405180910390f35b3480156102b857600080fd5b506102c16107fa565b6040516102a39190612cb9565b3480156102da57600080fd5b506102ee6102e9366004612ccc565b61088c565b6040516001600160a01b0390911681526020016102a3565b34801561031257600080fd5b50610326610321366004612cfc565b610919565b005b34801561033457600080fd5b50610326610a2e565b34801561034957600080fd5b506015546001600160a01b03166102ee565b34801561036757600080fd5b506008545b6040519081526020016102a3565b34801561038657600080fd5b50610326610395366004612d26565b610e26565b3480156103a657600080fd5b5061036c6103b5366004612cfc565b610e57565b3480156103c657600080fd5b506102976103d5366004612ccc565b610eed565b3480156103e657600080fd5b50610326610f14565b3480156103fb57600080fd5b5061032661040a366004612d26565b610f71565b34801561041b57600080fd5b5061032661042a366004612ccc565b610f8c565b61032661043d366004612ccc565b611153565b34801561044e57600080fd5b5061029761045d366004612ccc565b61133b565b34801561046e57600080fd5b5061036c61047d366004612ccc565b611346565b34801561048e57600080fd5b5061032661049d366004612e01565b6113d9565b3480156104ae57600080fd5b5061036c61140f565b3480156104c357600080fd5b506104d76104d2366004612e4a565b61142c565b6040516102a39190612e65565b3480156104f057600080fd5b506102ee6104ff366004612ccc565b6114ce565b34801561051057600080fd5b5061036c61051f366004612e4a565b611545565b34801561053057600080fd5b506102976115cc565b34801561054557600080fd5b506103266116a7565b34801561055a57600080fd5b50600a546001600160a01b03166102ee565b34801561057857600080fd5b506102c16116dd565b34801561058d57600080fd5b5061036c611ea881565b3480156105a357600080fd5b506103266105b2366004612eb9565b6116ec565b3480156105c357600080fd5b506103266116f7565b3480156105d857600080fd5b5061036c6105e7366004612e4a565b60146020526000908152604090205481565b34801561060557600080fd5b5061036c600e5481565b34801561061b57600080fd5b5061032661062a366004612ccc565b611778565b34801561063b57600080fd5b5061032661064a366004612eec565b611a30565b34801561065b57600080fd5b5061032661066a366004612f08565b611a7e565b34801561067b57600080fd5b5061036c611ab6565b34801561069057600080fd5b506010546102979060ff1681565b3480156106aa57600080fd5b506103266106b9366004612ccc565b611b55565b3480156106ca57600080fd5b506102c16106d9366004612ccc565b611c35565b3480156106ea57600080fd5b5061036c600f5481565b34801561070057600080fd5b506102c1611d00565b34801561071557600080fd5b50610326610724366004612f84565b611d8e565b34801561073557600080fd5b506102c1611e1a565b34801561074a57600080fd5b50610297610759366004613037565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561079357600080fd5b506103266107a2366004612e4a565b611e27565b3480156107b357600080fd5b50610326611ec2565b3480156107c857600080fd5b5061036c6107d7366004612ccc565b60009081526013602052604090205490565b60006107f48261201e565b92915050565b60606000805461080990613061565b80601f016020809104026020016040519081016040528092919081815260200182805461083590613061565b80156108825780601f1061085757610100808354040283529160200191610882565b820191906000526020600020905b81548152906001019060200180831161086557829003601f168201915b5050505050905090565b600061089782612043565b6108fd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610924826114ce565b9050806001600160a01b0316836001600160a01b0316036109915760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108f4565b336001600160a01b03821614806109ad57506109ad8133610759565b610a1f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108f4565b610a298383612060565b505050565b6002600b5403610a505760405162461bcd60e51b81526004016108f49061309b565b6002600b55600f54611ea890610a679060016130e8565b1115610ab55760405162461bcd60e51b815260206004820152601760248201527f416c6c204d6563686150756e6b7820636c61696d65642e00000000000000000060448201526064016108f4565b601054610100900460ff1615610bfd57601554604080516303129ea360e61b815290516000926001600160a01b03169163c4a7a8c09160048083019260209291908290030181865afa158015610b0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b339190613100565b9050600060115482610b459190613119565b90506101f4600f541115610bfa576001811015610bee576000601254600f54610b6e9190613119565b905060648110610be8576040805162461bcd60e51b81526020600482015260248101919091527f54727920616761696e20746f6d6f72726f772c206c696d6974206f662031303060448201527f204d6563686150756e6b7820616c7265616479206d696e74656420746f64617960648201526084016108f4565b50610bfa565b600f5460125560118290555b50505b6000610c07611ab6565b610c1990670de0b6b3a7640000613130565b6015546040516370a0823160e01b81523360048201529192506000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610c67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8b9190613100565b905081811015610ccf5760405162461bcd60e51b815260206004820152600f60248201526e09cdee840cadcdeeaced0409a8a869608b1b60448201526064016108f4565b601554604051636eb1769f60e11b81523360048201523060248201526000916001600160a01b03169063dd62ed3e90604401602060405180830381865afa158015610d1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d429190613100565b905082811015610d945760405162461bcd60e51b815260206004820152601c60248201527f4e6565647320617070726f76616c20746f207370656e64204d4543480000000060448201526064016108f4565b600f8054906001906000610da883856130e8565b909155505060155460405163079cc67960e41b8152336004820152602481018690526001600160a01b03909116906379cc679090604401600060405180830381600087803b158015610df957600080fd5b505af1158015610e0d573d6000803e3d6000fd5b50505050610e1b33826120ce565b50506001600b555050565b610e30338261220d565b610e4c5760405162461bcd60e51b81526004016108f49061314f565b610a298383836122f7565b6000610e6283611545565b8210610ec45760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016108f4565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6000610ef882612043565b80156107f4575050600090815260136020526040902054151590565b600a546001600160a01b03163314610f3e5760405162461bcd60e51b81526004016108f4906131a0565b6040514790339082156108fc029083906000818181858888f19350505050158015610f6d573d6000803e3d6000fd5b5050565b610a2983838360405180602001604052806000815250611a7e565b6002600b5403610fae5760405162461bcd60e51b81526004016108f49061309b565b6002600b5533610fbd826114ce565b6001600160a01b031614610fe35760405162461bcd60e51b81526004016108f4906131d5565b60105460ff166110355760405162461bcd60e51b815260206004820152601860248201527f4275726e696e67204e4654206e6f7420616c6c6f7765642e000000000000000060448201526064016108f4565b60008181526013602052604080822091909155517f175cd77234170107cedf3b7b30e8b739f0fe8eb9be6b4b663a65c65422f3bd49906110789083815260200190565b60405180910390a1601554604051634c87ecb160e11b8152600481018390526001600160a01b039091169063990fd96290602401600060405180830381600087803b1580156110c657600080fd5b505af11580156110da573d6000803e3d6000fd5b505060155460405163b58c861560e01b8152600481018590523360248201526001600160a01b03909116925063b58c86159150604401600060405180830381600087803b15801561112a57600080fd5b505af115801561113e573d6000803e3d6000fd5b5050505061114b8161249e565b506001600b55565b6002600b54036111755760405162461bcd60e51b81526004016108f49061309b565b6002600b55801580159061118a575060148111155b6111c95760405162461bcd60e51b815260206004820152601060248201526f4265747765656e203120616e6420323160801b60448201526064016108f4565b611ea881600f546111da91906130e8565b111561121c5760405162461bcd60e51b81526020600482015260116024820152702737ba1032b737bab3b4103932b6b0b4b760791b60448201526064016108f4565b3461122f8267016345785d8a0000613130565b11156112735760405162461bcd60e51b8152602060048201526013602482015272115d1a081d985b1d59481a5b98dbdc9c9958dd606a1b60448201526064016108f4565b600081600e546112839190613119565b10156112d15760405162461bcd60e51b815260206004820152601860248201527f4e6f7420656e6f756768206c65667420666f722073616c65000000000000000060448201526064016108f4565b80600e60008282546112e39190613119565b9091555050600f805490829060006112fb83856130e8565b90915550600090505b828110156113315761131f3361131a83856130e8565b6120ce565b80611329816131fc565b915050611304565b50506001600b5550565b60006107f482612043565b600061135160085490565b82106113b45760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016108f4565b600882815481106113c7576113c7613215565b90600052602060002001549050919050565b600a546001600160a01b031633146114035760405162461bcd60e51b81526004016108f4906131a0565b600c610f6d8282613279565b600061141a60085490565b600f546114279190613119565b905090565b6060600061143983611545565b905060008167ffffffffffffffff81111561145657611456612d62565b60405190808252806020026020018201604052801561147f578160200160208202803683370190505b50905060005b828110156114c6576114978582610e57565b8282815181106114a9576114a9613215565b6020908102919091010152806114be816131fc565b915050611485565b509392505050565b6000818152600260205260408120546001600160a01b0316806107f45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016108f4565b60006001600160a01b0382166115b05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108f4565b506001600160a01b031660009081526003602052604090205490565b601054600090610100900460ff16156116a157601554604080516303129ea360e61b815290516000926001600160a01b03169163c4a7a8c09160048083019260209291908290030181865afa158015611629573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061164d9190613100565b905060006011548261165f9190613119565b90506101f4600f54111561169e57600181101561169e576000601254600f546116889190613119565b90506064811061169c576001935050505090565b505b50505b50600090565b600a546001600160a01b031633146116d15760405162461bcd60e51b81526004016108f4906131a0565b6116db6000612545565b565b60606001805461080990613061565b610f6d338383612597565b60006117023361142c565b905060005b8151811015610f6d576013600083838151811061172657611726613215565b60200260200101518152602001908152602001600020546000036117665761176682828151811061175957611759613215565b6020026020010151611b55565b80611770816131fc565b915050611707565b33611782826114ce565b6001600160a01b0316146117a85760405162461bcd60e51b81526004016108f4906131d5565b600081815260136020526040902054156117fb5760405162461bcd60e51b8152602060048201526014602482015273416c7265616479207969656c6473204c414d424f60601b60448201526064016108f4565b6015546040516370a0823160e01b81523360048201526802b5e3af16b1880000916000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015611851573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118759190613100565b9050818110156118b65760405162461bcd60e51b815260206004820152600c60248201526b09ccacac8406a60409a8a86960a31b60448201526064016108f4565b601554604051636eb1769f60e11b81523360048201523060248201526000916001600160a01b03169063dd62ed3e90604401602060405180830381865afa158015611905573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119299190613100565b90508281101561197b5760405162461bcd60e51b815260206004820152601c60248201527f4e6565647320617070726f76616c20746f207370656e64204d4543480000000060448201526064016108f4565b60008481526013602052604090819020429055601554905163079cc67960e41b8152336004820152602481018590526001600160a01b03909116906379cc679090604401600060405180830381600087803b1580156119d957600080fd5b505af11580156119ed573d6000803e3d6000fd5b505050507f0a202679ae310a1a8c4ce9513ecd9296914ab6138eaf9dff927f14f73e927bdb84604051611a2291815260200190565b60405180910390a150505050565b600a546001600160a01b03163314611a5a5760405162461bcd60e51b81526004016108f4906131a0565b6010805461ffff191692151561ff0019169290921761010091151591909102179055565b611a88338361220d565b611aa45760405162461bcd60e51b81526004016108f49061314f565b611ab084848484612665565b50505050565b600080601560009054906101000a90046001600160a01b03166001600160a01b031663c4a7a8c06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b309190613100565b90506009811015611b4357506009919050565b6064811115611b50575060645b919050565b33611b5f826114ce565b6001600160a01b031614611b855760405162461bcd60e51b81526004016108f4906131d5565b60008181526013602052604090205415611bd45760405162461bcd60e51b815260206004820152601060248201526f4e4654207969656c6473204c414d424f60801b60448201526064016108f4565b60155460405163379607f560e01b8152600481018390526001600160a01b039091169063379607f590602401600060405180830381600087803b158015611c1a57600080fd5b505af1158015611c2e573d6000803e3d6000fd5b5050505050565b6060611c4082612043565b611ca45760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108f4565b6000611cae612698565b90506000815111611cce5760405180602001604052806000815250611cf9565b80611cd8846126a7565b604051602001611ce9929190613339565b6040516020818303038152906040525b9392505050565b600c8054611d0d90613061565b80601f0160208091040260200160405190810160405280929190818152602001828054611d3990613061565b8015611d865780601f10611d5b57610100808354040283529160200191611d86565b820191906000526020600020905b815481529060010190602001808311611d6957829003601f168201915b505050505081565b600a546001600160a01b03163314611db85760405162461bcd60e51b81526004016108f4906131a0565b60005b8251811015610a29578160146000858481518110611ddb57611ddb613215565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080611e12906131fc565b915050611dbb565b600d8054611d0d90613061565b600a546001600160a01b03163314611e515760405162461bcd60e51b81526004016108f4906131a0565b6001600160a01b038116611eb65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108f4565b611ebf81612545565b50565b6002600b5403611ee45760405162461bcd60e51b81526004016108f49061309b565b6002600b553360009081526014602052604090205480611f345760405162461bcd60e51b815260206004820152600b60248201526a139bdd081bdb881b1a5cdd60aa1b60448201526064016108f4565b611ea881600f54611f4591906130e8565b1115611f8c5760405162461bcd60e51b8152602060048201526016602482015275105b1b08135958da18541d5b9ade0818db185a5b595960521b60448201526064016108f4565b336000908152601460205260408120819055600f805491839190611fb083856130e8565b90915550600090505b82811015611fe157611fcf3361131a83856130e8565b80611fd9816131fc565b915050611fb9565b506040518281527fa895312736559a24e2aa1fda698ed916d40edb4012510a5d6e68ef716d9d4e359060200160405180910390a150506001600b55565b60006001600160e01b0319821663780e9d6360e01b14806107f457506107f4826127a8565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612095826114ce565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382166121245760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108f4565b61212d81612043565b1561217a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108f4565b612186600083836127f8565b6001600160a01b03821660009081526003602052604081208054600192906121af9084906130e8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061221882612043565b6122795760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108f4565b6000612284836114ce565b9050806001600160a01b0316846001600160a01b031614806122bf5750836001600160a01b03166122b48461088c565b6001600160a01b0316145b806122ef57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661230a826114ce565b6001600160a01b03161461236e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016108f4565b6001600160a01b0382166123d05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108f4565b6123db8383836127f8565b6123e6600082612060565b6001600160a01b038316600090815260036020526040812080546001929061240f908490613119565b90915550506001600160a01b038216600090815260036020526040812080546001929061243d9084906130e8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006124a9826114ce565b90506124b7816000846127f8565b6124c2600083612060565b6001600160a01b03811660009081526003602052604081208054600192906124eb908490613119565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036125f85760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108f4565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6126708484846122f7565b61267c848484846128e5565b611ab05760405162461bcd60e51b81526004016108f490613368565b6060600c805461080990613061565b6060816000036126ce5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156126f857806126e2816131fc565b91506126f19050600a836133d0565b91506126d2565b60008167ffffffffffffffff81111561271357612713612d62565b6040519080825280601f01601f19166020018201604052801561273d576020820181803683370190505b5090505b84156122ef57612752600183613119565b915061275f600a866133e4565b61276a9060306130e8565b60f81b81838151811061277f5761277f613215565b60200101906001600160f81b031916908160001a9053506127a1600a866133d0565b9450612741565b60006001600160e01b031982166380ac58cd60e01b14806127d957506001600160e01b03198216635b5e139f60e01b145b806107f457506301ffc9a760e01b6001600160e01b03198316146107f4565b611ea8600f5410806128765750601554604080516303129ea360e61b815290516101f4926001600160a01b03169163c4a7a8c09160048083019260209291908290030181865afa158015612850573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128749190613100565b105b156128da57601554604051634c87ecb160e11b8152600481018390526001600160a01b039091169063990fd96290602401600060405180830381600087803b1580156128c157600080fd5b505af11580156128d5573d6000803e3d6000fd5b505050505b610a298383836129e6565b60006001600160a01b0384163b156129db57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129299033908990889088906004016133f8565b6020604051808303816000875af1925050508015612964575060408051601f3d908101601f1916820190925261296191810190613435565b60015b6129c1573d808015612992576040519150601f19603f3d011682016040523d82523d6000602084013e612997565b606091505b5080516000036129b95760405162461bcd60e51b81526004016108f490613368565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506122ef565b506001949350505050565b6001600160a01b038316612a4157612a3c81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612a64565b816001600160a01b0316836001600160a01b031614612a6457612a648382612a9e565b6001600160a01b038216612a7b57610a2981612b3b565b826001600160a01b0316826001600160a01b031614610a2957610a298282612bea565b60006001612aab84611545565b612ab59190613119565b600083815260076020526040902054909150808214612b08576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612b4d90600190613119565b60008381526009602052604081205460088054939450909284908110612b7557612b75613215565b906000526020600020015490508060088381548110612b9657612b96613215565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612bce57612bce613452565b6001900381819060005260206000200160009055905550505050565b6000612bf583611545565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b031981168114611ebf57600080fd5b600060208284031215612c5657600080fd5b8135611cf981612c2e565b60005b83811015612c7c578181015183820152602001612c64565b83811115611ab05750506000910152565b60008151808452612ca5816020860160208601612c61565b601f01601f19169290920160200192915050565b602081526000611cf96020830184612c8d565b600060208284031215612cde57600080fd5b5035919050565b80356001600160a01b0381168114611b5057600080fd5b60008060408385031215612d0f57600080fd5b612d1883612ce5565b946020939093013593505050565b600080600060608486031215612d3b57600080fd5b612d4484612ce5565b9250612d5260208501612ce5565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612da157612da1612d62565b604052919050565b600067ffffffffffffffff831115612dc357612dc3612d62565b612dd6601f8401601f1916602001612d78565b9050828152838383011115612dea57600080fd5b828260208301376000602084830101529392505050565b600060208284031215612e1357600080fd5b813567ffffffffffffffff811115612e2a57600080fd5b8201601f81018413612e3b57600080fd5b6122ef84823560208401612da9565b600060208284031215612e5c57600080fd5b611cf982612ce5565b6020808252825182820181905260009190848201906040850190845b81811015612e9d57835183529284019291840191600101612e81565b50909695505050505050565b80358015158114611b5057600080fd5b60008060408385031215612ecc57600080fd5b612ed583612ce5565b9150612ee360208401612ea9565b90509250929050565b60008060408385031215612eff57600080fd5b612ed583612ea9565b60008060008060808587031215612f1e57600080fd5b612f2785612ce5565b9350612f3560208601612ce5565b925060408501359150606085013567ffffffffffffffff811115612f5857600080fd5b8501601f81018713612f6957600080fd5b612f7887823560208401612da9565b91505092959194509250565b60008060408385031215612f9757600080fd5b823567ffffffffffffffff80821115612faf57600080fd5b818501915085601f830112612fc357600080fd5b8135602082821115612fd757612fd7612d62565b8160051b9250612fe8818401612d78565b828152928401810192818101908985111561300257600080fd5b948201945b848610156130275761301886612ce5565b82529482019490820190613007565b9997909101359750505050505050565b6000806040838503121561304a57600080fd5b61305383612ce5565b9150612ee360208401612ce5565b600181811c9082168061307557607f821691505b60208210810361309557634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156130fb576130fb6130d2565b500190565b60006020828403121561311257600080fd5b5051919050565b60008282101561312b5761312b6130d2565b500390565b600081600019048311821515161561314a5761314a6130d2565b500290565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600d908201526c26bab9ba1031329037bbb732b960991b604082015260600190565b60006001820161320e5761320e6130d2565b5060010190565b634e487b7160e01b600052603260045260246000fd5b601f821115610a2957600081815260208120601f850160051c810160208610156132525750805b601f850160051c820191505b818110156132715782815560010161325e565b505050505050565b815167ffffffffffffffff81111561329357613293612d62565b6132a7816132a18454613061565b8461322b565b602080601f8311600181146132dc57600084156132c45750858301515b600019600386901b1c1916600185901b178555613271565b600085815260208120601f198616915b8281101561330b578886015182559484019460019091019084016132ec565b50858210156133295787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000835161334b818460208801612c61565b83519083019061335f818360208801612c61565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826133df576133df6133ba565b500490565b6000826133f3576133f36133ba565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061342b90830184612c8d565b9695505050505050565b60006020828403121561344757600080fd5b8151611cf981612c2e565b634e487b7160e01b600052603160045260246000fdfea264697066735822122049da9d2f0a9f51fcc0029299173c32eccc33dc018eb8f9aa84c28f1d39c80ff664736f6c634300080f00336080604052426006553480156200001557600080fd5b50604051620018c7380380620018c7833981016040819052620000389162000131565b6040518060400160405280600a81526020016926a2a1a4102a37b5b2b760b11b8152506040518060400160405280600481526020016309a8a86960e31b815250816003908162000089919062000208565b50600462000098828262000208565b505050620000b5620000af620000db60201b60201c565b620000df565b600780546001600160a01b0319166001600160a01b0392909216919091179055620002d4565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000602082840312156200014457600080fd5b81516001600160a01b03811681146200015c57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200018e57607f821691505b602082108103620001af57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200020357600081815260208120601f850160051c81016020861015620001de5750805b601f850160051c820191505b81811015620001ff57828155600101620001ea565b5050505b505050565b81516001600160401b0381111562000224576200022462000163565b6200023c8162000235845462000179565b84620001b5565b602080601f8311600181146200027457600084156200025b5750858301515b600019600386901b1c1916600185901b178555620001ff565b600085815260208120601f198616915b82811015620002a55788860151825594840194600190910190840162000284565b5085821015620002c45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6115e380620002e46000396000f3fe608060405234801561001057600080fd5b50600436106101725760003560e01c8063715018a6116100de578063990fd96211610097578063b58c861511610071578063b58c86151461030d578063c4a7a8c014610320578063dd62ed3e14610328578063f2fde38b1461036157600080fd5b8063990fd962146102d4578063a457c2d7146102e7578063a9059cbb146102fa57600080fd5b8063715018a61461027a57806378e979251461028257806379cc67901461028b57806385d3374f1461029e5780638da5cb5b146102b157806395d89b41146102cc57600080fd5b8063379607f511610130578063379607f5146101fb578063395093511461021057806342966c681461022357806347c0c6b214610236578063641bc99e1461024957806370a082311461025157600080fd5b8062923f9e1461017757806306fdde031461019f578063095ea7b3146101b457806318160ddd146101c757806323b872dd146101d9578063313ce567146101ec575b600080fd5b61018a610185366004611289565b610374565b60405190151581526020015b60405180910390f35b6101a76103e8565b60405161019691906112a2565b61018a6101c236600461130c565b61047a565b6002545b604051908152602001610196565b61018a6101e7366004611338565b610492565b60405160128152602001610196565b61020e610209366004611289565b6104b6565b005b61018a61021e36600461130c565b6105ee565b61020e610231366004611289565b61062d565b6101cb610244366004611289565b61063a565b6101cb610682565b6101cb61025f366004611379565b6001600160a01b031660009081526020819052604090205490565b61020e6108e3565b6101cb60065481565b61020e61029936600461130c565b610919565b6101cb6102ac366004611289565b610932565b6005546040516001600160a01b039091168152602001610196565b6101a7610998565b61020e6102e2366004611289565b6109a7565b61018a6102f536600461130c565b6109eb565b61018a61030836600461130c565b610a7d565b61020e61031b36600461139d565b610a8b565b6101cb610b89565b6101cb6103363660046113cd565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61020e61036f366004611379565b610ba8565b600754604051634f558e7960e01b8152600481018390526000916001600160a01b031690634f558e7990602401602060405180830381865afa1580156103be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e291906113fb565b92915050565b6060600380546103f79061141d565b80601f01602080910402602001604051908101604052809291908181526020018280546104239061141d565b80156104705780601f1061044557610100808354040283529160200191610470565b820191906000526020600020905b81548152906001019060200180831161045357829003601f168201915b5050505050905090565b600033610488818585610c40565b5060019392505050565b6000336104a0858285610d64565b6104ab858585610df0565b506001949350505050565b6005546001600160a01b031633146104e95760405162461bcd60e51b81526004016104e090611457565b60405180910390fd5b6104f281610374565b61050e5760405162461bcd60e51b81526004016104e09061148c565b60006105198261063a565b9050600061052683610932565b9050818111156105335750805b80156105e957600083815260086020526040812080548392906105579084906114d2565b90915550506007546040516331a9108f60e11b8152600481018590526000916001600160a01b031690636352211e90602401602060405180830381865afa1580156105a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ca91906114ea565b90506105e7816105e284670de0b6b3a7640000611507565b610fbe565b505b505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061048890829086906106289087906114d2565b610c40565b610637338261109d565b50565b600061064582610374565b6106615760405162461bcd60e51b81526004016104e09061148c565b600082815260086020526040902054610678610b89565b6103e29190611526565b60008061068d610b89565b9050608d8111156106d157600060076106a7608d84611526565b6106b1919061153d565b90506106be816064611507565b6106ca906104b86114d2565b9250505090565b6106d961123d565b604080518082018252608d81526104b860208083019190915290835281518083018352608780825261045282840152848301919091528251808401845260808082526103e2828501528585019190915283518085018552607a81526103888185015260608601528351808501855260728152610326818501529085015282518084018452606b81526102be8184015260a085015282518084018452606281526102528184015260c085015282518084018452605981526101ef8184015260e085015282518084018452605081526101958184015261010085015282518084018452604781526101448184015261012085015282518084018452603e815260fc81840152610140850152825180840184526035815260bd8184015261016085015282518084018452602c8152808301919091526101808401528151808301835260238152605a818301526101a084015281518083018352601a81526036818301526101c08401528151808301835260118152601b818301526101e084015281518083019092526008825260099082015261020082015260005b60118160ff1610156108d957818160ff16601181106108925761089261155f565b60200201515183106108c757818160ff16601181106108b3576108b361155f565b602002015160016020020151935050505090565b806108d181611575565b915050610871565b5060009250505090565b6005546001600160a01b0316331461090d5760405162461bcd60e51b81526004016104e090611457565b61091760006111eb565b565b610924823383610d64565b61092e828261109d565b5050565b600061093d82610374565b6109595760405162461bcd60e51b81526004016104e09061148c565b6000610963610682565b600084815260086020526040902054909150818110610986575060009392505050565b6109908183611526565b949350505050565b6060600480546103f79061141d565b6005546001600160a01b031633146109d15760405162461bcd60e51b81526004016104e090611457565b6109d9610b89565b60009182526008602052604090912055565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610a705760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104e0565b6104ab8286868403610c40565b600033610488818585610df0565b6005546001600160a01b03163314610ab55760405162461bcd60e51b81526004016104e090611457565b610abe82610374565b610ada5760405162461bcd60e51b81526004016104e09061148c565b670de0b6b3a7640000600a610aed610b89565b10610b7f57600754604080516317b6970960e31b815290516002926001600160a01b03169163bdb4b8489160048083019260209291908290030181865afa158015610b3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b609190611594565b610b7290670de0b6b3a7640000611507565b610b7c919061153d565b90505b6105e98282610fbe565b6000806201518060065442610b9e9190611526565b6103e2919061153d565b6005546001600160a01b03163314610bd25760405162461bcd60e51b81526004016104e090611457565b6001600160a01b038116610c375760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104e0565b610637816111eb565b6001600160a01b038316610ca25760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104e0565b6001600160a01b038216610d035760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104e0565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146105e75781811015610de35760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016104e0565b6105e78484848403610c40565b6001600160a01b038316610e545760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104e0565b6001600160a01b038216610eb65760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104e0565b6001600160a01b03831660009081526020819052604090205481811015610f2e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104e0565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610f659084906114d2565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610fb191815260200190565b60405180910390a36105e7565b6001600160a01b0382166110145760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104e0565b806002600082825461102691906114d2565b90915550506001600160a01b038216600090815260208190526040812080548392906110539084906114d2565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0382166110fd5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104e0565b6001600160a01b038216600090815260208190526040902054818110156111715760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104e0565b6001600160a01b03831660009081526020819052604081208383039055600280548492906111a0908490611526565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040518061022001604052806011905b61125561126b565b81526020019060019003908161124d5790505090565b60405180604001604052806002906020820280368337509192915050565b60006020828403121561129b57600080fd5b5035919050565b600060208083528351808285015260005b818110156112cf578581018301518582016040015282016112b3565b818111156112e1576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461063757600080fd5b6000806040838503121561131f57600080fd5b823561132a816112f7565b946020939093013593505050565b60008060006060848603121561134d57600080fd5b8335611358816112f7565b92506020840135611368816112f7565b929592945050506040919091013590565b60006020828403121561138b57600080fd5b8135611396816112f7565b9392505050565b600080604083850312156113b057600080fd5b8235915060208301356113c2816112f7565b809150509250929050565b600080604083850312156113e057600080fd5b82356113eb816112f7565b915060208301356113c2816112f7565b60006020828403121561140d57600080fd5b8151801515811461139657600080fd5b600181811c9082168061143157607f821691505b60208210810361145157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601690820152751d1bdad95b925908191bd95cc81b9bdd08195e1a5cdd60521b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156114e5576114e56114bc565b500190565b6000602082840312156114fc57600080fd5b8151611396816112f7565b6000816000190483118215151615611521576115216114bc565b500290565b600082821015611538576115386114bc565b500390565b60008261155a57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff810361158b5761158b6114bc565b60010192915050565b6000602082840312156115a657600080fd5b505191905056fea26469706673582212200be9d66b5fe59f9350a8189ebae4e0bce4f9a0b67748c9dac9b84decf94d648c64736f6c634300080f003368747470733a2f2f6c616d626f2e6c6f6c2f6d6563686170756e6b782f636f6e74726163742e6a736f6e68747470733a2f2f6c616d626f2e6c6f6c2f6d657461646174612f6d6563686170756e6b782f

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.