ETH Price: $3,967.65 (+2.69%)

Token

ERC-20: Gleaf (GLEAF)
 

Overview

Max Total Supply

1,093,163.54505614166 GLEAF

Holders

212

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
kevinsturmer.eth
Balance
494.8469061534 GLEAF

Value
$0.00
0xc8696e339651d7972abd8d5399443b4b838dc29b
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:
Gleaf

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : Gleaf.sol
// SPDX-License-Identifier: MIT
//Tes-Sal
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract GiraffeTower {
    function getGenesisAddresses() public view returns (address[] memory) {}

    function getGenesisAddress(uint256 token_id)
        public
        view
        returns (address)
    {}

    function walletOfOwner(address _owner)
        public
        view
        returns (uint256[] memory)
    {}

    struct Giraffe {
        uint256 birthday;
    }
    mapping(uint256 => Giraffe) public giraffes;
}

contract Gleaf is ERC20Burnable, Ownable {
    event LogNewAlert(string description, address indexed _from, uint256 _n);
    event NameChange(uint256 tokenId, string name);
    using SafeMath for uint256;
    address nullAddress = 0x0000000000000000000000000000000000000000;

    address public giraffetowerAddress = 0xb487A91382cD66076fc4C1AF4D7d8CE7f929A9bA;
    //Mapping of giraffe to timestamp
    mapping(uint256 => uint256) internal tokenIdToTimeStamp;
    mapping(uint256 => uint256) tokenRound;
    mapping(uint256 => string) giraffeName;
    uint256 public nameChangePrice = 10 ether;
    // Mapping if certain name string has already been reserved
    mapping(string => bool) private _nameReserved;
    uint256 public EMISSIONS_RATE = 11574070000000;
    uint256 public STAKED_EMISSIONS_RATE = 5787030000000;
    bool public CLAIM_STATUS = true;
    uint256 public CLAIM_START_TIME;
    uint256 totalDividends = 0;
    uint256 ownerRoyalty = 0;
    uint256 public OgsCount = 100;
    address pr = 0x044780Ef6d06BF528c03f423bF3D9d8a88837A3f;
    uint256 public MAX_TOKEN = 50;
    bool public STAKING_STATUS = true;
    uint256 public STAKE_CLAIM_START_TIME;
    uint256[] public stakedTokens;
     //Mapping of giraffe to timestamp
    mapping(uint256 => uint256) internal stakedTokenIdToTimeStamp;

    //Mapping of giraffe to staker
    mapping(uint256 => address) internal stakedTokenIdToStaker;

    //Mapping of staker to giraffe
    mapping(address => uint256[]) internal stakerToTokenIds;
    //Mapping of giraffeid to fee
    mapping(uint256 => uint256) public giraffeLendFee;

    event Received(address, uint256);

    constructor() ERC20("Gleaf", "GLEAF") {
        CLAIM_START_TIME = block.timestamp;
        STAKE_CLAIM_START_TIME = block.timestamp;
    }

    function getTokensStaked(address staker)
        public
        view
        returns (uint256[] memory)
    {
        return stakerToTokenIds[staker];
    }

    function getGiraffeLendFee(uint256 token_id)
        public
        view
        returns (uint256 )
    {
        return giraffeLendFee[token_id];
    }


    function remove(address staker, uint256 index) internal {
        if (index >= stakerToTokenIds[staker].length) return;

        for (uint256 i = index; i < stakerToTokenIds[staker].length - 1; i++) {
            stakerToTokenIds[staker][i] = stakerToTokenIds[staker][i + 1];
        }
        stakerToTokenIds[staker].pop();
    }

    function removeTokenIdFromStaker(address staker, uint256 tokenId) internal {
        for (uint256 i = 0; i < stakerToTokenIds[staker].length; i++) {
            if (stakerToTokenIds[staker][i] == tokenId) {
                //This is the tokenId to remove;
                remove(staker, i);
                giraffeLendFee[tokenId] = 0;
            }
        }
    }

    function stakeByIds(uint256[] memory tokenIds) public {
        require(STAKING_STATUS == true, "Staking Closed, try again later");
        require(
            tokenIds.length <= MAX_TOKEN,
            "Kindly Use the other function to unstake your giraffe!"
        );
        for (uint256 i = 0; i < tokenIds.length; i++) {
            require(
                IERC721(giraffetowerAddress).ownerOf(tokenIds[i]) == msg.sender &&
                    stakedTokenIdToStaker[tokenIds[i]] == nullAddress,
                "Token must be stakable by you!"
            );

            IERC721(giraffetowerAddress).transferFrom(
                msg.sender,
                address(this),
                tokenIds[i]
            );

            stakerToTokenIds[msg.sender].push(tokenIds[i]);

            stakedTokenIdToTimeStamp[tokenIds[i]] = block.timestamp;
            stakedTokenIdToStaker[tokenIds[i]] = msg.sender;
        }
    }

    function unstakeAll() public {
        require(
            stakerToTokenIds[msg.sender].length > 0,
            "Must have at least one token staked!"
        );
        require(
            stakerToTokenIds[msg.sender].length <= MAX_TOKEN,
            "Kindly Use the other function to unstake your giraffe!"
        );
        uint256 totalRewards = 0;

        for (uint256 i = stakerToTokenIds[msg.sender].length; i > 0; i--) {
            uint256 tokenId = stakerToTokenIds[msg.sender][i - 1];

            IERC721(giraffetowerAddress).transferFrom(
                address(this),
                msg.sender,
                tokenId
            );
            if(stakedTokenIdToTimeStamp[tokenId] < STAKE_CLAIM_START_TIME){
                stakedTokenIdToTimeStamp[tokenId] = STAKE_CLAIM_START_TIME;
            }
            totalRewards =
                totalRewards +
                ((block.timestamp - stakedTokenIdToTimeStamp[tokenId]) *
                    STAKED_EMISSIONS_RATE);

            removeTokenIdFromStaker(msg.sender, tokenId);

            stakedTokenIdToStaker[tokenId] = nullAddress;
        }

        _mint(msg.sender, totalRewards);
    }

    function unstakeByIds(uint256[] memory tokenIds) public {
        uint256 totalRewards = 0;
        require(
            tokenIds.length <= MAX_TOKEN,
            "Only unstake 20 per txn!"
        );
        for (uint256 i = 0; i < tokenIds.length; i++) {
            require(
                stakedTokenIdToStaker[tokenIds[i]] == msg.sender,
                "Message Sender was not original staker!"
            );

            IERC721(giraffetowerAddress).transferFrom(
                address(this),
                msg.sender,
                tokenIds[i]
            );
            if(stakedTokenIdToTimeStamp[tokenIds[i]] < STAKE_CLAIM_START_TIME){
                stakedTokenIdToTimeStamp[tokenIds[i]] = STAKE_CLAIM_START_TIME;
            }
            totalRewards =
                totalRewards +
                ((block.timestamp - stakedTokenIdToTimeStamp[tokenIds[i]]) *
                    STAKED_EMISSIONS_RATE);

            removeTokenIdFromStaker(msg.sender, tokenIds[i]);

            stakedTokenIdToStaker[tokenIds[i]] = nullAddress;
        }

        _mint(msg.sender, totalRewards);
    }

    function stakedclaimByTokenIds(uint256[] memory tokenIds) public {
        uint256 totalRewards = 0;
        require(
            tokenIds.length <= MAX_TOKEN,
            "Only claim 50 per txn!"
        );
        for (uint256 i = 0; i < tokenIds.length; i++) {
            if(stakedTokenIdToStaker[tokenIds[i]] != msg.sender){
                 require(
            IERC721(giraffetowerAddress).ownerOf(tokenIds[i]) == msg.sender,
            "Token is not claimable by you!"
        );
            }
        
         if(stakedTokenIdToTimeStamp[tokenIds[i]] < STAKE_CLAIM_START_TIME){
                stakedTokenIdToTimeStamp[tokenIds[i]] = STAKE_CLAIM_START_TIME;
            }

        totalRewards = totalRewards + ((block.timestamp - stakedTokenIdToTimeStamp[tokenIds[i]]) * STAKED_EMISSIONS_RATE);

        stakedTokenIdToTimeStamp[tokenIds[i]] = block.timestamp;
        }

        _mint(msg.sender, totalRewards);
    }

    function stakedClaimAll() public {
        // require(block.timestamp < CLAIM_END_TIME, "Claim period is over!");
        uint256[] memory tokenIds = stakerToTokenIds[msg.sender];
        uint256 totalRewards = 0;

        for (uint256 i = 0; i < tokenIds.length; i++) {
            require(
                stakedTokenIdToStaker[tokenIds[i]] == msg.sender,
                "Token is not claimable by you!"
            );
            if(stakedTokenIdToTimeStamp[tokenIds[i]] < STAKE_CLAIM_START_TIME){
                stakedTokenIdToTimeStamp[tokenIds[i]] = STAKE_CLAIM_START_TIME;
            }
            totalRewards =
                totalRewards +
                ((block.timestamp - stakedTokenIdToTimeStamp[tokenIds[i]]) *
                    STAKED_EMISSIONS_RATE);

            stakedTokenIdToTimeStamp[tokenIds[i]] = block.timestamp;
        }

        _mint(msg.sender, totalRewards);
    }

    function stakedGetAllRewards(address staker) public view returns (uint256) {
        uint256[] memory tokenIds = stakerToTokenIds[staker];
        uint256 totalRewards = 0;

        for (uint256 i = 0; i < tokenIds.length; i++) {
            uint256 sct = stakedTokenIdToTimeStamp[tokenIds[i]];
            if(sct < STAKE_CLAIM_START_TIME){
               sct = STAKE_CLAIM_START_TIME;
            }
            totalRewards =
                totalRewards +
                ((block.timestamp - sct) *
                    STAKED_EMISSIONS_RATE);
        }

        return totalRewards;
    }

    function stakedGetRewardsByTokenId(uint256 tokenId)
        public
        view
        returns (uint256)
    {
        require(
            stakedTokenIdToStaker[tokenId] != nullAddress,
            "Token is not staked!"
        );
        uint256 sct = stakedTokenIdToTimeStamp[tokenId];
        if(sct < STAKE_CLAIM_START_TIME){
               sct = STAKE_CLAIM_START_TIME;
            }
        uint256 secondsStaked = block.timestamp - sct;

        return secondsStaked * STAKED_EMISSIONS_RATE;
    }

    function getStaker(uint256 tokenId) public view returns (address) {
        return stakedTokenIdToStaker[tokenId];
    }

    function getPr() public view returns (address) {
        return pr;
    }

    function setGiraffetowerAddress(address _giraffetowerAddress)
        public
        onlyOwner
    {
        giraffetowerAddress = _giraffetowerAddress;
        return;
    }

    function setEmissionRate(uint256 _emissionrate) public onlyOwner {
        EMISSIONS_RATE = _emissionrate;
        return;
    }

    function setStakedEmissionRate(uint256 _emissionrate) public onlyOwner {
        STAKED_EMISSIONS_RATE = _emissionrate;
        STAKE_CLAIM_START_TIME = block.timestamp;
        return;
    }

    function setStakingStatus(bool _status) public onlyOwner {
        STAKING_STATUS = _status;
        return;
    }

    function setMaxToken(uint256 _maxtoken) public onlyOwner {
        MAX_TOKEN = _maxtoken;
        return;
    }

    function setGiraffeLendFee(uint256[] memory tokenIds, uint256[] memory fees) public {
         for (uint256 i = 0; i < tokenIds.length; i++) {
            require(
                stakedTokenIdToStaker[tokenIds[i]] == msg.sender,
                "You cannot set lending fee!"
            );
            giraffeLendFee[tokenIds[i]] = fees[i];
        }
        return;
    }

    function setGiraffeName(uint256 tokenId, string memory name) public {
        if(stakedTokenIdToStaker[tokenId] != msg.sender){
            require(
            IERC721(giraffetowerAddress).ownerOf(tokenId) == msg.sender,
            "Token is not nameable by you!"
        );
        }
        require(validateName(name) == true, "Not a valid new name");
        require(
            sha256(bytes(name)) != sha256(bytes(giraffeName[tokenId])),
            "New name is same as the current one"
        );
        require(isNameReserved(name) == false, "Name already reserved");
        if(stakedTokenIdToStaker[tokenId] != msg.sender){ //Allow Staked Users To change name for free
        uint256 allowance = allowance(msg.sender, pr);
        require(allowance >= nameChangePrice, "Check the token allowance");
        transferFrom(msg.sender, pr, nameChangePrice);
        }
        if (bytes(giraffeName[tokenId]).length > 0) {
            toggleReserveName(giraffeName[tokenId], false);
        }
        toggleReserveName(name, true);
        giraffeName[tokenId] = name;
        emit NameChange(tokenId, name);
    }

    function setPr(address _address) public onlyOwner{ 
        pr = _address;
    }

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

    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 (uint256 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 (uint256 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);
    }

    function getGiraffeName(uint256 tokenId)
        public
        view
        returns (string memory)
    {
        return giraffeName[tokenId];
    }
    

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

    function setClaimStatus(bool _claimstatus) public onlyOwner {
        CLAIM_STATUS = _claimstatus;
        return;
    }

     function claimByTokenIds(uint256[] memory tokenIds) public {
        GiraffeTower gt = GiraffeTower(giraffetowerAddress);
        uint256 totalRewards = 0;
        require(
            tokenIds.length <= MAX_TOKEN,
            "Only claim 50 per txn!"
        );
        for (uint256 i = 0; i < tokenIds.length; i++) {
            if(stakedTokenIdToStaker[tokenIds[i]] != msg.sender){
                 require(
            IERC721(giraffetowerAddress).ownerOf(tokenIds[i]) == msg.sender,
            "Token is not claimable by you!"
        );
            }
         if (tokenIdToTimeStamp[tokenIds[i]] == 0) {
                uint256 birthday = gt.giraffes(tokenIds[i]);
                uint256 stime = 0;
                if (birthday > CLAIM_START_TIME) {
                    stime = birthday;
                } else {
                    stime = CLAIM_START_TIME;
                }
                if (gt.getGenesisAddress(tokenIds[i]) == msg.sender && birthday < CLAIM_START_TIME) {
                    totalRewards += (4320000 * EMISSIONS_RATE);
                }
                tokenIdToTimeStamp[tokenIds[i]] = stime;
            }
            totalRewards =
                totalRewards +
                ((block.timestamp - tokenIdToTimeStamp[tokenIds[i]]) *
                    EMISSIONS_RATE);

            tokenIdToTimeStamp[tokenIds[i]] = block.timestamp;
        }

        _mint(msg.sender, totalRewards);
    }

    function claimAll() public {
        require(CLAIM_STATUS == true, "Claim disabled!");
        GiraffeTower gt = GiraffeTower(giraffetowerAddress);
        address _address = msg.sender;
        uint256[] memory tokenIds = gt.walletOfOwner(_address);
        uint256[] memory stokenIds = getTokensStaked(_address);
        uint256 totalRewards = 0;
        for (uint256 i = 0; i < tokenIds.length; i++) {

            if (tokenIdToTimeStamp[tokenIds[i]] == 0) {
                uint256 birthday = gt.giraffes(tokenIds[i]);
                uint256 stime = 0;
                if (birthday > CLAIM_START_TIME) {
                    stime = birthday;
                } else {
                    stime = CLAIM_START_TIME;
                }
                if (gt.getGenesisAddress(tokenIds[i]) == msg.sender && birthday < CLAIM_START_TIME) {
                    totalRewards = totalRewards + (4320000 * EMISSIONS_RATE);
                }
                tokenIdToTimeStamp[tokenIds[i]] = stime;
            }
            totalRewards =
                totalRewards +
                ((block.timestamp - tokenIdToTimeStamp[tokenIds[i]]) *
                    EMISSIONS_RATE);

            tokenIdToTimeStamp[tokenIds[i]] = block.timestamp;
        }

        for (uint256 i = 0; i < stokenIds.length; i++) {

            if (tokenIdToTimeStamp[stokenIds[i]] == 0) {
                uint256 birthday = gt.giraffes(stokenIds[i]);
                uint256 stime = 0;
                if (birthday > CLAIM_START_TIME) {
                    stime = birthday;
                } else {
                    stime = CLAIM_START_TIME;
                }
                if (gt.getGenesisAddress(stokenIds[i]) == msg.sender && birthday < CLAIM_START_TIME) {
                    totalRewards = totalRewards + (4320000 * EMISSIONS_RATE);
                }
                tokenIdToTimeStamp[stokenIds[i]] = stime;
            }
            totalRewards =
                totalRewards +
                ((block.timestamp - tokenIdToTimeStamp[stokenIds[i]]) *
                    EMISSIONS_RATE);

            tokenIdToTimeStamp[stokenIds[i]] = block.timestamp;
        }
        require(totalRewards > 0, "LTR!");
        _mint(msg.sender, totalRewards);
    }

    function getAllRewards(address _address) public view returns (uint256) {
        GiraffeTower gt = GiraffeTower(giraffetowerAddress);
        uint256[] memory tokenIds = gt.walletOfOwner(_address);
        uint256[] memory stokenIds = getTokensStaked(_address);

        uint256 totalRewards = 0;
        for (uint256 i = 0; i < tokenIds.length; i++) {
            if (tokenIdToTimeStamp[tokenIds[i]] == 0) {
                uint256 birthday = gt.giraffes(tokenIds[i]);
                uint256 stime = 0;
                if (birthday > CLAIM_START_TIME) {
                    stime = birthday;
                } else {
                    stime = CLAIM_START_TIME;
                }
                if (gt.getGenesisAddress(tokenIds[i]) == _address && birthday < CLAIM_START_TIME) {
                    totalRewards = totalRewards + (4320000 * EMISSIONS_RATE);
                }
                totalRewards =
                    totalRewards +
                    ((block.timestamp - stime) * EMISSIONS_RATE);
            } else {
                totalRewards =
                    totalRewards +
                    ((block.timestamp - tokenIdToTimeStamp[tokenIds[i]]) *
                        EMISSIONS_RATE);
            }
        }

        for (uint256 i = 0; i < stokenIds.length; i++) {
            if (tokenIdToTimeStamp[stokenIds[i]] == 0) {
                uint256 birthday = gt.giraffes(stokenIds[i]);
                uint256 stime = 0;
                if (birthday > CLAIM_START_TIME) {
                    stime = birthday;
                } else {
                    stime = CLAIM_START_TIME;
                }
                if (gt.getGenesisAddress(stokenIds[i]) == _address && birthday < CLAIM_START_TIME) {
                    totalRewards = totalRewards + (4320000 * EMISSIONS_RATE);
                }
                totalRewards =
                    totalRewards +
                    ((block.timestamp - stime) * EMISSIONS_RATE);
            } else {
                totalRewards =
                    totalRewards +
                    ((block.timestamp - tokenIdToTimeStamp[stokenIds[i]]) *
                        EMISSIONS_RATE);
            }
        }
        return totalRewards;
    }

    function getRewardsByTokenId(uint256 tokenId)
        public
        view
        returns (uint256)
    {
        GiraffeTower gt = GiraffeTower(giraffetowerAddress);
        uint256 birthday = gt.giraffes(tokenId);
        uint256 stime = 0;
        if (birthday > CLAIM_START_TIME) {
            stime = birthday;
        } else {
            stime = CLAIM_START_TIME;
        }
        uint256 totalRewards = 0;

        if (tokenIdToTimeStamp[tokenId] == 0) {
            if (gt.getGenesisAddress(tokenId) == msg.sender && birthday < CLAIM_START_TIME) {
                totalRewards = totalRewards + (4320000 * EMISSIONS_RATE);
            }
            totalRewards =
                totalRewards +
                ((block.timestamp - stime) * EMISSIONS_RATE);
        } else {
            totalRewards =
                totalRewards +
                ((block.timestamp - tokenIdToTimeStamp[tokenId]) *
                    EMISSIONS_RATE);
        }

        return totalRewards;
    }

    function getBirthday(uint256 tokenId) public view returns (uint256) {
        GiraffeTower gt = GiraffeTower(giraffetowerAddress);
        uint256 birthday = gt.giraffes(tokenId);

        return birthday;
    }

    function _ownerRoyalty() public view returns (uint256) {
        return ownerRoyalty;
    }

    receive() external payable {
        emit Received(msg.sender, msg.value);
        uint256 tt = msg.value / 5;
        totalDividends += tt;
        uint256 ot = msg.value - tt;
        ownerRoyalty += ot;
    }

    function withdrawReward(uint256 tokenId) external {
        if(stakedTokenIdToStaker[tokenId] != msg.sender){
        require(
            IERC721(giraffetowerAddress).ownerOf(tokenId) == msg.sender &&
                tokenId <= 100,
            "WR:Invalid"
        );
        }
        require(tokenId <= 100, "Invalid");
        uint256 total = (totalDividends - tokenRound[tokenId]) / OgsCount;
        require(total > 0, "Too Low");
        tokenRound[tokenId] = totalDividends;
        sendEth(msg.sender, total);
    }

    function withdrawAllReward() external {
        address _address = msg.sender;
        GiraffeTower gt = GiraffeTower(giraffetowerAddress);
        uint256[] memory _tokensOwned = gt.walletOfOwner(_address);
        uint256[] memory _stokensOwned = getTokensStaked(_address);
        uint256 totalClaim = 0;
        for (uint256 i; i < _tokensOwned.length; i++) {
            if (_tokensOwned[i] <= 100) {
                totalClaim +=
                    (totalDividends - tokenRound[_tokensOwned[i]]) /
                    OgsCount;
                tokenRound[_tokensOwned[i]] = totalDividends;
            }
        }
        for (uint256 i; i < _stokensOwned.length; i++) {
            if (_stokensOwned[i] <= 100) {
                totalClaim +=
                    (totalDividends - tokenRound[_stokensOwned[i]]) /
                    OgsCount;
                tokenRound[_stokensOwned[i]] = totalDividends;
            }
        }
        require(totalClaim > 0, "WAR: LTC");
        sendEth(msg.sender, totalClaim);
    }

    function withdrawRoyalty() external onlyOwner {
        require(ownerRoyalty > 0, "WRLTY:Invalid");
        uint256 total = ownerRoyalty;
        ownerRoyalty = 0;
        sendEth(msg.sender, total);
    }

    function rewardBalance(uint256 tokenId) public view returns (uint256) {
           require(tokenId < 100 , "RB:Invalid");
        uint256 total = (totalDividends - tokenRound[tokenId]) / OgsCount;
        return total;
    }

    function getAllReward(address _address) public view returns (uint256) {
        GiraffeTower gt = GiraffeTower(giraffetowerAddress);
        uint256[] memory _tokensOwned = gt.walletOfOwner(_address);
        uint256[] memory _stokensOwned = getTokensStaked(_address);
        uint256 totalClaim = 0;
        for (uint256 i; i < _tokensOwned.length; i++) {
            if (_tokensOwned[i] <= 100) {
                totalClaim +=
                    (totalDividends - tokenRound[_tokensOwned[i]]) /
                    OgsCount;
            }
        }
        for (uint256 i; i < _stokensOwned.length; i++) {
            if (_stokensOwned[i] <= 100) {
                totalClaim +=
                    (totalDividends - tokenRound[_stokensOwned[i]]) /
                    OgsCount;
            }
        }
        return totalClaim;
    }

    

    function withdrawFunds(uint256 amount) public onlyOwner {
        sendEth(msg.sender, amount);
    }

    function sendEth(address to, uint256 amount) internal {
        (bool success, ) = to.call{value: amount}("");
        require(success, "Failed to send ether");
    }

    function withdrawToken(
        IERC20 token,
        address recipient,
        uint256 amount
    ) public onlyOwner {
        require(
            token.balanceOf(address(this)) >= amount,
            "You do not have sufficient Balance"
        );
        token.transfer(recipient, amount);
    }
}

