ETH Price: $3,478.43 (+1.74%)
Gas: 10 Gwei

Token

RobosNFT (RBT)
 

Overview

Max Total Supply

0 RBT

Holders

814

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 RBT
0xbb0173c0e8d5919e0a6a4066a1c506b16748e2d1
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
RobosNFT

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 999 runs

Other Settings:
default evmVersion
File 1 of 20 : RobosNFT.sol
//SPDX-License-Identifier: MIT
/// @title Robos NFT Contract
/// @author 0xOrphan
/// @notice This contract is used to manage the NFTs of the Robos contract.
/// @dev This contract is used to manage the NFTs of the Robos contract.

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {ERC721Namable} from "./ERC721Namable.sol";
import {ClankToken} from "./ClankToken.sol";

contract RobosNFT is ERC721Namable, Ownable {

    using Counters for Counters.Counter;
    Counters.Counter internal _tokenIdTracker;

/*///////////////////////////////////////////////////////////////////////////////////////////////
                                    Robo Generation struct's
///////////////////////////////////////////////////////////////////////////////////////////////*/  
    struct ManufactureHistory {
        uint256 tokenId;
        uint256 time;
    }

    struct Robo {
        uint8 generation;
    }

    enum Generation {
        GENESIS_ROBO,
        ROBO_JR
    }

/*///////////////////////////////////////////////////////////////////////////////////////////////
                                        Public Vars
///////////////////////////////////////////////////////////////////////////////////////////////*/  
    //Public Strings
    string public baseURI;
    string public baseExtension  = ".json";
    bytes32 private merkleRoot = 0xcbf6af9d264d54292d5676cc3a5c0cefb8f60d05172c5ee5d01d803de1bd97c8;

    // Booleans
    bool public paused = true; 
    bool public preSale = true;
    bool public breeding = false;

    //Public Addresses
    address public constant burn = address(0x000000000000000000000000000000000000dEaD);
    address payable public xurgi;
    //OPENSEA ADDY 
    //      Rinkeby: 0x1E525EEAF261cA41b809884CBDE9DD9E1619573A
    //      Mainnet: 0xa5409ec958c83c3f309868babaca7c86dcb077c1
    address public proxyRegistryAddress = 0x1E525EEAF261cA41b809884CBDE9DD9E1619573A;


    // Minting Variables
    // Whitelist Max per wallet kinda easy to get past tho
    uint16 public nftPerAddress = 2;
    uint16 public bulkBuyLimit;
    uint256 public price;
    uint256 public MANUFACTURE_PRICE = 69 ether;

    //Genesis Robo &RoboJr supply vars
    uint256 public robosSupply; 
    uint256 public roboJrSupply;
    uint256 public roboMaxSupply = 2222;
    uint256 public roboJrMaxSupply =  1111;
	uint256 public nameChangePrice = 25 ether;
	uint256 public BioChangePrice = 25 ether;

    //Set Yield token as RoboToken
    ClankToken public clankToken;
/*///////////////////////////////////////////////////////////////////////////////////////////////
                                        Mappings
///////////////////////////////////////////////////////////////////////////////////////////////*/
    mapping(address => uint256) public addressMintedBalance;
    mapping(address => uint256) public balanceOG;
    mapping(address => uint256) public balanceJR;
    mapping(uint256 => ManufactureHistory) public manufactureHistory;
    mapping(uint256 => Robo) public roboz ;
    mapping(uint256 => uint256) public robosManufacture ;
/*///////////////////////////////////////////////////////////////////////////////////////////////
                                        Events
///////////////////////////////////////////////////////////////////////////////////////////////*/

/*///////////////////////////////////////////////////////////////////////////////////////////////
                                        Constructor
///////////////////////////////////////////////////////////////////////////////////////////////*/
    constructor(
        string memory _name,
        string memory _symbol,
        string memory _initBaseURI,
        string[] memory _names,
        uint256[] memory _ids,
        address payable _xurgi
    ) ERC721Namable(_name, _symbol, _names, _ids) {
        xurgi = _xurgi;
        setBaseURI(_initBaseURI);
        price = 0.1 ether;
        bulkBuyLimit = 4;
        _preMint(30);
    }

/*///////////////////////////////////////////////////////////////////////////////////////////////
                                    Modifier Functions
///////////////////////////////////////////////////////////////////////////////////////////////*/
    modifier unPaused() {
        require(
            paused == false,
            "Contract Paused"
        );
        _;
    }
        
    modifier callerIsUser() {
        require(tx.origin == msg.sender, 'The caller is another contract.');
        _;
    }

    modifier isValidMerkleProof(bytes32[] calldata merkleProof, bytes32 root) {
        require(
            MerkleProof.verify(
                merkleProof,
                root,
                keccak256(abi.encodePacked(msg.sender))
            ),
            "Address does not exist in list"
        );
        _;
    }

    modifier isPresale() {
        require(preSale == true, "Presale not active");
        _;
    }

    modifier notMaxSupply(uint256 amount) {
        require(amount +robosSupply <= roboMaxSupply);
        _;
    }

    modifier isPublicSale() {
        require(!preSale, "Sale not Public");
        _;
    }

    modifier isCorrectPayment(uint256 _price, uint256 amount) {
        uint256 total = price * amount;
        require(
            total == msg.value,
            "Incorrect ETH value sent"
        );
        (bool transferToDaoStatus, ) = xurgi.call{value: total}("");
        require(
            transferToDaoStatus,
            "Address: unable to send value."
        );
        _;
    }
/*///////////////////////////////////////////////////////////////////////////////////////////////
                                    External Functions
///////////////////////////////////////////////////////////////////////////////////////////////*/  

    function manufactureRoboJr(uint256 tokenIdA, uint256 tokenIdB) external unPaused() {
        require(breeding == true, "Breeding disabled");
        require(roboJrSupply <= roboJrMaxSupply, "supply exceeded");

        //requires msgSender to own to tokenIds 
        require(ownerOf(tokenIdA) == msg.sender, "not ownerOf");
        require(ownerOf(tokenIdB) == msg.sender, "not ownerOf");
        //requires tokenIds to be a GENESIS_ROBO
        require(roboz[tokenIdA].generation  == uint256(Generation.GENESIS_ROBO), "Can only breed GenesisRobos");
        require(roboz[tokenIdB].generation  == uint256(Generation.GENESIS_ROBO), "Can only breed GenesisRobos");

        require(robosManufacture[tokenIdA] + 7 days < block.timestamp, "wait 7 days");
        require(robosManufacture[tokenIdB] + 7 days < block.timestamp, "wait 7 days");

        require(clankToken.balanceOf(msg.sender) >= MANUFACTURE_PRICE);
        
        clankToken.burn(msg.sender, MANUFACTURE_PRICE);
    
        roboJrSupply = roboJrSupply + 1;

        return _manufacture(tokenIdA, tokenIdB);
    }

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

    function setMintCost(uint256 newPrice) external onlyOwner {
        price = newPrice;
    }

    function setTxLimit(uint16 _bulkBuyLimit) external onlyOwner {
        bulkBuyLimit = _bulkBuyLimit;
    }

    function setWlTxLimit(uint16 _newNftPerAddress) external onlyOwner {
        nftPerAddress = _newNftPerAddress;
    }

    function enableBreeding() external onlyOwner {
        breeding = true;
    }
    
    function disableBreeding() external onlyOwner {
        breeding = false;
    }

    function changeNamePrice(uint256 _namePrice) external onlyOwner {
        nameChangePrice = _namePrice;
    }

    function changeBioPrice(uint256 _bioPrice) external onlyOwner {
        BioChangePrice = _bioPrice;
    }

    function setBaseURI(string memory _newBaseURI) public onlyOwner {
        baseURI = _newBaseURI;
    }

    function setProxyRegistryAddress(address _proxyRegistryAddress) external onlyOwner {
        proxyRegistryAddress = _proxyRegistryAddress;
    }

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

    function pause(bool _state) external onlyOwner {
        paused = _state;
    }

    function setOnlyPreSale(bool _state) external onlyOwner {
        preSale = _state;
    }

    function setClankToken(address _yield) external onlyOwner {
        clankToken = ClankToken(_yield);
    }

/*///////////////////////////////////////////////////////////////////////////////////////////////
                                    Public Mint/Breed Functions
///////////////////////////////////////////////////////////////////////////////////////////////*/
    function mintGenesisRobo(uint256 amount) 
        public 
        payable 
        unPaused() 
        callerIsUser() 
        isPublicSale() 
        notMaxSupply(amount) 
        isCorrectPayment(price, amount) 
    {
        require(amount <= bulkBuyLimit, "amount exceeds limit");

        robosSupply = robosSupply + amount;
        for (uint256 i = 0; i < amount; i++) {
            clankToken.updateRewardOnMint(msg.sender, 1);
            balanceOG[msg.sender]++;
            _mintByGeneration(_msgSender(), Generation.GENESIS_ROBO);
        }
    }

    function whitelistMint(bytes32[] calldata proof, uint256 amount) 
        public
        payable 
        unPaused() 
        callerIsUser() 
        isPresale() 
        isValidMerkleProof(proof, merkleRoot) 
        notMaxSupply(amount) 
        isCorrectPayment(price, amount) 
    {
        uint256 mintedCount = addressMintedBalance[msg.sender];
        require(mintedCount + amount <= nftPerAddress, "max per address");

        robosSupply = robosSupply + amount;
        for (uint256 i = 0; i < amount; i++) {
            clankToken.updateRewardOnMint(msg.sender, 1);
            balanceOG[msg.sender]++;
            addressMintedBalance[msg.sender]++;
            _mintByGeneration(_msgSender(), Generation.GENESIS_ROBO);
        }
    }
    
    function withdraw() public onlyOwner {
        (bool success, ) = payable(msg.sender).call{value: address(this).balance}("");
        require(success);
    }
/*///////////////////////////////////////////////////////////////////////////////////////////////
                                    Public View Functions
///////////////////////////////////////////////////////////////////////////////////////////////*/
    function changeName(uint256 tokenId, string memory newName) public override {
        clankToken.burn(msg.sender, nameChangePrice);
        super.changeName(tokenId, newName);
    }

    function changeBio(uint256 tokenId, string memory _bio) public override {
        clankToken.burn(msg.sender, BioChangePrice);
        super.changeBio(tokenId, _bio);
    }
    
   
    function generationOf(uint256 tokenId) public view returns(uint256 generation) {
        return roboz[tokenId].generation;
    }

    function lastTokenId() public view returns(uint256 tokenId) {
        return _tokenIdTracker.current();
    }

    function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
        require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token");
        string memory tokenId = toString(_tokenId);
        string memory currentBaseURI = _baseURI();
        string memory  generationPath = "/";
        uint256 generation = roboz[_tokenId].generation;
        if (generation == 0) {
            generationPath = "genesisRobo";
        } else if (generation == 1) {
            generationPath = "roboJr";
        }
        return bytes(currentBaseURI).length > 0
        ? string(abi.encodePacked(currentBaseURI, generationPath, tokenId, baseExtension)) : "";    
    }

    function transferFrom(
        address from, 
        address to, 
        uint256 tokenId
    ) public override {
        clankToken.updateReward(from, to, tokenId);
        if (tokenId < 2223) {
            balanceOG[from]--;
            balanceOG[to]++;
        }
        ERC721.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to, 
        uint256 tokenId, 
        bytes memory _data
    ) public override {
        clankToken.updateReward(from, to, tokenId);
        if (tokenId < 2223) {
            balanceOG[from]--;
            balanceOG[to]++;
        }
        ERC721.safeTransferFrom(from, to, tokenId, _data);
    } 
        
    function isApprovedForAll(address _owner, address operator) public view override returns (bool) {
        OpenSeaProxyRegistry proxyRegistry = OpenSeaProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(_owner)) == operator) return true;
        return super.isApprovedForAll(_owner, operator);
    }
/*///////////////////////////////////////////////////////////////////////////////////////////////
                                    Internal functions
///////////////////////////////////////////////////////////////////////////////////////////////*/
    function _baseURI() internal view virtual override returns(string memory) {
        return baseURI;
    }
    
