ETH Price: $2,760.06 (+5.20%)

Token

Stoned Ape Club (STAC)
 

Overview

Max Total Supply

4,000 STAC

Holders

235

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
3 STAC
0xD44acfbd49af9a3BCBfA9505fE8F8b0C5A5FA873
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Total amount of owners is higher than displayed due to staking – Please see our Community Game Wallet to view all our staked apes!

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
STAC

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 22 : STAC.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity 0.8.11;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

interface IGROWOPERATION {
	function randomFedApeOwner(uint256 seed) external view returns (address);

	function stake(uint256 tokenID) external;
}

interface IRandomizer {
	function random(
		uint256 from,
		uint256 to,
		uint256 salty
	) external view returns (uint256);
}

// struct to store each token's traits
struct FedApe {
	bool isFed; //rest is handled in api/ipfs
	uint256 alphaRank; //1-10
}

interface ISTAC {
	function getPaidTokens() external view returns (uint256);

	function getTokenTraits(uint256 tokenId) external view returns (bool, uint256);
}

interface ITOKE {
	function burn(address from, uint256 amount) external;
}

contract STAC is ISTAC, ERC721Enumerable, Pausable, Ownable, ReentrancyGuard, PaymentSplitter {
	using Address for address;
	using Strings for uint256;
	using Counters for Counters.Counter;
	using MerkleProof for bytes32[];

	struct LastWrite {
		uint64 time;
		uint64 blockNum;
	}
	// Tracks the last block and timestamp that a caller has written to state.
	// Disallow some access to functions if they occur while a change is being written.
	mapping(address => LastWrite) private lastWriteAddress;
	mapping(uint256 => LastWrite) private lastWriteToken;

	event StonedApeMinted(uint256 indexed tokenId, address indexed minter, address indexed owner);
	event FedApeMinted(uint256 indexed tokenId, address indexed minter, address indexed owner);
	event StonedApeBurned(uint256 indexed tokenId);
	event FedApeBurned(uint256 indexed tokenId);

	//the merkle root
	bytes32 public root = 0x239716006b91b10b09f232833bd24ba204e07c9b706043479063ec53d9458e44;

	uint256 public whitelistStartTime = 14220329;
	uint256 public publicSaleStartTime = 14223329;

	// mint price
	uint256 public MINT_PRICE = .15 ether;
	// whitelist mint price
	uint256 public WL_MINT_PRICE = .08 ether;
	// max number of tokens that can be minted - 50000 in production
	uint256 public immutable MAX_TOKENS = 50000;
	// max number of tokens that a whitelisted user can mint
	uint256 public MAX_WL_TOKENS = 2;
	// number of tokens that can be claimed for free - 20% of MAX_TOKENS
	uint256 public PAID_TOKENS = 10000;

	// mapping from user's address to amount whitelist minted
	mapping(address => uint256) public amountWhitelisted;
	// mapping from tokenId to a struct containing the token's traits
	mapping(uint256 => FedApe) private tokenTraits;

	IRandomizer private randomizer;

	// reference to the Grow Operation for choosing random Fed Apes
	IGROWOPERATION public growOperation;
	// reference to $TOKE for burning on mint
	ITOKE public tokeERC20;
	address private devWallet;
	Counters.Counter private _tokenIds;

	//payment splitter
	address[] private addressList = [
		0x4E12FCeCe183316cbdA2fB31bBeBdB8127460444, //F
		0x418a3c6DF48EDbEDc7C2B9C59cF7Baea2E57C260 //D
	];
	uint256[] private shareList = [92, 8];

	bool public locked; //metadata lock
	string public _contractBaseURI = "https://api.stonedapeclub.com/v1/nft/metadata/";
	string public _contractURI =
		"ipfs://QmRFw3qmTmyRWcRpDJjUeHLCdADTZfY17CK2hfi11tXrNw";

	modifier onlyDev() {
		require(msg.sender == devWallet, "only dev");
		_;
	}

	modifier blockIfChangingAddress() {
		require(lastWriteAddress[tx.origin].blockNum < block.number, "hmmmm what doing?");
		_;
	}

	modifier blockIfChangingToken(uint256 tokenId) {
		require(lastWriteToken[tokenId].blockNum < block.number, "hmmmm what doing?");
		_;
	}

	constructor() ERC721("Stoned Ape Club", "STAC") PaymentSplitter(addressList, shareList) {
		devWallet = msg.sender;
	}

	/**
	 * @dev you need to be whitelisted and know the proof to be able to mint
	 */
	function whitelistMint(
		uint256 qty,
		uint256 tokenId,
		uint256 _seed,
		bytes32[] calldata proof
	) external payable nonReentrant {
		require(block.timestamp > whitelistStartTime, "not live");
		require(isTokenValid(msg.sender, tokenId, proof), "invalid proof");
		require(tx.origin == msg.sender, "no...");
		require(_tokenIds.current() + qty <= MAX_TOKENS, "All tokens minted");
		require(qty <= 2, "Invalid mint qty");
		require(amountWhitelisted[msg.sender] + qty <= MAX_WL_TOKENS, "You already minted your whitelist tokens");

		if (_tokenIds.current() < PAID_TOKENS) {
			//if tokens are sold with ETH
			require(_tokenIds.current() + qty <= PAID_TOKENS, "All tokens on-sale already sold");
			require(qty * WL_MINT_PRICE == msg.value, "Invalid payment amount");
		} else {
			require(msg.value == 0);
		}

		uint256 seed;

		for (uint256 i = 0; i < qty; i++) {
			seed = randomizer.random(1000, 100**17 + 75, _seed + _tokenIds.current());
			address recipient = selectRecipient(seed);
			uint256 totalTokeCost = mintCost(totalSupply() + 1);

			if (totalTokeCost > 0) {
				tokeERC20.burn(_msgSender(), totalTokeCost);
			}

			_tokenIds.increment();

			//set the token traits
			uint256 isStonedApeInt = seed % 100; //90% Stoned Ape
			uint256 alpha = 1;
			bool isFed = false;
			if (isStonedApeInt >= 89) {
				isFed = true;
				emit FedApeMinted(_tokenIds.current(), msg.sender, recipient);
			} else {
				emit StonedApeMinted(_tokenIds.current(), msg.sender, recipient);
			}
			alpha = (isStonedApeInt % 10) + 1; //rank 1-10

			FedApe memory sw = FedApe(isFed, alpha);
			tokenTraits[_tokenIds.current()] = sw;

			updateOriginAccess(_tokenIds.current());
			_safeMint(recipient, _tokenIds.current());
			amountWhitelisted[msg.sender]++;
		}
	}

	/**
	 * Mint a token - 90% Stoned Ape, 10% Fed Ape
	 * The first 20% are free to claim, the remaining cost $TOKE
	 */
	function mint(uint256 qty, uint256 _seed) external payable whenNotPaused nonReentrant {
		require(tx.origin == msg.sender, "no...");
		require(_tokenIds.current() + qty <= MAX_TOKENS, "All tokens minted");
		require(qty <= 20, "Invalid mint qty");
		require(block.timestamp > publicSaleStartTime, "not live");

		if (_tokenIds.current() < PAID_TOKENS) {
			//if tokens are sold with ETH
			require(_tokenIds.current() + qty <= PAID_TOKENS, "All tokens on-sale already sold");
			require(qty * MINT_PRICE == msg.value, "Invalid payment amount");
		} else {
			require(msg.value == 0);
		}

		uint256 seed;

		for (uint256 i = 0; i < qty; i++) {
			seed = randomizer.random(1000, 100**17 + 75, _seed + _tokenIds.current());
			address recipient = selectRecipient(seed);
			uint256 totalTokeCost = mintCost(totalSupply() + 1);

			if (totalTokeCost > 0) {
				tokeERC20.burn(_msgSender(), totalTokeCost);
			}

			_tokenIds.increment();

			//set the token traits
			uint256 isStonedApeInt = seed % 100; //90% Stoned Ape
			uint256 alpha = 1;
			bool isFed = false;
			if (isStonedApeInt >= 89) {
				isFed = true;
				emit FedApeMinted(_tokenIds.current(), msg.sender, recipient);
			} else {
				emit StonedApeMinted(_tokenIds.current(), msg.sender, recipient);
			}
			alpha = (isStonedApeInt % 10) + 1; //rank 1-10

			FedApe memory sw = FedApe(isFed, alpha);
			tokenTraits[_tokenIds.current()] = sw;

			updateOriginAccess(_tokenIds.current());
			_safeMint(recipient, _tokenIds.current());
		}
	}

	/**
	 * the first are paid in ETH, then in $TOKE
	 * @param tokenId the ID to check the cost of to mint
	 * @return the cost of the given token ID
	 */
	function mintCost(uint256 tokenId) public view returns (uint256) {
		if (tokenId <= PAID_TOKENS) return 0;
		if (tokenId <= (MAX_TOKENS * 2) / 5) return 20000 ether;
		if (tokenId <= (MAX_TOKENS * 4) / 5) return 40000 ether;
		return 80000 ether;
	}

	/**
	 * the first 20% (ETH purchases) go to the minter
	 * 10% chance to be given to a random staked Fed Ape
	 * @param seed a random value to select a recipient from
	 * @return the address of the recipient (either the minter or the Fed Apes's owner)
	 */
	function selectRecipient(uint256 seed) internal view returns (address) {
		seed = randomizer.random(1000, 100**17 + 75, seed + _tokenIds.current());
		if (totalSupply() <= PAID_TOKENS) return _msgSender();
		if (seed % 100 < 90) {
			//there's a high chance you'll get the token ;)
			return _msgSender();
		}
		address thief = growOperation.randomFedApeOwner(seed);
		if (thief == address(0x0)) {
			return _msgSender();
		}
		return thief;
	}

	/** READ */
	function getPaidTokens() external view override returns (uint256) {
		return PAID_TOKENS;
	}

	function getTokenTraits(uint256 tokenId)
		public
		view
		override
		blockIfChangingAddress
		blockIfChangingToken(tokenId)
		returns (bool, uint256)
	{
		return (tokenTraits[tokenId].isFed, tokenTraits[tokenId].alphaRank);
	}

	/** ADMIN */
	/**
	 * called after deployment so that the contract can get random Fed Apes
	 * @param _growOperationAddress the address of the Grow Operation
	 */
	function setGrowOperation(address _growOperationAddress) external onlyOwner {
		growOperation = IGROWOPERATION(_growOperationAddress);
	}

	function setToke(address _newTokeAddress) external onlyOwner {
		tokeERC20 = ITOKE(_newTokeAddress);
	}

	function setRandomizer(address _newRandomizer) external onlyOwner {
		randomizer = IRandomizer(_newRandomizer);
	}

	function setMerkleRoot(bytes32 _root) external onlyOwner {
		root = _root;
	}

	// don't have to waste gas approving
	function transferFrom(
		address from,
		address to,
		uint256 tokenId
	) public virtual override(ERC721) blockIfChangingToken(tokenId) {
		if (_msgSender() != address(growOperation))
			require(
				_isApprovedOrOwner(_msgSender(), tokenId),
				"ERC721: transfer caller is not owner nor approved"
			);
		_transfer(from, to, tokenId);
	}

	//----------------------------------
	//----------- other code -----------
	//----------------------------------

	function isTokenValid(
		address _to,
		uint256 _tokenId,
		bytes32[] memory _proof
	) public view returns (bool) {
		// construct Merkle tree leaf from the inputs supplied
		bytes32 leaf = keccak256(abi.encodePacked(_to, _tokenId));
		// verify the proof supplied, and return the verification result
		return _proof.verify(root, leaf);
	}

	function getTokenWriteBlock(uint256 tokenId) external view returns (uint64) {
		return lastWriteToken[tokenId].blockNum;
	}

	function tokensOfOwner(address _owner) external view returns (uint256[] memory) {
		uint256 tokenCount = balanceOf(_owner);
		if (tokenCount == 0) {
			return new uint256[](0);
		} else {
			uint256[] memory result = new uint256[](tokenCount);
			uint256 index;
			for (index = 0; index < tokenCount; index++) {
				result[index] = tokenOfOwnerByIndex(_owner, index);
			}
			return result;
		}
	}

	function burn(uint256 tokenId) external whenNotPaused {
		require(ownerOf(tokenId) == tx.origin, "Oops you don't own that");
		if (tokenTraits[tokenId].isFed) {
			emit FedApeBurned(tokenId);
		} else {
			emit StonedApeBurned(tokenId);
		}
		_burn(tokenId);
	}

	function isApprovedOrOwner(address _spender, uint256 _tokenId) external view returns (bool) {
		return _isApprovedOrOwner(_spender, _tokenId);
	}

	function tokenURI(uint256 _tokenId) public view override returns (string memory) {
		require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token");
		return string(abi.encodePacked(_contractBaseURI, _tokenId.toString()));
	}

	function setBaseURI(string memory newBaseURI) external onlyDev {
		require(!locked, "locked functions");
		_contractBaseURI = newBaseURI;
	}

	function setContractURI(string memory newuri) external onlyDev {
		require(!locked, "locked functions");
		_contractURI = newuri;
	}

	function setPaused(bool _setPaused) public onlyOwner {
		return (_setPaused) ? _pause() : _unpause();
	}

	function contractURI() public view returns (string memory) {
		return _contractURI;
	}

	function reclaimERC20(IERC20 erc20Token) external onlyOwner {
		erc20Token.transfer(msg.sender, erc20Token.balanceOf(address(this)));
	}

	function reclaimERC721(IERC721 erc721Token, uint256 id) external onlyOwner {
		erc721Token.safeTransferFrom(address(this), msg.sender, id);
	}

	function changePricePerToken(uint256 newPrice) external onlyOwner {
		MINT_PRICE = newPrice;
	}

	function changeWLPricePerToken(uint256 newPrice) external onlyOwner {
		WL_MINT_PRICE = newPrice;
	}

	function setPaidTokensAmount(uint256 newAmount) external onlyOwner {
		PAID_TOKENS = newAmount;
	}

	function setWhitelistStartTime(uint256 newTime) external onlyOwner {
		whitelistStartTime = newTime;
	}

	function setPublicSaleStartTime(uint256 newTime) external onlyOwner {
		publicSaleStartTime = newTime;
	}
	function changeWLAmountMax(uint256 newAmount) external onlyOwner {
		MAX_WL_TOKENS = newAmount;
	}

	// Locks metadata
	function lockMetadata() external onlyDev {
		locked = true;
	}

	/** OVERRIDES FOR SAFETY */
	function updateOriginAccess(uint256 tokenId) internal {
		uint64 blockNum = uint64(block.number);
		uint64 time = uint64(block.timestamp);
		lastWriteAddress[tx.origin] = LastWrite(time, blockNum);
		lastWriteToken[tokenId] = LastWrite(time, blockNum);
	}

	function tokenOfOwnerByIndex(address owner, uint256 index)
		public
		view
		virtual
		override(ERC721Enumerable)
		blockIfChangingAddress
		returns (uint256)
	{
		require(lastWriteAddress[owner].blockNum < block.number, "hmmmm what doing?");
		uint256 tokenId = super.tokenOfOwnerByIndex(owner, index);
		require(lastWriteToken[tokenId].blockNum < block.number, "hmmmm what doing?");
		return tokenId;
	}

	function balanceOf(address owner)
		public
		view
		virtual
		override(ERC721)
		blockIfChangingAddress
		returns (uint256)
	{
		require(lastWriteAddress[owner].blockNum < block.number, "hmmmm what doing?");
		return super.balanceOf(owner);
	}

	function ownerOf(uint256 tokenId)
		public
		view
		virtual
		override(ERC721)
		blockIfChangingAddress
		blockIfChangingToken(tokenId)
		returns (address)
	{
		address addr = super.ownerOf(tokenId);
		require(lastWriteAddress[addr].blockNum < block.number, "hmmmm what doing?");
		return addr;
	}

	function tokenByIndex(uint256 index)
		public
		view
		virtual
		override(ERC721Enumerable)
		returns (uint256)
	{
		uint256 tokenId = super.tokenByIndex(index);
		require(lastWriteToken[tokenId].blockNum < block.number, "hmmmm what doing?");
		return tokenId;
	}

	function approve(address to, uint256 tokenId)
		public
		virtual
		override(ERC721)
		blockIfChangingToken(tokenId)
	{
		super.approve(to, tokenId);
	}

	function getApproved(uint256 tokenId)
		public
		view
		virtual
		override(ERC721)
		blockIfChangingToken(tokenId)
		returns (address)
	{
		return super.getApproved(tokenId);
	}

	function setApprovalForAll(address operator, bool approved)
		public
		virtual
		override(ERC721)
		blockIfChangingAddress
	{
		super.setApprovalForAll(operator, approved);
	}

	function isApprovedForAll(address owner, address operator)
		public
		view
		virtual
		override(ERC721)
		blockIfChangingAddress
		returns (bool)
	{
		return super.isApprovedForAll(owner, operator);
	}

	function safeTransferFrom(
		address from,
		address to,
		uint256 tokenId
	) public virtual override(ERC721) blockIfChangingToken(tokenId) {
		super.safeTransferFrom(from, to, tokenId);
	}

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

File 2 of 22 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

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

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 22 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 4 of 22 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 5 of 22 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 22 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 7 of 22 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/utils/SafeERC20.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20 token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + totalReleased();
        uint256 payment = _pendingPayment(account, totalReceived, released(account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] += payment;
        _totalReleased += payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        uint256 payment = _pendingPayment(account, totalReceived, released(token, account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _erc20Released[token][account] += payment;
        _erc20TotalReleased[token] += payment;

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

File 8 of 22 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 9 of 22 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 10 of 22 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 12 of 22 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 13 of 22 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 14 of 22 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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);
    }

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 15 of 22 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 tokenId);

    /**
     * @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 16 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 17 of 22 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 18 of 22 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 19 of 22 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 20 of 22 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 21 of 22 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 22 of 22 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"FedApeBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"FedApeMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"StonedApeBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"StonedApeMinted","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WL_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAID_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL_MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_contractBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountWhitelisted","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"changePricePerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"changeWLAmountMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"changeWLPricePerToken","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":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPaidTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenTraits","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenWriteBlock","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"growOperation","outputs":[{"internalType":"contract IGROWOPERATION","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":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isApprovedOrOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"isTokenValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"},{"internalType":"uint256","name":"_seed","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"erc20Token","type":"address"}],"name":"reclaimERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"erc721Token","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"reclaimERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_growOperationAddress","type":"address"}],"name":"setGrowOperation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"setPaidTokensAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_setPaused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTime","type":"uint256"}],"name":"setPublicSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newRandomizer","type":"address"}],"name":"setRandomizer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newTokeAddress","type":"address"}],"name":"setToke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTime","type":"uint256"}],"name":"setWhitelistStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"tokeERC20","outputs":[{"internalType":"contract ITOKE","name":"","type":"address"}],"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":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","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":[{"internalType":"uint256","name":"qty","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"_seed","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

7f239716006b91b10b09f232833bd24ba204e07c9b706043479063ec53d9458e4460155562d8fc2960165562d907e1601755670214e8348c4f000060185567011c37937e08000060195561c3506080526002601a819055612710601b5560e0604052734e12fcece183316cbda2fb31bbebdb812746044460a090815273418a3c6df48edbedc7c2b9c59cf7baea2e57c26060c052620000a2916023919062000605565b5060408051808201909152605c815260086020820152620000c89060249060026200066f565b506040518060600160405280602e81526020016200619e602e91398051620000f991602691602090910190620006b2565b50604051806060016040528060358152602001620061696035913980516200012a91602791602090910190620006b2565b503480156200013857600080fd5b5060238054806020026020016040519081016040528092919081815260200182805480156200019157602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831162000172575b50505050506024805480602002602001604051908101604052809291908181526020018280548015620001e457602002820191906000526020600020905b815481526020019060010190808311620001cf575b5050604080518082018252600f81526e29ba37b732b21020b8329021b63ab160891b6020808301918252835180850190945260048452635354414360e01b9084015281519195509193506200023e925060009190620006b2565b50805162000254906001906020840190620006b2565b5050600a805460ff19169055506200026c33620003bd565b6001600b558051825114620002e35760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620003365760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620002da565b60005b8251811015620003a2576200038d8382815181106200035c576200035c62000746565b602002602001015183838151811062000379576200037962000746565b60200260200101516200041760201b60201c565b80620003998162000772565b91505062000339565b5050602180546001600160a01b0319163317905550620007e8565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620004845760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620002da565b60008111620004d65760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620002da565b6001600160a01b0382166000908152600e602052604090205415620005525760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620002da565b60108054600181019091557f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720180546001600160a01b0319166001600160a01b0384169081179091556000908152600e60205260409020819055600c54620005bc90829062000790565b600c55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b8280548282559060005260206000209081019282156200065d579160200282015b828111156200065d57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000626565b506200066b9291506200072f565b5090565b8280548282559060005260206000209081019282156200065d579160200282015b828111156200065d578251829060ff1690559160200191906001019062000690565b828054620006c090620007ab565b90600052602060002090601f016020900481019282620006e457600085556200065d565b82601f10620006ff57805160ff19168380011785556200065d565b828001600101855582156200065d579182015b828111156200065d57825182559160200191906001019062000712565b5b808211156200066b576000815560010162000730565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156200078957620007896200075c565b5060010190565b60008219821115620007a657620007a66200075c565b500190565b600181811c90821680620007c057607f821691505b60208210811415620007e257634e487b7160e01b600052602260045260246000fd5b50919050565b6080516159496200082060003960008181610d9b015281816112d101528181611a1a01528181611a6801526130e601526159496000f3fe6080604052600436106104695760003560e01c80637cb6475911610243578063c002d23d11610143578063df725396116100bb578063ebd173681161008a578063f2fde38b1161006f578063f2fde38b14610d3c578063f44fbe7514610d5c578063f47c84c514610d8957600080fd5b8063ebd1736814610ccf578063ebf0c71714610d2657600080fd5b8063df72539614610c72578063e33b7de314610c85578063e8a3d48514610c9a578063e985e9c514610caf57600080fd5b8063c87b56dd11610112578063ce7c2ac2116100f7578063ce7c2ac214610bec578063cf30901214610c22578063d79779b214610c3c57600080fd5b8063c87b56dd14610bac578063c962d2c614610bcc57600080fd5b8063c002d23d14610b4b578063c084f54014610b61578063c0c872a314610b77578063c0e7274014610b9757600080fd5b806394e56847116101d6578063a22cb465116101a5578063ae19aa9e1161018a578063ae19aa9e14610aeb578063b88d4fde14610b0b578063b9335cb114610b2b57600080fd5b8063a22cb46514610aab578063ab57a71214610acb57600080fd5b806394e5684714610a1457806395d89b4114610a4b5780639852595c14610a60578063989bdbb614610a9657600080fd5b80638b83209b116102125780638b83209b1461099b5780638da5cb5b146109bb5780639292caaf146109de578063938e3d7b146109f457600080fd5b80637cb64759146109185780638462151c1461093857806388089f0b146109655780638905fd4f1461097b57600080fd5b80633dc94d9c116103695780635c975abb116102e15780636d5d40c6116102b05780637101ebca116102955780637101ebca146108ce578063715018a6146108e3578063767bcab5146108f857600080fd5b80636d5d40c61461088e57806370a08231146108ae57600080fd5b80635c975abb146108205780636352211e146108385780636b7d2470146108585780636bb7b1d91461087857600080fd5b806342966c681161033857806348b750441161031d57806348b75044146107c05780634f6ccce7146107e057806355f804b31461080057600080fd5b806342966c6814610780578063430c2081146107a057600080fd5b80633dc94d9c146106e55780634018b1f814610705578063406072a91461071a57806342842e0e1461076057600080fd5b80631c0ce3d3116103fc5780632e143909116103cb57806330d2cbd7116103b057806330d2cbd71461069a57806339fc3ee3146106ba5780633a98ef39146106d057600080fd5b80632e1439091461065a5780632f745c591461067a57600080fd5b80631c0ce3d3146105da57806323b872dd146105fa578063275efe1a1461061a57806327de8f271461063a57600080fd5b806316c38b3c1161043857806316c38b3c1461056857806318160ddd1461058857806319165587146105a75780631b2ef1ca146105c757600080fd5b806301ffc9a7146104b757806306fdde03146104ec578063081812fc1461050e578063095ea7b31461054657600080fd5b366104b2577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156104c357600080fd5b506104d76104d236600461517f565b610dbd565b60405190151581526020015b60405180910390f35b3480156104f857600080fd5b50610501610e01565b6040516104e391906151f4565b34801561051a57600080fd5b5061052e610529366004615207565b610e93565b6040516001600160a01b0390911681526020016104e3565b34801561055257600080fd5b50610566610561366004615235565b610f0f565b005b34801561057457600080fd5b5061056661058336600461526f565b610f83565b34801561059457600080fd5b506008545b6040519081526020016104e3565b3480156105b357600080fd5b506105666105c236600461528c565b610ffb565b6105666105d53660046152a9565b6111d5565b3480156105e657600080fd5b506105666105f5366004615207565b611815565b34801561060657600080fd5b506105666106153660046152cb565b61187a565b34801561062657600080fd5b506104d7610635366004615353565b611988565b34801561064657600080fd5b50610599610655366004615207565b611a00565b34801561066657600080fd5b50610566610675366004615207565b611ac0565b34801561068657600080fd5b50610599610695366004615235565b611b25565b3480156106a657600080fd5b5060205461052e906001600160a01b031681565b3480156106c657600080fd5b50610599601a5481565b3480156106dc57600080fd5b50600c54610599565b3480156106f157600080fd5b50610566610700366004615207565b611c68565b34801561071157600080fd5b50601b54610599565b34801561072657600080fd5b50610599610735366004615417565b6001600160a01b03918216600090815260126020908152604080832093909416825291909152205490565b34801561076c57600080fd5b5061056661077b3660046152cb565b611ccd565b34801561078c57600080fd5b5061056661079b366004615207565b611d3d565b3480156107ac57600080fd5b506104d76107bb366004615235565b611e6c565b3480156107cc57600080fd5b506105666107db366004615417565b611e78565b3480156107ec57600080fd5b506105996107fb366004615207565b612116565b34801561080c57600080fd5b5061056661081b3660046154a8565b612188565b34801561082c57600080fd5b50600a5460ff166104d7565b34801561084457600080fd5b5061052e610853366004615207565b612237565b34801561086457600080fd5b50610566610873366004615235565b61237b565b34801561088457600080fd5b5061059960175481565b34801561089a57600080fd5b506105666108a9366004615207565b61245e565b3480156108ba57600080fd5b506105996108c936600461528c565b6124c3565b3480156108da57600080fd5b5061050161259d565b3480156108ef57600080fd5b5061056661262b565b34801561090457600080fd5b5061056661091336600461528c565b612697565b34801561092457600080fd5b50610566610933366004615207565b612726565b34801561094457600080fd5b5061095861095336600461528c565b61278b565b6040516104e391906154f1565b34801561097157600080fd5b5061059960195481565b34801561098757600080fd5b5061056661099636600461528c565b612844565b3480156109a757600080fd5b5061052e6109b6366004615207565b61299e565b3480156109c757600080fd5b50600a5461010090046001600160a01b031661052e565b3480156109ea57600080fd5b5061059960165481565b348015610a0057600080fd5b50610566610a0f3660046154a8565b6129ce565b348015610a2057600080fd5b50610a34610a2f366004615207565b612a79565b6040805192151583526020830191909152016104e3565b348015610a5757600080fd5b50610501612b65565b348015610a6c57600080fd5b50610599610a7b36600461528c565b6001600160a01b03166000908152600f602052604090205490565b348015610aa257600080fd5b50610566612b74565b348015610ab757600080fd5b50610566610ac6366004615535565b612bc8565b348015610ad757600080fd5b50610566610ae636600461528c565b612c36565b348015610af757600080fd5b50610566610b06366004615207565b612cc5565b348015610b1757600080fd5b50610566610b26366004615563565b612d2a565b348015610b3757600080fd5b50610566610b4636600461528c565b612da2565b348015610b5757600080fd5b5061059960185481565b348015610b6d57600080fd5b50610599601b5481565b348015610b8357600080fd5b50610566610b92366004615207565b612e31565b348015610ba357600080fd5b50610501612e96565b348015610bb857600080fd5b50610501610bc7366004615207565b612ea3565b348015610bd857600080fd5b50601f5461052e906001600160a01b031681565b348015610bf857600080fd5b50610599610c0736600461528c565b6001600160a01b03166000908152600e602052604090205490565b348015610c2e57600080fd5b506025546104d79060ff1681565b348015610c4857600080fd5b50610599610c5736600461528c565b6001600160a01b031660009081526011602052604090205490565b610566610c803660046155e3565b612f62565b348015610c9157600080fd5b50600d54610599565b348015610ca657600080fd5b506105016135e0565b348015610cbb57600080fd5b506104d7610cca366004615417565b6135ef565b348015610cdb57600080fd5b50610d0d610cea366004615207565b600090815260146020526040902054600160401b900467ffffffffffffffff1690565b60405167ffffffffffffffff90911681526020016104e3565b348015610d3257600080fd5b5061059960155481565b348015610d4857600080fd5b50610566610d5736600461528c565b613681565b348015610d6857600080fd5b50610599610d7736600461528c565b601c6020526000908152604090205481565b348015610d9557600080fd5b506105997f000000000000000000000000000000000000000000000000000000000000000081565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610dfb5750610dfb82613766565b92915050565b606060008054610e1090615673565b80601f0160208091040260200160405190810160405280929190818152602001828054610e3c90615673565b8015610e895780601f10610e5e57610100808354040283529160200191610e89565b820191906000526020600020905b815481529060010190602001808311610e6c57829003601f168201915b5050505050905090565b600081815260146020526040812054829043600160401b90910467ffffffffffffffff1610610efd5760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b60448201526064015b60405180910390fd5b610f0683613801565b91505b50919050565b600081815260146020526040902054819043600160401b90910467ffffffffffffffff1610610f745760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b610f7e83836138a7565b505050565b600a546001600160a01b03610100909104163314610fe35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b80610ff357610ff06139d4565b50565b610ff0613a70565b6001600160a01b0381166000908152600e60205260409020546110865760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610ef4565b6000611091600d5490565b61109b90476156be565b905060006110c883836110c3866001600160a01b03166000908152600f602052604090205490565b613af8565b90508061113d5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610ef4565b6001600160a01b0383166000908152600f6020526040812080548392906111659084906156be565b9250508190555080600d600082825461117e91906156be565b9091555061118e90508382613b3e565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b600a5460ff16156112285760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ef4565b6002600b54141561127b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ef4565b6002600b553233146112cf5760405162461bcd60e51b815260206004820152600560248201527f6e6f2e2e2e0000000000000000000000000000000000000000000000000000006044820152606401610ef4565b7f0000000000000000000000000000000000000000000000000000000000000000826112fa60225490565b61130491906156be565b11156113525760405162461bcd60e51b815260206004820152601160248201527f416c6c20746f6b656e73206d696e7465640000000000000000000000000000006044820152606401610ef4565b60148211156113a35760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964206d696e7420717479000000000000000000000000000000006044820152606401610ef4565b60175442116113f45760405162461bcd60e51b815260206004820152600860248201527f6e6f74206c6976650000000000000000000000000000000000000000000000006044820152606401610ef4565b601b5460225410156114c657601b548261140d60225490565b61141791906156be565b11156114655760405162461bcd60e51b815260206004820152601f60248201527f416c6c20746f6b656e73206f6e2d73616c6520616c726561647920736f6c64006044820152606401610ef4565b346018548361147491906156d6565b146114c15760405162461bcd60e51b815260206004820152601660248201527f496e76616c6964207061796d656e7420616d6f756e74000000000000000000006044820152606401610ef4565b6114d1565b34156114d157600080fd5b6000805b8381101561180a57601e546001600160a01b0316637299054c6103e86e01ed09bead87c0378d8e640000004b61150a60225490565b61151490886156be565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401602060405180830381865afa15801561155d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061158191906156f5565b9150600061158e83613c57565b905060006115a961159e60085490565b6106559060016156be565b90508015611624576020546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561160b57600080fd5b505af115801561161f573d6000803e3d6000fd5b505050505b611632602280546001019055565b600061163f606486615724565b90506001600060598310611692575060016001600160a01b0385163361166460225490565b6040517ff67c4f360504c60efb949cdfda9ade22e5eeab0fb3679feede4fdbe803d2f34d90600090a46116d0565b6001600160a01b038516336116a660225490565b6040517fd5e6f7720a19de7cda924c2defdcf8acd69a6ed15bd5ed4a4c080918538f3a4a90600090a45b6116db600a84615724565b6116e69060016156be565b6040805180820190915282151581526020810182905290925080601d600061170d60225490565b81526020808201929092526040016000208251815460ff19169015151781559101516001909101556022546117df905b6040805180820182524267ffffffffffffffff9081168083524382166020808501828152326000908152601383528781209651875492519087167fffffffffffffffffffffffffffffffff0000000000000000000000000000000093841617600160401b918816820217909755875180890189529485528483019384529788526014909152949095209051815495519083169590941694909417921602179055565b6117f1866117ec60225490565b613dcd565b505050505050808061180290615738565b9150506114d5565b50506001600b555050565b600a546001600160a01b036101009091041633146118755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b601655565b600081815260146020526040902054819043600160401b90910467ffffffffffffffff16106118df5760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b601f546001600160a01b0316336001600160a01b03161461197757611905335b83613de7565b6119775760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ef4565b611982848484613ec7565b50505050565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b1660208201526034810183905260009081906054016040516020818303038152906040528051906020012090506119f560155482856140ac9092919063ffffffff16565b9150505b9392505050565b6000601b548211611a1357506000919050565b6005611a407f000000000000000000000000000000000000000000000000000000000000000060026156d6565b611a4a9190615753565b8211611a61575069043c33c1937564800000919050565b6005611a8e7f000000000000000000000000000000000000000000000000000000000000000060046156d6565b611a989190615753565b8211611aaf5750690878678326eac9000000919050565b506910f0cf064dd592000000919050565b600a546001600160a01b03610100909104163314611b205760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b601855565b3260009081526013602052604081205443600160401b90910467ffffffffffffffff1610611b895760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b6001600160a01b03831660009081526013602052604090205443600160401b90910467ffffffffffffffff1610611bf65760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b6000611c0284846140c2565b60008181526014602052604090205490915043600160401b90910467ffffffffffffffff16106119f95760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b600a546001600160a01b03610100909104163314611cc85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b601b55565b600081815260146020526040902054819043600160401b90910467ffffffffffffffff1610611d325760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b61198284848461416a565b600a5460ff1615611d905760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ef4565b32611d9a82612237565b6001600160a01b031614611df05760405162461bcd60e51b815260206004820152601760248201527f4f6f707320796f7520646f6e2774206f776e20746861740000000000000000006044820152606401610ef4565b6000818152601d602052604090205460ff1615611e375760405181907fc330aec88ddce64b816616457d0bbcb73bf1dd71af2d246441619dcc1382a7d490600090a2611e63565b60405181907f949f7a6046c8ffd7a0ba76eee4a8b52fd512a850ba0fbe387945d52d46fae40d90600090a25b610ff081614185565b60006119f98383613de7565b6001600160a01b0381166000908152600e6020526040902054611f035760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610ef4565b6001600160a01b0382166000908152601160205260408120546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015611f79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f9d91906156f5565b611fa791906156be565b90506000611fe083836110c387876001600160a01b03918216600090815260126020908152604080832093909416825291909152205490565b9050806120555760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610ef4565b6001600160a01b0380851660009081526012602090815260408083209387168352929052908120805483929061208c9084906156be565b90915550506001600160a01b038416600090815260116020526040812080548392906120b99084906156be565b909155506120ca9050848483614239565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b600080612122836142b9565b60008181526014602052604090205490915043600160401b90910467ffffffffffffffff1610610dfb5760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b6021546001600160a01b031633146121cd5760405162461bcd60e51b815260206004820152600860248201526737b7363c903232bb60c11b6044820152606401610ef4565b60255460ff16156122205760405162461bcd60e51b815260206004820152601060248201527f6c6f636b65642066756e6374696f6e73000000000000000000000000000000006044820152606401610ef4565b80516122339060269060208401906150d0565b5050565b3260009081526013602052604081205443600160401b90910467ffffffffffffffff161061229b5760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b600082815260146020526040902054829043600160401b90910467ffffffffffffffff16106123005760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b600061230b8461435d565b6001600160a01b03811660009081526013602052604090205490915043600160401b90910467ffffffffffffffff1610610f065760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b600a546001600160a01b036101009091041633146123db5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b6040517f42842e0e000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481018290526001600160a01b038316906342842e0e90606401600060405180830381600087803b15801561244257600080fd5b505af1158015612456573d6000803e3d6000fd5b505050505050565b600a546001600160a01b036101009091041633146124be5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b601755565b3260009081526013602052604081205443600160401b90910467ffffffffffffffff16106125275760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b6001600160a01b03821660009081526013602052604090205443600160401b90910467ffffffffffffffff16106125945760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b610dfb826143e8565b602680546125aa90615673565b80601f01602080910402602001604051908101604052809291908181526020018280546125d690615673565b80156126235780601f106125f857610100808354040283529160200191612623565b820191906000526020600020905b81548152906001019060200180831161260657829003601f168201915b505050505081565b600a546001600160a01b0361010090910416331461268b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b6126956000614482565b565b600a546001600160a01b036101009091041633146126f75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b601e805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600a546001600160a01b036101009091041633146127865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b601555565b60606000612798836124c3565b9050806127b95760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff8111156127d4576127d461530c565b6040519080825280602002602001820160405280156127fd578160200160208202803683370190505b50905060005b828110156127b1576128158582611b25565b82828151811061282757612827615767565b60209081029190910101528061283c81615738565b915050612803565b600a546001600160a01b036101009091041633146128a45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b0382169063a9059cbb90339083906370a0823190602401602060405180830381865afa15801561290b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292f91906156f5565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801561297a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612233919061577d565b6000601082815481106129b3576129b3615767565b6000918252602090912001546001600160a01b031692915050565b6021546001600160a01b03163314612a135760405162461bcd60e51b815260206004820152600860248201526737b7363c903232bb60c11b6044820152606401610ef4565b60255460ff1615612a665760405162461bcd60e51b815260206004820152601060248201527f6c6f636b65642066756e6374696f6e73000000000000000000000000000000006044820152606401610ef4565b80516122339060279060208401906150d0565b32600090815260136020526040812054819043600160401b90910467ffffffffffffffff1610612adf5760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b600083815260146020526040902054839043600160401b90910467ffffffffffffffff1610612b445760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b5050506000908152601d60205260409020805460019091015460ff90911691565b606060018054610e1090615673565b6021546001600160a01b03163314612bb95760405162461bcd60e51b815260206004820152600860248201526737b7363c903232bb60c11b6044820152606401610ef4565b6025805460ff19166001179055565b3260009081526013602052604090205443600160401b90910467ffffffffffffffff1610612c2c5760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b61223382826144f3565b600a546001600160a01b03610100909104163314612c965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b601f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600a546001600160a01b03610100909104163314612d255760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b601a55565b600082815260146020526040902054829043600160401b90910467ffffffffffffffff1610612d8f5760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b612d9b858585856144fe565b5050505050565b600a546001600160a01b03610100909104163314612e025760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b6020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600a546001600160a01b03610100909104163314612e915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b601955565b602780546125aa90615673565b6000818152600260205260409020546060906001600160a01b0316612f305760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610ef4565b6026612f3b83614585565b604051602001612f4c9291906157b6565b6040516020818303038152906040529050919050565b6002600b541415612fb55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ef4565b6002600b55601654421161300b5760405162461bcd60e51b815260206004820152600860248201527f6e6f74206c6976650000000000000000000000000000000000000000000000006044820152606401610ef4565b613049338584848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061198892505050565b6130955760405162461bcd60e51b815260206004820152600d60248201527f696e76616c69642070726f6f66000000000000000000000000000000000000006044820152606401610ef4565b3233146130e45760405162461bcd60e51b815260206004820152600560248201527f6e6f2e2e2e0000000000000000000000000000000000000000000000000000006044820152606401610ef4565b7f00000000000000000000000000000000000000000000000000000000000000008561310f60225490565b61311991906156be565b11156131675760405162461bcd60e51b815260206004820152601160248201527f416c6c20746f6b656e73206d696e7465640000000000000000000000000000006044820152606401610ef4565b60028511156131b85760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964206d696e7420717479000000000000000000000000000000006044820152606401610ef4565b601a54336000908152601c60205260409020546131d69087906156be565b111561324a5760405162461bcd60e51b815260206004820152602860248201527f596f7520616c7265616479206d696e74656420796f75722077686974656c697360448201527f7420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610ef4565b601b54602254101561331c57601b548561326360225490565b61326d91906156be565b11156132bb5760405162461bcd60e51b815260206004820152601f60248201527f416c6c20746f6b656e73206f6e2d73616c6520616c726561647920736f6c64006044820152606401610ef4565b34601954866132ca91906156d6565b146133175760405162461bcd60e51b815260206004820152601660248201527f496e76616c6964207061796d656e7420616d6f756e74000000000000000000006044820152606401610ef4565b613327565b341561332757600080fd5b6000805b868110156135d257601e546001600160a01b0316637299054c6103e86e01ed09bead87c0378d8e640000004b61336060225490565b61336a908a6156be565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401602060405180830381865afa1580156133b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133d791906156f5565b915060006133e483613c57565b905060006133f461159e60085490565b9050801561346f576020546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561345657600080fd5b505af115801561346a573d6000803e3d6000fd5b505050505b61347d602280546001019055565b600061348a606486615724565b905060016000605983106134dd575060016001600160a01b038516336134af60225490565b6040517ff67c4f360504c60efb949cdfda9ade22e5eeab0fb3679feede4fdbe803d2f34d90600090a461351b565b6001600160a01b038516336134f160225490565b6040517fd5e6f7720a19de7cda924c2defdcf8acd69a6ed15bd5ed4a4c080918538f3a4a90600090a45b613526600a84615724565b6135319060016156be565b6040805180820190915282151581526020810182905290925080601d600061355860225490565b81526020808201929092526040016000208251815460ff191690151517815591015160019091015560225461358c9061173d565b613599866117ec60225490565b336000908152601c602052604081208054916135b483615738565b919050555050505050505080806135ca90615738565b91505061332b565b50506001600b555050505050565b606060278054610e1090615673565b3260009081526013602052604081205443600160401b90910467ffffffffffffffff16106136535760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff166119f9565b600a546001600160a01b036101009091041633146136e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b6001600160a01b03811661375d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ef4565b610ff081614482565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806137c957506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610dfb57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610dfb565b6000818152600260205260408120546001600160a01b031661388b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ef4565b506000908152600460205260409020546001600160a01b031690565b60006138b28261435d565b9050806001600160a01b0316836001600160a01b0316141561393c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ef4565b336001600160a01b0382161480613958575061395881336135ef565b6139ca5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ef4565b610f7e83836146b7565b600a5460ff16613a265760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610ef4565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600a5460ff1615613ac35760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ef4565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613a533390565b600c546001600160a01b0384166000908152600e602052604081205490918391613b2290866156d6565b613b2c9190615753565b613b369190615854565b949350505050565b80471015613b8e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610ef4565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613bdb576040519150601f19603f3d011682016040523d82523d6000602084013e613be0565b606091505b5050905080610f7e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610ef4565b601e546000906001600160a01b0316637299054c6103e86e01ed09bead87c0378d8e640000004b613c8760225490565b613c9190876156be565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401602060405180830381865afa158015613cda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613cfe91906156f5565b9150601b54613d0c60085490565b11613d175733610dfb565b605a613d24606484615724565b1015613d305733610dfb565b601f546040517f9cf2763d000000000000000000000000000000000000000000000000000000008152600481018490526000916001600160a01b031690639cf2763d90602401602060405180830381865afa158015613d93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613db7919061586b565b90506001600160a01b038116610dfb5733610f06565b612233828260405180602001604052806000815250614732565b6000818152600260205260408120546001600160a01b0316613e715760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ef4565b6000613e7c8361435d565b9050806001600160a01b0316846001600160a01b03161480613eb75750836001600160a01b0316613eac84610e93565b6001600160a01b0316145b80613b365750613b3681856135ef565b826001600160a01b0316613eda8261435d565b6001600160a01b031614613f565760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610ef4565b6001600160a01b038216613fd15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ef4565b613fdc8383836147bb565b613fe76000826146b7565b6001600160a01b0383166000908152600360205260408120805460019290614010908490615854565b90915550506001600160a01b038216600090815260036020526040812080546001929061403e9084906156be565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000826140b98584614873565b14949350505050565b60006140cd836143e8565b82106141415760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610ef4565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610f7e83838360405180602001604052806000815250612d2a565b60006141908261435d565b905061419e816000846147bb565b6141a96000836146b7565b6001600160a01b03811660009081526003602052604081208054600192906141d2908490615854565b9091555050600082815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610f7e908490614917565b60006142c460085490565b82106143385760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610ef4565b6008828154811061434b5761434b615767565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b031680610dfb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ef4565b60006001600160a01b0382166144665760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ef4565b506001600160a01b031660009081526003602052604090205490565b600a80546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6122333383836149fc565b614507336118ff565b6145795760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ef4565b61198284848484614acb565b6060816145c557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156145ef57806145d981615738565b91506145e89050600a83615753565b91506145c9565b60008167ffffffffffffffff81111561460a5761460a61530c565b6040519080825280601f01601f191660200182016040528015614634576020820181803683370190505b5090505b8415613b3657614649600183615854565b9150614656600a86615724565b6146619060306156be565b60f81b81838151811061467657614676615767565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506146b0600a86615753565b9450614638565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906146f98261435d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61473c8383614b54565b6147496000848484614caf565b610f7e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ef4565b6001600160a01b0383166148165761481181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b614839565b816001600160a01b0316836001600160a01b031614614839576148398382614e35565b6001600160a01b03821661485057610f7e81614ed2565b826001600160a01b0316826001600160a01b031614610f7e57610f7e8282614f81565b600081815b84518110156127b157600085828151811061489557614895615767565b602002602001015190508083116148d7576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250614904565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061490f81615738565b915050614878565b600061496c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614fc59092919063ffffffff16565b805190915015610f7e578080602001905181019061498a919061577d565b610f7e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610ef4565b816001600160a01b0316836001600160a01b03161415614a5e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ef4565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b614ad6848484613ec7565b614ae284848484614caf565b6119825760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ef4565b6001600160a01b038216614baa5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ef4565b6000818152600260205260409020546001600160a01b031615614c0f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ef4565b614c1b600083836147bb565b6001600160a01b0382166000908152600360205260408120805460019290614c449084906156be565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15614e2a576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290614d0c903390899088908890600401615888565b6020604051808303816000875af1925050508015614d47575060408051601f3d908101601f19168201909252614d44918101906158c4565b60015b614df7573d808015614d75576040519150601f19603f3d011682016040523d82523d6000602084013e614d7a565b606091505b508051614def5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ef4565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050613b36565b506001949350505050565b60006001614e42846143e8565b614e4c9190615854565b600083815260076020526040902054909150808214614e9f576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090614ee490600190615854565b60008381526009602052604081205460088054939450909284908110614f0c57614f0c615767565b906000526020600020015490508060088381548110614f2d57614f2d615767565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480614f6557614f656158e1565b6001900381819060005260206000200160009055905550505050565b6000614f8c836143e8565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6060613b36848460008585843b61501e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ef4565b600080866001600160a01b0316858760405161503a91906158f7565b60006040518083038185875af1925050503d8060008114615077576040519150601f19603f3d011682016040523d82523d6000602084013e61507c565b606091505b509150915061508c828286615097565b979650505050505050565b606083156150a65750816119f9565b8251156150b65782518084602001fd5b8160405162461bcd60e51b8152600401610ef491906151f4565b8280546150dc90615673565b90600052602060002090601f0160209004810192826150fe5760008555615144565b82601f1061511757805160ff1916838001178555615144565b82800160010185558215615144579182015b82811115615144578251825591602001919060010190615129565b50615150929150615154565b5090565b5b808211156151505760008155600101615155565b6001600160e01b031981168114610ff057600080fd5b60006020828403121561519157600080fd5b81356119f981615169565b60005b838110156151b757818101518382015260200161519f565b838111156119825750506000910152565b600081518084526151e081602086016020860161519c565b601f01601f19169290920160200192915050565b6020815260006119f960208301846151c8565b60006020828403121561521957600080fd5b5035919050565b6001600160a01b0381168114610ff057600080fd5b6000806040838503121561524857600080fd5b823561525381615220565b946020939093013593505050565b8015158114610ff057600080fd5b60006020828403121561528157600080fd5b81356119f981615261565b60006020828403121561529e57600080fd5b81356119f981615220565b600080604083850312156152bc57600080fd5b50508035926020909101359150565b6000806000606084860312156152e057600080fd5b83356152eb81615220565b925060208401356152fb81615220565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561534b5761534b61530c565b604052919050565b60008060006060848603121561536857600080fd5b833561537381615220565b92506020848101359250604085013567ffffffffffffffff8082111561539857600080fd5b818701915087601f8301126153ac57600080fd5b8135818111156153be576153be61530c565b8060051b91506153cf848301615322565b818152918301840191848101908a8411156153e957600080fd5b938501935b83851015615407578435825293850193908501906153ee565b8096505050505050509250925092565b6000806040838503121561542a57600080fd5b823561543581615220565b9150602083013561544581615220565b809150509250929050565b600067ffffffffffffffff83111561546a5761546a61530c565b61547d6020601f19601f86011601615322565b905082815283838301111561549157600080fd5b828260208301376000602084830101529392505050565b6000602082840312156154ba57600080fd5b813567ffffffffffffffff8111156154d157600080fd5b8201601f810184136154e257600080fd5b613b3684823560208401615450565b6020808252825182820181905260009190848201906040850190845b818110156155295783518352928401929184019160010161550d565b50909695505050505050565b6000806040838503121561554857600080fd5b823561555381615220565b9150602083013561544581615261565b6000806000806080858703121561557957600080fd5b843561558481615220565b9350602085013561559481615220565b925060408501359150606085013567ffffffffffffffff8111156155b757600080fd5b8501601f810187136155c857600080fd5b6155d787823560208401615450565b91505092959194509250565b6000806000806000608086880312156155fb57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff8082111561562857600080fd5b818801915088601f83011261563c57600080fd5b81358181111561564b57600080fd5b8960208260051b850101111561566057600080fd5b9699959850939650602001949392505050565b600181811c9082168061568757607f821691505b60208210811415610f0957634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156156d1576156d16156a8565b500190565b60008160001904831182151516156156f0576156f06156a8565b500290565b60006020828403121561570757600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b6000826157335761573361570e565b500690565b600060001982141561574c5761574c6156a8565b5060010190565b6000826157625761576261570e565b500490565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561578f57600080fd5b81516119f981615261565b600081516157ac81856020860161519c565b9290920192915050565b600080845481600182811c9150808316806157d257607f831692505b60208084108214156157f257634e487b7160e01b86526022600452602486fd5b818015615806576001811461581757615844565b60ff19861689528489019650615844565b60008b81526020902060005b8681101561583c5781548b820152908501908301615823565b505084890196505b5050505050506119f5818561579a565b600082821015615866576158666156a8565b500390565b60006020828403121561587d57600080fd5b81516119f981615220565b60006001600160a01b038087168352808616602084015250836040830152608060608301526158ba60808301846151c8565b9695505050505050565b6000602082840312156158d657600080fd5b81516119f981615169565b634e487b7160e01b600052603160045260246000fd5b6000825161590981846020870161519c565b919091019291505056fea264697066735822122012e76ba4d0da808151bea4ef7aa0da04c225c198eb459fc24c6e5f51fefc530664736f6c634300080b0033697066733a2f2f516d52467733716d546d795257635270444a6a5565484c43644144545a66593137434b3268666931317458724e7768747470733a2f2f6170692e73746f6e6564617065636c75622e636f6d2f76312f6e66742f6d657461646174612f

Deployed Bytecode

0x6080604052600436106104695760003560e01c80637cb6475911610243578063c002d23d11610143578063df725396116100bb578063ebd173681161008a578063f2fde38b1161006f578063f2fde38b14610d3c578063f44fbe7514610d5c578063f47c84c514610d8957600080fd5b8063ebd1736814610ccf578063ebf0c71714610d2657600080fd5b8063df72539614610c72578063e33b7de314610c85578063e8a3d48514610c9a578063e985e9c514610caf57600080fd5b8063c87b56dd11610112578063ce7c2ac2116100f7578063ce7c2ac214610bec578063cf30901214610c22578063d79779b214610c3c57600080fd5b8063c87b56dd14610bac578063c962d2c614610bcc57600080fd5b8063c002d23d14610b4b578063c084f54014610b61578063c0c872a314610b77578063c0e7274014610b9757600080fd5b806394e56847116101d6578063a22cb465116101a5578063ae19aa9e1161018a578063ae19aa9e14610aeb578063b88d4fde14610b0b578063b9335cb114610b2b57600080fd5b8063a22cb46514610aab578063ab57a71214610acb57600080fd5b806394e5684714610a1457806395d89b4114610a4b5780639852595c14610a60578063989bdbb614610a9657600080fd5b80638b83209b116102125780638b83209b1461099b5780638da5cb5b146109bb5780639292caaf146109de578063938e3d7b146109f457600080fd5b80637cb64759146109185780638462151c1461093857806388089f0b146109655780638905fd4f1461097b57600080fd5b80633dc94d9c116103695780635c975abb116102e15780636d5d40c6116102b05780637101ebca116102955780637101ebca146108ce578063715018a6146108e3578063767bcab5146108f857600080fd5b80636d5d40c61461088e57806370a08231146108ae57600080fd5b80635c975abb146108205780636352211e146108385780636b7d2470146108585780636bb7b1d91461087857600080fd5b806342966c681161033857806348b750441161031d57806348b75044146107c05780634f6ccce7146107e057806355f804b31461080057600080fd5b806342966c6814610780578063430c2081146107a057600080fd5b80633dc94d9c146106e55780634018b1f814610705578063406072a91461071a57806342842e0e1461076057600080fd5b80631c0ce3d3116103fc5780632e143909116103cb57806330d2cbd7116103b057806330d2cbd71461069a57806339fc3ee3146106ba5780633a98ef39146106d057600080fd5b80632e1439091461065a5780632f745c591461067a57600080fd5b80631c0ce3d3146105da57806323b872dd146105fa578063275efe1a1461061a57806327de8f271461063a57600080fd5b806316c38b3c1161043857806316c38b3c1461056857806318160ddd1461058857806319165587146105a75780631b2ef1ca146105c757600080fd5b806301ffc9a7146104b757806306fdde03146104ec578063081812fc1461050e578063095ea7b31461054657600080fd5b366104b2577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156104c357600080fd5b506104d76104d236600461517f565b610dbd565b60405190151581526020015b60405180910390f35b3480156104f857600080fd5b50610501610e01565b6040516104e391906151f4565b34801561051a57600080fd5b5061052e610529366004615207565b610e93565b6040516001600160a01b0390911681526020016104e3565b34801561055257600080fd5b50610566610561366004615235565b610f0f565b005b34801561057457600080fd5b5061056661058336600461526f565b610f83565b34801561059457600080fd5b506008545b6040519081526020016104e3565b3480156105b357600080fd5b506105666105c236600461528c565b610ffb565b6105666105d53660046152a9565b6111d5565b3480156105e657600080fd5b506105666105f5366004615207565b611815565b34801561060657600080fd5b506105666106153660046152cb565b61187a565b34801561062657600080fd5b506104d7610635366004615353565b611988565b34801561064657600080fd5b50610599610655366004615207565b611a00565b34801561066657600080fd5b50610566610675366004615207565b611ac0565b34801561068657600080fd5b50610599610695366004615235565b611b25565b3480156106a657600080fd5b5060205461052e906001600160a01b031681565b3480156106c657600080fd5b50610599601a5481565b3480156106dc57600080fd5b50600c54610599565b3480156106f157600080fd5b50610566610700366004615207565b611c68565b34801561071157600080fd5b50601b54610599565b34801561072657600080fd5b50610599610735366004615417565b6001600160a01b03918216600090815260126020908152604080832093909416825291909152205490565b34801561076c57600080fd5b5061056661077b3660046152cb565b611ccd565b34801561078c57600080fd5b5061056661079b366004615207565b611d3d565b3480156107ac57600080fd5b506104d76107bb366004615235565b611e6c565b3480156107cc57600080fd5b506105666107db366004615417565b611e78565b3480156107ec57600080fd5b506105996107fb366004615207565b612116565b34801561080c57600080fd5b5061056661081b3660046154a8565b612188565b34801561082c57600080fd5b50600a5460ff166104d7565b34801561084457600080fd5b5061052e610853366004615207565b612237565b34801561086457600080fd5b50610566610873366004615235565b61237b565b34801561088457600080fd5b5061059960175481565b34801561089a57600080fd5b506105666108a9366004615207565b61245e565b3480156108ba57600080fd5b506105996108c936600461528c565b6124c3565b3480156108da57600080fd5b5061050161259d565b3480156108ef57600080fd5b5061056661262b565b34801561090457600080fd5b5061056661091336600461528c565b612697565b34801561092457600080fd5b50610566610933366004615207565b612726565b34801561094457600080fd5b5061095861095336600461528c565b61278b565b6040516104e391906154f1565b34801561097157600080fd5b5061059960195481565b34801561098757600080fd5b5061056661099636600461528c565b612844565b3480156109a757600080fd5b5061052e6109b6366004615207565b61299e565b3480156109c757600080fd5b50600a5461010090046001600160a01b031661052e565b3480156109ea57600080fd5b5061059960165481565b348015610a0057600080fd5b50610566610a0f3660046154a8565b6129ce565b348015610a2057600080fd5b50610a34610a2f366004615207565b612a79565b6040805192151583526020830191909152016104e3565b348015610a5757600080fd5b50610501612b65565b348015610a6c57600080fd5b50610599610a7b36600461528c565b6001600160a01b03166000908152600f602052604090205490565b348015610aa257600080fd5b50610566612b74565b348015610ab757600080fd5b50610566610ac6366004615535565b612bc8565b348015610ad757600080fd5b50610566610ae636600461528c565b612c36565b348015610af757600080fd5b50610566610b06366004615207565b612cc5565b348015610b1757600080fd5b50610566610b26366004615563565b612d2a565b348015610b3757600080fd5b50610566610b4636600461528c565b612da2565b348015610b5757600080fd5b5061059960185481565b348015610b6d57600080fd5b50610599601b5481565b348015610b8357600080fd5b50610566610b92366004615207565b612e31565b348015610ba357600080fd5b50610501612e96565b348015610bb857600080fd5b50610501610bc7366004615207565b612ea3565b348015610bd857600080fd5b50601f5461052e906001600160a01b031681565b348015610bf857600080fd5b50610599610c0736600461528c565b6001600160a01b03166000908152600e602052604090205490565b348015610c2e57600080fd5b506025546104d79060ff1681565b348015610c4857600080fd5b50610599610c5736600461528c565b6001600160a01b031660009081526011602052604090205490565b610566610c803660046155e3565b612f62565b348015610c9157600080fd5b50600d54610599565b348015610ca657600080fd5b506105016135e0565b348015610cbb57600080fd5b506104d7610cca366004615417565b6135ef565b348015610cdb57600080fd5b50610d0d610cea366004615207565b600090815260146020526040902054600160401b900467ffffffffffffffff1690565b60405167ffffffffffffffff90911681526020016104e3565b348015610d3257600080fd5b5061059960155481565b348015610d4857600080fd5b50610566610d5736600461528c565b613681565b348015610d6857600080fd5b50610599610d7736600461528c565b601c6020526000908152604090205481565b348015610d9557600080fd5b506105997f000000000000000000000000000000000000000000000000000000000000c35081565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610dfb5750610dfb82613766565b92915050565b606060008054610e1090615673565b80601f0160208091040260200160405190810160405280929190818152602001828054610e3c90615673565b8015610e895780601f10610e5e57610100808354040283529160200191610e89565b820191906000526020600020905b815481529060010190602001808311610e6c57829003601f168201915b5050505050905090565b600081815260146020526040812054829043600160401b90910467ffffffffffffffff1610610efd5760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b60448201526064015b60405180910390fd5b610f0683613801565b91505b50919050565b600081815260146020526040902054819043600160401b90910467ffffffffffffffff1610610f745760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b610f7e83836138a7565b505050565b600a546001600160a01b03610100909104163314610fe35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b80610ff357610ff06139d4565b50565b610ff0613a70565b6001600160a01b0381166000908152600e60205260409020546110865760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610ef4565b6000611091600d5490565b61109b90476156be565b905060006110c883836110c3866001600160a01b03166000908152600f602052604090205490565b613af8565b90508061113d5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610ef4565b6001600160a01b0383166000908152600f6020526040812080548392906111659084906156be565b9250508190555080600d600082825461117e91906156be565b9091555061118e90508382613b3e565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b600a5460ff16156112285760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ef4565b6002600b54141561127b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ef4565b6002600b553233146112cf5760405162461bcd60e51b815260206004820152600560248201527f6e6f2e2e2e0000000000000000000000000000000000000000000000000000006044820152606401610ef4565b7f000000000000000000000000000000000000000000000000000000000000c350826112fa60225490565b61130491906156be565b11156113525760405162461bcd60e51b815260206004820152601160248201527f416c6c20746f6b656e73206d696e7465640000000000000000000000000000006044820152606401610ef4565b60148211156113a35760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964206d696e7420717479000000000000000000000000000000006044820152606401610ef4565b60175442116113f45760405162461bcd60e51b815260206004820152600860248201527f6e6f74206c6976650000000000000000000000000000000000000000000000006044820152606401610ef4565b601b5460225410156114c657601b548261140d60225490565b61141791906156be565b11156114655760405162461bcd60e51b815260206004820152601f60248201527f416c6c20746f6b656e73206f6e2d73616c6520616c726561647920736f6c64006044820152606401610ef4565b346018548361147491906156d6565b146114c15760405162461bcd60e51b815260206004820152601660248201527f496e76616c6964207061796d656e7420616d6f756e74000000000000000000006044820152606401610ef4565b6114d1565b34156114d157600080fd5b6000805b8381101561180a57601e546001600160a01b0316637299054c6103e86e01ed09bead87c0378d8e640000004b61150a60225490565b61151490886156be565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401602060405180830381865afa15801561155d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061158191906156f5565b9150600061158e83613c57565b905060006115a961159e60085490565b6106559060016156be565b90508015611624576020546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561160b57600080fd5b505af115801561161f573d6000803e3d6000fd5b505050505b611632602280546001019055565b600061163f606486615724565b90506001600060598310611692575060016001600160a01b0385163361166460225490565b6040517ff67c4f360504c60efb949cdfda9ade22e5eeab0fb3679feede4fdbe803d2f34d90600090a46116d0565b6001600160a01b038516336116a660225490565b6040517fd5e6f7720a19de7cda924c2defdcf8acd69a6ed15bd5ed4a4c080918538f3a4a90600090a45b6116db600a84615724565b6116e69060016156be565b6040805180820190915282151581526020810182905290925080601d600061170d60225490565b81526020808201929092526040016000208251815460ff19169015151781559101516001909101556022546117df905b6040805180820182524267ffffffffffffffff9081168083524382166020808501828152326000908152601383528781209651875492519087167fffffffffffffffffffffffffffffffff0000000000000000000000000000000093841617600160401b918816820217909755875180890189529485528483019384529788526014909152949095209051815495519083169590941694909417921602179055565b6117f1866117ec60225490565b613dcd565b505050505050808061180290615738565b9150506114d5565b50506001600b555050565b600a546001600160a01b036101009091041633146118755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b601655565b600081815260146020526040902054819043600160401b90910467ffffffffffffffff16106118df5760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b601f546001600160a01b0316336001600160a01b03161461197757611905335b83613de7565b6119775760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ef4565b611982848484613ec7565b50505050565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b1660208201526034810183905260009081906054016040516020818303038152906040528051906020012090506119f560155482856140ac9092919063ffffffff16565b9150505b9392505050565b6000601b548211611a1357506000919050565b6005611a407f000000000000000000000000000000000000000000000000000000000000c35060026156d6565b611a4a9190615753565b8211611a61575069043c33c1937564800000919050565b6005611a8e7f000000000000000000000000000000000000000000000000000000000000c35060046156d6565b611a989190615753565b8211611aaf5750690878678326eac9000000919050565b506910f0cf064dd592000000919050565b600a546001600160a01b03610100909104163314611b205760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b601855565b3260009081526013602052604081205443600160401b90910467ffffffffffffffff1610611b895760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b6001600160a01b03831660009081526013602052604090205443600160401b90910467ffffffffffffffff1610611bf65760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b6000611c0284846140c2565b60008181526014602052604090205490915043600160401b90910467ffffffffffffffff16106119f95760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b600a546001600160a01b03610100909104163314611cc85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b601b55565b600081815260146020526040902054819043600160401b90910467ffffffffffffffff1610611d325760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b61198284848461416a565b600a5460ff1615611d905760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ef4565b32611d9a82612237565b6001600160a01b031614611df05760405162461bcd60e51b815260206004820152601760248201527f4f6f707320796f7520646f6e2774206f776e20746861740000000000000000006044820152606401610ef4565b6000818152601d602052604090205460ff1615611e375760405181907fc330aec88ddce64b816616457d0bbcb73bf1dd71af2d246441619dcc1382a7d490600090a2611e63565b60405181907f949f7a6046c8ffd7a0ba76eee4a8b52fd512a850ba0fbe387945d52d46fae40d90600090a25b610ff081614185565b60006119f98383613de7565b6001600160a01b0381166000908152600e6020526040902054611f035760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610ef4565b6001600160a01b0382166000908152601160205260408120546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015611f79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f9d91906156f5565b611fa791906156be565b90506000611fe083836110c387876001600160a01b03918216600090815260126020908152604080832093909416825291909152205490565b9050806120555760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610ef4565b6001600160a01b0380851660009081526012602090815260408083209387168352929052908120805483929061208c9084906156be565b90915550506001600160a01b038416600090815260116020526040812080548392906120b99084906156be565b909155506120ca9050848483614239565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b600080612122836142b9565b60008181526014602052604090205490915043600160401b90910467ffffffffffffffff1610610dfb5760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b6021546001600160a01b031633146121cd5760405162461bcd60e51b815260206004820152600860248201526737b7363c903232bb60c11b6044820152606401610ef4565b60255460ff16156122205760405162461bcd60e51b815260206004820152601060248201527f6c6f636b65642066756e6374696f6e73000000000000000000000000000000006044820152606401610ef4565b80516122339060269060208401906150d0565b5050565b3260009081526013602052604081205443600160401b90910467ffffffffffffffff161061229b5760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b600082815260146020526040902054829043600160401b90910467ffffffffffffffff16106123005760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b600061230b8461435d565b6001600160a01b03811660009081526013602052604090205490915043600160401b90910467ffffffffffffffff1610610f065760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b600a546001600160a01b036101009091041633146123db5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b6040517f42842e0e000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481018290526001600160a01b038316906342842e0e90606401600060405180830381600087803b15801561244257600080fd5b505af1158015612456573d6000803e3d6000fd5b505050505050565b600a546001600160a01b036101009091041633146124be5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b601755565b3260009081526013602052604081205443600160401b90910467ffffffffffffffff16106125275760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b6001600160a01b03821660009081526013602052604090205443600160401b90910467ffffffffffffffff16106125945760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b610dfb826143e8565b602680546125aa90615673565b80601f01602080910402602001604051908101604052809291908181526020018280546125d690615673565b80156126235780601f106125f857610100808354040283529160200191612623565b820191906000526020600020905b81548152906001019060200180831161260657829003601f168201915b505050505081565b600a546001600160a01b0361010090910416331461268b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b6126956000614482565b565b600a546001600160a01b036101009091041633146126f75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b601e805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600a546001600160a01b036101009091041633146127865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b601555565b60606000612798836124c3565b9050806127b95760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff8111156127d4576127d461530c565b6040519080825280602002602001820160405280156127fd578160200160208202803683370190505b50905060005b828110156127b1576128158582611b25565b82828151811061282757612827615767565b60209081029190910101528061283c81615738565b915050612803565b600a546001600160a01b036101009091041633146128a45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b0382169063a9059cbb90339083906370a0823190602401602060405180830381865afa15801561290b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292f91906156f5565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801561297a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612233919061577d565b6000601082815481106129b3576129b3615767565b6000918252602090912001546001600160a01b031692915050565b6021546001600160a01b03163314612a135760405162461bcd60e51b815260206004820152600860248201526737b7363c903232bb60c11b6044820152606401610ef4565b60255460ff1615612a665760405162461bcd60e51b815260206004820152601060248201527f6c6f636b65642066756e6374696f6e73000000000000000000000000000000006044820152606401610ef4565b80516122339060279060208401906150d0565b32600090815260136020526040812054819043600160401b90910467ffffffffffffffff1610612adf5760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b600083815260146020526040902054839043600160401b90910467ffffffffffffffff1610612b445760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b5050506000908152601d60205260409020805460019091015460ff90911691565b606060018054610e1090615673565b6021546001600160a01b03163314612bb95760405162461bcd60e51b815260206004820152600860248201526737b7363c903232bb60c11b6044820152606401610ef4565b6025805460ff19166001179055565b3260009081526013602052604090205443600160401b90910467ffffffffffffffff1610612c2c5760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b61223382826144f3565b600a546001600160a01b03610100909104163314612c965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b601f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600a546001600160a01b03610100909104163314612d255760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b601a55565b600082815260146020526040902054829043600160401b90910467ffffffffffffffff1610612d8f5760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b612d9b858585856144fe565b5050505050565b600a546001600160a01b03610100909104163314612e025760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b6020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600a546001600160a01b03610100909104163314612e915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b601955565b602780546125aa90615673565b6000818152600260205260409020546060906001600160a01b0316612f305760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610ef4565b6026612f3b83614585565b604051602001612f4c9291906157b6565b6040516020818303038152906040529050919050565b6002600b541415612fb55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ef4565b6002600b55601654421161300b5760405162461bcd60e51b815260206004820152600860248201527f6e6f74206c6976650000000000000000000000000000000000000000000000006044820152606401610ef4565b613049338584848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061198892505050565b6130955760405162461bcd60e51b815260206004820152600d60248201527f696e76616c69642070726f6f66000000000000000000000000000000000000006044820152606401610ef4565b3233146130e45760405162461bcd60e51b815260206004820152600560248201527f6e6f2e2e2e0000000000000000000000000000000000000000000000000000006044820152606401610ef4565b7f000000000000000000000000000000000000000000000000000000000000c3508561310f60225490565b61311991906156be565b11156131675760405162461bcd60e51b815260206004820152601160248201527f416c6c20746f6b656e73206d696e7465640000000000000000000000000000006044820152606401610ef4565b60028511156131b85760405162461bcd60e51b815260206004820152601060248201527f496e76616c6964206d696e7420717479000000000000000000000000000000006044820152606401610ef4565b601a54336000908152601c60205260409020546131d69087906156be565b111561324a5760405162461bcd60e51b815260206004820152602860248201527f596f7520616c7265616479206d696e74656420796f75722077686974656c697360448201527f7420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610ef4565b601b54602254101561331c57601b548561326360225490565b61326d91906156be565b11156132bb5760405162461bcd60e51b815260206004820152601f60248201527f416c6c20746f6b656e73206f6e2d73616c6520616c726561647920736f6c64006044820152606401610ef4565b34601954866132ca91906156d6565b146133175760405162461bcd60e51b815260206004820152601660248201527f496e76616c6964207061796d656e7420616d6f756e74000000000000000000006044820152606401610ef4565b613327565b341561332757600080fd5b6000805b868110156135d257601e546001600160a01b0316637299054c6103e86e01ed09bead87c0378d8e640000004b61336060225490565b61336a908a6156be565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401602060405180830381865afa1580156133b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133d791906156f5565b915060006133e483613c57565b905060006133f461159e60085490565b9050801561346f576020546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561345657600080fd5b505af115801561346a573d6000803e3d6000fd5b505050505b61347d602280546001019055565b600061348a606486615724565b905060016000605983106134dd575060016001600160a01b038516336134af60225490565b6040517ff67c4f360504c60efb949cdfda9ade22e5eeab0fb3679feede4fdbe803d2f34d90600090a461351b565b6001600160a01b038516336134f160225490565b6040517fd5e6f7720a19de7cda924c2defdcf8acd69a6ed15bd5ed4a4c080918538f3a4a90600090a45b613526600a84615724565b6135319060016156be565b6040805180820190915282151581526020810182905290925080601d600061355860225490565b81526020808201929092526040016000208251815460ff191690151517815591015160019091015560225461358c9061173d565b613599866117ec60225490565b336000908152601c602052604081208054916135b483615738565b919050555050505050505080806135ca90615738565b91505061332b565b50506001600b555050505050565b606060278054610e1090615673565b3260009081526013602052604081205443600160401b90910467ffffffffffffffff16106136535760405162461bcd60e51b8152602060048201526011602482015270686d6d6d6d207768617420646f696e673f60781b6044820152606401610ef4565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff166119f9565b600a546001600160a01b036101009091041633146136e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ef4565b6001600160a01b03811661375d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ef4565b610ff081614482565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806137c957506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610dfb57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610dfb565b6000818152600260205260408120546001600160a01b031661388b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ef4565b506000908152600460205260409020546001600160a01b031690565b60006138b28261435d565b9050806001600160a01b0316836001600160a01b0316141561393c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ef4565b336001600160a01b0382161480613958575061395881336135ef565b6139ca5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ef4565b610f7e83836146b7565b600a5460ff16613a265760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610ef4565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600a5460ff1615613ac35760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ef4565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613a533390565b600c546001600160a01b0384166000908152600e602052604081205490918391613b2290866156d6565b613b2c9190615753565b613b369190615854565b949350505050565b80471015613b8e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610ef4565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613bdb576040519150601f19603f3d011682016040523d82523d6000602084013e613be0565b606091505b5050905080610f7e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610ef4565b601e546000906001600160a01b0316637299054c6103e86e01ed09bead87c0378d8e640000004b613c8760225490565b613c9190876156be565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401602060405180830381865afa158015613cda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613cfe91906156f5565b9150601b54613d0c60085490565b11613d175733610dfb565b605a613d24606484615724565b1015613d305733610dfb565b601f546040517f9cf2763d000000000000000000000000000000000000000000000000000000008152600481018490526000916001600160a01b031690639cf2763d90602401602060405180830381865afa158015613d93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613db7919061586b565b90506001600160a01b038116610dfb5733610f06565b612233828260405180602001604052806000815250614732565b6000818152600260205260408120546001600160a01b0316613e715760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ef4565b6000613e7c8361435d565b9050806001600160a01b0316846001600160a01b03161480613eb75750836001600160a01b0316613eac84610e93565b6001600160a01b0316145b80613b365750613b3681856135ef565b826001600160a01b0316613eda8261435d565b6001600160a01b031614613f565760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610ef4565b6001600160a01b038216613fd15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ef4565b613fdc8383836147bb565b613fe76000826146b7565b6001600160a01b0383166000908152600360205260408120805460019290614010908490615854565b90915550506001600160a01b038216600090815260036020526040812080546001929061403e9084906156be565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000826140b98584614873565b14949350505050565b60006140cd836143e8565b82106141415760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610ef4565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610f7e83838360405180602001604052806000815250612d2a565b60006141908261435d565b905061419e816000846147bb565b6141a96000836146b7565b6001600160a01b03811660009081526003602052604081208054600192906141d2908490615854565b9091555050600082815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610f7e908490614917565b60006142c460085490565b82106143385760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610ef4565b6008828154811061434b5761434b615767565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b031680610dfb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ef4565b60006001600160a01b0382166144665760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ef4565b506001600160a01b031660009081526003602052604090205490565b600a80546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6122333383836149fc565b614507336118ff565b6145795760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ef4565b61198284848484614acb565b6060816145c557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156145ef57806145d981615738565b91506145e89050600a83615753565b91506145c9565b60008167ffffffffffffffff81111561460a5761460a61530c565b6040519080825280601f01601f191660200182016040528015614634576020820181803683370190505b5090505b8415613b3657614649600183615854565b9150614656600a86615724565b6146619060306156be565b60f81b81838151811061467657614676615767565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506146b0600a86615753565b9450614638565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906146f98261435d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61473c8383614b54565b6147496000848484614caf565b610f7e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ef4565b6001600160a01b0383166148165761481181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b614839565b816001600160a01b0316836001600160a01b031614614839576148398382614e35565b6001600160a01b03821661485057610f7e81614ed2565b826001600160a01b0316826001600160a01b031614610f7e57610f7e8282614f81565b600081815b84518110156127b157600085828151811061489557614895615767565b602002602001015190508083116148d7576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250614904565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061490f81615738565b915050614878565b600061496c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614fc59092919063ffffffff16565b805190915015610f7e578080602001905181019061498a919061577d565b610f7e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610ef4565b816001600160a01b0316836001600160a01b03161415614a5e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ef4565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b614ad6848484613ec7565b614ae284848484614caf565b6119825760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ef4565b6001600160a01b038216614baa5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ef4565b6000818152600260205260409020546001600160a01b031615614c0f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ef4565b614c1b600083836147bb565b6001600160a01b0382166000908152600360205260408120805460019290614c449084906156be565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15614e2a576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290614d0c903390899088908890600401615888565b6020604051808303816000875af1925050508015614d47575060408051601f3d908101601f19168201909252614d44918101906158c4565b60015b614df7573d808015614d75576040519150601f19603f3d011682016040523d82523d6000602084013e614d7a565b606091505b508051614def5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ef4565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050613b36565b506001949350505050565b60006001614e42846143e8565b614e4c9190615854565b600083815260076020526040902054909150808214614e9f576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090614ee490600190615854565b60008381526009602052604081205460088054939450909284908110614f0c57614f0c615767565b906000526020600020015490508060088381548110614f2d57614f2d615767565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480614f6557614f656158e1565b6001900381819060005260206000200160009055905550505050565b6000614f8c836143e8565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6060613b36848460008585843b61501e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ef4565b600080866001600160a01b0316858760405161503a91906158f7565b60006040518083038185875af1925050503d8060008114615077576040519150601f19603f3d011682016040523d82523d6000602084013e61507c565b606091505b509150915061508c828286615097565b979650505050505050565b606083156150a65750816119f9565b8251156150b65782518084602001fd5b8160405162461bcd60e51b8152600401610ef491906151f4565b8280546150dc90615673565b90600052602060002090601f0160209004810192826150fe5760008555615144565b82601f1061511757805160ff1916838001178555615144565b82800160010185558215615144579182015b82811115615144578251825591602001919060010190615129565b50615150929150615154565b5090565b5b808211156151505760008155600101615155565b6001600160e01b031981168114610ff057600080fd5b60006020828403121561519157600080fd5b81356119f981615169565b60005b838110156151b757818101518382015260200161519f565b838111156119825750506000910152565b600081518084526151e081602086016020860161519c565b601f01601f19169290920160200192915050565b6020815260006119f960208301846151c8565b60006020828403121561521957600080fd5b5035919050565b6001600160a01b0381168114610ff057600080fd5b6000806040838503121561524857600080fd5b823561525381615220565b946020939093013593505050565b8015158114610ff057600080fd5b60006020828403121561528157600080fd5b81356119f981615261565b60006020828403121561529e57600080fd5b81356119f981615220565b600080604083850312156152bc57600080fd5b50508035926020909101359150565b6000806000606084860312156152e057600080fd5b83356152eb81615220565b925060208401356152fb81615220565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561534b5761534b61530c565b604052919050565b60008060006060848603121561536857600080fd5b833561537381615220565b92506020848101359250604085013567ffffffffffffffff8082111561539857600080fd5b818701915087601f8301126153ac57600080fd5b8135818111156153be576153be61530c565b8060051b91506153cf848301615322565b818152918301840191848101908a8411156153e957600080fd5b938501935b83851015615407578435825293850193908501906153ee565b8096505050505050509250925092565b6000806040838503121561542a57600080fd5b823561543581615220565b9150602083013561544581615220565b809150509250929050565b600067ffffffffffffffff83111561546a5761546a61530c565b61547d6020601f19601f86011601615322565b905082815283838301111561549157600080fd5b828260208301376000602084830101529392505050565b6000602082840312156154ba57600080fd5b813567ffffffffffffffff8111156154d157600080fd5b8201601f810184136154e257600080fd5b613b3684823560208401615450565b6020808252825182820181905260009190848201906040850190845b818110156155295783518352928401929184019160010161550d565b50909695505050505050565b6000806040838503121561554857600080fd5b823561555381615220565b9150602083013561544581615261565b6000806000806080858703121561557957600080fd5b843561558481615220565b9350602085013561559481615220565b925060408501359150606085013567ffffffffffffffff8111156155b757600080fd5b8501601f810187136155c857600080fd5b6155d787823560208401615450565b91505092959194509250565b6000806000806000608086880312156155fb57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff8082111561562857600080fd5b818801915088601f83011261563c57600080fd5b81358181111561564b57600080fd5b8960208260051b850101111561566057600080fd5b9699959850939650602001949392505050565b600181811c9082168061568757607f821691505b60208210811415610f0957634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156156d1576156d16156a8565b500190565b60008160001904831182151516156156f0576156f06156a8565b500290565b60006020828403121561570757600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b6000826157335761573361570e565b500690565b600060001982141561574c5761574c6156a8565b5060010190565b6000826157625761576261570e565b500490565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561578f57600080fd5b81516119f981615261565b600081516157ac81856020860161519c565b9290920192915050565b600080845481600182811c9150808316806157d257607f831692505b60208084108214156157f257634e487b7160e01b86526022600452602486fd5b818015615806576001811461581757615844565b60ff19861689528489019650615844565b60008b81526020902060005b8681101561583c5781548b820152908501908301615823565b505084890196505b5050505050506119f5818561579a565b600082821015615866576158666156a8565b500390565b60006020828403121561587d57600080fd5b81516119f981615220565b60006001600160a01b038087168352808616602084015250836040830152608060608301526158ba60808301846151c8565b9695505050505050565b6000602082840312156158d657600080fd5b81516119f981615169565b634e487b7160e01b600052603160045260246000fd5b6000825161590981846020870161519c565b919091019291505056fea264697066735822122012e76ba4d0da808151bea4ef7aa0da04c225c198eb459fc24c6e5f51fefc530664736f6c634300080b0033

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

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