File 2 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 4 of 11 : Context.sol
// SPDX-License-Identifier: MIT

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 5 of 11 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

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 6 of 11 : IERC721.sol
// SPDX-License-Identifier: MIT

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 7 of 11 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

File 8 of 11 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

File 9 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

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

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

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

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

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

File 10 of 11 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

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

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"description","type":"string"},{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_n","type":"uint256"}],"name":"LogNewAlert","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","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":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"Received","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"CLAIM_START_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CLAIM_STATUS","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EMISSIONS_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OgsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAKED_EMISSIONS_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAKE_CLAIM_START_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAKING_STATUS","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_ownerRoyalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"changeNamePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claimByTokenIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getAllReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getAllRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getBirthday","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"token_id","type":"uint256"}],"name":"getGiraffeLendFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getGiraffeName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getRewardsByTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getStaker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getTokensStaked","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"giraffeLendFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"giraffetowerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"nameString","type":"string"}],"name":"isNameReserved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nameChangePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"rewardBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_claimstatus","type":"bool"}],"name":"setClaimStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_emissionrate","type":"uint256"}],"name":"setEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"fees","type":"uint256[]"}],"name":"setGiraffeLendFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"name","type":"string"}],"name":"setGiraffeName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_giraffetowerAddress","type":"address"}],"name":"setGiraffetowerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxtoken","type":"uint256"}],"name":"setMaxToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setPr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_emissionrate","type":"uint256"}],"name":"setStakedEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setStakingStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakeByIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakedClaimAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"stakedGetAllRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stakedGetRewardsByTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakedclaimByTokenIds","outputs":[],"stateMutability":"nonpayable","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstakeByIds","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":[],"name":"withdrawAllReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdrawReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600680546001600160a01b031990811690915560078054821673b487a91382cd66076fc4c1af4d7d8ce7f929a9ba179055678ac7230489e80000600b55650a86cc54b980600d5565054365de1180600e55600f805460ff1990811660019081179092556000601181905560125560646013556014805490931673044780ef6d06bf528c03f423bf3d9d8a88837a3f17909255603260155560168054909216179055348015620000b257600080fd5b506040518060400160405280600581526020016423b632b0b360d91b8152506040518060400160405280600581526020016423a622a0a360d91b8152508160039080519060200190620001079291906200019f565b5080516200011d9060049060208401906200019f565b5050506200013a620001346200014960201b60201c565b6200014d565b42601081905560175562000282565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001ad9062000245565b90600052602060002090601f016020900481019282620001d157600085556200021c565b82601f10620001ec57805160ff19168380011785556200021c565b828001600101855582156200021c579182015b828111156200021c578251825591602001919060010190620001ff565b506200022a9291506200022e565b5090565b5b808211156200022a57600081556001016200022f565b600181811c908216806200025a57607f821691505b602082108114156200027c57634e487b7160e01b600052602260045260246000fd5b50919050565b6159d280620002926000396000f3fe6080604052600436106103dd5760003560e01c8063859b2f0f116101fd578063bfe558bc11610118578063d2a0e9da116100ab578063f1147bae1161007a578063f1147bae14610c11578063f2fde38b14610c26578063fbda761814610c46578063fc8504ea14610c66578063ff3d43fe14610c865761046a565b8063d2a0e9da14610b55578063d9ffad4714610b75578063dd62ed3e14610b95578063e3c998fe14610bdb5761046a565b8063c8d2524c116100e7578063c8d2524c14610aea578063c986cb3014610b0a578063cc371bf314610b20578063d1058e5914610b405761046a565b8063bfe558bc14610a70578063c078855514610a8a578063c4b6b11d14610aaa578063c5800cbf14610aca5761046a565b80639ffdb65a11610190578063aed467231161015f578063aed46723146109fa578063b8bec6a014610a1a578063b8e58c3914610a3a578063ba7e766214610a5a5761046a565b80639ffdb65a1461097a578063a1bdb15e1461099a578063a457c2d7146109ba578063a9059cbb146109da5761046a565b80638f61c15b116101cc5780638f61c15b146109075780639416b4231461092557806394ea3f241461094557806395d89b41146109655761046a565b8063859b2f0f1461088a57806386e3ff75146108a05780638bac9ff3146108c05780638da5cb5b146108d55761046a565b806348aa1936116102f857806367fc963a1161028b57806370a082311161025a57806370a08231146107df578063715018a6146108155780637277948b1461082a57806379cc67901461084a57806383456c931461086a5761046a565b806367fc963a1461075a5780636b37fbaa146107875780636d627adc1461079c5780636e1bd323146107c95761046a565b806352eb7796116102c757806352eb7796146106e257806353b3d2ae1461070f57806353f3593f14610725578063654f97a31461073a5761046a565b806348aa193614610662578063515ec10514610682578063523a3f08146106a25780635293cf24146106c25761046a565b8063313ce56711610370578063395093511161033f57806339509351146105f257806342966c681461061257806345ca77381461063257806346922fb5146106485761046a565b8063313ce5671461058b57806335322f37146105a7578063362a3fad146105bc57806336a82154146105dc5761046a565b8063155dd5ee116103ac578063155dd5ee1461050c57806315b56d101461052c57806318160ddd1461054c57806323b872dd1461056b5761046a565b806301e336671461046f57806306fdde0314610491578063095ea7b3146104bc57806309acc2cb146104ec5761046a565b3661046a57604080513381523460208201527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874910160405180910390a1600061042760053461585e565b9050806011600082825461043b9190615821565b909155506000905061044d823461589d565b905080601260008282546104619190615821565b90915550505050005b600080fd5b34801561047b57600080fd5b5061048f61048a36600461534f565b610ca6565b005b34801561049d57600080fd5b506104a6610e33565b6040516104b391906156de565b60405180910390f35b3480156104c857600080fd5b506104dc6104d736600461538f565b610ec5565b60405190151581526020016104b3565b3480156104f857600080fd5b5061048f610507366004615564565b610edb565b34801561051857600080fd5b5061048f610527366004615564565b610f0e565b34801561053857600080fd5b506104dc610547366004615531565b610f42565b34801561055857600080fd5b506002545b6040519081526020016104b3565b34801561057757600080fd5b506104dc61058636600461534f565b610f77565b34801561059757600080fd5b50604051601281526020016104b3565b3480156105b357600080fd5b5061048f611021565b3480156105c857600080fd5b5061055d6105d73660046152df565b611235565b3480156105e857600080fd5b5061055d60175481565b3480156105fe57600080fd5b506104dc61060d36600461538f565b6117fd565b34801561061e57600080fd5b5061048f61062d366004615564565b611839565b34801561063e57600080fd5b5061055d600b5481565b34801561065457600080fd5b506016546104dc9060ff1681565b34801561066e57600080fd5b5061048f61067d3660046153ba565b611843565b34801561068e57600080fd5b5061055d61069d366004615564565b611bac565b3480156106ae57600080fd5b5061048f6106bd366004615564565b611d71565b3480156106ce57600080fd5b5061048f6106dd3660046152df565b611f1a565b3480156106ee57600080fd5b506107026106fd3660046152df565b611f64565b6040516104b3919061569a565b34801561071b57600080fd5b5061055d60105481565b34801561073157600080fd5b5061048f611fd0565b34801561074657600080fd5b5061048f6107553660046154e1565b6121e1565b34801561076657600080fd5b5061055d610775366004615564565b6000908152601c602052604090205490565b34801561079357600080fd5b5061048f61221e565b3480156107a857600080fd5b5061055d6107b7366004615564565b601c6020526000908152604090205481565b3480156107d557600080fd5b5061055d60155481565b3480156107eb57600080fd5b5061055d6107fa3660046152df565b6001600160a01b031660009081526020819052604090205490565b34801561082157600080fd5b5061048f6124e0565b34801561083657600080fd5b5061055d6108453660046152df565b612516565b34801561085657600080fd5b5061048f61086536600461538f565b612614565b34801561087657600080fd5b5061048f6108853660046152df565b61269a565b34801561089657600080fd5b5061055d600e5481565b3480156108ac57600080fd5b5061055d6108bb366004615564565b6126e6565b3480156108cc57600080fd5b5060125461055d565b3480156108e157600080fd5b506005546001600160a01b03165b6040516001600160a01b0390911681526020016104b3565b34801561091357600080fd5b506014546001600160a01b03166108ef565b34801561093157600080fd5b506104a6610940366004615531565b612758565b34801561095157600080fd5b506007546108ef906001600160a01b031681565b34801561097157600080fd5b506104a6612915565b34801561098657600080fd5b506104dc610995366004615531565b612924565b3480156109a657600080fd5b5061048f6109b5366004615564565b612b66565b3480156109c657600080fd5b506104dc6109d536600461538f565b612b95565b3480156109e657600080fd5b506104dc6109f536600461538f565b612c2e565b348015610a0657600080fd5b5061048f610a15366004615480565b612c3b565b348015610a2657600080fd5b5061048f610a353660046154e1565b612d5f565b348015610a4657600080fd5b5061055d610a553660046152df565b612d9c565b348015610a6657600080fd5b5061055d600d5481565b348015610a7c57600080fd5b50600f546104dc9060ff1681565b348015610a9657600080fd5b5061055d610aa5366004615564565b612f90565b348015610ab657600080fd5b506104a6610ac5366004615564565b612fb1565b348015610ad657600080fd5b5061048f610ae536600461557c565b613049565b348015610af657600080fd5b5061055d610b05366004615564565b6134c3565b348015610b1657600080fd5b5061055d60135481565b348015610b2c57600080fd5b5061048f610b3b366004615564565b61354c565b348015610b4c57600080fd5b5061048f61357b565b348015610b6157600080fd5b5061048f610b703660046153ba565b613c75565b348015610b8157600080fd5b5061048f610b903660046153ba565b613f30565b348015610ba157600080fd5b5061055d610bb0366004615317565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610be757600080fd5b506108ef610bf6366004615564565b6000908152601a60205260409020546001600160a01b031690565b348015610c1d57600080fd5b5061048f6142d0565b348015610c3257600080fd5b5061048f610c413660046152df565b61434f565b348015610c5257600080fd5b5061055d610c61366004615564565b6143e7565b348015610c7257600080fd5b5061048f610c813660046153ba565b614487565b348015610c9257600080fd5b5061048f610ca1366004615564565b614905565b6005546001600160a01b03163314610cd95760405162461bcd60e51b8152600401610cd09061577e565b60405180910390fd5b6040516370a0823160e01b815230600482015281906001600160a01b038516906370a082319060240160206040518083038186803b158015610d1a57600080fd5b505afa158015610d2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d529190615519565b1015610dab5760405162461bcd60e51b815260206004820152602260248201527f596f7520646f206e6f7420686176652073756666696369656e742042616c616e604482015261636560f01b6064820152608401610cd0565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb90604401602060405180830381600087803b158015610df557600080fd5b505af1158015610e09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2d91906154fd565b50505050565b606060038054610e42906158f7565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6e906158f7565b8015610ebb5780601f10610e9057610100808354040283529160200191610ebb565b820191906000526020600020905b815481529060010190602001808311610e9e57829003601f168201915b5050505050905090565b6000610ed2338484614938565b50600192915050565b6005546001600160a01b03163314610f055760405162461bcd60e51b8152600401610cd09061577e565b60158190555b50565b6005546001600160a01b03163314610f385760405162461bcd60e51b8152600401610cd09061577e565b610f0b3382614a5c565b6000600c610f4f83612758565b604051610f5c91906155e3565b9081526040519081900360200190205460ff1690505b919050565b6000610f84848484614af6565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156110095760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610cd0565b6110168533858403614938565b506001949350505050565b336000908152601b60205260409020546110895760405162461bcd60e51b8152602060048201526024808201527f4d7573742068617665206174206c65617374206f6e6520746f6b656e207374616044820152636b65642160e01b6064820152608401610cd0565b601554336000908152601b602052604090205411156110ba5760405162461bcd60e51b8152600401610cd090615728565b336000908152601b60205260408120545b801561122a57336000908152601b602052604081206110eb60018461589d565b8154811061110957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546007546040516323b872dd60e01b8152306004820152336024820152604481018390529192506001600160a01b0316906323b872dd90606401600060405180830381600087803b15801561116857600080fd5b505af115801561117c573d6000803e3d6000fd5b5050601754600084815260196020526040902054101591506111ad9050576017546000828152601960205260409020555b600e546000828152601960205260409020546111c9904261589d565b6111d3919061587e565b6111dd9084615821565b92506111e93382614cc4565b6006546000918252601a602052604090912080546001600160a01b0319166001600160a01b0390921691909117905580611222816158e0565b9150506110cb565b50610f0b3382614d5f565b60075460405162438b6360e81b81526001600160a01b03838116600483015260009216908290829063438b63009060240160006040518083038186803b15801561127e57600080fd5b505afa158015611292573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112ba91908101906153ed565b905060006112c785611f64565b90506000805b835181101561155e57600860008583815181106112fa57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054600014156114ec576000856001600160a01b031663e4dc70ff86848151811061134a57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161137091815260200190565b60206040518083038186803b15801561138857600080fd5b505afa15801561139c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113c09190615519565b905060006010548211156113d55750806113da565b506010545b886001600160a01b0316876001600160a01b0316635328302f88868151811061141357634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161143991815260200190565b60206040518083038186803b15801561145157600080fd5b505afa158015611465573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148991906152fb565b6001600160a01b03161480156114a0575060105482105b156114c257600d546114b5906241eb0061587e565b6114bf9085615821565b93505b600d546114cf824261589d565b6114d9919061587e565b6114e39085615821565b9350505061154c565b600d546008600086848151811061151357634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205442611535919061589d565b61153f919061587e565b6115499083615821565b91505b8061155681615932565b9150506112cd565b5060005b82518110156117f3576008600084838151811061158f57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205460001415611781576000856001600160a01b031663e4dc70ff8584815181106115df57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161160591815260200190565b60206040518083038186803b15801561161d57600080fd5b505afa158015611631573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116559190615519565b9050600060105482111561166a57508061166f565b506010545b886001600160a01b0316876001600160a01b0316635328302f8786815181106116a857634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016116ce91815260200190565b60206040518083038186803b1580156116e657600080fd5b505afa1580156116fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171e91906152fb565b6001600160a01b0316148015611735575060105482105b1561175757600d5461174a906241eb0061587e565b6117549085615821565b93505b600d54611764824261589d565b61176e919061587e565b6117789085615821565b935050506117e1565b600d54600860008584815181106117a857634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054426117ca919061589d565b6117d4919061587e565b6117de9083615821565b91505b806117eb81615932565b915050611562565b5095945050505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610ed2918590611834908690615821565b614938565b610f0b3382614e3f565b6000601554825111156118985760405162461bcd60e51b815260206004820152601860248201527f4f6e6c7920756e7374616b65203230207065722074786e2100000000000000006044820152606401610cd0565b60005b8251811015611b9d57336001600160a01b0316601a60008584815181106118d257634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160a01b0316146119535760405162461bcd60e51b815260206004820152602760248201527f4d6573736167652053656e64657220776173206e6f74206f726967696e616c206044820152667374616b65722160c81b6064820152608401610cd0565b60075483516001600160a01b03909116906323b872dd903090339087908690811061198e57634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156119e857600080fd5b505af11580156119fc573d6000803e3d6000fd5b5050505060175460196000858481518110611a2757634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020541015611a865760175460196000858481518110611a6b57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020819055505b600e5460196000858481518110611aad57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205442611acf919061589d565b611ad9919061587e565b611ae39083615821565b9150611b1633848381518110611b0957634e487b7160e01b600052603260045260246000fd5b6020026020010151614cc4565b600660009054906101000a90046001600160a01b0316601a6000858481518110611b5057634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508080611b9590615932565b91505061189b565b50611ba83382614d5f565b5050565b60075460405163e4dc70ff60e01b8152600481018390526000916001600160a01b0316908290829063e4dc70ff9060240160206040518083038186803b158015611bf557600080fd5b505afa158015611c09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c2d9190615519565b90506000601054821115611c42575080611c47565b506010545b600085815260086020526040812054611d3557604051635328302f60e01b81526004810187905233906001600160a01b03861690635328302f9060240160206040518083038186803b158015611c9c57600080fd5b505afa158015611cb0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cd491906152fb565b6001600160a01b0316148015611ceb575060105483105b15611d0d57600d54611d00906241eb0061587e565b611d0a9082615821565b90505b600d54611d1a834261589d565b611d24919061587e565b611d2e9082615821565b9050611d68565b600d54600087815260086020526040902054611d51904261589d565b611d5b919061587e565b611d659082615821565b90505b95945050505050565b6000818152601a60205260409020546001600160a01b03163314611e5b576007546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e9060240160206040518083038186803b158015611dd357600080fd5b505afa158015611de7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0b91906152fb565b6001600160a01b0316148015611e22575060648111155b611e5b5760405162461bcd60e51b815260206004820152600a60248201526915d48e925b9d985b1a5960b21b6044820152606401610cd0565b6064811115611e965760405162461bcd60e51b8152602060048201526007602482015266125b9d985b1a5960ca1b6044820152606401610cd0565b601354600082815260096020526040812054601154919291611eb8919061589d565b611ec2919061585e565b905060008111611efe5760405162461bcd60e51b8152602060048201526007602482015266546f6f204c6f7760c81b6044820152606401610cd0565b601154600083815260096020526040902055611ba83382614a5c565b6005546001600160a01b03163314611f445760405162461bcd60e51b8152600401610cd09061577e565b600780546001600160a01b0383166001600160a01b031990911617905550565b6001600160a01b0381166000908152601b6020908152604091829020805483518184028101840190945280845260609392830182828015611fc457602002820191906000526020600020905b815481526020019060010190808311611fb0575b50505050509050919050565b336000908152601b602090815260408083208054825181850281018501909352808352919290919083018282801561202757602002820191906000526020600020905b815481526020019060010190808311612013575b505050505090506000805b8251811015611b9d57336001600160a01b0316601a600085848151811061206957634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160a01b0316146120aa5760405162461bcd60e51b8152600401610cd0906156f1565b601754601960008584815181106120d157634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020541015612130576017546019600085848151811061211557634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020819055505b600e546019600085848151811061215757634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205442612179919061589d565b612183919061587e565b61218d9083615821565b915042601960008584815181106121b457634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000208190555080806121d990615932565b915050612032565b6005546001600160a01b0316331461220b5760405162461bcd60e51b8152600401610cd09061577e565b600f805482151560ff1990911617905550565b60075460405162438b6360e81b81523360048201819052916001600160a01b031690600090829063438b63009060240160006040518083038186803b15801561226657600080fd5b505afa15801561227a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122a291908101906153ed565b905060006122af84611f64565b90506000805b83518110156123a25760648482815181106122e057634e487b7160e01b600052603260045260246000fd5b602002602001015111612390576013546009600086848151811061231457634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054601154612338919061589d565b612342919061585e565b61234c9083615821565b91506011546009600086848151811061237557634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020819055505b8061239a81615932565b9150506122b5565b5060005b82518110156124935760648382815181106123d157634e487b7160e01b600052603260045260246000fd5b602002602001015111612481576013546009600085848151811061240557634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054601154612429919061589d565b612433919061585e565b61243d9083615821565b91506011546009600085848151811061246657634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020819055505b8061248b81615932565b9150506123a6565b50600081116124cf5760405162461bcd60e51b81526020600482015260086024820152675741523a204c544360c01b6044820152606401610cd0565b6124d93382614a5c565b5050505050565b6005546001600160a01b0316331461250a5760405162461bcd60e51b8152600401610cd09061577e565b6125146000614f8d565b565b6001600160a01b0381166000908152601b602090815260408083208054825181850281018501909352808352849383018282801561257357602002820191906000526020600020905b81548152602001906001019080831161255f575b505050505090506000805b825181101561260c576000601960008584815181106125ad57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205490506017548110156125d557506017545b600e546125e2824261589d565b6125ec919061587e565b6125f69084615821565b925050808061260490615932565b91505061257e565b509392505050565b60006126208333610bb0565b90508181101561267e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610cd0565b61268b8333848403614938565b6126958383614e3f565b505050565b6005546001600160a01b031633146126c45760405162461bcd60e51b8152600401610cd09061577e565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6000606482106127255760405162461bcd60e51b815260206004820152600a60248201526914908e925b9d985b1a5960b21b6044820152606401610cd0565b601354600083815260096020526040812054601154919291612747919061589d565b612751919061585e565b9392505050565b606060008290506000815167ffffffffffffffff81111561278957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156127b3576020820181803683370190505b50905060005b825181101561260c5760418382815181106127e457634e487b7160e01b600052603260045260246000fd5b016020015160f81c108015906128225750605a83828151811061281757634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b156128a05782818151811061284757634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b60f81c60206128619190615839565b60f81b82828151811061288457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612903565b8281815181106128c057634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b8282815181106128eb57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053505b8061290d81615932565b9150506127b9565b606060048054610e42906158f7565b60008082905060018151101561293e576000915050610f72565b601981511115612952576000915050610f72565b8060008151811061297357634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916600160fd1b1415612998576000915050610f72565b80600182516129a7919061589d565b815181106129c557634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916600160fd1b14156129ea576000915050610f72565b600081600081518110612a0d57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916905060005b8251811015611016576000838281518110612a4c57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b0319169050600160fd1b81148015612a7d5750600160fd1b6001600160f81b03198416145b15612a8f576000945050505050610f72565b600360fc1b6001600160f81b0319821610801590612abb5750603960f81b6001600160f81b0319821611155b158015612af15750604160f81b6001600160f81b0319821610801590612aef5750602d60f91b6001600160f81b0319821611155b155b8015612b265750606160f81b6001600160f81b0319821610801590612b245750603d60f91b6001600160f81b0319821611155b155b8015612b405750600160fd1b6001600160f81b0319821614155b15612b52576000945050505050610f72565b915080612b5e81615932565b915050612a21565b6005546001600160a01b03163314612b905760405162461bcd60e51b8152600401610cd09061577e565b600d55565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015612c175760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610cd0565b612c243385858403614938565b5060019392505050565b6000610ed2338484614af6565b60005b825181101561269557336001600160a01b0316601a6000858481518110612c7557634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160a01b031614612ce65760405162461bcd60e51b815260206004820152601b60248201527f596f752063616e6e6f7420736574206c656e64696e67206665652100000000006044820152606401610cd0565b818181518110612d0657634e487b7160e01b600052603260045260246000fd5b6020026020010151601c6000858481518110612d3257634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020819055508080612d5790615932565b915050612c3e565b6005546001600160a01b03163314612d895760405162461bcd60e51b8152600401610cd09061577e565b6016805482151560ff1990911617905550565b60075460405162438b6360e81b81526001600160a01b03838116600483015260009216908290829063438b63009060240160006040518083038186803b158015612de557600080fd5b505afa158015612df9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612e2191908101906153ed565b90506000612e2e85611f64565b90506000805b8351811015612ee0576064848281518110612e5f57634e487b7160e01b600052603260045260246000fd5b602002602001015111612ece5760135460096000868481518110612e9357634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054601154612eb7919061589d565b612ec1919061585e565b612ecb9083615821565b91505b80612ed881615932565b915050612e34565b5060005b82518110156117f3576064838281518110612f0f57634e487b7160e01b600052603260045260246000fd5b602002602001015111612f7e5760135460096000858481518110612f4357634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054601154612f67919061589d565b612f71919061585e565b612f7b9083615821565b91505b80612f8881615932565b915050612ee4565b60188181548110612fa057600080fd5b600091825260209091200154905081565b6000818152600a60205260409020805460609190612fce906158f7565b80601f0160208091040260200160405190810160405280929190818152602001828054612ffa906158f7565b8015611fc45780601f1061301c57610100808354040283529160200191611fc4565b820191906000526020600020905b81548152906001019060200180831161302a5750939695505050505050565b6000828152601a60205260409020546001600160a01b03163314613139576007546040516331a9108f60e11b81526004810184905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156130ab57600080fd5b505afa1580156130bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130e391906152fb565b6001600160a01b0316146131395760405162461bcd60e51b815260206004820152601d60248201527f546f6b656e206973206e6f74206e616d6561626c6520627920796f75210000006044820152606401610cd0565b61314281612924565b151560011461318a5760405162461bcd60e51b81526020600482015260146024820152734e6f7420612076616c6964206e6577206e616d6560601b6044820152606401610cd0565b6000828152600a60205260409081902090516002916131a8916155ff565b602060405180830381855afa1580156131c5573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906131e89190615519565b6002826040516131f891906155e3565b602060405180830381855afa158015613215573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906132389190615519565b14156132925760405162461bcd60e51b815260206004820152602360248201527f4e6577206e616d652069732073616d65206173207468652063757272656e74206044820152626f6e6560e81b6064820152608401610cd0565b61329b81610f42565b156132e05760405162461bcd60e51b815260206004820152601560248201527413985b5948185b1c9958591e481c995cd95c9d9959605a1b6044820152606401610cd0565b6000828152601a60205260409020546001600160a01b03163314613397576014543360009081526001602090815260408083206001600160a01b0390941683529290522054600b548110156133775760405162461bcd60e51b815260206004820152601960248201527f436865636b2074686520746f6b656e20616c6c6f77616e6365000000000000006044820152606401610cd0565b601454600b546133949133916001600160a01b0390911690610f77565b50505b6000828152600a6020526040812080546133b0906158f7565b9050111561345b576000828152600a60205260409020805461345b91906133d6906158f7565b80601f0160208091040260200160405190810160405280929190818152602001828054613402906158f7565b801561344f5780601f106134245761010080835404028352916020019161344f565b820191906000526020600020905b81548152906001019060200180831161343257829003601f168201915b50505050506000614fdf565b613466816001614fdf565b6000828152600a6020908152604090912082516134859284019061516c565b507f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b82826040516134b79291906157b3565b60405180910390a15050565b60075460405163e4dc70ff60e01b8152600481018390526000916001600160a01b0316908290829063e4dc70ff9060240160206040518083038186803b15801561350c57600080fd5b505afa158015613520573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135449190615519565b949350505050565b6005546001600160a01b031633146135765760405162461bcd60e51b8152600401610cd09061577e565b600b55565b600f5460ff1615156001146135c45760405162461bcd60e51b815260206004820152600f60248201526e436c61696d2064697361626c65642160881b6044820152606401610cd0565b60075460405162438b6360e81b815233600482018190526001600160a01b039092169190600090839063438b63009060240160006040518083038186803b15801561360e57600080fd5b505afa158015613622573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261364a91908101906153ed565b9050600061365783611f64565b90506000805b8351811015613945576008600085838151811061368a57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205460001415613894576000866001600160a01b031663e4dc70ff8684815181106136da57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161370091815260200190565b60206040518083038186803b15801561371857600080fd5b505afa15801561372c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137509190615519565b9050600060105482111561376557508061376a565b506010545b336001600160a01b0316886001600160a01b0316635328302f8886815181106137a357634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016137c991815260200190565b60206040518083038186803b1580156137e157600080fd5b505afa1580156137f5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061381991906152fb565b6001600160a01b0316148015613830575060105482105b1561385257600d54613845906241eb0061587e565b61384f9085615821565b93505b806008600088868151811061387757634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000208190555050505b600d54600860008684815181106138bb57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054426138dd919061589d565b6138e7919061587e565b6138f19083615821565b9150426008600086848151811061391857634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002081905550808061393d90615932565b91505061365d565b5060005b8251811015613c31576008600084838151811061397657634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205460001415613b80576000866001600160a01b031663e4dc70ff8584815181106139c657634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016139ec91815260200190565b60206040518083038186803b158015613a0457600080fd5b505afa158015613a18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a3c9190615519565b90506000601054821115613a51575080613a56565b506010545b336001600160a01b0316886001600160a01b0316635328302f878681518110613a8f57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401613ab591815260200190565b60206040518083038186803b158015613acd57600080fd5b505afa158015613ae1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b0591906152fb565b6001600160a01b0316148015613b1c575060105482105b15613b3e57600d54613b31906241eb0061587e565b613b3b9085615821565b93505b8060086000878681518110613b6357634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000208190555050505b600d5460086000858481518110613ba757634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205442613bc9919061589d565b613bd3919061587e565b613bdd9083615821565b91504260086000858481518110613c0457634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020819055508080613c2990615932565b915050613949565b5060008111613c6b5760405162461bcd60e51b8152600401610cd0906020808252600490820152634c54522160e01b604082015260600190565b6124d93382614d5f565b600060155482511115613cc35760405162461bcd60e51b81526020600482015260166024820152754f6e6c7920636c61696d203530207065722074786e2160501b6044820152606401610cd0565b60005b8251811015611b9d57336001600160a01b0316601a6000858481518110613cfd57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160a01b031614613df957600754835133916001600160a01b031690636352211e90869085908110613d5d57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401613d8391815260200190565b60206040518083038186803b158015613d9b57600080fd5b505afa158015613daf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dd391906152fb565b6001600160a01b031614613df95760405162461bcd60e51b8152600401610cd0906156f1565b60175460196000858481518110613e2057634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020541015613e7f5760175460196000858481518110613e6457634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020819055505b600e5460196000858481518110613ea657634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205442613ec8919061589d565b613ed2919061587e565b613edc9083615821565b91504260196000858481518110613f0357634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020819055508080613f2890615932565b915050613cc6565b60165460ff161515600114613f875760405162461bcd60e51b815260206004820152601f60248201527f5374616b696e6720436c6f7365642c2074727920616761696e206c61746572006044820152606401610cd0565b60155481511115613faa5760405162461bcd60e51b8152600401610cd090615728565b60005b8151811015611ba857600754825133916001600160a01b031690636352211e90859085908110613fed57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161401391815260200190565b60206040518083038186803b15801561402b57600080fd5b505afa15801561403f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061406391906152fb565b6001600160a01b03161480156140d1575060065482516001600160a01b0390911690601a906000908590859081106140ab57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160a01b0316145b61411d5760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e206d757374206265207374616b61626c6520627920796f752100006044820152606401610cd0565b60075482516001600160a01b03909116906323b872dd903390309086908690811061415857634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156141b257600080fd5b505af11580156141c6573d6000803e3d6000fd5b5050336000908152601b602052604090208451909250849150839081106141fd57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001810184556000938452918320909101558251429160199185908590811061424457634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000208190555033601a600084848151811061428357634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080806142c890615932565b915050613fad565b6005546001600160a01b031633146142fa5760405162461bcd60e51b8152600401610cd09061577e565b60006012541161433c5760405162461bcd60e51b815260206004820152600d60248201526c15d49315164e925b9d985b1a59609a1b6044820152606401610cd0565b601280546000909155610f0b3382614a5c565b6005546001600160a01b031633146143795760405162461bcd60e51b8152600401610cd09061577e565b6001600160a01b0381166143de5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cd0565b610f0b81614f8d565b6006546000828152601a602052604081205490916001600160a01b039182169116141561444d5760405162461bcd60e51b8152602060048201526014602482015273546f6b656e206973206e6f74207374616b65642160601b6044820152606401610cd0565b60008281526019602052604090205460175481101561446b57506017545b6000614477824261589d565b9050600e5481613544919061587e565b60075460155482516001600160a01b039092169160009110156144e55760405162461bcd60e51b81526020600482015260166024820152754f6e6c7920636c61696d203530207065722074786e2160501b6044820152606401610cd0565b60005b83518110156148fa57336001600160a01b0316601a600086848151811061451f57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160a01b03161461461b57600754845133916001600160a01b031690636352211e9087908590811061457f57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016145a591815260200190565b60206040518083038186803b1580156145bd57600080fd5b505afa1580156145d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145f591906152fb565b6001600160a01b03161461461b5760405162461bcd60e51b8152600401610cd0906156f1565b6008600085838151811061463f57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205460001415614849576000836001600160a01b031663e4dc70ff86848151811061468f57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016146b591815260200190565b60206040518083038186803b1580156146cd57600080fd5b505afa1580156146e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147059190615519565b9050600060105482111561471a57508061471f565b506010545b336001600160a01b0316856001600160a01b0316635328302f88868151811061475857634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161477e91815260200190565b60206040518083038186803b15801561479657600080fd5b505afa1580156147aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147ce91906152fb565b6001600160a01b03161480156147e5575060105482105b1561480757600d546147fa906241eb0061587e565b6148049085615821565b93505b806008600088868151811061482c57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000208190555050505b600d546008600086848151811061487057634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205442614892919061589d565b61489c919061587e565b6148a69083615821565b915042600860008684815181106148cd57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000208190555080806148f290615932565b9150506144e8565b506126953382614d5f565b6005546001600160a01b0316331461492f5760405162461bcd60e51b8152600401610cd09061577e565b600e5542601755565b6001600160a01b03831661499a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610cd0565b6001600160a01b0382166149fb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610cd0565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114614aa9576040519150601f19603f3d011682016040523d82523d6000602084013e614aae565b606091505b50509050806126955760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321032ba3432b960611b6044820152606401610cd0565b6001600160a01b038316614b5a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610cd0565b6001600160a01b038216614bbc5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610cd0565b6001600160a01b03831660009081526020819052604090205481811015614c345760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610cd0565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290614c6b908490615821565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051614cb791815260200190565b60405180910390a3610e2d565b60005b6001600160a01b0383166000908152601b6020526040902054811015612695576001600160a01b0383166000908152601b60205260409020805483919083908110614d2257634e487b7160e01b600052603260045260246000fd5b90600052602060002001541415614d4d57614d3d838261501c565b6000828152601c60205260408120555b80614d5781615932565b915050614cc7565b6001600160a01b038216614db55760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610cd0565b8060026000828254614dc79190615821565b90915550506001600160a01b03821660009081526020819052604081208054839290614df4908490615821565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3611ba8565b6001600160a01b038216614e9f5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610cd0565b6001600160a01b03821660009081526020819052604090205481811015614f135760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610cd0565b6001600160a01b0383166000908152602081905260408120838303905560028054849290614f4290849061589d565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3612695565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80600c614feb84612758565b604051614ff891906155e3565b908152604051908190036020019020805491151560ff199092169190911790555050565b6001600160a01b0382166000908152601b6020526040902054811061504057611ba8565b805b6001600160a01b0383166000908152601b60205260409020546150679060019061589d565b81101561511c576001600160a01b0383166000908152601b60205260409020615091826001615821565b815481106150af57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601b6000856001600160a01b03166001600160a01b0316815260200190815260200160002082815481106150fe57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001558061511481615932565b915050615042565b506001600160a01b0382166000908152601b6020526040902080548061515257634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590555050565b828054615178906158f7565b90600052602060002090601f01602090048101928261519a57600085556151e0565b82601f106151b357805160ff19168380011785556151e0565b828001600101855582156151e0579182015b828111156151e05782518255916020019190600101906151c5565b506151ec9291506151f0565b5090565b5b808211156151ec57600081556001016151f1565b600082601f830112615215578081fd5b8135602061522a615225836157fd565b6157cc565b80838252828201915082860187848660051b8901011115615249578586fd5b855b858110156152675781358452928401929084019060010161524b565b5090979650505050505050565b600082601f830112615284578081fd5b813567ffffffffffffffff81111561529e5761529e615963565b6152b1601f8201601f19166020016157cc565b8181528460208386010111156152c5578283fd5b816020850160208301379081016020019190915292915050565b6000602082840312156152f0578081fd5b813561275181615979565b60006020828403121561530c578081fd5b815161275181615979565b60008060408385031215615329578081fd5b823561533481615979565b9150602083013561534481615979565b809150509250929050565b600080600060608486031215615363578081fd5b833561536e81615979565b9250602084013561537e81615979565b929592945050506040919091013590565b600080604083850312156153a1578182fd5b82356153ac81615979565b946020939093013593505050565b6000602082840312156153cb578081fd5b813567ffffffffffffffff8111156153e1578182fd5b61354484828501615205565b600060208083850312156153ff578182fd5b825167ffffffffffffffff811115615415578283fd5b8301601f81018513615425578283fd5b8051615433615225826157fd565b80828252848201915084840188868560051b8701011115615452578687fd5b8694505b83851015615474578051835260019490940193918501918501615456565b50979650505050505050565b60008060408385031215615492578182fd5b823567ffffffffffffffff808211156154a9578384fd5b6154b586838701615205565b935060208501359150808211156154ca578283fd5b506154d785828601615205565b9150509250929050565b6000602082840312156154f2578081fd5b81356127518161598e565b60006020828403121561550e578081fd5b81516127518161598e565b60006020828403121561552a578081fd5b5051919050565b600060208284031215615542578081fd5b813567ffffffffffffffff811115615558578182fd5b61354484828501615274565b600060208284031215615575578081fd5b5035919050565b6000806040838503121561558e578182fd5b82359150602083013567ffffffffffffffff8111156155ab578182fd5b6154d785828601615274565b600081518084526155cf8160208601602086016158b4565b601f01601f19169290920160200192915050565b600082516155f58184602087016158b4565b9190910192915050565b600080835482600182811c91508083168061561b57607f831692505b602080841082141561563b57634e487b7160e01b87526022600452602487fd5b81801561564f57600181146156605761568c565b60ff1986168952848901965061568c565b60008a815260209020885b868110156156845781548b82015290850190830161566b565b505084890196505b509498975050505050505050565b6020808252825182820181905260009190848201906040850190845b818110156156d2578351835292840192918401916001016156b6565b50909695505050505050565b60006020825261275160208301846155b7565b6020808252601e908201527f546f6b656e206973206e6f7420636c61696d61626c6520627920796f75210000604082015260600190565b60208082526036908201527f4b696e646c792055736520746865206f746865722066756e6374696f6e20746f60408201527520756e7374616b6520796f757220676972616666652160501b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008382526040602083015261354460408301846155b7565b604051601f8201601f1916810167ffffffffffffffff811182821017156157f5576157f5615963565b604052919050565b600067ffffffffffffffff82111561581757615817615963565b5060051b60200190565b600082198211156158345761583461594d565b500190565b600060ff821660ff84168060ff038211156158565761585661594d565b019392505050565b60008261587957634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156158985761589861594d565b500290565b6000828210156158af576158af61594d565b500390565b60005b838110156158cf5781810151838201526020016158b7565b83811115610e2d5750506000910152565b6000816158ef576158ef61594d565b506000190190565b600181811c9082168061590b57607f821691505b6020821081141561592c57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156159465761594661594d565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610f0b57600080fd5b8015158114610f0b57600080fdfea264697066735822122037d92f496058f0b48dbf874184801add3e29b88f992c3d9a19d0e05e0b3bbcb564736f6c63430008030033