/*///////////////////////////////////////////////////////////////////////////////////////////////
                                    private functions
///////////////////////////////////////////////////////////////////////////////////////////////*/ 
    function _preMint(uint256 amount) private {
        robosSupply = robosSupply + amount;
        for (uint256 i = 0; i < amount; i++) {
            balanceOG[msg.sender]++;
            _mintByGeneration(xurgi, Generation.GENESIS_ROBO);
        }
    }
    
    function _mintByGeneration(address to, Generation generation) private {
        uint8 _generation = uint8(generation);
        _tokenIdTracker.increment();
        uint256 tokenId = _tokenIdTracker.current();
        roboz[tokenId].generation = _generation;

        _safeMint(to, tokenId);
    }

    function _manufacture(uint256 tokenIdA, uint256 tokenIdB) private {
        robosManufacture[tokenIdA] = block.timestamp;
        robosManufacture[tokenIdB] = block.timestamp;

        manufactureHistory[tokenIdA].tokenId = tokenIdA;
        manufactureHistory[tokenIdA].time = block.timestamp;

        manufactureHistory[tokenIdB].tokenId = tokenIdB;
        manufactureHistory[tokenIdB].time = block.timestamp;

    
        balanceJR[msg.sender]++;
        _mintByGeneration(_msgSender(), Generation.ROBO_JR);
    }

    function toString(uint256 value) private pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT license
        // 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);
    }

}

contract OwnableDelegateProxy { }
contract OpenSeaProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

File 2 of 20 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 20 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 8 of 20 : ERC721Namable.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

contract ERC721Namable is ERC721 {

	mapping(uint256 => string) public bio;

	// Mapping from token ID to name
	mapping (uint256 => string) private _tokenName;

	// Mapping if certain name string has already been reserved
	mapping (string => bool) private _nameReserved;

	event NameChange (uint256 indexed tokenId, string newName);
	event BioChange (uint256 indexed tokenId, string bio);

	constructor(string memory _name, string memory _symbol, string[] memory _names, uint256[] memory _ids) ERC721(_name, _symbol) {
		for (uint256 i = 0; i < _ids.length; i++)
		{
			toggleReserveName(_names[i], true);
			_tokenName[_ids[i]] = _names[i];
			emit NameChange(_ids[i], _names[i]);
		}
	}

	function changeBio(uint256 _tokenId, string memory _bio) public virtual {
		address owner = ownerOf(_tokenId);
		require(_msgSender() == owner, "ERC721: caller is not the owner");

		bio[_tokenId] = _bio;
		emit BioChange(_tokenId, _bio); 
	}

	function changeName(uint256 tokenId, string memory newName) public virtual {
		address owner = ownerOf(tokenId);

		require(_msgSender() == owner, "ERC721: caller is not the owner");
		require(validateName(newName) == true, "Not a valid new name");
		require(sha256(bytes(newName)) != sha256(bytes(_tokenName[tokenId])), "New name is same as the current one");
		require(isNameReserved(newName) == false, "Name already reserved");

		// If already named, dereserve old name
		if (bytes(_tokenName[tokenId]).length > 0) {
			toggleReserveName(_tokenName[tokenId], false);
		}
		toggleReserveName(newName, true);
		_tokenName[tokenId] = newName;
		emit NameChange(tokenId, newName);
	}

	/**
	 * @dev Reserves the name if isReserve is set to true, de-reserves if set to false
	 */
	function toggleReserveName(string memory str, bool isReserve) internal {
		_nameReserved[toLower(str)] = isReserve;
	}

	/**
	 * @dev Returns name of the NFT at index.
	 */
	function tokenNameByIndex(uint256 index) public view returns (string memory) {
		return _tokenName[index];
	}

	/**
	 * @dev Returns if the name has been reserved.
	 */
	function isNameReserved(string memory nameString) public view returns (bool) {
		return _nameReserved[toLower(nameString)];
	}

	function validateName(string memory str) public pure returns (bool){
		bytes memory b = bytes(str);
		if(b.length < 1) return false;
		if(b.length > 25) return false; // Cannot be longer than 25 characters
		if(b[0] == 0x20) return false; // Leading space
		if (b[b.length - 1] == 0x20) return false; // Trailing space

		bytes1 lastChar = b[0];

		for(uint i; i<b.length; i++){
			bytes1 char = b[i];

			if (char == 0x20 && lastChar == 0x20) return false; // Cannot contain continous spaces

			if(
				!(char >= 0x30 && char <= 0x39) && //9-0
				!(char >= 0x41 && char <= 0x5A) && //A-Z
				!(char >= 0x61 && char <= 0x7A) && //a-z
				!(char == 0x20) //space
			)
				return false;

			lastChar = char;
		}

		return true;
	}

	 /**
	 * @dev Converts the string to lowercase
	 */
	function toLower(string memory str) public pure returns (string memory){
		bytes memory bStr = bytes(str);
		bytes memory bLower = new bytes(bStr.length);
		for (uint i = 0; i < bStr.length; i++) {
			// Uppercase character
			if ((uint8(bStr[i]) >= 65) && (uint8(bStr[i]) <= 90)) {
				bLower[i] = bytes1(uint8(bStr[i]) + 32);
			} else {
				bLower[i] = bStr[i];
			}
		}
		return string(bLower);
	}
}

File 9 of 20 : ClankToken.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;


// import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
// import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import {ERC20} from "@rari-capital/solmate/src/tokens/ERC20.sol";
import {IRobos} from "./Interface/IRobos.sol";


contract ClankToken is ERC20("Clank Token", "CLANK", 18) {

/*/////////////////////////////////////////////////////////////
                      Public Vars
/////////////////////////////////////////////////////////////*/
    address public robosTeam;
    uint256 constant public LEGENDARY_RATE = 3 ether;
    uint256 constant public BASE_RATE = 2 ether;
    uint256 constant public JR_BASE_RATE = 1 ether;
    //INITAL_ISSUANCE off of mintint a ROBO
    uint256 constant public INITAL_ISSUANCE = 10 ether;
    /// End time for Base rate yeild token (UNIX timestamp)
    /// END time = Sun Jan 30 2033 01:01:01 GMT-0700 (Mountain Standard Time) - in 11 years
    uint256 constant public END = 2003835600;
    uint256 private constant TEAM_SUPPLY = 6_000_000 * 10**18;


/*/////////////////////////////////////////////////////////////
                        Mappings
/////////////////////////////////////////////////////////////*/
    
    mapping(address => uint256) public rewards;
    mapping(address => uint256) public lastUpdate;

    IRobos public robosContract;

/*/////////////////////////////////////////////////////////////
                        Events
/////////////////////////////////////////////////////////////*/

    event RewardPaid(address indexed user, uint256 reward);

/*/////////////////////////////////////////////////////////////
                      Constructor
/////////////////////////////////////////////////////////////*/

    constructor(address _robos, address _robosTeam) {
        robosContract = IRobos(_robos);
        robosTeam = _robosTeam;
        _mint(robosTeam, TEAM_SUPPLY);
    }

/*/////////////////////////////////////////////////////////////
                  Modifier Functions
/////////////////////////////////////////////////////////////*/

    modifier onlyRobosContract() {
        require(
            msg.sender == address(robosContract),
            "Only Robos contract can call this."
        );
        _;
    }

/*/////////////////////////////////////////////////////////////
                    External Functions
/////////////////////////////////////////////////////////////*/

    function updateRewardOnMint(address _user, uint256 _amount) external onlyRobosContract() {
      uint256 time = min(block.timestamp, END);
      uint256 timerUser = lastUpdate[_user];
      if (timerUser > 0 ) {
          rewards[_user] = rewards[_user] + (robosContract.balanceOG(_user) * (BASE_RATE * (time - timerUser))) / 86400 + (_amount * INITAL_ISSUANCE);
      } else {
          rewards[_user] = rewards[_user] + (_amount * INITAL_ISSUANCE);
          lastUpdate[_user] = time;
      }
    }

    function updateReward(address _from, address _to, uint256 _tokenId) external onlyRobosContract() {
        //Lendary Rewards
        if (_tokenId < 16) {
            uint256 time = min(block.timestamp, END);
            uint256 timerFrom = lastUpdate[_from];

            if (timerFrom > 0) {
                rewards[_from] += robosContract.balanceOG(_from) * (LEGENDARY_RATE * (time - timerFrom)) / 86400; 
            }

            if (timerFrom != END) {
                lastUpdate[_from] = time;
            }
                        
            if (_to != address(0)) {
                uint256 timerTo = lastUpdate[_to];

                if (timerTo > 0) {
                    rewards[_to] += robosContract.balanceOG(_to) * (LEGENDARY_RATE * (time - timerTo)) / 86400;
                }

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

        //Genesis Rewards
        if (_tokenId > 16 && _tokenId < 2223) {
            uint256 time = min(block.timestamp, END);
            uint256 timerFrom = lastUpdate[_from];

            if (timerFrom > 0) {
                rewards[_from] += robosContract.balanceOG(_from) * (BASE_RATE * (time - timerFrom)) / 86400;
            }

            if (timerFrom != END) {
                lastUpdate[_from] = time;
            } 

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

                if (timerTo > 0) {
                    rewards[_to] += robosContract.balanceOG(_to) * (BASE_RATE * (time - timerTo)) / 86400;
                }

                if (timerTo != END) {
                    lastUpdate[_to] = time;
                }
            }
        }
        // JR rewards
        if (_tokenId >= 2223) {
            uint256 time = min(block.timestamp, END);
            uint256 timerFrom = lastUpdate[_from];

            if (timerFrom > 0) {
                rewards[_from] += robosContract.jrCount(_from) * (JR_BASE_RATE * (time - timerFrom)) / 86400;
            }

            if (timerFrom != END) {
                lastUpdate[_from] = time;
            }

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

                if (timerTo > 0) {
                    rewards[_to] += robosContract.jrCount(_to) * (JR_BASE_RATE * (time - timerTo)) / 86400;
                }

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

        }
    }


    function getReward(address _to) external onlyRobosContract() {
      uint256 reward = rewards[_to];
      if (reward > 0) {
        rewards[_to] = 0;
        _mint(_to, reward);
        emit RewardPaid(_to, reward);
      }
    }

    function burn(address _from, uint256 _amount) external onlyRobosContract() {
      _burn(_from, _amount);
    }
     

    function getTotalClaimable(address _user) external view returns(uint256) {
        uint256 time = min(block.timestamp, END);
        uint256 pending = robosContract.balanceOG(_user) * (BASE_RATE * (time - lastUpdate[_user])) / 86400;
        uint256 legendaryPending = robosContract.balanceOG(_user) * (LEGENDARY_RATE * (time - lastUpdate[_user])) / 86400;
        uint256 jrPending = robosContract.jrCount(_user) * (JR_BASE_RATE * (time - lastUpdate[_user])) / 86400;
        return rewards[_user] + (pending + jrPending + legendaryPending);
    }
    
/*/////////////////////////////////////////////////////////////
                  Internal Functions
/////////////////////////////////////////////////////////////*/

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

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

pragma solidity ^0.8.0;

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

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

File 11 of 20 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 12 of 20 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 15 of 20 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 18 of 20 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 19 of 20 : ERC20.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
abstract contract ERC20 {
    /*///////////////////////////////////////////////////////////////
                                  EVENTS
    //////////////////////////////////////////////////////////////*/

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

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

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

    string public name;

    string public symbol;

    uint8 public immutable decimals;

    /*///////////////////////////////////////////////////////////////
                              ERC20 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

    mapping(address => mapping(address => uint256)) public allowance;

    /*///////////////////////////////////////////////////////////////
                           EIP-2612 STORAGE
    //////////////////////////////////////////////////////////////*/

    bytes32 public constant PERMIT_TYPEHASH =
        keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");

    uint256 internal immutable INITIAL_CHAIN_ID;

    bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;

    mapping(address => uint256) public nonces;

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

    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;

        INITIAL_CHAIN_ID = block.chainid;
        INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
    }

    /*///////////////////////////////////////////////////////////////
                              ERC20 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 amount) public virtual returns (bool) {
        allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    function transfer(address to, uint256 amount) public virtual returns (bool) {
        balanceOf[msg.sender] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(msg.sender, to, amount);

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        if (allowance[from][msg.sender] != type(uint256).max) {
            allowance[from][msg.sender] -= amount;
        }

        balanceOf[from] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(from, to, amount);

        return true;
    }

    /*///////////////////////////////////////////////////////////////
                              EIP-2612 LOGIC
    //////////////////////////////////////////////////////////////*/

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");

        // Unchecked because the only math done is incrementing
        // the owner's nonce which cannot realistically overflow.
        unchecked {
            bytes32 digest = keccak256(
                abi.encodePacked(
                    "\x19\x01",
                    DOMAIN_SEPARATOR(),
                    keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline))
                )
            );

            address recoveredAddress = ecrecover(digest, v, r, s);
            require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_PERMIT_SIGNATURE");

            allowance[recoveredAddress][spender] = value;
        }

        emit Approval(owner, spender, value);
    }

    function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
        return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
    }

    function computeDomainSeparator() internal view virtual returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                    keccak256(bytes(name)),
                    keccak256(bytes("1")),
                    block.chainid,
                    address(this)
                )
            );
    }

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

    function _mint(address to, uint256 amount) internal virtual {
        totalSupply += amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

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

    function _burn(address from, uint256 amount) internal virtual {
        balanceOf[from] -= amount;

        // Cannot underflow because a user's balance
        // will never be larger than the total supply.
        unchecked {
            totalSupply -= amount;
        }

        emit Transfer(from, address(0), amount);
    }
}

File 20 of 20 : IRobos.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IRobos {
    function balanceOG(address _user) external view returns(uint256);

    function jrCount(address _user) external view returns(uint256);

    function generationOf(uint256 tokenId) external view returns (uint256 gene);

    function lastTokenId() external view returns (uint256 tokenId);

    function setMintCost(uint256 newMintCost) external;

    function setTxLimit(uint256 _bulkBuyLimit) external;

}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string[]","name":"_names","type":"string[]"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"address payable","name":"_xurgi","type":"address"}],"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":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"bio","type":"string"}],"name":"BioChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"newName","type":"string"}],"name":"NameChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BioChangePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANUFACTURE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalance","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":"","type":"address"}],"name":"balanceJR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bio","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"breeding","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bulkBuyLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burn","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_bio","type":"string"}],"name":"changeBio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bioPrice","type":"uint256"}],"name":"changeBioPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"newName","type":"string"}],"name":"changeName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_namePrice","type":"uint256"}],"name":"changeNamePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"clankToken","outputs":[{"internalType":"contract ClankToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableBreeding","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableBreeding","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"generationOf","outputs":[{"internalType":"uint256","name":"generation","type":"uint256"}],"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":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"nameString","type":"string"}],"name":"isNameReserved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTokenId","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"manufactureHistory","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"time","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIdA","type":"uint256"},{"internalType":"uint256","name":"tokenIdB","type":"uint256"}],"name":"manufactureRoboJr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintGenesisRobo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nameChangePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPerAddress","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"roboJrMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roboJrSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roboMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"robosManufacture","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"robosSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"roboz","outputs":[{"internalType":"uint8","name":"generation","type":"uint8"}],"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":"address","name":"_yield","type":"address"}],"name":"setClankToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setOnlyPreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"name":"setProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_bulkBuyLimit","type":"uint16"}],"name":"setTxLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setWLMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_newNftPerAddress","type":"uint16"}],"name":"setWlTxLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"toLower","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenNameByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"string","name":"str","type":"string"}],"name":"validateName","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"xurgi","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c06040526005608081905264173539b7b760d91b60a09081526200002891600c9190620009b1565b507fcbf6af9d264d54292d5676cc3a5c0cefb8f60d05172c5ee5d01d803de1bd97c8600d55600e8054610100600160ff199092169190911761ff0019161762ff000019169055600f8054731e525eeaf261ca41b809884cbde9dd9e1619573a6001600160a01b03199091161761ffff60a01b1916600160a11b1790556803bd913e6c1df400006011556108ae60145561045760155568015af1d78b58c400006016819055601755348015620000dc57600080fd5b50604051620057b4380380620057b4833981016040819052620000ff9162000bdb565b85858484838381600090805190602001906200011d929190620009b1565b50805162000133906001906020840190620009b1565b50505060005b815181101562000297576200017e8382815181106200016857634e487b7160e01b600052603260045260246000fd5b602002602001015160016200031d60201b60201c565b8281815181106200019f57634e487b7160e01b600052603260045260246000fd5b602002602001015160076000848481518110620001cc57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000209080519060200190620001f7929190620009b1565b508181815181106200021957634e487b7160e01b600052603260045260246000fd5b60200260200101517f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b8483815181106200026357634e487b7160e01b600052603260045260246000fd5b60200260200101516040516200027a919062000d52565b60405180910390a2806200028e8162000f5b565b91505062000139565b5050505050620002b6620002b06200035e60201b60201c565b62000362565b600e80546301000000600160b81b03191663010000006001600160a01b03841602179055620002e584620003b4565b67016345785d8a0000601055600f805461ffff60b01b1916600160b21b17905562000311601e6200041c565b50505050505062000fa5565b8060086200032b8462000492565b6040516200033a919062000cf5565b908152604051908190036020019020805491151560ff199092169190911790555050565b3390565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620003be6200035e565b6001600160a01b0316620003d162000669565b6001600160a01b031614620004035760405162461bcd60e51b8152600401620003fa9062000e25565b60405180910390fd5b80516200041890600b906020840190620009b1565b5050565b806012546200042c919062000eac565b60125560005b818110156200041857336000908152601a60205260408120805491620004588362000f5b565b9091555050600e546200047d90630100000090046001600160a01b0316600062000678565b80620004898162000f5b565b91505062000432565b60606000829050600081516001600160401b03811115620004c357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015620004ee576020820181803683370190505b50905060005b82518110156200065f5760418382815181106200052157634e487b7160e01b600052603260045260246000fd5b016020015160f81c10801590620005615750605a8382815181106200055657634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b15620005e5578281815181106200058857634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b60f81c6020620005a4919062000ec7565b60f81b828281518110620005c857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506200064a565b8281815181106200060657634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b8282815181106200063257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053505b80620006568162000f5b565b915050620004f4565b509150505b919050565b6009546001600160a01b031690565b60008160018111156200069b57634e487b7160e01b600052602160045260246000fd5b9050620006b4600a620006fc60201b620029801760201c565b6000620006cd600a6200070560201b620029891760201c565b6000818152601d60205260409020805460ff191660ff85161790559050620006f6848262000709565b50505050565b80546001019055565b5490565b620004188282604051806020016040528060008152506200072b60201b60201c565b6200073783836200076a565b62000746600084848462000855565b620007655760405162461bcd60e51b8152600401620003fa9062000d67565b505050565b6001600160a01b038216620007935760405162461bcd60e51b8152600401620003fa9062000df0565b6200079e816200098e565b15620007be5760405162461bcd60e51b8152600401620003fa9062000db9565b620007cc6000838362000765565b6001600160a01b0382166000908152600360205260408120805460019290620007f790849062000eac565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600062000876846001600160a01b0316620009ab60201b6200298d1760201c565b1562000982576001600160a01b03841663150b7a02620008956200035e565b8786866040518563ffffffff1660e01b8152600401620008b9949392919062000d13565b602060405180830381600087803b158015620008d457600080fd5b505af192505050801562000907575060408051601f3d908101601f19168201909252620009049181019062000baa565b60015b62000967573d80801562000938576040519150601f19603f3d011682016040523d82523d6000602084013e6200093d565b606091505b5080516200095f5760405162461bcd60e51b8152600401620003fa9062000d67565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062000986565b5060015b949350505050565b6000908152600260205260409020546001600160a01b0316151590565b3b151590565b828054620009bf9062000f1e565b90600052602060002090601f016020900481019282620009e3576000855562000a2e565b82601f10620009fe57805160ff191683800117855562000a2e565b8280016001018555821562000a2e579182015b8281111562000a2e57825182559160200191906001019062000a11565b5062000a3c92915062000a40565b5090565b5b8082111562000a3c576000815560010162000a41565b80516001600160a01b03811681146200066457600080fd5b600082601f83011262000a80578081fd5b8151602062000a9962000a938362000e86565b62000e5a565b82815281810190858301855b8581101562000ad25762000abf898684518b010162000b40565b8452928401929084019060010162000aa5565b5090979650505050505050565b600082601f83011262000af0578081fd5b8151602062000b0362000a938362000e86565b828152818101908583018385028701840188101562000b20578586fd5b855b8581101562000ad25781518452928401929084019060010162000b22565b600082601f83011262000b51578081fd5b81516001600160401b0381111562000b6d5762000b6d62000f8f565b62000b82601f8201601f191660200162000e5a565b81815284602083860101111562000b97578283fd5b6200098682602083016020870162000eef565b60006020828403121562000bbc578081fd5b81516001600160e01b03198116811462000bd4578182fd5b9392505050565b60008060008060008060c0878903121562000bf4578182fd5b86516001600160401b038082111562000c0b578384fd5b62000c198a838b0162000b40565b9750602089015191508082111562000c2f578384fd5b62000c3d8a838b0162000b40565b9650604089015191508082111562000c53578384fd5b62000c618a838b0162000b40565b9550606089015191508082111562000c77578384fd5b62000c858a838b0162000a6f565b9450608089015191508082111562000c9b578384fd5b5062000caa89828a0162000adf565b92505062000cbb60a0880162000a57565b90509295509295509295565b6000815180845262000ce181602086016020860162000eef565b601f01601f19169290920160200192915050565b6000825162000d0981846020870162000eef565b9190910192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009062000d489083018462000cc7565b9695505050505050565b60006020825262000bd4602083018462000cc7565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6040518181016001600160401b038111828210171562000e7e5762000e7e62000f8f565b604052919050565b60006001600160401b0382111562000ea25762000ea262000f8f565b5060209081020190565b6000821982111562000ec25762000ec262000f79565b500190565b600060ff821660ff84168060ff0382111562000ee75762000ee762000f79565b019392505050565b60005b8381101562000f0c57818101518382015260200162000ef2565b83811115620006f65750506000910152565b60028104600182168062000f3357607f821691505b6020821081141562000f5557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000f725762000f7262000f79565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6147ff8062000fb56000396000f3fe60806040526004361061042f5760003560e01c80637d44fd1111610228578063b88d4fde11610128578063d395ef05116100bb578063e985e9c51161008a578063ee90d55e1161006f578063ee90d55e14610b83578063f2fde38b14610b98578063f84ddf0b14610bb85761042f565b8063e985e9c514610b43578063ebcc512314610b635761042f565b8063d395ef0514610ace578063d7082d6b14610aee578063df56aba314610b0e578063e0bb12da14610b235761042f565b8063c8eb144a116100f7578063c8eb144a14610a4c578063cc371bf314610a79578063cd7c032614610a99578063d26ea6c014610aae5761042f565b8063b88d4fde146109d7578063c39cbef1146109f7578063c668286214610a17578063c87b56dd14610a2c5761042f565b8063939ec094116101bb5780639ffdb65a1161018a578063a22cb4651161016f578063a22cb4651461098f578063a49bccca146109af578063b2b95f8b146109c45761042f565b80639ffdb65a1461095a578063a035b1fe1461097a5761042f565b8063939ec094146108f05780639416b4231461090557806395d89b41146109255780639da495b31461093a5761042f565b80638ac6552f116101f75780638ac6552f146108915780638d02d86c146108a65780638da5cb5b146108c65780638edb6fca146108db5761042f565b80637d44fd111461081c5780638545f4ea1461083c5780638797e3871461085c57806387d596eb146108715761042f565b80633ccfd60b116103335780635a7adf7f116102c65780636d5224181161029557806370a082311161027a57806370a08231146107d2578063715018a6146107f25780637ca838c3146108075761042f565b80636d522418146107925780636f05e45d146107b25761042f565b80635a7adf7f146107335780635c975abb146107485780636352211e1461075d5780636c0360eb1461077d5761042f565b806345ca77381161030257806345ca7738146106c957806345ffb25b146106de5780634d426528146106f357806355f804b3146107135761042f565b80633ccfd60b1461066a5780633d18b9121461067f57806342842e0e1461069457806344df8e70146106b45761042f565b806318cae269116103c657806327a67218116103955780632904e6d91161037a5780632904e6d91461061757806336033deb1461062a57806338712d8d1461064a5761042f565b806327a67218146105e257806328556bbb146106025761042f565b806318cae269146105525780631cec396f146105725780632032fd3c146105a057806323b872dd146105c25761042f565b8063081812fc11610402578063081812fc146104d0578063095ea7b3146104f05780630a1a6f591461051057806315b56d10146105325761042f565b806301ffc9a71461043457806302329a291461046a57806306fdde031461048c57806307ad0297146104ae575b600080fd5b34801561044057600080fd5b5061045461044f3660046139ac565b610bcd565b6040516104619190613cce565b60405180910390f35b34801561047657600080fd5b5061048a610485366004613962565b610c47565b005b34801561049857600080fd5b506104a1610ca2565b6040516104619190613cd9565b3480156104ba57600080fd5b506104c3610d34565b6040516104619190613c4b565b3480156104dc57600080fd5b506104c36104eb36600461397c565b610d4a565b3480156104fc57600080fd5b5061048a61050b3660046138c2565b610d8d565b34801561051c57600080fd5b50610525610e25565b6040516104619190614611565b34801561053e57600080fd5b5061045461054d366004613a00565b610e2b565b34801561055e57600080fd5b5061052561056d36600461377d565b610e5f565b34801561057e57600080fd5b5061059261058d36600461397c565b610e71565b604051610461929190613b04565b3480156105ac57600080fd5b506105b5610e8a565b6040516104619190614602565b3480156105ce57600080fd5b5061048a6105dd3660046137d1565b610e9b565b3480156105ee57600080fd5b506105256105fd36600461397c565b610f69565b34801561060e57600080fd5b50610454610f7b565b61048a6106253660046138ed565b610f8a565b34801561063657600080fd5b506104a161064536600461397c565b61128f565b34801561065657600080fd5b5061052561066536600461377d565b611329565b34801561067657600080fd5b5061048a61133b565b34801561068b57600080fd5b5061048a6113e6565b3480156106a057600080fd5b5061048a6106af3660046137d1565b6114ed565b3480156106c057600080fd5b506104c3611508565b3480156106d557600080fd5b5061052561150e565b3480156106ea57600080fd5b50610525611514565b3480156106ff57600080fd5b5061048a61070e366004613a55565b61151a565b34801561071f57600080fd5b5061048a61072e366004613a00565b61158e565b34801561073f57600080fd5b506104546115e0565b34801561075457600080fd5b506104546115ee565b34801561076957600080fd5b506104c361077836600461397c565b6115f7565b34801561078957600080fd5b506104a161162c565b34801561079e57600080fd5b506104a16107ad36600461397c565b611639565b3480156107be57600080fd5b5061048a6107cd366004613a33565b6116db565b3480156107de57600080fd5b506105256107ed36600461377d565b611756565b3480156107fe57600080fd5b5061048a61179a565b34801561081357600080fd5b506104c36117e5565b34801561082857600080fd5b5061048a61083736600461397c565b6117f4565b34801561084857600080fd5b5061048a61085736600461397c565b611838565b34801561086857600080fd5b5061048a61187c565b34801561087d57600080fd5b5061048a61088c36600461377d565b6118ce565b34801561089d57600080fd5b5061048a61192f565b3480156108b257600080fd5b5061048a6108c136600461397c565b61197c565b3480156108d257600080fd5b506104c36119c0565b3480156108e757600080fd5b506105256119cf565b3480156108fc57600080fd5b506105256119d5565b34801561091157600080fd5b506104a1610920366004613a00565b6119db565b34801561093157600080fd5b506104a1611ba0565b34801561094657600080fd5b5061052561095536600461377d565b611baf565b34801561096657600080fd5b50610454610975366004613a00565b611bc1565b34801561098657600080fd5b50610525611e9a565b34801561099b57600080fd5b5061048a6109aa36600461388e565b611ea0565b3480156109bb57600080fd5b506105b5611eb2565b61048a6109d236600461397c565b611ec3565b3480156109e357600080fd5b5061048a6109f2366004613811565b6120f8565b348015610a0357600080fd5b5061048a610a12366004613a55565b6121c7565b348015610a2357600080fd5b506104a1612237565b348015610a3857600080fd5b506104a1610a4736600461397c565b612244565b348015610a5857600080fd5b50610a6c610a6736600461397c565b6123a3565b604051610461919061461a565b348015610a8557600080fd5b5061048a610a9436600461397c565b6123b8565b348015610aa557600080fd5b506104c36123fc565b348015610aba57600080fd5b5061048a610ac936600461377d565b61240b565b348015610ada57600080fd5b5061048a610ae9366004613a9a565b61246c565b348015610afa57600080fd5b5061048a610b09366004613962565b61273d565b348015610b1a57600080fd5b50610525612796565b348015610b2f57600080fd5b50610525610b3e36600461397c565b61279c565b348015610b4f57600080fd5b50610454610b5e366004613799565b6127b1565b348015610b6f57600080fd5b5061048a610b7e366004613a33565b612880565b348015610b8f57600080fd5b506105256128fb565b348015610ba457600080fd5b5061048a610bb336600461377d565b612901565b348015610bc457600080fd5b5061052561296f565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610c3057506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c3f5750610c3f82612993565b90505b919050565b610c4f6129c5565b6001600160a01b0316610c606119c0565b6001600160a01b031614610c8f5760405162461bcd60e51b8152600401610c86906142e9565b60405180910390fd5b600e805460ff1916911515919091179055565b606060008054610cb1906146f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610cdd906146f2565b8015610d2a5780601f10610cff57610100808354040283529160200191610d2a565b820191906000526020600020905b815481529060010190602001808311610d0d57829003601f168201915b5050505050905090565b600e54630100000090046001600160a01b031681565b6000610d55826129c9565b610d715760405162461bcd60e51b8152600401610c8690614266565b506000908152600460205260409020546001600160a01b031690565b6000610d98826115f7565b9050806001600160a01b0316836001600160a01b03161415610dcc5760405162461bcd60e51b8152600401610c869061446c565b806001600160a01b0316610dde6129c5565b6001600160a01b03161480610dfa5750610dfa81610b5e6129c5565b610e165760405162461bcd60e51b8152600401610c8690614075565b610e2083836129e6565b505050565b60145481565b60006008610e38836119db565b604051610e459190613b12565b9081526040519081900360200190205460ff169050919050565b60196020526000908152604090205481565b601c602052600090815260409020805460019091015482565b600f54600160a01b900461ffff1681565b60185460405163164746fd60e11b81526001600160a01b0390911690632c8e8dfa90610ecf90869086908690600401613c5f565b600060405180830381600087803b158015610ee957600080fd5b505af1158015610efd573d6000803e3d6000fd5b505050506108af811015610f5e576001600160a01b0383166000908152601a60205260408120805491610f2f836146db565b90915550506001600160a01b0382166000908152601a60205260408120805491610f588361472d565b91905055505b610e20838383612a54565b601e6020526000908152604090205481565b600e5462010000900460ff1681565b600e5460ff1615610fad5760405162461bcd60e51b8152600401610c8690614594565b323314610fcc5760405162461bcd60e51b8152600401610c8690613d5a565b600e5460ff610100909104161515600114610ff95760405162461bcd60e51b8152600401610c8690613f84565b8282600d546110628383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060405185925061104791503390602001613ae7565b60405160208183030381529060405280519060200120612a8c565b61107e5760405162461bcd60e51b8152600401610c8690614007565b83601454601254826110909190614628565b111561109b57600080fd5b6010548560006110ab8284614679565b90503481146110cc5760405162461bcd60e51b8152600401610c869061455d565b600e54604051600091630100000090046001600160a01b03169083906110f190613c48565b60006040518083038185875af1925050503d806000811461112e576040519150601f19603f3d011682016040523d82523d6000602084013e611133565b606091505b50509050806111545760405162461bcd60e51b8152600401610c8690613e82565b33600090815260196020526040902054600f54600160a01b900461ffff1661117c8b83614628565b111561119a5760405162461bcd60e51b8152600401610c869061418c565b896012546111a89190614628565b60125560005b8a8110156112805760185460405163cc240c0160e01b81526001600160a01b039091169063cc240c01906111e9903390600190600401613cb5565b600060405180830381600087803b15801561120357600080fd5b505af1158015611217573d6000803e3d6000fd5b5050336000908152601a602052604081208054935091506112378361472d565b90915550503360009081526019602052604081208054916112578361472d565b919050555061126e6112676129c5565b6000612aa2565b806112788161472d565b9150506111ae565b50505050505050505050505050565b600660205260009081526040902080546112a8906146f2565b80601f01602080910402602001604051908101604052809291908181526020018280546112d4906146f2565b80156113215780601f106112f657610100808354040283529160200191611321565b820191906000526020600020905b81548152906001019060200180831161130457829003601f168201915b505050505081565b601a6020526000908152604090205481565b6113436129c5565b6001600160a01b03166113546119c0565b6001600160a01b03161461137a5760405162461bcd60e51b8152600401610c86906142e9565b6000336001600160a01b03164760405161139390613c48565b60006040518083038185875af1925050503d80600081146113d0576040519150601f19603f3d011682016040523d82523d6000602084013e6113d5565b606091505b50509050806113e357600080fd5b50565b600e5460ff16156114095760405162461bcd60e51b8152600401610c8690614594565b60185460405163164746fd60e11b81526001600160a01b0390911690632c8e8dfa9061143e9033906000908190600401613c5f565b600060405180830381600087803b15801561145857600080fd5b505af115801561146c573d6000803e3d6000fd5b50506018546040517fc00007b00000000000000000000000000000000000000000000000000000000081526001600160a01b03909116925063c00007b091506114b9903390600401613c4b565b600060405180830381600087803b1580156114d357600080fd5b505af11580156114e7573d6000803e3d6000fd5b50505050565b610e20838383604051806020016040528060008152506120f8565b61dead81565b60165481565b60115481565b601854601754604051632770a7eb60e21b81526001600160a01b0390921691639dc29fac9161154e91339190600401613cb5565b600060405180830381600087803b15801561156857600080fd5b505af115801561157c573d6000803e3d6000fd5b5050505061158a8282612b03565b5050565b6115966129c5565b6001600160a01b03166115a76119c0565b6001600160a01b0316146115cd5760405162461bcd60e51b8152600401610c86906142e9565b805161158a90600b90602084019061363e565b600e54610100900460ff1681565b600e5460ff1681565b6000818152600260205260408120546001600160a01b031680610c3f5760405162461bcd60e51b8152600401610c869061412f565b600b80546112a8906146f2565b6000818152600760205260409020805460609190611656906146f2565b80601f0160208091040260200160405190810160405280929190818152602001828054611682906146f2565b80156116cf5780601f106116a4576101008083540402835291602001916116cf565b820191906000526020600020905b8154815290600101906020018083116116b257829003601f168201915b50505050509050919050565b6116e36129c5565b6001600160a01b03166116f46119c0565b6001600160a01b03161461171a5760405162461bcd60e51b8152600401610c86906142e9565b600f805461ffff909216600160b01b027fffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b60006001600160a01b03821661177e5760405162461bcd60e51b8152600401610c86906140d2565b506001600160a01b031660009081526003602052604090205490565b6117a26129c5565b6001600160a01b03166117b36119c0565b6001600160a01b0316146117d95760405162461bcd60e51b8152600401610c86906142e9565b6117e36000612ba5565b565b6018546001600160a01b031681565b6117fc6129c5565b6001600160a01b031661180d6119c0565b6001600160a01b0316146118335760405162461bcd60e51b8152600401610c86906142e9565b600d55565b6118406129c5565b6001600160a01b03166118516119c0565b6001600160a01b0316146118775760405162461bcd60e51b8152600401610c86906142e9565b601055565b6118846129c5565b6001600160a01b03166118956119c0565b6001600160a01b0316146118bb5760405162461bcd60e51b8152600401610c86906142e9565b600e805462ff0000191662010000179055565b6118d66129c5565b6001600160a01b03166118e76119c0565b6001600160a01b03161461190d5760405162461bcd60e51b8152600401610c86906142e9565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6119376129c5565b6001600160a01b03166119486119c0565b6001600160a01b03161461196e5760405162461bcd60e51b8152600401610c86906142e9565b600e805462ff000019169055565b6119846129c5565b6001600160a01b03166119956119c0565b6001600160a01b0316146119bb5760405162461bcd60e51b8152600401610c86906142e9565b601755565b6009546001600160a01b031690565b60125481565b60155481565b606060008290506000815167ffffffffffffffff811115611a0c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a36576020820181803683370190505b50905060005b8251811015611b98576041838281518110611a6757634e487b7160e01b600052603260045260246000fd5b016020015160f81c10801590611aa55750605a838281518110611a9a57634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b15611b2357828181518110611aca57634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b60f81c6020611ae49190614640565b60f81b828281518110611b0757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611b86565b828181518110611b4357634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b828281518110611b6e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053505b80611b908161472d565b915050611a3c565b509392505050565b606060018054610cb1906146f2565b601b6020526000908152604090205481565b600080829050600181511015611bdb576000915050610c42565b601981511115611bef576000915050610c42565b80600081518110611c1057634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916600160fd1b1415611c35576000915050610c42565b8060018251611c449190614698565b81518110611c6257634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916600160fd1b1415611c87576000915050610c42565b600081600081518110611caa57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916905060005b8251811015611e8f576000838281518110611ce957634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b0319169050600160fd1b81148015611d1a5750600160fd1b6001600160f81b03198416145b15611d2c576000945050505050610c42565b600360fc1b6001600160f81b0319821610801590611d7457507f39000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821611155b158015611de257507f41000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821610801590611de057507f5a000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821611155b155b8015611e4f57507f61000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821610801590611e4d57507f7a000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821611155b155b8015611e695750600160fd1b6001600160f81b0319821614155b15611e7b576000945050505050610c42565b915080611e878161472d565b915050611cbe565b506001949350505050565b60105481565b61158a611eab6129c5565b8383612bf7565b600f54600160b01b900461ffff1681565b600e5460ff1615611ee65760405162461bcd60e51b8152600401610c8690614594565b323314611f055760405162461bcd60e51b8152600401610c8690613d5a565b600e54610100900460ff1615611f2d5760405162461bcd60e51b8152600401610c86906142b2565b8060145460125482611f3f9190614628565b1115611f4a57600080fd5b601054826000611f5a8284614679565b9050348114611f7b5760405162461bcd60e51b8152600401610c869061455d565b600e54604051600091630100000090046001600160a01b0316908390611fa090613c48565b60006040518083038185875af1925050503d8060008114611fdd576040519150601f19603f3d011682016040523d82523d6000602084013e611fe2565b606091505b50509050806120035760405162461bcd60e51b8152600401610c8690613e82565b600f54600160b01b900461ffff168611156120305760405162461bcd60e51b8152600401610c8690613d91565b8560125461203e9190614628565b60125560005b868110156120ef5760185460405163cc240c0160e01b81526001600160a01b039091169063cc240c019061207f903390600190600401613cb5565b600060405180830381600087803b15801561209957600080fd5b505af11580156120ad573d6000803e3d6000fd5b5050336000908152601a602052604081208054935091506120cd8361472d565b91905055506120dd6112676129c5565b806120e78161472d565b915050612044565b50505050505050565b60185460405163164746fd60e11b81526001600160a01b0390911690632c8e8dfa9061212c90879087908790600401613c5f565b600060405180830381600087803b15801561214657600080fd5b505af115801561215a573d6000803e3d6000fd5b505050506108af8210156121bb576001600160a01b0384166000908152601a6020526040812080549161218c836146db565b90915550506001600160a01b0383166000908152601a602052604081208054916121b58361472d565b91905055505b6114e784848484612c9a565b601854601654604051632770a7eb60e21b81526001600160a01b0390921691639dc29fac916121fb91339190600401613cb5565b600060405180830381600087803b15801561221557600080fd5b505af1158015612229573d6000803e3d6000fd5b5050505061158a8282612cd3565b600c80546112a8906146f2565b606061224f826129c9565b61226b5760405162461bcd60e51b8152600401610c869061437b565b600061227683612f53565b90506000612282613076565b604080518082018252600181527f2f000000000000000000000000000000000000000000000000000000000000006020808301919091526000888152601d90915291909120549192509060ff1680612311576040518060400160405280600b81526020017f67656e65736973526f626f0000000000000000000000000000000000000000008152509150612353565b8060011415612353576040518060400160405280600681526020017f726f626f4a72000000000000000000000000000000000000000000000000000081525091505b60008351116123715760405180602001604052806000815250612399565b828285600c6040516020016123899493929190613b9d565b6040516020818303038152906040525b9695505050505050565b601d6020526000908152604090205460ff1681565b6123c06129c5565b6001600160a01b03166123d16119c0565b6001600160a01b0316146123f75760405162461bcd60e51b8152600401610c86906142e9565b601655565b600f546001600160a01b031681565b6124136129c5565b6001600160a01b03166124246119c0565b6001600160a01b03161461244a5760405162461bcd60e51b8152600401610c86906142e9565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b600e5460ff161561248f5760405162461bcd60e51b8152600401610c8690614594565b600e5462010000900460ff1615156001146124bc5760405162461bcd60e51b8152600401610c86906141f8565b60155460135411156124e05760405162461bcd60e51b8152600401610c8690614435565b336124ea836115f7565b6001600160a01b0316146125105760405162461bcd60e51b8152600401610c86906144c9565b3361251a826115f7565b6001600160a01b0316146125405760405162461bcd60e51b8152600401610c86906144c9565b6000828152601d602052604090205460ff161561256f5760405162461bcd60e51b8152600401610c869061403e565b6000818152601d602052604090205460ff161561259e5760405162461bcd60e51b8152600401610c869061403e565b6000828152601e602052604090205442906125bc9062093a80614628565b106125d95760405162461bcd60e51b8152600401610c8690613cec565b6000818152601e602052604090205442906125f79062093a80614628565b106126145760405162461bcd60e51b8152600401610c8690613cec565b6011546018546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b03909116906370a0823190612660903390600401613c4b565b60206040518083038186803b15801561267857600080fd5b505afa15801561268c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126b09190613994565b10156126bb57600080fd5b601854601154604051632770a7eb60e21b81526001600160a01b0390921691639dc29fac916126ef91339190600401613cb5565b600060405180830381600087803b15801561270957600080fd5b505af115801561271d573d6000803e3d6000fd5b5050505060135460016127309190614628565b60135561158a8282613085565b6127456129c5565b6001600160a01b03166127566119c0565b6001600160a01b03161461277c5760405162461bcd60e51b8152600401610c86906142e9565b600e80549115156101000261ff0019909216919091179055565b60135481565b6000908152601d602052604090205460ff1690565b600f546040517fc45527910000000000000000000000000000000000000000000000000000000081526000916001600160a01b039081169190841690829063c455279190612803908890600401613c4b565b60206040518083038186803b15801561281b57600080fd5b505afa15801561282f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061285391906139e4565b6001600160a01b0316141561286c57600191505061287a565b61287684846130f1565b9150505b92915050565b6128886129c5565b6001600160a01b03166128996119c0565b6001600160a01b0316146128bf5760405162461bcd60e51b8152600401610c86906142e9565b600f805461ffff909216600160a01b027fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff909216919091179055565b60175481565b6129096129c5565b6001600160a01b031661291a6119c0565b6001600160a01b0316146129405760405162461bcd60e51b8152600401610c86906142e9565b6001600160a01b0381166129665760405162461bcd60e51b8152600401610c8690613e25565b6113e381612ba5565b600061297b600a612989565b905090565b80546001019055565b5490565b3b151590565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b3390565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612a1b826115f7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b612a65612a5f6129c5565b8261311f565b612a815760405162461bcd60e51b8152600401610c8690614500565b610e2083838361319c565b600082612a9985846132c9565b14949350505050565b6000816001811115612ac457634e487b7160e01b600052602160045260246000fd5b9050612ad0600a612980565b6000612adc600a612989565b6000818152601d60205260409020805460ff191660ff851617905590506114e78482613379565b6000612b0e836115f7565b9050806001600160a01b0316612b226129c5565b6001600160a01b031614612b485760405162461bcd60e51b8152600401610c8690613d23565b60008381526006602090815260409091208351612b679285019061363e565b50827fbe3e2fc72ea4bd0d860e908b1ee27aa9856809e62a75bfc0cb7f04b5d791873d83604051612b989190613cd9565b60405180910390a2505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612c295760405162461bcd60e51b8152600401610c8690613f4d565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190612c8d908590613cce565b60405180910390a3505050565b612cab612ca56129c5565b8361311f565b612cc75760405162461bcd60e51b8152600401610c8690614500565b6114e784848484613393565b6000612cde836115f7565b9050806001600160a01b0316612cf26129c5565b6001600160a01b031614612d185760405162461bcd60e51b8152600401610c8690613d23565b612d2182611bc1565b1515600114612d425760405162461bcd60e51b8152600401610c86906145cb565b600083815260076020526040908190209051600291612d6091613b2e565b602060405180830381855afa158015612d7d573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190612da09190613994565b600283604051612db09190613b12565b602060405180830381855afa158015612dcd573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190612df09190613994565b1415612e0e5760405162461bcd60e51b8152600401610c86906143d8565b612e1782610e2b565b15612e345760405162461bcd60e51b8152600401610c869061422f565b60008381526007602052604081208054612e4d906146f2565b90501115612ef85760008381526007602052604090208054612ef89190612e73906146f2565b80601f0160208091040260200160405190810160405280929190818152602001828054612e9f906146f2565b8015612eec5780601f10612ec157610100808354040283529160200191612eec565b820191906000526020600020905b815481529060010190602001808311612ecf57829003601f168201915b505050505060006133c6565b612f038260016133c6565b60008381526007602090815260409091208351612f229285019061363e565b50827f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b83604051612b989190613cd9565b606081612f7857506040805180820190915260018152600360fc1b6020820152610c42565b8160005b8115612fa25780612f8c8161472d565b9150612f9b9050600a83614665565b9150612f7c565b60008167ffffffffffffffff811115612fcb57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ff5576020820181803683370190505b5090505b841561306e5761300a600183614698565b9150613017600a86614748565b613022906030614628565b60f81b81838151811061304557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613067600a86614665565b9450612ff9565b949350505050565b6060600b8054610cb1906146f2565b6000828152601e602090815260408083204290819055848452818420819055858452601c835281842086815560019081018290558585528285208681550155338352601b90915281208054916130da8361472d565b919050555061158a6130ea6129c5565b6001612aa2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600061312a826129c9565b6131465760405162461bcd60e51b8152600401610c8690613fbb565b6000613151836115f7565b9050806001600160a01b0316846001600160a01b0316148061318c5750836001600160a01b031661318184610d4a565b6001600160a01b0316145b80612876575061287681856127b1565b826001600160a01b03166131af826115f7565b6001600160a01b0316146131d55760405162461bcd60e51b8152600401610c869061431e565b6001600160a01b0382166131fb5760405162461bcd60e51b8152600401610c8690613ef0565b613206838383610e20565b6132116000826129e6565b6001600160a01b038316600090815260036020526040812080546001929061323a908490614698565b90915550506001600160a01b0382166000908152600360205260408120805460019290613268908490614628565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600081815b8451811015611b985760008582815181106132f957634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161333a57828160405160200161331d929190613b04565b604051602081830303815290604052805190602001209250613366565b808360405160200161334d929190613b04565b6040516020818303038152906040528051906020012092505b50806133718161472d565b9150506132ce565b61158a828260405180602001604052806000815250613403565b61339e84848461319c565b6133aa84848484613436565b6114e75760405162461bcd60e51b8152600401610c8690613dc8565b8060086133d2846119db565b6040516133df9190613b12565b908152604051908190036020019020805491151560ff199092169190911790555050565b61340d838361355f565b61341a6000848484613436565b610e205760405162461bcd60e51b8152600401610c8690613dc8565b600061344a846001600160a01b031661298d565b15611e8f57836001600160a01b031663150b7a026134666129c5565b8786866040518563ffffffff1660e01b81526004016134889493929190613c83565b602060405180830381600087803b1580156134a257600080fd5b505af19250505080156134d2575060408051601f3d908101601f191682019092526134cf918101906139c8565b60015b61352c573d808015613500576040519150601f19603f3d011682016040523d82523d6000602084013e613505565b606091505b5080516135245760405162461bcd60e51b8152600401610c8690613dc8565b805181602001fd5b6001600160e01b0319167f150b7a020000000000000000000000000000000000000000000000000000000014905061306e565b6001600160a01b0382166135855760405162461bcd60e51b8152600401610c86906141c3565b61358e816129c9565b156135ab5760405162461bcd60e51b8152600401610c8690613eb9565b6135b760008383610e20565b6001600160a01b03821660009081526003602052604081208054600192906135e0908490614628565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461364a906146f2565b90600052602060002090601f01602090048101928261366c57600085556136b2565b82601f1061368557805160ff19168380011785556136b2565b828001600101855582156136b2579182015b828111156136b2578251825591602001919060010190613697565b506136be9291506136c2565b5090565b5b808211156136be57600081556001016136c3565b600067ffffffffffffffff808411156136f2576136f2614788565b604051601f8501601f19168101602001828111828210171561371657613716614788565b60405284815291508183850186101561372e57600080fd5b8484602083013760006020868301015250509392505050565b80358015158114610c4257600080fd5b600082601f830112613767578081fd5b613776838335602085016136d7565b9392505050565b60006020828403121561378e578081fd5b81356137768161479e565b600080604083850312156137ab578081fd5b82356137b68161479e565b915060208301356137c68161479e565b809150509250929050565b6000806000606084860312156137e5578081fd5b83356137f08161479e565b925060208401356138008161479e565b929592945050506040919091013590565b60008060008060808587031215613826578081fd5b84356138318161479e565b935060208501356138418161479e565b925060408501359150606085013567ffffffffffffffff811115613863578182fd5b8501601f81018713613873578182fd5b613882878235602084016136d7565b91505092959194509250565b600080604083850312156138a0578182fd5b82356138ab8161479e565b91506138b960208401613747565b90509250929050565b600080604083850312156138d4578182fd5b82356138df8161479e565b946020939093013593505050565b600080600060408486031215613901578283fd5b833567ffffffffffffffff80821115613918578485fd5b818601915086601f83011261392b578485fd5b813581811115613939578586fd5b876020808302850101111561394c578586fd5b6020928301989097509590910135949350505050565b600060208284031215613973578081fd5b61377682613747565b60006020828403121561398d578081fd5b5035919050565b6000602082840312156139a5578081fd5b5051919050565b6000602082840312156139bd578081fd5b8135613776816147b3565b6000602082840312156139d9578081fd5b8151613776816147b3565b6000602082840312156139f5578081fd5b81516137768161479e565b600060208284031215613a11578081fd5b813567ffffffffffffffff811115613a27578182fd5b61287684828501613757565b600060208284031215613a44578081fd5b813561ffff81168114613776578182fd5b60008060408385031215613a67578182fd5b82359150602083013567ffffffffffffffff811115613a84578182fd5b613a9085828601613757565b9150509250929050565b60008060408385031215613aac578182fd5b50508035926020909101359150565b60008151808452613ad38160208601602086016146af565b601f01601f19169290920160200192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b918252602082015260400190565b60008251613b248184602087016146af565b9190910192915050565b6000808354613b3c816146f2565b60018281168015613b545760018114613b6557613b91565b60ff19841687528287019450613b91565b8786526020808720875b85811015613b885781548a820152908401908201613b6f565b50505082870194505b50929695505050505050565b600085516020613bb08285838b016146af565b865191840191613bc38184848b016146af565b8651920191613bd58184848a016146af565b85549201918390613be5816146f2565b60018281168015613bfd5760018114613c0e57613c37565b60ff19841687528287019450613c37565b898852858820885b84811015613c2f57815489820152908301908701613c16565b505082870194505b50929b9a5050505050505050505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526123996080830184613abb565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6000602082526137766020830184613abb565b6020808252600b908201527f7761697420372064617973000000000000000000000000000000000000000000604082015260600190565b6020808252601f908201527f4552433732313a2063616c6c6572206973206e6f7420746865206f776e657200604082015260600190565b6020808252601f908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00604082015260600190565b60208082526014908201527f616d6f756e742065786365656473206c696d6974000000000000000000000000604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601e908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652e0000604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526012908201527f50726573616c65206e6f74206163746976650000000000000000000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252601e908201527f4164647265737320646f6573206e6f7420657869737420696e206c6973740000604082015260600190565b6020808252601b908201527f43616e206f6e6c792062726565642047656e65736973526f626f730000000000604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252600f908201527f6d61782070657220616464726573730000000000000000000000000000000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526011908201527f4272656564696e672064697361626c6564000000000000000000000000000000604082015260600190565b60208082526015908201527f4e616d6520616c72656164792072657365727665640000000000000000000000604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252600f908201527f53616c65206e6f74205075626c69630000000000000000000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b60208082526023908201527f4e6577206e616d652069732073616d65206173207468652063757272656e742060408201527f6f6e650000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252600f908201527f737570706c792065786365656465640000000000000000000000000000000000604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252600b908201527f6e6f74206f776e65724f66000000000000000000000000000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b60208082526018908201527f496e636f7272656374204554482076616c75652073656e740000000000000000604082015260600190565b6020808252600f908201527f436f6e7472616374205061757365640000000000000000000000000000000000604082015260600190565b60208082526014908201527f4e6f7420612076616c6964206e6577206e616d65000000000000000000000000604082015260600190565b61ffff91909116815260200190565b90815260200190565b60ff91909116815260200190565b6000821982111561463b5761463b61475c565b500190565b600060ff821660ff84168060ff0382111561465d5761465d61475c565b019392505050565b60008261467457614674614772565b500490565b60008160001904831182151516156146935761469361475c565b500290565b6000828210156146aa576146aa61475c565b500390565b60005b838110156146ca5781810151838201526020016146b2565b838111156114e75750506000910152565b6000816146ea576146ea61475c565b506000190190565b60028104600182168061470657607f821691505b6020821081141561472757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156147415761474161475c565b5060010190565b60008261475757614757614772565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146113e357600080fd5b6001600160e01b0319811681146113e357600080fdfea2646970667358221220e9af35c56571e12bc2c8d08f56f1be4f46680039e6eff1712b1be5cf15c631f164736f6c6343000800003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000501a676687368905e74e1c1e30ae3d6ac5ca2bbe0000000000000000000000000000000000000000000000000000000000000008526f626f734e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000352425400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5139476536583847715257724668334e79326e66344d314d367276636e667051544555535a4c75574659357a2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003426f62000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