Deployed Bytecode

0x6080604052600436106103dd5760003560e01c8063859b2f0f116101fd578063bfe558bc11610118578063d2a0e9da116100ab578063f1147bae1161007a578063f1147bae14610c11578063f2fde38b14610c26578063fbda761814610c46578063fc8504ea14610c66578063ff3d43fe14610c865761046a565b8063d2a0e9da14610b55578063d9ffad4714610b75578063dd62ed3e14610b95578063e3c998fe14610bdb5761046a565b8063c8d2524c116100e7578063c8d2524c14610aea578063c986cb3014610b0a578063cc371bf314610b20578063d1058e5914610b405761046a565b8063bfe558bc14610a70578063c078855514610a8a578063c4b6b11d14610aaa578063c5800cbf14610aca5761046a565b80639ffdb65a11610190578063aed467231161015f578063aed46723146109fa578063b8bec6a014610a1a578063b8e58c3914610a3a578063ba7e766214610a5a5761046a565b80639ffdb65a1461097a578063a1bdb15e1461099a578063a457c2d7146109ba578063a9059cbb146109da5761046a565b80638f61c15b116101cc5780638f61c15b146109075780639416b4231461092557806394ea3f241461094557806395d89b41146109655761046a565b8063859b2f0f1461088a57806386e3ff75146108a05780638bac9ff3146108c05780638da5cb5b146108d55761046a565b806348aa1936116102f857806367fc963a1161028b57806370a082311161025a57806370a08231146107df578063715018a6146108155780637277948b1461082a57806379cc67901461084a57806383456c931461086a5761046a565b806367fc963a1461075a5780636b37fbaa146107875780636d627adc1461079c5780636e1bd323146107c95761046a565b806352eb7796116102c757806352eb7796146106e257806353b3d2ae1461070f57806353f3593f14610725578063654f97a31461073a5761046a565b806348aa193614610662578063515ec10514610682578063523a3f08146106a25780635293cf24146106c25761046a565b8063313ce56711610370578063395093511161033f57806339509351146105f257806342966c681461061257806345ca77381461063257806346922fb5146106485761046a565b8063313ce5671461058b57806335322f37146105a7578063362a3fad146105bc57806336a82154146105dc5761046a565b8063155dd5ee116103ac578063155dd5ee1461050c57806315b56d101461052c57806318160ddd1461054c57806323b872dd1461056b5761046a565b806301e336671461046f57806306fdde0314610491578063095ea7b3146104bc57806309acc2cb146104ec5761046a565b3661046a57604080513381523460208201527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874910160405180910390a1600061042760053461585e565b9050806011600082825461043b9190615821565b909155506000905061044d823461589d565b905080601260008282546104619190615821565b90915550505050005b600080fd5b34801561047b57600080fd5b5061048f61048a36600461534f565b610ca6565b005b34801561049d57600080fd5b506104a6610e33565b6040516104b391906156de565b60405180910390f35b3480156104c857600080fd5b506104dc6104d736600461538f565b610ec5565b60405190151581526020016104b3565b3480156104f857600080fd5b5061048f610507366004615564565b610edb565b34801561051857600080fd5b5061048f610527366004615564565b610f0e565b34801561053857600080fd5b506104dc610547366004615531565b610f42565b34801561055857600080fd5b506002545b6040519081526020016104b3565b34801561057757600080fd5b506104dc61058636600461534f565b610f77565b34801561059757600080fd5b50604051601281526020016104b3565b3480156105b357600080fd5b5061048f611021565b3480156105c857600080fd5b5061055d6105d73660046152df565b611235565b3480156105e857600080fd5b5061055d60175481565b3480156105fe57600080fd5b506104dc61060d36600461538f565b6117fd565b34801561061e57600080fd5b5061048f61062d366004615564565b611839565b34801561063e57600080fd5b5061055d600b5481565b34801561065457600080fd5b506016546104dc9060ff1681565b34801561066e57600080fd5b5061048f61067d3660046153ba565b611843565b34801561068e57600080fd5b5061055d61069d366004615564565b611bac565b3480156106ae57600080fd5b5061048f6106bd366004615564565b611d71565b3480156106ce57600080fd5b5061048f6106dd3660046152df565b611f1a565b3480156106ee57600080fd5b506107026106fd3660046152df565b611f64565b6040516104b3919061569a565b34801561071b57600080fd5b5061055d60105481565b34801561073157600080fd5b5061048f611fd0565b34801561074657600080fd5b5061048f6107553660046154e1565b6121e1565b34801561076657600080fd5b5061055d610775366004615564565b6000908152601c602052604090205490565b34801561079357600080fd5b5061048f61221e565b3480156107a857600080fd5b5061055d6107b7366004615564565b601c6020526000908152604090205481565b3480156107d557600080fd5b5061055d60155481565b3480156107eb57600080fd5b5061055d6107fa3660046152df565b6001600160a01b031660009081526020819052604090205490565b34801561082157600080fd5b5061048f6124e0565b34801561083657600080fd5b5061055d6108453660046152df565b612516565b34801561085657600080fd5b5061048f61086536600461538f565b612614565b34801561087657600080fd5b5061048f6108853660046152df565b61269a565b34801561089657600080fd5b5061055d600e5481565b3480156108ac57600080fd5b5061055d6108bb366004615564565b6126e6565b3480156108cc57600080fd5b5060125461055d565b3480156108e157600080fd5b506005546001600160a01b03165b6040516001600160a01b0390911681526020016104b3565b34801561091357600080fd5b506014546001600160a01b03166108ef565b34801561093157600080fd5b506104a6610940366004615531565b612758565b34801561095157600080fd5b506007546108ef906001600160a01b031681565b34801561097157600080fd5b506104a6612915565b34801561098657600080fd5b506104dc610995366004615531565b612924565b3480156109a657600080fd5b5061048f6109b5366004615564565b612b66565b3480156109c657600080fd5b506104dc6109d536600461538f565b612b95565b3480156109e657600080fd5b506104dc6109f536600461538f565b612c2e565b348015610a0657600080fd5b5061048f610a15366004615480565b612c3b565b348015610a2657600080fd5b5061048f610a353660046154e1565b612d5f565b348015610a4657600080fd5b5061055d610a553660046152df565b612d9c565b348015610a6657600080fd5b5061055d600d5481565b348015610a7c57600080fd5b50600f546104dc9060ff1681565b348015610a9657600080fd5b5061055d610aa5366004615564565b612f90565b348015610ab657600080fd5b506104a6610ac5366004615564565b612fb1565b348015610ad657600080fd5b5061048f610ae536600461557c565b613049565b348015610af657600080fd5b5061055d610b05366004615564565b6134c3565b348015610b1657600080fd5b5061055d60135481565b348015610b2c57600080fd5b5061048f610b3b366004615564565b61354c565b348015610b4c57600080fd5b5061048f61357b565b348015610b6157600080fd5b5061048f610b703660046153ba565b613c75565b348015610b8157600080fd5b5061048f610b903660046153ba565b613f30565b348015610ba157600080fd5b5061055d610bb0366004615317565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610be757600080fd5b506108ef610bf6366004615564565b6000908152601a60205260409020546001600160a01b031690565b348015610c1d57600080fd5b5061048f6142d0565b348015610c3257600080fd5b5061048f610c413660046152df565b61434f565b348015610c5257600080fd5b5061055d610c61366004615564565b6143e7565b348015610c7257600080fd5b5061048f610c813660046153ba565b614487565b348015610c9257600080fd5b5061048f610ca1366004615564565b614905565b6005546001600160a01b03163314610cd95760405162461bcd60e51b8152600401610cd09061577e565b60405180910390fd5b6040516370a0823160e01b815230600482015281906001600160a01b038516906370a082319060240160206040518083038186803b158015610d1a57600080fd5b505afa158015610d2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d529190615519565b1015610dab5760405162461bcd60e51b815260206004820152602260248201527f596f7520646f206e6f7420686176652073756666696369656e742042616c616e604482015261636560f01b6064820152608401610cd0565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb90604401602060405180830381600087803b158015610df557600080fd5b505af1158015610e09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2d91906154fd565b50505050565b606060038054610e42906158f7565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6e906158f7565b8015610ebb5780601f10610e9057610100808354040283529160200191610ebb565b820191906000526020600020905b815481529060010190602001808311610e9e57829003601f168201915b5050505050905090565b6000610ed2338484614938565b50600192915050565b6005546001600160a01b03163314610f055760405162461bcd60e51b8152600401610cd09061577e565b60158190555b50565b6005546001600160a01b03163314610f385760405162461bcd60e51b8152600401610cd09061577e565b610f0b3382614a5c565b6000600c610f4f83612758565b604051610f5c91906155e3565b9081526040519081900360200190205460ff1690505b919050565b6000610f84848484614af6565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156110095760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610cd0565b6110168533858403614938565b506001949350505050565b336000908152601b60205260409020546110895760405162461bcd60e51b8152602060048201526024808201527f4d7573742068617665206174206c65617374206f6e6520746f6b656e207374616044820152636b65642160e01b6064820152608401610cd0565b601554336000908152601b602052604090205411156110ba5760405162461bcd60e51b8152600401610cd090615728565b336000908152601b60205260408120545b801561122a57336000908152601b602052604081206110eb60018461589d565b8154811061110957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546007546040516323b872dd60e01b8152306004820152336024820152604481018390529192506001600160a01b0316906323b872dd90606401600060405180830381600087803b15801561116857600080fd5b505af115801561117c573d6000803e3d6000fd5b5050601754600084815260196020526040902054101591506111ad9050576017546000828152601960205260409020555b600e546000828152601960205260409020546111c9904261589d565b6111d3919061587e565b6111dd9084615821565b92506111e93382614cc4565b6006546000918252601a602052604090912080546001600160a01b0319166001600160a01b0390921691909117905580611222816158e0565b9150506110cb565b50610f0b3382614d5f565b60075460405162438b6360e81b81526001600160a01b03838116600483015260009216908290829063438b63009060240160006040518083038186803b15801561127e57600080fd5b505afa158015611292573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112ba91908101906153ed565b905060006112c785611f64565b90506000805b835181101561155e57600860008583815181106112fa57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054600014156114ec576000856001600160a01b031663e4dc70ff86848151811061134a57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161137091815260200190565b60206040518083038186803b15801561138857600080fd5b505afa15801561139c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113c09190615519565b905060006010548211156113d55750806113da565b506010545b886001600160a01b0316876001600160a01b0316635328302f88868151811061141357634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161143991815260200190565b60206040518083038186803b15801561145157600080fd5b505afa158015611465573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148991906152fb565b6001600160a01b03161480156114a0575060105482105b156114c257600d546114b5906241eb0061587e565b6114bf9085615821565b93505b600d546114cf824261589d565b6114d9919061587e565b6114e39085615821565b9350505061154c565b600d546008600086848151811061151357634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205442611535919061589d565b61153f919061587e565b6115499083615821565b91505b8061155681615932565b9150506112cd565b5060005b82518110156117f3576008600084838151811061158f57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205460001415611781576000856001600160a01b031663e4dc70ff8584815181106115df57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161160591815260200190565b60206040518083038186803b15801561161d57600080fd5b505afa158015611631573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116559190615519565b9050600060105482111561166a57508061166f565b506010545b886001600160a01b0316876001600160a01b0316635328302f8786815181106116a857634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016116ce91815260200190565b60206040518083038186803b1580156116e657600080fd5b505afa1580156116fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171e91906152fb565b6001600160a01b0316148015611735575060105482105b1561175757600d5461174a906241eb0061587e565b6117549085615821565b93505b600d54611764824261589d565b61176e919061587e565b6117789085615821565b935050506117e1565b600d54600860008584815181106117a857634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054426117ca919061589d565b6117d4919061587e565b6117de9083615821565b91505b806117eb81615932565b915050611562565b5095945050505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610ed2918590611834908690615821565b614938565b610f0b3382614e3f565b6000601554825111156118985760405162461bcd60e51b815260206004820152601860248201527f4f6e6c7920756e7374616b65203230207065722074786e2100000000000000006044820152606401610cd0565b60005b8251811015611b9d57336001600160a01b0316601a60008584815181106118d257634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160a01b0316146119535760405162461bcd60e51b815260206004820152602760248201527f4d6573736167652053656e64657220776173206e6f74206f726967696e616c206044820152667374616b65722160c81b6064820152608401610cd0565b60075483516001600160a01b03909116906323b872dd903090339087908690811061198e57634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156119e857600080fd5b505af11580156119fc573d6000803e3d6000fd5b5050505060175460196000858481518110611a2757634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020541015611a865760175460196000858481518110611a6b57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020819055505b600e5460196000858481518110611aad57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205442611acf919061589d565b611ad9919061587e565b611ae39083615821565b9150611b1633848381518110611b0957634e487b7160e01b600052603260045260246000fd5b6020026020010151614cc4565b600660009054906101000a90046001600160a01b0316601a6000858481518110611b5057634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508080611b9590615932565b91505061189b565b50611ba83382614d5f565b5050565b60075460405163e4dc70ff60e01b8152600481018390526000916001600160a01b0316908290829063e4dc70ff9060240160206040518083038186803b158015611bf557600080fd5b505afa158015611c09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c2d9190615519565b90506000601054821115611c42575080611c47565b506010545b600085815260086020526040812054611d3557604051635328302f60e01b81526004810187905233906001600160a01b03861690635328302f9060240160206040518083038186803b158015611c9c57600080fd5b505afa158015611cb0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cd491906152fb565b6001600160a01b0316148015611ceb575060105483105b15611d0d57600d54611d00906241eb0061587e565b611d0a9082615821565b90505b600d54611d1a834261589d565b611d24919061587e565b611d2e9082615821565b9050611d68565b600d54600087815260086020526040902054611d51904261589d565b611d5b919061587e565b611d659082615821565b90505b95945050505050565b6000818152601a60205260409020546001600160a01b03163314611e5b576007546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e9060240160206040518083038186803b158015611dd357600080fd5b505afa158015611de7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0b91906152fb565b6001600160a01b0316148015611e22575060648111155b611e5b5760405162461bcd60e51b815260206004820152600a60248201526915d48e925b9d985b1a5960b21b6044820152606401610cd0565b6064811115611e965760405162461bcd60e51b8152602060048201526007602482015266125b9d985b1a5960ca1b6044820152606401610cd0565b601354600082815260096020526040812054601154919291611eb8919061589d565b611ec2919061585e565b905060008111611efe5760405162461bcd60e51b8152602060048201526007602482015266546f6f204c6f7760c81b6044820152606401610cd0565b601154600083815260096020526040902055611ba83382614a5c565b6005546001600160a01b03163314611f445760405162461bcd60e51b8152600401610cd09061577e565b600780546001600160a01b0383166001600160a01b031990911617905550565b6001600160a01b0381166000908152601b6020908152604091829020805483518184028101840190945280845260609392830182828015611fc457602002820191906000526020600020905b815481526020019060010190808311611fb0575b50505050509050919050565b336000908152601b602090815260408083208054825181850281018501909352808352919290919083018282801561202757602002820191906000526020600020905b815481526020019060010190808311612013575b505050505090506000805b8251811015611b9d57336001600160a01b0316601a600085848151811061206957634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160a01b0316146120aa5760405162461bcd60e51b8152600401610cd0906156f1565b601754601960008584815181106120d157634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020541015612130576017546019600085848151811061211557634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020819055505b600e546019600085848151811061215757634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205442612179919061589d565b612183919061587e565b61218d9083615821565b915042601960008584815181106121b457634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000208190555080806121d990615932565b915050612032565b6005546001600160a01b0316331461220b5760405162461bcd60e51b8152600401610cd09061577e565b600f805482151560ff1990911617905550565b60075460405162438b6360e81b81523360048201819052916001600160a01b031690600090829063438b63009060240160006040518083038186803b15801561226657600080fd5b505afa15801561227a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122a291908101906153ed565b905060006122af84611f64565b90506000805b83518110156123a25760648482815181106122e057634e487b7160e01b600052603260045260246000fd5b602002602001015111612390576013546009600086848151811061231457634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054601154612338919061589d565b612342919061585e565b61234c9083615821565b91506011546009600086848151811061237557634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020819055505b8061239a81615932565b9150506122b5565b5060005b82518110156124935760648382815181106123d157634e487b7160e01b600052603260045260246000fd5b602002602001015111612481576013546009600085848151811061240557634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054601154612429919061589d565b612433919061585e565b61243d9083615821565b91506011546009600085848151811061246657634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020819055505b8061248b81615932565b9150506123a6565b50600081116124cf5760405162461bcd60e51b81526020600482015260086024820152675741523a204c544360c01b6044820152606401610cd0565b6124d93382614a5c565b5050505050565b6005546001600160a01b0316331461250a5760405162461bcd60e51b8152600401610cd09061577e565b6125146000614f8d565b565b6001600160a01b0381166000908152601b602090815260408083208054825181850281018501909352808352849383018282801561257357602002820191906000526020600020905b81548152602001906001019080831161255f575b505050505090506000805b825181101561260c576000601960008584815181106125ad57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205490506017548110156125d557506017545b600e546125e2824261589d565b6125ec919061587e565b6125f69084615821565b925050808061260490615932565b91505061257e565b509392505050565b60006126208333610bb0565b90508181101561267e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610cd0565b61268b8333848403614938565b6126958383614e3f565b505050565b6005546001600160a01b031633146126c45760405162461bcd60e51b8152600401610cd09061577e565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6000606482106127255760405162461bcd60e51b815260206004820152600a60248201526914908e925b9d985b1a5960b21b6044820152606401610cd0565b601354600083815260096020526040812054601154919291612747919061589d565b612751919061585e565b9392505050565b606060008290506000815167ffffffffffffffff81111561278957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156127b3576020820181803683370190505b50905060005b825181101561260c5760418382815181106127e457634e487b7160e01b600052603260045260246000fd5b016020015160f81c108015906128225750605a83828151811061281757634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b156128a05782818151811061284757634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b60f81c60206128619190615839565b60f81b82828151811061288457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612903565b8281815181106128c057634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b8282815181106128eb57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053505b8061290d81615932565b9150506127b9565b606060048054610e42906158f7565b60008082905060018151101561293e576000915050610f72565b601981511115612952576000915050610f72565b8060008151811061297357634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916600160fd1b1415612998576000915050610f72565b80600182516129a7919061589d565b815181106129c557634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916600160fd1b14156129ea576000915050610f72565b600081600081518110612a0d57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916905060005b8251811015611016576000838281518110612a4c57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b0319169050600160fd1b81148015612a7d5750600160fd1b6001600160f81b03198416145b15612a8f576000945050505050610f72565b600360fc1b6001600160f81b0319821610801590612abb5750603960f81b6001600160f81b0319821611155b158015612af15750604160f81b6001600160f81b0319821610801590612aef5750602d60f91b6001600160f81b0319821611155b155b8015612b265750606160f81b6001600160f81b0319821610801590612b245750603d60f91b6001600160f81b0319821611155b155b8015612b405750600160fd1b6001600160f81b0319821614155b15612b52576000945050505050610f72565b915080612b5e81615932565b915050612a21565b6005546001600160a01b03163314612b905760405162461bcd60e51b8152600401610cd09061577e565b600d55565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015612c175760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610cd0565b612c243385858403614938565b5060019392505050565b6000610ed2338484614af6565b60005b825181101561269557336001600160a01b0316601a6000858481518110612c7557634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160a01b031614612ce65760405162461bcd60e51b815260206004820152601b60248201527f596f752063616e6e6f7420736574206c656e64696e67206665652100000000006044820152606401610cd0565b818181518110612d0657634e487b7160e01b600052603260045260246000fd5b6020026020010151601c6000858481518110612d3257634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020819055508080612d5790615932565b915050612c3e565b6005546001600160a01b03163314612d895760405162461bcd60e51b8152600401610cd09061577e565b6016805482151560ff1990911617905550565b60075460405162438b6360e81b81526001600160a01b03838116600483015260009216908290829063438b63009060240160006040518083038186803b158015612de557600080fd5b505afa158015612df9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612e2191908101906153ed565b90506000612e2e85611f64565b90506000805b8351811015612ee0576064848281518110612e5f57634e487b7160e01b600052603260045260246000fd5b602002602001015111612ece5760135460096000868481518110612e9357634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054601154612eb7919061589d565b612ec1919061585e565b612ecb9083615821565b91505b80612ed881615932565b915050612e34565b5060005b82518110156117f3576064838281518110612f0f57634e487b7160e01b600052603260045260246000fd5b602002602001015111612f7e5760135460096000858481518110612f4357634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054601154612f67919061589d565b612f71919061585e565b612f7b9083615821565b91505b80612f8881615932565b915050612ee4565b60188181548110612fa057600080fd5b600091825260209091200154905081565b6000818152600a60205260409020805460609190612fce906158f7565b80601f0160208091040260200160405190810160405280929190818152602001828054612ffa906158f7565b8015611fc45780601f1061301c57610100808354040283529160200191611fc4565b820191906000526020600020905b81548152906001019060200180831161302a5750939695505050505050565b6000828152601a60205260409020546001600160a01b03163314613139576007546040516331a9108f60e11b81526004810184905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156130ab57600080fd5b505afa1580156130bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130e391906152fb565b6001600160a01b0316146131395760405162461bcd60e51b815260206004820152601d60248201527f546f6b656e206973206e6f74206e616d6561626c6520627920796f75210000006044820152606401610cd0565b61314281612924565b151560011461318a5760405162461bcd60e51b81526020600482015260146024820152734e6f7420612076616c6964206e6577206e616d6560601b6044820152606401610cd0565b6000828152600a60205260409081902090516002916131a8916155ff565b602060405180830381855afa1580156131c5573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906131e89190615519565b6002826040516131f891906155e3565b602060405180830381855afa158015613215573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906132389190615519565b14156132925760405162461bcd60e51b815260206004820152602360248201527f4e6577206e616d652069732073616d65206173207468652063757272656e74206044820152626f6e6560e81b6064820152608401610cd0565b61329b81610f42565b156132e05760405162461bcd60e51b815260206004820152601560248201527413985b5948185b1c9958591e481c995cd95c9d9959605a1b6044820152606401610cd0565b6000828152601a60205260409020546001600160a01b03163314613397576014543360009081526001602090815260408083206001600160a01b0390941683529290522054600b548110156133775760405162461bcd60e51b815260206004820152601960248201527f436865636b2074686520746f6b656e20616c6c6f77616e6365000000000000006044820152606401610cd0565b601454600b546133949133916001600160a01b0390911690610f77565b50505b6000828152600a6020526040812080546133b0906158f7565b9050111561345b576000828152600a60205260409020805461345b91906133d6906158f7565b80601f0160208091040260200160405190810160405280929190818152602001828054613402906158f7565b801561344f5780601f106134245761010080835404028352916020019161344f565b820191906000526020600020905b81548152906001019060200180831161343257829003601f168201915b50505050506000614fdf565b613466816001614fdf565b6000828152600a6020908152604090912082516134859284019061516c565b507f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b82826040516134b79291906157b3565b60405180910390a15050565b60075460405163e4dc70ff60e01b8152600481018390526000916001600160a01b0316908290829063e4dc70ff9060240160206040518083038186803b15801561350c57600080fd5b505afa158015613520573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135449190615519565b949350505050565b6005546001600160a01b031633146135765760405162461bcd60e51b8152600401610cd09061577e565b600b55565b600f5460ff1615156001146135c45760405162461bcd60e51b815260206004820152600f60248201526e436c61696d2064697361626c65642160881b6044820152606401610cd0565b60075460405162438b6360e81b815233600482018190526001600160a01b039092169190600090839063438b63009060240160006040518083038186803b15801561360e57600080fd5b505afa158015613622573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261364a91908101906153ed565b9050600061365783611f64565b90506000805b8351811015613945576008600085838151811061368a57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205460001415613894576000866001600160a01b031663e4dc70ff8684815181106136da57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161370091815260200190565b60206040518083038186803b15801561371857600080fd5b505afa15801561372c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137509190615519565b9050600060105482111561376557508061376a565b506010545b336001600160a01b0316886001600160a01b0316635328302f8886815181106137a357634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016137c991815260200190565b60206040518083038186803b1580156137e157600080fd5b505afa1580156137f5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061381991906152fb565b6001600160a01b0316148015613830575060105482105b1561385257600d54613845906241eb0061587e565b61384f9085615821565b93505b806008600088868151811061387757634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000208190555050505b600d54600860008684815181106138bb57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054426138dd919061589d565b6138e7919061587e565b6138f19083615821565b9150426008600086848151811061391857634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002081905550808061393d90615932565b91505061365d565b5060005b8251811015613c31576008600084838151811061397657634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205460001415613b80576000866001600160a01b031663e4dc70ff8584815181106139c657634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016139ec91815260200190565b60206040518083038186803b158015613a0457600080fd5b505afa158015613a18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a3c9190615519565b90506000601054821115613a51575080613a56565b506010545b336001600160a01b0316886001600160a01b0316635328302f878681518110613a8f57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401613ab591815260200190565b60206040518083038186803b158015613acd57600080fd5b505afa158015613ae1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b0591906152fb565b6001600160a01b0316148015613b1c575060105482105b15613b3e57600d54613b31906241eb0061587e565b613b3b9085615821565b93505b8060086000878681518110613b6357634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000208190555050505b600d5460086000858481518110613ba757634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205442613bc9919061589d565b613bd3919061587e565b613bdd9083615821565b91504260086000858481518110613c0457634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020819055508080613c2990615932565b915050613949565b5060008111613c6b5760405162461bcd60e51b8152600401610cd0906020808252600490820152634c54522160e01b604082015260600190565b6124d93382614d5f565b600060155482511115613cc35760405162461bcd60e51b81526020600482015260166024820152754f6e6c7920636c61696d203530207065722074786e2160501b6044820152606401610cd0565b60005b8251811015611b9d57336001600160a01b0316601a6000858481518110613cfd57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160a01b031614613df957600754835133916001600160a01b031690636352211e90869085908110613d5d57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b8152600401613d8391815260200190565b60206040518083038186803b158015613d9b57600080fd5b505afa158015613daf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dd391906152fb565b6001600160a01b031614613df95760405162461bcd60e51b8152600401610cd0906156f1565b60175460196000858481518110613e2057634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020541015613e7f5760175460196000858481518110613e6457634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020819055505b600e5460196000858481518110613ea657634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205442613ec8919061589d565b613ed2919061587e565b613edc9083615821565b91504260196000858481518110613f0357634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020819055508080613f2890615932565b915050613cc6565b60165460ff161515600114613f875760405162461bcd60e51b815260206004820152601f60248201527f5374616b696e6720436c6f7365642c2074727920616761696e206c61746572006044820152606401610cd0565b60155481511115613faa5760405162461bcd60e51b8152600401610cd090615728565b60005b8151811015611ba857600754825133916001600160a01b031690636352211e90859085908110613fed57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161401391815260200190565b60206040518083038186803b15801561402b57600080fd5b505afa15801561403f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061406391906152fb565b6001600160a01b03161480156140d1575060065482516001600160a01b0390911690601a906000908590859081106140ab57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160a01b0316145b61411d5760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e206d757374206265207374616b61626c6520627920796f752100006044820152606401610cd0565b60075482516001600160a01b03909116906323b872dd903390309086908690811061415857634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156141b257600080fd5b505af11580156141c6573d6000803e3d6000fd5b5050336000908152601b602052604090208451909250849150839081106141fd57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001810184556000938452918320909101558251429160199185908590811061424457634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000208190555033601a600084848151811061428357634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080806142c890615932565b915050613fad565b6005546001600160a01b031633146142fa5760405162461bcd60e51b8152600401610cd09061577e565b60006012541161433c5760405162461bcd60e51b815260206004820152600d60248201526c15d49315164e925b9d985b1a59609a1b6044820152606401610cd0565b601280546000909155610f0b3382614a5c565b6005546001600160a01b031633146143795760405162461bcd60e51b8152600401610cd09061577e565b6001600160a01b0381166143de5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cd0565b610f0b81614f8d565b6006546000828152601a602052604081205490916001600160a01b039182169116141561444d5760405162461bcd60e51b8152602060048201526014602482015273546f6b656e206973206e6f74207374616b65642160601b6044820152606401610cd0565b60008281526019602052604090205460175481101561446b57506017545b6000614477824261589d565b9050600e5481613544919061587e565b60075460155482516001600160a01b039092169160009110156144e55760405162461bcd60e51b81526020600482015260166024820152754f6e6c7920636c61696d203530207065722074786e2160501b6044820152606401610cd0565b60005b83518110156148fa57336001600160a01b0316601a600086848151811061451f57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160a01b03161461461b57600754845133916001600160a01b031690636352211e9087908590811061457f57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016145a591815260200190565b60206040518083038186803b1580156145bd57600080fd5b505afa1580156145d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145f591906152fb565b6001600160a01b03161461461b5760405162461bcd60e51b8152600401610cd0906156f1565b6008600085838151811061463f57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205460001415614849576000836001600160a01b031663e4dc70ff86848151811061468f57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016146b591815260200190565b60206040518083038186803b1580156146cd57600080fd5b505afa1580156146e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147059190615519565b9050600060105482111561471a57508061471f565b506010545b336001600160a01b0316856001600160a01b0316635328302f88868151811061475857634e487b7160e01b600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161477e91815260200190565b60206040518083038186803b15801561479657600080fd5b505afa1580156147aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147ce91906152fb565b6001600160a01b03161480156147e5575060105482105b1561480757600d546147fa906241eb0061587e565b6148049085615821565b93505b806008600088868151811061482c57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000208190555050505b600d546008600086848151811061487057634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205442614892919061589d565b61489c919061587e565b6148a69083615821565b915042600860008684815181106148cd57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000208190555080806148f290615932565b9150506144e8565b506126953382614d5f565b6005546001600160a01b0316331461492f5760405162461bcd60e51b8152600401610cd09061577e565b600e5542601755565b6001600160a01b03831661499a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610cd0565b6001600160a01b0382166149fb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610cd0565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114614aa9576040519150601f19603f3d011682016040523d82523d6000602084013e614aae565b606091505b50509050806126955760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321032ba3432b960611b6044820152606401610cd0565b6001600160a01b038316614b5a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610cd0565b6001600160a01b038216614bbc5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610cd0565b6001600160a01b03831660009081526020819052604090205481811015614c345760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610cd0565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290614c6b908490615821565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051614cb791815260200190565b60405180910390a3610e2d565b60005b6001600160a01b0383166000908152601b6020526040902054811015612695576001600160a01b0383166000908152601b60205260409020805483919083908110614d2257634e487b7160e01b600052603260045260246000fd5b90600052602060002001541415614d4d57614d3d838261501c565b6000828152601c60205260408120555b80614d5781615932565b915050614cc7565b6001600160a01b038216614db55760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610cd0565b8060026000828254614dc79190615821565b90915550506001600160a01b03821660009081526020819052604081208054839290614df4908490615821565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3611ba8565b6001600160a01b038216614e9f5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610cd0565b6001600160a01b03821660009081526020819052604090205481811015614f135760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610cd0565b6001600160a01b0383166000908152602081905260408120838303905560028054849290614f4290849061589d565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3612695565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80600c614feb84612758565b604051614ff891906155e3565b908152604051908190036020019020805491151560ff199092169190911790555050565b6001600160a01b0382166000908152601b6020526040902054811061504057611ba8565b805b6001600160a01b0383166000908152601b60205260409020546150679060019061589d565b81101561511c576001600160a01b0383166000908152601b60205260409020615091826001615821565b815481106150af57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154601b6000856001600160a01b03166001600160a01b0316815260200190815260200160002082815481106150fe57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001558061511481615932565b915050615042565b506001600160a01b0382166000908152601b6020526040902080548061515257634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590555050565b828054615178906158f7565b90600052602060002090601f01602090048101928261519a57600085556151e0565b82601f106151b357805160ff19168380011785556151e0565b828001600101855582156151e0579182015b828111156151e05782518255916020019190600101906151c5565b506151ec9291506151f0565b5090565b5b808211156151ec57600081556001016151f1565b600082601f830112615215578081fd5b8135602061522a615225836157fd565b6157cc565b80838252828201915082860187848660051b8901011115615249578586fd5b855b858110156152675781358452928401929084019060010161524b565b5090979650505050505050565b600082601f830112615284578081fd5b813567ffffffffffffffff81111561529e5761529e615963565b6152b1601f8201601f19166020016157cc565b8181528460208386010111156152c5578283fd5b816020850160208301379081016020019190915292915050565b6000602082840312156152f0578081fd5b813561275181615979565b60006020828403121561530c578081fd5b815161275181615979565b60008060408385031215615329578081fd5b823561533481615979565b9150602083013561534481615979565b809150509250929050565b600080600060608486031215615363578081fd5b833561536e81615979565b9250602084013561537e81615979565b929592945050506040919091013590565b600080604083850312156153a1578182fd5b82356153ac81615979565b946020939093013593505050565b6000602082840312156153cb578081fd5b813567ffffffffffffffff8111156153e1578182fd5b61354484828501615205565b600060208083850312156153ff578182fd5b825167ffffffffffffffff811115615415578283fd5b8301601f81018513615425578283fd5b8051615433615225826157fd565b80828252848201915084840188868560051b8701011115615452578687fd5b8694505b83851015615474578051835260019490940193918501918501615456565b50979650505050505050565b60008060408385031215615492578182fd5b823567ffffffffffffffff808211156154a9578384fd5b6154b586838701615205565b935060208501359150808211156154ca578283fd5b506154d785828601615205565b9150509250929050565b6000602082840312156154f2578081fd5b81356127518161598e565b60006020828403121561550e578081fd5b81516127518161598e565b60006020828403121561552a578081fd5b5051919050565b600060208284031215615542578081fd5b813567ffffffffffffffff811115615558578182fd5b61354484828501615274565b600060208284031215615575578081fd5b5035919050565b6000806040838503121561558e578182fd5b82359150602083013567ffffffffffffffff8111156155ab578182fd5b6154d785828601615274565b600081518084526155cf8160208601602086016158b4565b601f01601f19169290920160200192915050565b600082516155f58184602087016158b4565b9190910192915050565b600080835482600182811c91508083168061561b57607f831692505b602080841082141561563b57634e487b7160e01b87526022600452602487fd5b81801561564f57600181146156605761568c565b60ff1986168952848901965061568c565b60008a815260209020885b868110156156845781548b82015290850190830161566b565b505084890196505b509498975050505050505050565b6020808252825182820181905260009190848201906040850190845b818110156156d2578351835292840192918401916001016156b6565b50909695505050505050565b60006020825261275160208301846155b7565b6020808252601e908201527f546f6b656e206973206e6f7420636c61696d61626c6520627920796f75210000604082015260600190565b60208082526036908201527f4b696e646c792055736520746865206f746865722066756e6374696f6e20746f60408201527520756e7374616b6520796f757220676972616666652160501b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008382526040602083015261354460408301846155b7565b604051601f8201601f1916810167ffffffffffffffff811182821017156157f5576157f5615963565b604052919050565b600067ffffffffffffffff82111561581757615817615963565b5060051b60200190565b600082198211156158345761583461594d565b500190565b600060ff821660ff84168060ff038211156158565761585661594d565b019392505050565b60008261587957634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156158985761589861594d565b500290565b6000828210156158af576158af61594d565b500390565b60005b838110156158cf5781810151838201526020016158b7565b83811115610e2d5750506000910152565b6000816158ef576158ef61594d565b506000190190565b600181811c9082168061590b57607f821691505b6020821081141561592c57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156159465761594661594d565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610f0b57600080fd5b8015158114610f0b57600080fdfea264697066735822122037d92f496058f0b48dbf874184801add3e29b88f992c3d9a19d0e05e0b3bbcb564736f6c63430008030033

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.