Deployed Bytecode

0x60806040526004361061042f5760003560e01c80637d44fd1111610228578063b88d4fde11610128578063d395ef05116100bb578063e985e9c51161008a578063ee90d55e1161006f578063ee90d55e14610b83578063f2fde38b14610b98578063f84ddf0b14610bb85761042f565b8063e985e9c514610b43578063ebcc512314610b635761042f565b8063d395ef0514610ace578063d7082d6b14610aee578063df56aba314610b0e578063e0bb12da14610b235761042f565b8063c8eb144a116100f7578063c8eb144a14610a4c578063cc371bf314610a79578063cd7c032614610a99578063d26ea6c014610aae5761042f565b8063b88d4fde146109d7578063c39cbef1146109f7578063c668286214610a17578063c87b56dd14610a2c5761042f565b8063939ec094116101bb5780639ffdb65a1161018a578063a22cb4651161016f578063a22cb4651461098f578063a49bccca146109af578063b2b95f8b146109c45761042f565b80639ffdb65a1461095a578063a035b1fe1461097a5761042f565b8063939ec094146108f05780639416b4231461090557806395d89b41146109255780639da495b31461093a5761042f565b80638ac6552f116101f75780638ac6552f146108915780638d02d86c146108a65780638da5cb5b146108c65780638edb6fca146108db5761042f565b80637d44fd111461081c5780638545f4ea1461083c5780638797e3871461085c57806387d596eb146108715761042f565b80633ccfd60b116103335780635a7adf7f116102c65780636d5224181161029557806370a082311161027a57806370a08231146107d2578063715018a6146107f25780637ca838c3146108075761042f565b80636d522418146107925780636f05e45d146107b25761042f565b80635a7adf7f146107335780635c975abb146107485780636352211e1461075d5780636c0360eb1461077d5761042f565b806345ca77381161030257806345ca7738146106c957806345ffb25b146106de5780634d426528146106f357806355f804b3146107135761042f565b80633ccfd60b1461066a5780633d18b9121461067f57806342842e0e1461069457806344df8e70146106b45761042f565b806318cae269116103c657806327a67218116103955780632904e6d91161037a5780632904e6d91461061757806336033deb1461062a57806338712d8d1461064a5761042f565b806327a67218146105e257806328556bbb146106025761042f565b806318cae269146105525780631cec396f146105725780632032fd3c146105a057806323b872dd146105c25761042f565b8063081812fc11610402578063081812fc146104d0578063095ea7b3146104f05780630a1a6f591461051057806315b56d10146105325761042f565b806301ffc9a71461043457806302329a291461046a57806306fdde031461048c57806307ad0297146104ae575b600080fd5b34801561044057600080fd5b5061045461044f3660046139ac565b610bcd565b6040516104619190613cce565b60405180910390f35b34801561047657600080fd5b5061048a610485366004613962565b610c47565b005b34801561049857600080fd5b506104a1610ca2565b6040516104619190613cd9565b3480156104ba57600080fd5b506104c3610d34565b6040516104619190613c4b565b3480156104dc57600080fd5b506104c36104eb36600461397c565b610d4a565b3480156104fc57600080fd5b5061048a61050b3660046138c2565b610d8d565b34801561051c57600080fd5b50610525610e25565b6040516104619190614611565b34801561053e57600080fd5b5061045461054d366004613a00565b610e2b565b34801561055e57600080fd5b5061052561056d36600461377d565b610e5f565b34801561057e57600080fd5b5061059261058d36600461397c565b610e71565b604051610461929190613b04565b3480156105ac57600080fd5b506105b5610e8a565b6040516104619190614602565b3480156105ce57600080fd5b5061048a6105dd3660046137d1565b610e9b565b3480156105ee57600080fd5b506105256105fd36600461397c565b610f69565b34801561060e57600080fd5b50610454610f7b565b61048a6106253660046138ed565b610f8a565b34801561063657600080fd5b506104a161064536600461397c565b61128f565b34801561065657600080fd5b5061052561066536600461377d565b611329565b34801561067657600080fd5b5061048a61133b565b34801561068b57600080fd5b5061048a6113e6565b3480156106a057600080fd5b5061048a6106af3660046137d1565b6114ed565b3480156106c057600080fd5b506104c3611508565b3480156106d557600080fd5b5061052561150e565b3480156106ea57600080fd5b50610525611514565b3480156106ff57600080fd5b5061048a61070e366004613a55565b61151a565b34801561071f57600080fd5b5061048a61072e366004613a00565b61158e565b34801561073f57600080fd5b506104546115e0565b34801561075457600080fd5b506104546115ee565b34801561076957600080fd5b506104c361077836600461397c565b6115f7565b34801561078957600080fd5b506104a161162c565b34801561079e57600080fd5b506104a16107ad36600461397c565b611639565b3480156107be57600080fd5b5061048a6107cd366004613a33565b6116db565b3480156107de57600080fd5b506105256107ed36600461377d565b611756565b3480156107fe57600080fd5b5061048a61179a565b34801561081357600080fd5b506104c36117e5565b34801561082857600080fd5b5061048a61083736600461397c565b6117f4565b34801561084857600080fd5b5061048a61085736600461397c565b611838565b34801561086857600080fd5b5061048a61187c565b34801561087d57600080fd5b5061048a61088c36600461377d565b6118ce565b34801561089d57600080fd5b5061048a61192f565b3480156108b257600080fd5b5061048a6108c136600461397c565b61197c565b3480156108d257600080fd5b506104c36119c0565b3480156108e757600080fd5b506105256119cf565b3480156108fc57600080fd5b506105256119d5565b34801561091157600080fd5b506104a1610920366004613a00565b6119db565b34801561093157600080fd5b506104a1611ba0565b34801561094657600080fd5b5061052561095536600461377d565b611baf565b34801561096657600080fd5b50610454610975366004613a00565b611bc1565b34801561098657600080fd5b50610525611e9a565b34801561099b57600080fd5b5061048a6109aa36600461388e565b611ea0565b3480156109bb57600080fd5b506105b5611eb2565b61048a6109d236600461397c565b611ec3565b3480156109e357600080fd5b5061048a6109f2366004613811565b6120f8565b348015610a0357600080fd5b5061048a610a12366004613a55565b6121c7565b348015610a2357600080fd5b506104a1612237565b348015610a3857600080fd5b506104a1610a4736600461397c565b612244565b348015610a5857600080fd5b50610a6c610a6736600461397c565b6123a3565b604051610461919061461a565b348015610a8557600080fd5b5061048a610a9436600461397c565b6123b8565b348015610aa557600080fd5b506104c36123fc565b348015610aba57600080fd5b5061048a610ac936600461377d565b61240b565b348015610ada57600080fd5b5061048a610ae9366004613a9a565b61246c565b348015610afa57600080fd5b5061048a610b09366004613962565b61273d565b348015610b1a57600080fd5b50610525612796565b348015610b2f57600080fd5b50610525610b3e36600461397c565b61279c565b348015610b4f57600080fd5b50610454610b5e366004613799565b6127b1565b348015610b6f57600080fd5b5061048a610b7e366004613a33565b612880565b348015610b8f57600080fd5b506105256128fb565b348015610ba457600080fd5b5061048a610bb336600461377d565b612901565b348015610bc457600080fd5b5061052561296f565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610c3057506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c3f5750610c3f82612993565b90505b919050565b610c4f6129c5565b6001600160a01b0316610c606119c0565b6001600160a01b031614610c8f5760405162461bcd60e51b8152600401610c86906142e9565b60405180910390fd5b600e805460ff1916911515919091179055565b606060008054610cb1906146f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610cdd906146f2565b8015610d2a5780601f10610cff57610100808354040283529160200191610d2a565b820191906000526020600020905b815481529060010190602001808311610d0d57829003601f168201915b5050505050905090565b600e54630100000090046001600160a01b031681565b6000610d55826129c9565b610d715760405162461bcd60e51b8152600401610c8690614266565b506000908152600460205260409020546001600160a01b031690565b6000610d98826115f7565b9050806001600160a01b0316836001600160a01b03161415610dcc5760405162461bcd60e51b8152600401610c869061446c565b806001600160a01b0316610dde6129c5565b6001600160a01b03161480610dfa5750610dfa81610b5e6129c5565b610e165760405162461bcd60e51b8152600401610c8690614075565b610e2083836129e6565b505050565b60145481565b60006008610e38836119db565b604051610e459190613b12565b9081526040519081900360200190205460ff169050919050565b60196020526000908152604090205481565b601c602052600090815260409020805460019091015482565b600f54600160a01b900461ffff1681565b60185460405163164746fd60e11b81526001600160a01b0390911690632c8e8dfa90610ecf90869086908690600401613c5f565b600060405180830381600087803b158015610ee957600080fd5b505af1158015610efd573d6000803e3d6000fd5b505050506108af811015610f5e576001600160a01b0383166000908152601a60205260408120805491610f2f836146db565b90915550506001600160a01b0382166000908152601a60205260408120805491610f588361472d565b91905055505b610e20838383612a54565b601e6020526000908152604090205481565b600e5462010000900460ff1681565b600e5460ff1615610fad5760405162461bcd60e51b8152600401610c8690614594565b323314610fcc5760405162461bcd60e51b8152600401610c8690613d5a565b600e5460ff610100909104161515600114610ff95760405162461bcd60e51b8152600401610c8690613f84565b8282600d546110628383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060405185925061104791503390602001613ae7565b60405160208183030381529060405280519060200120612a8c565b61107e5760405162461bcd60e51b8152600401610c8690614007565b83601454601254826110909190614628565b111561109b57600080fd5b6010548560006110ab8284614679565b90503481146110cc5760405162461bcd60e51b8152600401610c869061455d565b600e54604051600091630100000090046001600160a01b03169083906110f190613c48565b60006040518083038185875af1925050503d806000811461112e576040519150601f19603f3d011682016040523d82523d6000602084013e611133565b606091505b50509050806111545760405162461bcd60e51b8152600401610c8690613e82565b33600090815260196020526040902054600f54600160a01b900461ffff1661117c8b83614628565b111561119a5760405162461bcd60e51b8152600401610c869061418c565b896012546111a89190614628565b60125560005b8a8110156112805760185460405163cc240c0160e01b81526001600160a01b039091169063cc240c01906111e9903390600190600401613cb5565b600060405180830381600087803b15801561120357600080fd5b505af1158015611217573d6000803e3d6000fd5b5050336000908152601a602052604081208054935091506112378361472d565b90915550503360009081526019602052604081208054916112578361472d565b919050555061126e6112676129c5565b6000612aa2565b806112788161472d565b9150506111ae565b50505050505050505050505050565b600660205260009081526040902080546112a8906146f2565b80601f01602080910402602001604051908101604052809291908181526020018280546112d4906146f2565b80156113215780601f106112f657610100808354040283529160200191611321565b820191906000526020600020905b81548152906001019060200180831161130457829003601f168201915b505050505081565b601a6020526000908152604090205481565b6113436129c5565b6001600160a01b03166113546119c0565b6001600160a01b03161461137a5760405162461bcd60e51b8152600401610c86906142e9565b6000336001600160a01b03164760405161139390613c48565b60006040518083038185875af1925050503d80600081146113d0576040519150601f19603f3d011682016040523d82523d6000602084013e6113d5565b606091505b50509050806113e357600080fd5b50565b600e5460ff16156114095760405162461bcd60e51b8152600401610c8690614594565b60185460405163164746fd60e11b81526001600160a01b0390911690632c8e8dfa9061143e9033906000908190600401613c5f565b600060405180830381600087803b15801561145857600080fd5b505af115801561146c573d6000803e3d6000fd5b50506018546040517fc00007b00000000000000000000000000000000000000000000000000000000081526001600160a01b03909116925063c00007b091506114b9903390600401613c4b565b600060405180830381600087803b1580156114d357600080fd5b505af11580156114e7573d6000803e3d6000fd5b50505050565b610e20838383604051806020016040528060008152506120f8565b61dead81565b60165481565b60115481565b601854601754604051632770a7eb60e21b81526001600160a01b0390921691639dc29fac9161154e91339190600401613cb5565b600060405180830381600087803b15801561156857600080fd5b505af115801561157c573d6000803e3d6000fd5b5050505061158a8282612b03565b5050565b6115966129c5565b6001600160a01b03166115a76119c0565b6001600160a01b0316146115cd5760405162461bcd60e51b8152600401610c86906142e9565b805161158a90600b90602084019061363e565b600e54610100900460ff1681565b600e5460ff1681565b6000818152600260205260408120546001600160a01b031680610c3f5760405162461bcd60e51b8152600401610c869061412f565b600b80546112a8906146f2565b6000818152600760205260409020805460609190611656906146f2565b80601f0160208091040260200160405190810160405280929190818152602001828054611682906146f2565b80156116cf5780601f106116a4576101008083540402835291602001916116cf565b820191906000526020600020905b8154815290600101906020018083116116b257829003601f168201915b50505050509050919050565b6116e36129c5565b6001600160a01b03166116f46119c0565b6001600160a01b03161461171a5760405162461bcd60e51b8152600401610c86906142e9565b600f805461ffff909216600160b01b027fffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b60006001600160a01b03821661177e5760405162461bcd60e51b8152600401610c86906140d2565b506001600160a01b031660009081526003602052604090205490565b6117a26129c5565b6001600160a01b03166117b36119c0565b6001600160a01b0316146117d95760405162461bcd60e51b8152600401610c86906142e9565b6117e36000612ba5565b565b6018546001600160a01b031681565b6117fc6129c5565b6001600160a01b031661180d6119c0565b6001600160a01b0316146118335760405162461bcd60e51b8152600401610c86906142e9565b600d55565b6118406129c5565b6001600160a01b03166118516119c0565b6001600160a01b0316146118775760405162461bcd60e51b8152600401610c86906142e9565b601055565b6118846129c5565b6001600160a01b03166118956119c0565b6001600160a01b0316146118bb5760405162461bcd60e51b8152600401610c86906142e9565b600e805462ff0000191662010000179055565b6118d66129c5565b6001600160a01b03166118e76119c0565b6001600160a01b03161461190d5760405162461bcd60e51b8152600401610c86906142e9565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6119376129c5565b6001600160a01b03166119486119c0565b6001600160a01b03161461196e5760405162461bcd60e51b8152600401610c86906142e9565b600e805462ff000019169055565b6119846129c5565b6001600160a01b03166119956119c0565b6001600160a01b0316146119bb5760405162461bcd60e51b8152600401610c86906142e9565b601755565b6009546001600160a01b031690565b60125481565b60155481565b606060008290506000815167ffffffffffffffff811115611a0c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611a36576020820181803683370190505b50905060005b8251811015611b98576041838281518110611a6757634e487b7160e01b600052603260045260246000fd5b016020015160f81c10801590611aa55750605a838281518110611a9a57634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b15611b2357828181518110611aca57634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b60f81c6020611ae49190614640565b60f81b828281518110611b0757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611b86565b828181518110611b4357634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b828281518110611b6e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053505b80611b908161472d565b915050611a3c565b509392505050565b606060018054610cb1906146f2565b601b6020526000908152604090205481565b600080829050600181511015611bdb576000915050610c42565b601981511115611bef576000915050610c42565b80600081518110611c1057634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916600160fd1b1415611c35576000915050610c42565b8060018251611c449190614698565b81518110611c6257634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916600160fd1b1415611c87576000915050610c42565b600081600081518110611caa57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916905060005b8251811015611e8f576000838281518110611ce957634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b0319169050600160fd1b81148015611d1a5750600160fd1b6001600160f81b03198416145b15611d2c576000945050505050610c42565b600360fc1b6001600160f81b0319821610801590611d7457507f39000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821611155b158015611de257507f41000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821610801590611de057507f5a000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821611155b155b8015611e4f57507f61000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821610801590611e4d57507f7a000000000000000000000000000000000000000000000000000000000000006001600160f81b0319821611155b155b8015611e695750600160fd1b6001600160f81b0319821614155b15611e7b576000945050505050610c42565b915080611e878161472d565b915050611cbe565b506001949350505050565b60105481565b61158a611eab6129c5565b8383612bf7565b600f54600160b01b900461ffff1681565b600e5460ff1615611ee65760405162461bcd60e51b8152600401610c8690614594565b323314611f055760405162461bcd60e51b8152600401610c8690613d5a565b600e54610100900460ff1615611f2d5760405162461bcd60e51b8152600401610c86906142b2565b8060145460125482611f3f9190614628565b1115611f4a57600080fd5b601054826000611f5a8284614679565b9050348114611f7b5760405162461bcd60e51b8152600401610c869061455d565b600e54604051600091630100000090046001600160a01b0316908390611fa090613c48565b60006040518083038185875af1925050503d8060008114611fdd576040519150601f19603f3d011682016040523d82523d6000602084013e611fe2565b606091505b50509050806120035760405162461bcd60e51b8152600401610c8690613e82565b600f54600160b01b900461ffff168611156120305760405162461bcd60e51b8152600401610c8690613d91565b8560125461203e9190614628565b60125560005b868110156120ef5760185460405163cc240c0160e01b81526001600160a01b039091169063cc240c019061207f903390600190600401613cb5565b600060405180830381600087803b15801561209957600080fd5b505af11580156120ad573d6000803e3d6000fd5b5050336000908152601a602052604081208054935091506120cd8361472d565b91905055506120dd6112676129c5565b806120e78161472d565b915050612044565b50505050505050565b60185460405163164746fd60e11b81526001600160a01b0390911690632c8e8dfa9061212c90879087908790600401613c5f565b600060405180830381600087803b15801561214657600080fd5b505af115801561215a573d6000803e3d6000fd5b505050506108af8210156121bb576001600160a01b0384166000908152601a6020526040812080549161218c836146db565b90915550506001600160a01b0383166000908152601a602052604081208054916121b58361472d565b91905055505b6114e784848484612c9a565b601854601654604051632770a7eb60e21b81526001600160a01b0390921691639dc29fac916121fb91339190600401613cb5565b600060405180830381600087803b15801561221557600080fd5b505af1158015612229573d6000803e3d6000fd5b5050505061158a8282612cd3565b600c80546112a8906146f2565b606061224f826129c9565b61226b5760405162461bcd60e51b8152600401610c869061437b565b600061227683612f53565b90506000612282613076565b604080518082018252600181527f2f000000000000000000000000000000000000000000000000000000000000006020808301919091526000888152601d90915291909120549192509060ff1680612311576040518060400160405280600b81526020017f67656e65736973526f626f0000000000000000000000000000000000000000008152509150612353565b8060011415612353576040518060400160405280600681526020017f726f626f4a72000000000000000000000000000000000000000000000000000081525091505b60008351116123715760405180602001604052806000815250612399565b828285600c6040516020016123899493929190613b9d565b6040516020818303038152906040525b9695505050505050565b601d6020526000908152604090205460ff1681565b6123c06129c5565b6001600160a01b03166123d16119c0565b6001600160a01b0316146123f75760405162461bcd60e51b8152600401610c86906142e9565b601655565b600f546001600160a01b031681565b6124136129c5565b6001600160a01b03166124246119c0565b6001600160a01b03161461244a5760405162461bcd60e51b8152600401610c86906142e9565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b600e5460ff161561248f5760405162461bcd60e51b8152600401610c8690614594565b600e5462010000900460ff1615156001146124bc5760405162461bcd60e51b8152600401610c86906141f8565b60155460135411156124e05760405162461bcd60e51b8152600401610c8690614435565b336124ea836115f7565b6001600160a01b0316146125105760405162461bcd60e51b8152600401610c86906144c9565b3361251a826115f7565b6001600160a01b0316146125405760405162461bcd60e51b8152600401610c86906144c9565b6000828152601d602052604090205460ff161561256f5760405162461bcd60e51b8152600401610c869061403e565b6000818152601d602052604090205460ff161561259e5760405162461bcd60e51b8152600401610c869061403e565b6000828152601e602052604090205442906125bc9062093a80614628565b106125d95760405162461bcd60e51b8152600401610c8690613cec565b6000818152601e602052604090205442906125f79062093a80614628565b106126145760405162461bcd60e51b8152600401610c8690613cec565b6011546018546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b03909116906370a0823190612660903390600401613c4b565b60206040518083038186803b15801561267857600080fd5b505afa15801561268c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126b09190613994565b10156126bb57600080fd5b601854601154604051632770a7eb60e21b81526001600160a01b0390921691639dc29fac916126ef91339190600401613cb5565b600060405180830381600087803b15801561270957600080fd5b505af115801561271d573d6000803e3d6000fd5b5050505060135460016127309190614628565b60135561158a8282613085565b6127456129c5565b6001600160a01b03166127566119c0565b6001600160a01b03161461277c5760405162461bcd60e51b8152600401610c86906142e9565b600e80549115156101000261ff0019909216919091179055565b60135481565b6000908152601d602052604090205460ff1690565b600f546040517fc45527910000000000000000000000000000000000000000000000000000000081526000916001600160a01b039081169190841690829063c455279190612803908890600401613c4b565b60206040518083038186803b15801561281b57600080fd5b505afa15801561282f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061285391906139e4565b6001600160a01b0316141561286c57600191505061287a565b61287684846130f1565b9150505b92915050565b6128886129c5565b6001600160a01b03166128996119c0565b6001600160a01b0316146128bf5760405162461bcd60e51b8152600401610c86906142e9565b600f805461ffff909216600160a01b027fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff909216919091179055565b60175481565b6129096129c5565b6001600160a01b031661291a6119c0565b6001600160a01b0316146129405760405162461bcd60e51b8152600401610c86906142e9565b6001600160a01b0381166129665760405162461bcd60e51b8152600401610c8690613e25565b6113e381612ba5565b600061297b600a612989565b905090565b80546001019055565b5490565b3b151590565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b3390565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612a1b826115f7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b612a65612a5f6129c5565b8261311f565b612a815760405162461bcd60e51b8152600401610c8690614500565b610e2083838361319c565b600082612a9985846132c9565b14949350505050565b6000816001811115612ac457634e487b7160e01b600052602160045260246000fd5b9050612ad0600a612980565b6000612adc600a612989565b6000818152601d60205260409020805460ff191660ff851617905590506114e78482613379565b6000612b0e836115f7565b9050806001600160a01b0316612b226129c5565b6001600160a01b031614612b485760405162461bcd60e51b8152600401610c8690613d23565b60008381526006602090815260409091208351612b679285019061363e565b50827fbe3e2fc72ea4bd0d860e908b1ee27aa9856809e62a75bfc0cb7f04b5d791873d83604051612b989190613cd9565b60405180910390a2505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612c295760405162461bcd60e51b8152600401610c8690613f4d565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190612c8d908590613cce565b60405180910390a3505050565b612cab612ca56129c5565b8361311f565b612cc75760405162461bcd60e51b8152600401610c8690614500565b6114e784848484613393565b6000612cde836115f7565b9050806001600160a01b0316612cf26129c5565b6001600160a01b031614612d185760405162461bcd60e51b8152600401610c8690613d23565b612d2182611bc1565b1515600114612d425760405162461bcd60e51b8152600401610c86906145cb565b600083815260076020526040908190209051600291612d6091613b2e565b602060405180830381855afa158015612d7d573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190612da09190613994565b600283604051612db09190613b12565b602060405180830381855afa158015612dcd573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190612df09190613994565b1415612e0e5760405162461bcd60e51b8152600401610c86906143d8565b612e1782610e2b565b15612e345760405162461bcd60e51b8152600401610c869061422f565b60008381526007602052604081208054612e4d906146f2565b90501115612ef85760008381526007602052604090208054612ef89190612e73906146f2565b80601f0160208091040260200160405190810160405280929190818152602001828054612e9f906146f2565b8015612eec5780601f10612ec157610100808354040283529160200191612eec565b820191906000526020600020905b815481529060010190602001808311612ecf57829003601f168201915b505050505060006133c6565b612f038260016133c6565b60008381526007602090815260409091208351612f229285019061363e565b50827f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b83604051612b989190613cd9565b606081612f7857506040805180820190915260018152600360fc1b6020820152610c42565b8160005b8115612fa25780612f8c8161472d565b9150612f9b9050600a83614665565b9150612f7c565b60008167ffffffffffffffff811115612fcb57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ff5576020820181803683370190505b5090505b841561306e5761300a600183614698565b9150613017600a86614748565b613022906030614628565b60f81b81838151811061304557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613067600a86614665565b9450612ff9565b949350505050565b6060600b8054610cb1906146f2565b6000828152601e602090815260408083204290819055848452818420819055858452601c835281842086815560019081018290558585528285208681550155338352601b90915281208054916130da8361472d565b919050555061158a6130ea6129c5565b6001612aa2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600061312a826129c9565b6131465760405162461bcd60e51b8152600401610c8690613fbb565b6000613151836115f7565b9050806001600160a01b0316846001600160a01b0316148061318c5750836001600160a01b031661318184610d4a565b6001600160a01b0316145b80612876575061287681856127b1565b826001600160a01b03166131af826115f7565b6001600160a01b0316146131d55760405162461bcd60e51b8152600401610c869061431e565b6001600160a01b0382166131fb5760405162461bcd60e51b8152600401610c8690613ef0565b613206838383610e20565b6132116000826129e6565b6001600160a01b038316600090815260036020526040812080546001929061323a908490614698565b90915550506001600160a01b0382166000908152600360205260408120805460019290613268908490614628565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600081815b8451811015611b985760008582815181106132f957634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161333a57828160405160200161331d929190613b04565b604051602081830303815290604052805190602001209250613366565b808360405160200161334d929190613b04565b6040516020818303038152906040528051906020012092505b50806133718161472d565b9150506132ce565b61158a828260405180602001604052806000815250613403565b61339e84848461319c565b6133aa84848484613436565b6114e75760405162461bcd60e51b8152600401610c8690613dc8565b8060086133d2846119db565b6040516133df9190613b12565b908152604051908190036020019020805491151560ff199092169190911790555050565b61340d838361355f565b61341a6000848484613436565b610e205760405162461bcd60e51b8152600401610c8690613dc8565b600061344a846001600160a01b031661298d565b15611e8f57836001600160a01b031663150b7a026134666129c5565b8786866040518563ffffffff1660e01b81526004016134889493929190613c83565b602060405180830381600087803b1580156134a257600080fd5b505af19250505080156134d2575060408051601f3d908101601f191682019092526134cf918101906139c8565b60015b61352c573d808015613500576040519150601f19603f3d011682016040523d82523d6000602084013e613505565b606091505b5080516135245760405162461bcd60e51b8152600401610c8690613dc8565b805181602001fd5b6001600160e01b0319167f150b7a020000000000000000000000000000000000000000000000000000000014905061306e565b6001600160a01b0382166135855760405162461bcd60e51b8152600401610c86906141c3565b61358e816129c9565b156135ab5760405162461bcd60e51b8152600401610c8690613eb9565b6135b760008383610e20565b6001600160a01b03821660009081526003602052604081208054600192906135e0908490614628565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461364a906146f2565b90600052602060002090601f01602090048101928261366c57600085556136b2565b82601f1061368557805160ff19168380011785556136b2565b828001600101855582156136b2579182015b828111156136b2578251825591602001919060010190613697565b506136be9291506136c2565b5090565b5b808211156136be57600081556001016136c3565b600067ffffffffffffffff808411156136f2576136f2614788565b604051601f8501601f19168101602001828111828210171561371657613716614788565b60405284815291508183850186101561372e57600080fd5b8484602083013760006020868301015250509392505050565b80358015158114610c4257600080fd5b600082601f830112613767578081fd5b613776838335602085016136d7565b9392505050565b60006020828403121561378e578081fd5b81356137768161479e565b600080604083850312156137ab578081fd5b82356137b68161479e565b915060208301356137c68161479e565b809150509250929050565b6000806000606084860312156137e5578081fd5b83356137f08161479e565b925060208401356138008161479e565b929592945050506040919091013590565b60008060008060808587031215613826578081fd5b84356138318161479e565b935060208501356138418161479e565b925060408501359150606085013567ffffffffffffffff811115613863578182fd5b8501601f81018713613873578182fd5b613882878235602084016136d7565b91505092959194509250565b600080604083850312156138a0578182fd5b82356138ab8161479e565b91506138b960208401613747565b90509250929050565b600080604083850312156138d4578182fd5b82356138df8161479e565b946020939093013593505050565b600080600060408486031215613901578283fd5b833567ffffffffffffffff80821115613918578485fd5b818601915086601f83011261392b578485fd5b813581811115613939578586fd5b876020808302850101111561394c578586fd5b6020928301989097509590910135949350505050565b600060208284031215613973578081fd5b61377682613747565b60006020828403121561398d578081fd5b5035919050565b6000602082840312156139a5578081fd5b5051919050565b6000602082840312156139bd578081fd5b8135613776816147b3565b6000602082840312156139d9578081fd5b8151613776816147b3565b6000602082840312156139f5578081fd5b81516137768161479e565b600060208284031215613a11578081fd5b813567ffffffffffffffff811115613a27578182fd5b61287684828501613757565b600060208284031215613a44578081fd5b813561ffff81168114613776578182fd5b60008060408385031215613a67578182fd5b82359150602083013567ffffffffffffffff811115613a84578182fd5b613a9085828601613757565b9150509250929050565b60008060408385031215613aac578182fd5b50508035926020909101359150565b60008151808452613ad38160208601602086016146af565b601f01601f19169290920160200192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b918252602082015260400190565b60008251613b248184602087016146af565b9190910192915050565b6000808354613b3c816146f2565b60018281168015613b545760018114613b6557613b91565b60ff19841687528287019450613b91565b8786526020808720875b85811015613b885781548a820152908401908201613b6f565b50505082870194505b50929695505050505050565b600085516020613bb08285838b016146af565b865191840191613bc38184848b016146af565b8651920191613bd58184848a016146af565b85549201918390613be5816146f2565b60018281168015613bfd5760018114613c0e57613c37565b60ff19841687528287019450613c37565b898852858820885b84811015613c2f57815489820152908301908701613c16565b505082870194505b50929b9a5050505050505050505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526123996080830184613abb565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6000602082526137766020830184613abb565b6020808252600b908201527f7761697420372064617973000000000000000000000000000000000000000000604082015260600190565b6020808252601f908201527f4552433732313a2063616c6c6572206973206e6f7420746865206f776e657200604082015260600190565b6020808252601f908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00604082015260600190565b60208082526014908201527f616d6f756e742065786365656473206c696d6974000000000000000000000000604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601e908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652e0000604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526012908201527f50726573616c65206e6f74206163746976650000000000000000000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252601e908201527f4164647265737320646f6573206e6f7420657869737420696e206c6973740000604082015260600190565b6020808252601b908201527f43616e206f6e6c792062726565642047656e65736973526f626f730000000000604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252600f908201527f6d61782070657220616464726573730000000000000000000000000000000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526011908201527f4272656564696e672064697361626c6564000000000000000000000000000000604082015260600190565b60208082526015908201527f4e616d6520616c72656164792072657365727665640000000000000000000000604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252600f908201527f53616c65206e6f74205075626c69630000000000000000000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b60208082526023908201527f4e6577206e616d652069732073616d65206173207468652063757272656e742060408201527f6f6e650000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252600f908201527f737570706c792065786365656465640000000000000000000000000000000000604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252600b908201527f6e6f74206f776e65724f66000000000000000000000000000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b60208082526018908201527f496e636f7272656374204554482076616c75652073656e740000000000000000604082015260600190565b6020808252600f908201527f436f6e7472616374205061757365640000000000000000000000000000000000604082015260600190565b60208082526014908201527f4e6f7420612076616c6964206e6577206e616d65000000000000000000000000604082015260600190565b61ffff91909116815260200190565b90815260200190565b60ff91909116815260200190565b6000821982111561463b5761463b61475c565b500190565b600060ff821660ff84168060ff0382111561465d5761465d61475c565b019392505050565b60008261467457614674614772565b500490565b60008160001904831182151516156146935761469361475c565b500290565b6000828210156146aa576146aa61475c565b500390565b60005b838110156146ca5781810151838201526020016146b2565b838111156114e75750506000910152565b6000816146ea576146ea61475c565b506000190190565b60028104600182168061470657607f821691505b6020821081141561472757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156147415761474161475c565b5060010190565b60008261475757614757614772565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146113e357600080fd5b6001600160e01b0319811681146113e357600080fdfea2646970667358221220e9af35c56571e12bc2c8d08f56f1be4f46680039e6eff1712b1be5cf15c631f164736f6c63430008000033

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

00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000501a676687368905e74e1c1e30ae3d6ac5ca2bbe0000000000000000000000000000000000000000000000000000000000000008526f626f734e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000352425400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5139476536583847715257724668334e79326e66344d314d367276636e667051544555535a4c75574659357a2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003426f62000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

-----Decoded View---------------
Arg [0] : _name (string): RobosNFT
Arg [1] : _symbol (string): RBT
Arg [2] : _initBaseURI (string): ipfs://QmQ9Ge6X8GqRWrFh3Ny2nf4M1M6rvcnfpQTEUSZLuWFY5z/
Arg [3] : _names (string[]): Bob
Arg [4] : _ids (uint256[]): 1
Arg [5] : _xurgi (address): 0x501a676687368905E74e1C1E30ae3D6AC5Ca2bBE

-----Encoded View---------------
19 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [5] : 000000000000000000000000501a676687368905e74e1c1e30ae3d6ac5ca2bbe
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [7] : 526f626f734e4654000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 5242540000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [11] : 697066733a2f2f516d5139476536583847715257724668334e79326e66344d31
Arg [12] : 4d367276636e667051544555535a4c75574659357a2f00000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [16] : 426f620000000000000000000000000000000000000000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000001


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.