ETH Price: $3,050.24 (+4.78%)
 

Overview

Max Total Supply

1,000,000,000 DESPORTS

Holders

186

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
96,040.288291365847089879 DESPORTS

Value
$0.00
0xcb4e69b086b97dc51c7388d11fbe93629e7a7a9f
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:
DeSports

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : desports.sol
/**
    dESPORTS - Decentralized Esports
    
    dESPORTS is a decentralized Esports fantasy manager platform.
    Token holders can nominate gamers they know to compete on their
    behalf in competitive gaming to win rewards in ETH.

    https://desports.stream
    https://t.me/desportsportal
**/

//  SPDX-License-Identifier: MIT

pragma solidity 0.8.17; 

import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";


contract DeSports is ERC20, Ownable { 

    struct Nomination {
        uint time;
        address user;
        string clash;
        string nominee;
    }
    using SafeMath for uint256; 

    mapping(string => string) public clashes; 
    mapping(string => string) public gamerNominees; 
    Nomination[] public nominations;
    address public gameMaster; 

    IUniswapV2Router02 public immutable uniswapV2Router; 
    address public immutable uniswapV2Pair; 
    address public constant deadAddress = address(0xdead); 

    bool private swapping; 

    address public clashWallet; 
    address public devWallet; 

    uint256 public maxTransactionAmount; 
    uint256 public maxWallet; 
    uint256 public swapTokensAtAmount; 

    uint256 public percentForLPBurn = 20;  // .2%
    bool public lpBurnEnabled = true; 
    uint256 public lpBurnFrequency = 3600 seconds; // per hour
    uint256 public lastLpBurnTime; 

    uint256 public manualBurnFrequency = 30 minutes; 
    uint256 public lastManualLpBurnTime; 

    bool public limitsInEffect = true; 
    bool public tradingActive = false; 
    bool public swapEnabled = false; 

    mapping(address => uint256) private _holderLastTransferTimestamp; 
    bool public transferDelayEnabled = true; 

    uint256 public tokensForClash; 
    uint256 public tokensForLiquidity; 
    uint256 public tokensForDev; 

    uint256 public buyTotalFees; 
    uint256 public buyClashFee; 
    uint256 public buyLiquidityFee; 
    uint256 public buyDevFee; 

    uint256 public sellTotalFees; 
    uint256 public sellClashFee; 
    uint256 public sellLiquidityFee; 
    uint256 public sellDevFee; 

    mapping(address => bool) private _isExcludedFromFees; 
    mapping(address => bool) public _isExcludedMaxTransactionAmount; 

    mapping(address => bool) public automatedMarketMakerPairs; 

    event UpdateUniswapV2Router(
        address indexed newAddress,
        address indexed oldAddress
    ); 

    event ExcludeFromFees(address indexed account, bool isExcluded); 

    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value); 

    event clashWalletUpdated(
        address indexed newWallet,
        address indexed oldWallet
    ); 

    event devWalletUpdated(
        address indexed newWallet,
        address indexed oldWallet
    ); 

    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiquidity
    ); 

    event AutoNukeLP(); 

    event ManualNukeLP(); 

    constructor() ERC20("DeSports", "DESPORTS") { 

        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
            0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
        ); 

        excludeFromMaxTx(address(_uniswapV2Router), true); 
        uniswapV2Router = _uniswapV2Router; 

        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH()); 
        excludeFromMaxTx(address(uniswapV2Pair), true); 
        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true); 

        uint256 _buyClashFee = 4; 
        uint256 _buyLiquidityFee = 0; 
        uint256 _buyDevFee = 2; 

        uint256 _sellClashFee = 4; 
        uint256 _sellLiquidityFee = 0; 
        uint256 _sellDevFee = 2; 

        uint256 totalSupply = 1_000_000_000 * 1e18; 

        maxTransactionAmount = 5_000_000 * 1e18;  // 0.5% maxTransactionAmount. 
        maxWallet = 10_000_000 * 1e18;  // 1% maxWallet. 
        swapTokensAtAmount = (totalSupply * 5) / 10000;  // 0.05% swapTokensAtAmount. 

        gameMaster = msg.sender; 
        devWallet = msg.sender; 
        clashWallet = address(0x50665fe26b53dF8BcBCAC45f0Ef2AD3f2A9cF205); 

        buyClashFee = _buyClashFee; // clash rewards 
        buyLiquidityFee = _buyLiquidityFee; 
        buyDevFee = _buyDevFee; 
        buyTotalFees = buyClashFee + buyLiquidityFee + buyDevFee; 

        sellClashFee = _sellClashFee; 
        sellLiquidityFee = _sellLiquidityFee; 
        sellDevFee = _sellDevFee; 
        sellTotalFees = sellClashFee + sellLiquidityFee + sellDevFee; 

        // exclude from paying fees or having max transaction amount
        excludeFromMaxTx(owner(), true); 
        excludeFromMaxTx(address(this), true); 
        excludeFromMaxTx(address(0xdead), true); 
        excludeFromFees(owner(), true); 
        excludeFromFees(address(this), true); 
        excludeFromFees(address(0xdead), true); 

        _mint(msg.sender, totalSupply); 
    } 

    receive() external payable { } 
        
    function addressToString(address x) internal pure returns (string memory) {
        bytes memory s = new bytes(40); 
        for (uint i = 0;  i < 20;  i++) {
            bytes1 b = bytes1(uint8(uint(uint160(x)) / (2**(8*(19 - i))))); 
            bytes1 hi = bytes1(uint8(b) / 16); 
            bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi)); 
            s[2*i] = _char(hi); 
            s[2*i+1] = _char(lo);             
        }
        return string(s); 
    }

    function _char(bytes1 b) internal pure returns (bytes1 c) {
        if (uint8(b) < 10) return bytes1(uint8(b) + 0x30); 
        else return bytes1(uint8(b) + 0x57); 
    }

    function stringsAreEqual(string memory _str1, string memory _str2) internal pure returns(bool){
        return keccak256(abi.encodePacked(_str1)) == keccak256(abi.encodePacked(_str2)); 
    }

    function transferGameMasterRole(address _newGM) public { 
        require(msg.sender == gameMaster, "You are not the Game Master"); 
        gameMaster = _newGM; 
    }

    function newClash(string memory clashName) public { 
        require(msg.sender == gameMaster, "You are not the Game Master"); 
        require(stringsAreEqual(clashes[clashName], ""), "Cannot recreate a clash tournament"); 

        clashes[clashName] = "DRAFTING_NOMINEES"; 
    }

    function lockClash(string memory clashName) public { 
        require(msg.sender == gameMaster, "You are not the Game Master"); 
        require(stringsAreEqual(clashes[clashName], "DRAFTING_NOMINEES"), "Can only lock nominations during DRAFTING_NOMINEES phase"); 

        clashes[clashName] = "NOMINEES_LOCKED"; 
    }

    function setClashResult(string memory clashName, string memory result) public {
        require(msg.sender == gameMaster, "You are not the Game Master"); 
        require(stringsAreEqual(clashes[clashName], "NOMINEES_LOCKED"), "Can only set results during NOMINEES_LOCKED phase"); 
        require(!stringsAreEqual(result, ""), "Cannot delete a clash"); 
        require(!stringsAreEqual(result, "DRAFTING_NOMINEES"), "Cannot revert back to DRAFTING_NOMINEES phase"); 

        clashes[clashName] = result; 
    }

    function nominateGamer(string memory gamerUsername, string memory clashName) public { 
        require(stringsAreEqual(clashes[clashName], "DRAFTING_NOMINEES"), "Clash is not in DRAFTING_NOMINEES phase"); 
        gamerNominees[string.concat(clashName, addressToString(msg.sender))] = gamerUsername; 
        nominations.push(Nomination(block.timestamp, msg.sender, clashName, gamerUsername));
    }     

    function excludeFromFees(address account, bool excluded) public onlyOwner { 
        _isExcludedFromFees[account] = excluded; 
        emit ExcludeFromFees(account, excluded); 
    } 

    function updateBuyFees(
        uint256 _clashFee,
        uint256 _liquidityFee,
        uint256 _devFee
    ) external onlyOwner { 
        buyClashFee = _clashFee; 
        buyLiquidityFee = _liquidityFee; 
        buyDevFee = _devFee; 
        buyTotalFees = buyClashFee + buyLiquidityFee + buyDevFee; 
        require(buyTotalFees <= 10, "Must keep fees at 10% or less"); 
    } 

    function updateSellFees(
        uint256 _clashFee,
        uint256 _liquidityFee,
        uint256 _devFee
    ) external onlyOwner { 
        sellClashFee = _clashFee; 
        sellLiquidityFee = _liquidityFee; 
        sellDevFee = _devFee; 
        sellTotalFees = sellClashFee + sellLiquidityFee + sellDevFee; 
        require(sellTotalFees <= 10, "Must keep fees at 10% or less"); 
    } 

    // remove limits after token is stable
    function removeLimits() external onlyOwner returns (bool) { 
        limitsInEffect = false; 
        return true; 
    } 

    // disable Transfer delay - cannot be reenabled
    function disableTransferDelay() external onlyOwner returns (bool) { 
        transferDelayEnabled = false; 
        return true; 
    } 

    // change the minimum amount of tokens to sell from fees
    function updateSwapTokensAtAmount(uint256 newAmount)
        external
        onlyOwner
        returns (bool)
    { 
        require(
            newAmount >= (totalSupply() * 1) / 100000,
            "Swap amount cannot be lower than 0.001% total supply."
        ); 
        require(
            newAmount <= (totalSupply() * 5) / 1000,
            "Swap amount cannot be higher than 0.5% total supply."
        ); 
        swapTokensAtAmount = newAmount; 
        return true; 
    } 

    function updateMaxWalletAmount(uint256 newNum) external onlyOwner { 
        require(
            newNum >= ((totalSupply() * 10) / 1000) / 1e18,
            "Cannot set maxWallet lower than 1.0%"
        ); 
        maxWallet = newNum * (10**18); 
    } 
    function updateMaxTxAmount(uint256 newNum) external onlyOwner { 
        require(
            newNum >= ((totalSupply() * 10) / 1000) / 1e18,
            "Cannot set maxTransactionAmount lower than 1.0%"
        ); 
        maxTransactionAmount = newNum * (10**18); 
    } 

    function excludeFromMaxTx(address updAds, bool isEx)
        public
        onlyOwner
    { 
        _isExcludedMaxTransactionAmount[updAds] = isEx; 
    } 

    function enableTrading() external onlyOwner { 
        require(tradingActive == false, "Trading is already open"); 
        tradingActive = true; 
        swapEnabled = true; 
        lastLpBurnTime = block.timestamp; 
    } 

    function setAutomatedMarketMakerPair(address pair, bool value)
        public
        onlyOwner
    { 
        require(
            pair != uniswapV2Pair,
            "The pair cannot be removed from automatedMarketMakerPairs"
        ); 

        _setAutomatedMarketMakerPair(pair, value); 
    } 

    function _setAutomatedMarketMakerPair(address pair, bool value) private { 
        automatedMarketMakerPairs[pair] = value; 

        emit SetAutomatedMarketMakerPair(pair, value); 
    } 

    function updateDevWallet(address newWallet) external onlyOwner { 
        emit devWalletUpdated(newWallet, devWallet); 
        devWallet = newWallet; 
    } 

    function isExcludedFromFees(address account) public view returns (bool) { 
        return _isExcludedFromFees[account]; 
    } 

    function updateClashWallet(address newClashWallet)
        external
        onlyOwner
    { 
        emit clashWalletUpdated(newClashWallet, clashWallet); 
        clashWallet = newClashWallet; 
    } 

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override { 
        require(from != address(0), "ERC20: transfer from the zero address."); 
        require(to != address(0), "ERC20: transfer to the zero address."); 

        if (amount == 0) { 
            super._transfer(from, to, 0); 
            return; 
        } 

        if (limitsInEffect) { 
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0xdead) &&
                !swapping
            ) { 
                if (!tradingActive) { 
                    require(
                        _isExcludedFromFees[from] || _isExcludedFromFees[to],
                        "Trading is not active!"
                    ); 
                } 

                // at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.
                if (transferDelayEnabled) { 
                    if (
                        to != owner() &&
                        to != address(uniswapV2Router) &&
                        to != address(uniswapV2Pair)
                    ) { 
                        require(
                            _holderLastTransferTimestamp[tx.origin] <
                                block.number,
                            "_transfer:: Transfer Delay enabled.  Only one purchase per block allowed!"
                        ); 
                        _holderLastTransferTimestamp[tx.origin] = block.number; 
                    } 
                } 

                // when buy 
                if (
                    automatedMarketMakerPairs[from] &&
                    !_isExcludedMaxTransactionAmount[to]
                ) { 
                    require(
                        amount <= maxTransactionAmount,
                        "Buy transfer amount exceeds the maxTransactionAmount!"
                    ); 
                    require(
                        amount + balanceOf(to) <= maxWallet,
                        "Max wallet exceeded."
                    ); 
                } 
                // when sell 
                else if (
                    automatedMarketMakerPairs[to] &&
                    !_isExcludedMaxTransactionAmount[from]
                ) { 
                    require(
                        amount <= maxTransactionAmount,
                        "Sell transfer amount exceeds the maxTransactionAmount!"
                    ); 
                } else if (!_isExcludedMaxTransactionAmount[to]) { 
                    require(
                        amount + balanceOf(to) <= maxWallet,
                        "Max wallet exceeded."
                    ); 
                } 
            } 
        } 

        uint256 contractTokenBalance = balanceOf(address(this)); 

        bool canSwap = contractTokenBalance >= swapTokensAtAmount; 

        if (
            canSwap &&
            swapEnabled &&
            !swapping &&
            !automatedMarketMakerPairs[from] &&
            !_isExcludedFromFees[from] &&
            !_isExcludedFromFees[to]
        ) { 
            swapping = true; 

            swapBack(); 

            swapping = false; 
        } 

        if (
            !swapping &&
            automatedMarketMakerPairs[to] &&
            lpBurnEnabled &&
            block.timestamp >= lastLpBurnTime + lpBurnFrequency &&
            !_isExcludedFromFees[from]
        ) { 
            autoBurnLiquidityPairTokens(); 
        } 

        bool takeFee = !swapping; 

        // if any account belongs to _isExcludedFromFee account then remove the fee 
        if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) { 
            takeFee = false; 
        } 

        uint256 fees = 0; 
        // only take fees on buys/sells, do not take on wallet transfers 
        if (takeFee) { 
            // on sell 
            if (automatedMarketMakerPairs[to] && sellTotalFees > 0) { 
                fees = amount.mul(sellTotalFees).div(100); 
                tokensForLiquidity += (fees * sellLiquidityFee) / sellTotalFees; 
                tokensForDev += (fees * sellDevFee) / sellTotalFees; 
                tokensForClash += (fees * sellClashFee) / sellTotalFees; 
            } 
            // on buy
            else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) { 
                fees = amount.mul(buyTotalFees).div(100); 
                tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees; 
                tokensForDev += (fees * buyDevFee) / buyTotalFees; 
                tokensForClash += (fees * buyClashFee) / buyTotalFees; 
            } 

            if (fees > 0) { 
                super._transfer(from, address(this), fees); 
            } 

            amount -= fees; 
        } 

        super._transfer(from, to, amount); 
    } 

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private { 
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(uniswapV2Router), tokenAmount); 

        // add the liquidity
        uniswapV2Router.addLiquidityETH{value: ethAmount} (
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            deadAddress,
            block.timestamp
        ); 
    } 

    function swapTokensForEth(uint256 tokenAmount) private { 
        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2); 
        path[0] = address(this); 
        path[1] = uniswapV2Router.WETH(); 

        _approve(address(this), address(uniswapV2Router), tokenAmount); 

        // make the swap
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        ); 
    } 

    function swapBack() private { 
        uint256 contractBalance = balanceOf(address(this)); 
        uint256 totalTokensToSwap = tokensForLiquidity +
            tokensForClash +
            tokensForDev; 
        bool success; 

        if (contractBalance == 0 || totalTokensToSwap == 0) { 
            return; 
        } 

        if (contractBalance > swapTokensAtAmount * 20) { 
            contractBalance = swapTokensAtAmount * 20; 
        } 

        // Halve the amount of liquidity tokens
        uint256 liquidityTokens = (contractBalance * tokensForLiquidity) /
            totalTokensToSwap /
            2; 
        uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens); 

        uint256 initialETHBalance = address(this).balance; 

        swapTokensForEth(amountToSwapForETH); 

        uint256 ethBalance = address(this).balance.sub(initialETHBalance); 

        uint256 ethForClash = ethBalance.mul(tokensForClash).div(
            totalTokensToSwap
        ); 
        uint256 ethForDev = ethBalance.mul(tokensForDev).div(totalTokensToSwap); 

        uint256 ethForLiquidity = ethBalance - ethForClash - ethForDev; 

        tokensForLiquidity = 0; 
        tokensForClash = 0; 
        tokensForDev = 0; 

        (success, ) = address(devWallet).call{value: ethForDev} (""); 

        if (liquidityTokens > 0 && ethForLiquidity > 0) { 
            addLiquidity(liquidityTokens, ethForLiquidity); 
            emit SwapAndLiquify(
                amountToSwapForETH,
                ethForLiquidity,
                tokensForLiquidity
            ); 
        } 

        (success, ) = address(clashWallet).call{
            value: address(this).balance
        } (""); 
    } 

    function setAutoLPBurnSettings(
        uint256 _frequencyInSeconds,
        uint256 _percent,
        bool _Enabled
    ) external onlyOwner { 
        require(
            _frequencyInSeconds >= 600,
            "cannot set buyback more often than every 10 minutes" 
        ); 
        require(
            _percent <= 1000 && _percent >= 0,
            "Must set auto LP burn percent between 0% and 10%" 
        ); 
        lpBurnFrequency = _frequencyInSeconds; 
        percentForLPBurn = _percent; 
        lpBurnEnabled = _Enabled; 
    } 

    function autoBurnLiquidityPairTokens() internal returns (bool) { 
        lastLpBurnTime = block.timestamp; 

        // get balance of liquidity pair
        uint256 liquidityPairBalance = this.balanceOf(uniswapV2Pair); 

        // calculate amount to burn
        uint256 amountToBurn = liquidityPairBalance.mul(percentForLPBurn).div(
            10000
        ); 

        // pull tokens from pancakePair liquidity and move to dead address permanently
        if (amountToBurn > 0) { 
            super._transfer(uniswapV2Pair, address(0xdead), amountToBurn); 
        } 

        // sync price since this is not in a swap transaction!
        IUniswapV2Pair pair = IUniswapV2Pair(uniswapV2Pair); 
        pair.sync(); 
        emit AutoNukeLP(); 
        return true; 
    } 

    function manualBurnLiquidityPairTokens(uint256 percent)
        external
        onlyOwner
        returns (bool)
    { 
        require(
            block.timestamp > lastManualLpBurnTime + manualBurnFrequency,
            "Must wait for cooldown to finish" 
        ); 
        require(percent <= 1000, "May not nuke more than 10% of tokens in LP"); 
        lastManualLpBurnTime = block.timestamp; 

        // get balance of liquidity pair
        uint256 liquidityPairBalance = this.balanceOf(uniswapV2Pair); 

        // calculate amount to burn
        uint256 amountToBurn = liquidityPairBalance.mul(percent).div(10000); 

        // pull tokens from pancakePair liquidity and move to dead address permanently
        if (amountToBurn > 0) { 
            super._transfer(uniswapV2Pair, address(0xdead), amountToBurn); 
        } 

        // sync price since this is not in a swap transaction!
        IUniswapV2Pair pair = IUniswapV2Pair(uniswapV2Pair); 
        pair.sync(); 
        emit ManualNukeLP(); 
        return true; 
    } 
}

File 2 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

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 generally not needed starting with Solidity 0.8, since 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 subtraction 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 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 4 of 11 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

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

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 6 of 11 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

File 7 of 11 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 8 of 11 : IUniswapV2Pair.sol
pragma solidity >=0.5.0;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

File 9 of 11 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "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":[],"name":"AutoNukeLP","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[],"name":"ManualNukeLP","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiquidity","type":"uint256"}],"name":"SwapAndLiquify","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateUniswapV2Router","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldWallet","type":"address"}],"name":"clashWalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldWallet","type":"address"}],"name":"devWalletUpdated","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isExcludedMaxTransactionAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyClashFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyDevFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyLiquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTotalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"clashWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"clashes","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deadAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":[],"name":"devWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableTransferDelay","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"updAds","type":"address"},{"internalType":"bool","name":"isEx","type":"bool"}],"name":"excludeFromMaxTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gameMaster","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"gamerNominees","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastLpBurnTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastManualLpBurnTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitsInEffect","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"clashName","type":"string"}],"name":"lockClash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lpBurnEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpBurnFrequency","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manualBurnFrequency","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"percent","type":"uint256"}],"name":"manualBurnLiquidityPairTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxTransactionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"clashName","type":"string"}],"name":"newClash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"gamerUsername","type":"string"},{"internalType":"string","name":"clashName","type":"string"}],"name":"nominateGamer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nominations","outputs":[{"internalType":"uint256","name":"time","type":"uint256"},{"internalType":"address","name":"user","type":"address"},{"internalType":"string","name":"clash","type":"string"},{"internalType":"string","name":"nominee","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"percentForLPBurn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellClashFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellDevFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellLiquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellTotalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_frequencyInSeconds","type":"uint256"},{"internalType":"uint256","name":"_percent","type":"uint256"},{"internalType":"bool","name":"_Enabled","type":"bool"}],"name":"setAutoLPBurnSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"clashName","type":"string"},{"internalType":"string","name":"result","type":"string"}],"name":"setClashResult","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForClash","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForDev","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferDelayEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newGM","type":"address"}],"name":"transferGameMasterRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_clashFee","type":"uint256"},{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_devFee","type":"uint256"}],"name":"updateBuyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newClashWallet","type":"address"}],"name":"updateClashWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"updateDevWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"updateMaxTxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"updateMaxWalletAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_clashFee","type":"uint256"},{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_devFee","type":"uint256"}],"name":"updateSellFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"updateSwapTokensAtAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c06040526014600f5560108054600160ff199182168117909255610e106011556107086013556015805462ffffff1916831790556017805490911690911790553480156200004d57600080fd5b5060405180604001604052806008815260200167446553706f72747360c01b81525060405180604001604052806008815260200167444553504f52545360c01b8152508160039081620000a1919062000726565b506004620000b0828262000726565b505050620000cd620000c7620003ee60201b60201c565b620003f2565b737a250d5630b4cf539739df2c5dacb4c659f2488d620000ef81600162000444565b6001600160a01b03811660808190526040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa1580156200013a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001609190620007f2565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001ae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001d49190620007f2565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801562000222573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002489190620007f2565b6001600160a01b031660a08190526200026390600162000444565b60a0516200027390600162000479565b6a0422ca8b0a00a425000000600c556a084595161401484a000000600d556004600060028282826b033b2e3c9fd0803ce8000000612710620002b78260056200083a565b620002c391906200085a565b600e55600980546001600160a01b031990811633908117909255600b80548216909217909155600a80549091167350665fe26b53df8bcbcac45f0ef2ad3f2a9cf205179055601c879055601d869055601e859055846200032487896200087d565b6200033091906200087d565b601b55602084905560218390556022829055816200034f84866200087d565b6200035b91906200087d565b601f556200037d620003756005546001600160a01b031690565b600162000444565b6200038a30600162000444565b6200039961dead600162000444565b620003b8620003b06005546001600160a01b031690565b6001620004cd565b620003c5306001620004cd565b620003d461dead6001620004cd565b620003e0338262000536565b505050505050505062000893565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200044e6200061f565b6001600160a01b03919091166000908152602460205260409020805460ff1916911515919091179055565b6001600160a01b038216600081815260256020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b620004d76200061f565b6001600160a01b038216600081815260236020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b038216620005925760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b8060026000828254620005a691906200087d565b90915550506001600160a01b03821660009081526020819052604081208054839290620005d59084906200087d565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6005546001600160a01b031633146200067b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000589565b565b505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620006ad57607f821691505b602082108103620006ce57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200067d57600081815260208120601f850160051c81016020861015620006fd5750805b601f850160051c820191505b818110156200071e5782815560010162000709565b505050505050565b81516001600160401b0381111562000742576200074262000682565b6200075a8162000753845462000698565b84620006d4565b602080601f831160018114620007925760008415620007795750858301515b600019600386901b1c1916600185901b1785556200071e565b600085815260208120601f198616915b82811015620007c357888601518255948401946001909101908401620007a2565b5085821015620007e25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200080557600080fd5b81516001600160a01b03811681146200081d57600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141762000854576200085462000824565b92915050565b6000826200087857634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111562000854576200085462000824565b60805160a0516141046200091b600039600081816106cd0152818161170e0152818161210e015281816121a9015281816121d5015281816126c401528181613455015281816134f701526135230152600081816104d601528181612686015281816136630152818161371c01528181613758015281816137d2015261382f01526141046000f3fe6080604052600436106104095760003560e01c80638f88a3ea11610213578063c17b5b8c11610123578063d85ba063116100ab578063f11a24d31161007a578063f11a24d314610bfa578063f2fde38b14610c10578063f637434214610c30578063f8b45b0514610c46578063fe72b27a14610c5c57600080fd5b8063d85ba06314610b99578063dd62ed3e14610baf578063e2f4560514610bcf578063e884f26014610be557600080fd5b8063c876d0b9116100f2578063c876d0b914610b13578063c8c8ebe414610b2d578063d257b34f14610b43578063d441ecdc14610b63578063d4c989d314610b7957600080fd5b8063c17b5b8c14610a93578063c18bc19514610ab3578063c2df015514610ad3578063c864320e14610af357600080fd5b80639fccce32116101a6578063a9059cbb11610175578063a9059cbb146109e4578063b62496f514610a04578063bbc0c74214610a34578063bdf84ae714610a53578063c024666814610a7357600080fd5b80639fccce3214610982578063a0d82dc514610998578063a457c2d7146109ae578063a4c82a00146109ce57600080fd5b80639c3b4fdc116101e25780639c3b4fdc146109205780639e74a5cb146109365780639ec22c0e1461094c5780639f4fadb11461096257600080fd5b80638f88a3ea146108ab57806395d89b41146108cb5780639a7a23d6146108e05780639a8a62bb1461090057600080fd5b8063313ce5671161031957806370a08231116102a15780637e440620116102705780637e440620146108185780638095d564146108385780638a8c523c146108585780638da5cb5b1461086d5780638ea5220f1461088b57600080fd5b806370a0823114610798578063715018a6146107ce578063730c1888146107e3578063751039fc1461080357600080fd5b80634a62bb65116102e85780634a62bb65146106ef5780634fbee193146107095780636256d181146107425780636a486a8e146107625780636ddd17131461077857600080fd5b8063313ce5671461065f578063395093511461067b5780633e34cde11461069b57806349bd5a5e146106bb57600080fd5b8063199ffc721161039c578063254c3e1e1161036b578063254c3e1e146105c957806327c8f835146105e95780632aff3e3b146105ff5780632c3e486c1461062f5780632e82f1a01461064557600080fd5b8063199ffc721461055d57806319eeabbd146105735780631a8145bb1461059357806323b872dd146105a957600080fd5b80631694505e116103d85780631694505e146104c457806318160ddd146105105780631816467f14610525578063184c16c51461054757600080fd5b806306fdde0314610415578063095ea7b3146104405780630d3122ed1461047057806310d5de531461049457600080fd5b3661041057005b600080fd5b34801561042157600080fd5b5061042a610c7c565b60405161043791906138f6565b60405180910390f35b34801561044c57600080fd5b5061046061045b36600461391e565b610d0e565b6040519015158152602001610437565b34801561047c57600080fd5b50610486601c5481565b604051908152602001610437565b3480156104a057600080fd5b506104606104af36600461394a565b60246020526000908152604090205460ff1681565b3480156104d057600080fd5b506104f87f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610437565b34801561051c57600080fd5b50600254610486565b34801561053157600080fd5b5061054561054036600461394a565b610d28565b005b34801561055357600080fd5b5061048660135481565b34801561056957600080fd5b50610486600f5481565b34801561057f57600080fd5b5061054561058e36600461394a565b610d8d565b34801561059f57600080fd5b5061048660195481565b3480156105b557600080fd5b506104606105c4366004613967565b610df2565b3480156105d557600080fd5b5061042a6105e4366004613a4b565b610e16565b3480156105f557600080fd5b506104f861dead81565b34801561060b57600080fd5b5061061f61061a366004613a88565b610ebb565b6040516104379493929190613aa1565b34801561063b57600080fd5b5061048660115481565b34801561065157600080fd5b506010546104609060ff1681565b34801561066b57600080fd5b5060405160128152602001610437565b34801561068757600080fd5b5061046061069636600461391e565b611012565b3480156106a757600080fd5b506105456106b6366004613a4b565b611034565b3480156106c757600080fd5b506104f87f000000000000000000000000000000000000000000000000000000000000000081565b3480156106fb57600080fd5b506015546104609060ff1681565b34801561071557600080fd5b5061046061072436600461394a565b6001600160a01b031660009081526023602052604090205460ff1690565b34801561074e57600080fd5b5061054561075d366004613a88565b611208565b34801561076e57600080fd5b50610486601f5481565b34801561078457600080fd5b506015546104609062010000900460ff1681565b3480156107a457600080fd5b506104866107b336600461394a565b6001600160a01b031660009081526020819052604090205490565b3480156107da57600080fd5b506105456112c3565b3480156107ef57600080fd5b506105456107fe366004613af8565b6112d7565b34801561080f57600080fd5b506104606113de565b34801561082457600080fd5b50610545610833366004613b2d565b6113f8565b34801561084457600080fd5b50610545610853366004613b91565b6115ac565b34801561086457600080fd5b50610545611632565b34801561087957600080fd5b506005546001600160a01b03166104f8565b34801561089757600080fd5b50600b546104f8906001600160a01b031681565b3480156108b757600080fd5b506105456108c636600461394a565b6116a9565b3480156108d757600080fd5b5061042a6116f5565b3480156108ec57600080fd5b506105456108fb366004613bbd565b611704565b34801561090c57600080fd5b50600a546104f8906001600160a01b031681565b34801561092c57600080fd5b50610486601e5481565b34801561094257600080fd5b5061048660205481565b34801561095857600080fd5b5061048660145481565b34801561096e57600080fd5b5061042a61097d366004613a4b565b6117bd565b34801561098e57600080fd5b50610486601a5481565b3480156109a457600080fd5b5061048660225481565b3480156109ba57600080fd5b506104606109c936600461391e565b6117e1565b3480156109da57600080fd5b5061048660125481565b3480156109f057600080fd5b506104606109ff36600461391e565b61185c565b348015610a1057600080fd5b50610460610a1f36600461394a565b60256020526000908152604090205460ff1681565b348015610a4057600080fd5b5060155461046090610100900460ff1681565b348015610a5f57600080fd5b506009546104f8906001600160a01b031681565b348015610a7f57600080fd5b50610545610a8e366004613bbd565b61186a565b348015610a9f57600080fd5b50610545610aae366004613b91565b6118d1565b348015610abf57600080fd5b50610545610ace366004613a88565b611952565b348015610adf57600080fd5b50610545610aee366004613a4b565b611a01565b348015610aff57600080fd5b50610545610b0e366004613b2d565b611b7b565b348015610b1f57600080fd5b506017546104609060ff1681565b348015610b3957600080fd5b50610486600c5481565b348015610b4f57600080fd5b50610460610b5e366004613a88565b611e01565b348015610b6f57600080fd5b5061048660185481565b348015610b8557600080fd5b50610545610b94366004613bbd565b611f35565b348015610ba557600080fd5b50610486601b5481565b348015610bbb57600080fd5b50610486610bca366004613bf2565b611f68565b348015610bdb57600080fd5b50610486600e5481565b348015610bf157600080fd5b50610460611f93565b348015610c0657600080fd5b50610486601d5481565b348015610c1c57600080fd5b50610545610c2b36600461394a565b611fad565b348015610c3c57600080fd5b5061048660215481565b348015610c5257600080fd5b50610486600d5481565b348015610c6857600080fd5b50610460610c77366004613a88565b612026565b606060038054610c8b90613c2b565b80601f0160208091040260200160405190810160405280929190818152602001828054610cb790613c2b565b8015610d045780601f10610cd957610100808354040283529160200191610d04565b820191906000526020600020905b815481529060010190602001808311610ce757829003601f168201915b5050505050905090565b600033610d1c81858561227d565b60019150505b92915050565b610d306123a1565b600b546040516001600160a01b03918216918316907f90b8024c4923d3873ff5b9fcb43d0360d4b9217fa41225d07ba379993552e74390600090a3600b80546001600160a01b0319166001600160a01b0392909216919091179055565b610d956123a1565b600a546040516001600160a01b03918216918316907f4b3ba0b2cdfd379d3e1cf1da803f94d482b20c172604429751b6cd2527ca18f490600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600033610e008582856123fb565b610e0b858585612475565b506001949350505050565b805160208183018101805160078252928201919093012091528054610e3a90613c2b565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6690613c2b565b8015610eb35780601f10610e8857610100808354040283529160200191610eb3565b820191906000526020600020905b815481529060010190602001808311610e9657829003601f168201915b505050505081565b60088181548110610ecb57600080fd5b60009182526020909120600490910201805460018201546002830180549294506001600160a01b039091169291610f0190613c2b565b80601f0160208091040260200160405190810160405280929190818152602001828054610f2d90613c2b565b8015610f7a5780601f10610f4f57610100808354040283529160200191610f7a565b820191906000526020600020905b815481529060010190602001808311610f5d57829003601f168201915b505050505090806003018054610f8f90613c2b565b80601f0160208091040260200160405190810160405280929190818152602001828054610fbb90613c2b565b80156110085780601f10610fdd57610100808354040283529160200191611008565b820191906000526020600020905b815481529060010190602001808311610feb57829003601f168201915b5050505050905084565b600033610d1c8185856110258383611f68565b61102f9190613c7b565b61227d565b6009546001600160a01b031633146110675760405162461bcd60e51b815260040161105e90613c8e565b60405180910390fd5b61114060068260405161107a9190613cc5565b9081526020016040518091039020805461109390613c2b565b80601f01602080910402602001604051908101604052809291908181526020018280546110bf90613c2b565b801561110c5780601f106110e15761010080835404028352916020019161110c565b820191906000526020600020905b8154815290600101906020018083116110ef57829003601f168201915b5050505050604051806040016040528060118152602001704452414654494e475f4e4f4d494e45455360781b815250612dcd565b6111b25760405162461bcd60e51b815260206004820152603860248201527f43616e206f6e6c79206c6f636b206e6f6d696e6174696f6e7320647572696e6760448201527f204452414654494e475f4e4f4d494e4545532070686173650000000000000000606482015260840161105e565b6040518060400160405280600f81526020016e1393d35253915154d7d313d0d2d151608a1b8152506006826040516111ea9190613cc5565b908152602001604051809103902090816112049190613d27565b5050565b6112106123a1565b670de0b6b3a76400006103e861122560025490565b61123090600a613de7565b61123a9190613e14565b6112449190613e14565b8110156112ab5760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201526e6c6f776572207468616e20312e302560881b606482015260840161105e565b6112bd81670de0b6b3a7640000613de7565b600c5550565b6112cb6123a1565b6112d56000612e26565b565b6112df6123a1565b61025883101561134d5760405162461bcd60e51b815260206004820152603360248201527f63616e6e6f7420736574206275796261636b206d6f7265206f6674656e207468604482015272616e206576657279203130206d696e7574657360681b606482015260840161105e565b6103e8821115801561135d575060015b6113c25760405162461bcd60e51b815260206004820152603060248201527f4d75737420736574206175746f204c50206275726e2070657263656e7420626560448201526f747765656e20302520616e642031302560801b606482015260840161105e565b601192909255600f556010805460ff1916911515919091179055565b60006113e86123a1565b506015805460ff19169055600190565b61140b60068260405161107a9190613cc5565b6114675760405162461bcd60e51b815260206004820152602760248201527f436c617368206973206e6f7420696e204452414654494e475f4e4f4d494e45456044820152665320706861736560c81b606482015260840161105e565b8160078261147433612e78565b604051602001611485929190613e28565b60408051601f198184030181529082905261149f91613cc5565b908152602001604051809103902090816114b99190613d27565b50604080516080810182524281523360208201908152918101838152606082018590526008805460018101825560009190915282517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3600490920291820190815593517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee4820180546001600160a01b0319166001600160a01b0390921691909117905590519192917ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee5909101906115909082613d27565b50606082015160038201906115a59082613d27565b5050505050565b6115b46123a1565b601c839055601d829055601e819055806115ce8385613c7b565b6115d89190613c7b565b601b819055600a101561162d5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c657373000000604482015260640161105e565b505050565b61163a6123a1565b601554610100900460ff16156116925760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720697320616c7265616479206f70656e000000000000000000604482015260640161105e565b6015805462ffff0019166201010017905542601255565b6009546001600160a01b031633146116d35760405162461bcd60e51b815260040161105e90613c8e565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b606060048054610c8b90613c2b565b61170c6123a1565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316036117b35760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000606482015260840161105e565b6112048282612fbf565b805160208183018101805160068252928201919093012091528054610e3a90613c2b565b600033816117ef8286611f68565b90508381101561184f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161105e565b610e0b828686840361227d565b600033610d1c818585612475565b6118726123a1565b6001600160a01b038216600081815260236020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6118d96123a1565b602083905560218290556022819055806118f38385613c7b565b6118fd9190613c7b565b601f819055600a101561162d5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c657373000000604482015260640161105e565b61195a6123a1565b670de0b6b3a76400006103e861196f60025490565b61197a90600a613de7565b6119849190613e14565b61198e9190613e14565b8110156119e95760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20604482015263312e302560e01b606482015260840161105e565b6119fb81670de0b6b3a7640000613de7565b600d5550565b6009546001600160a01b03163314611a2b5760405162461bcd60e51b815260040161105e90613c8e565b611aea600682604051611a3e9190613cc5565b90815260200160405180910390208054611a5790613c2b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a8390613c2b565b8015611ad05780601f10611aa557610100808354040283529160200191611ad0565b820191906000526020600020905b815481529060010190602001808311611ab357829003601f168201915b505050505060405180602001604052806000815250612dcd565b611b415760405162461bcd60e51b815260206004820152602260248201527f43616e6e6f74207265637265617465206120636c61736820746f75726e616d656044820152611b9d60f21b606482015260840161105e565b604051806040016040528060118152602001704452414654494e475f4e4f4d494e45455360781b8152506006826040516111ea9190613cc5565b6009546001600160a01b03163314611ba55760405162461bcd60e51b815260040161105e90613c8e565b611c7c600683604051611bb89190613cc5565b90815260200160405180910390208054611bd190613c2b565b80601f0160208091040260200160405190810160405280929190818152602001828054611bfd90613c2b565b8015611c4a5780601f10611c1f57610100808354040283529160200191611c4a565b820191906000526020600020905b815481529060010190602001808311611c2d57829003601f168201915b50505050506040518060400160405280600f81526020016e1393d35253915154d7d313d0d2d151608a1b815250612dcd565b611ce25760405162461bcd60e51b815260206004820152603160248201527f43616e206f6e6c792073657420726573756c747320647572696e67204e4f4d496044820152704e4545535f4c4f434b454420706861736560781b606482015260840161105e565b611cfb8160405180602001604052806000815250612dcd565b15611d405760405162461bcd60e51b8152602060048201526015602482015274086c2dcdcdee840c8cad8cae8ca40c240c6d8c2e6d605b1b604482015260640161105e565b611d7381604051806040016040528060118152602001704452414654494e475f4e4f4d494e45455360781b815250612dcd565b15611dd65760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f7420726576657274206261636b20746f204452414654494e475f4e60448201526c4f4d494e45455320706861736560981b606482015260840161105e565b80600683604051611de79190613cc5565b9081526020016040518091039020908161162d9190613d27565b6000611e0b6123a1565b620186a0611e1860025490565b611e23906001613de7565b611e2d9190613e14565b821015611e9a5760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b606482015260840161105e565b6103e8611ea660025490565b611eb1906005613de7565b611ebb9190613e14565b821115611f275760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171a92903a37ba30b61039bab838363c9760611b606482015260840161105e565b50600e81905560015b919050565b611f3d6123a1565b6001600160a01b03919091166000908152602460205260409020805460ff1916911515919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000611f9d6123a1565b506017805460ff19169055600190565b611fb56123a1565b6001600160a01b03811661201a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161105e565b61202381612e26565b50565b60006120306123a1565b6013546014546120409190613c7b565b421161208e5760405162461bcd60e51b815260206004820181905260248201527f4d757374207761697420666f7220636f6f6c646f776e20746f2066696e697368604482015260640161105e565b6103e88211156120f35760405162461bcd60e51b815260206004820152602a60248201527f4d6179206e6f74206e756b65206d6f7265207468616e20313025206f6620746f60448201526906b656e7320696e204c560b41b606482015260840161105e565b426014556040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016600482015260009030906370a0823190602401602060405180830381865afa15801561215e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121829190613e57565b9050600061219c6127106121968487613013565b90613026565b905080156121d1576121d17f000000000000000000000000000000000000000000000000000000000000000061dead83613032565b60007f00000000000000000000000000000000000000000000000000000000000000009050806001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561223157600080fd5b505af1158015612245573d6000803e3d6000fd5b50506040517f8462566617872a3fbab94534675218431ff9e204063ee3f4f43d965626a39abb925060009150a1506001949350505050565b6001600160a01b0383166122df5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161105e565b6001600160a01b0382166123405760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161105e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146112d55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161105e565b60006124078484611f68565b9050600019811461246f57818110156124625760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161105e565b61246f848484840361227d565b50505050565b6001600160a01b0383166124da5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015265323932b9b99760d11b606482015260840161105e565b6001600160a01b03821661253c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526332b9b99760e11b606482015260840161105e565b806000036125505761162d83836000613032565b60155460ff1615612a0f576005546001600160a01b0384811691161480159061258757506005546001600160a01b03838116911614155b801561259b57506001600160a01b03821615155b80156125b257506001600160a01b03821661dead14155b80156125c85750600954600160a01b900460ff16155b15612a0f57601554610100900460ff16612660576001600160a01b03831660009081526023602052604090205460ff168061261b57506001600160a01b03821660009081526023602052604090205460ff165b6126605760405162461bcd60e51b815260206004820152601660248201527554726164696e67206973206e6f74206163746976652160501b604482015260640161105e565b60175460ff16156127a7576005546001600160a01b038381169116148015906126bb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614155b80156126f957507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614155b156127a7573260009081526016602052604090205443116127945760405162461bcd60e51b815260206004820152604960248201527f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60448201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b60648201526820616c6c6f7765642160b81b608482015260a40161105e565b3260009081526016602052604090204390555b6001600160a01b03831660009081526025602052604090205460ff1680156127e857506001600160a01b03821660009081526024602052604090205460ff16155b156128cd57600c5481111561285d5760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e74206578636565647320746865206044820152746d61785472616e73616374696f6e416d6f756e742160581b606482015260840161105e565b600d546001600160a01b0383166000908152602081905260409020546128839083613c7b565b11156128c85760405162461bcd60e51b815260206004820152601460248201527326b0bc103bb0b63632ba1032bc31b2b2b232b21760611b604482015260640161105e565b612a0f565b6001600160a01b03821660009081526025602052604090205460ff16801561290e57506001600160a01b03831660009081526024602052604090205460ff16155b1561298457600c548111156128c85760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e74206578636565647320746865604482015275206d61785472616e73616374696f6e416d6f756e742160501b606482015260840161105e565b6001600160a01b03821660009081526024602052604090205460ff16612a0f57600d546001600160a01b0383166000908152602081905260409020546129ca9083613c7b565b1115612a0f5760405162461bcd60e51b815260206004820152601460248201527326b0bc103bb0b63632ba1032bc31b2b2b232b21760611b604482015260640161105e565b30600090815260208190526040902054600e5481108015908190612a3b575060155462010000900460ff165b8015612a515750600954600160a01b900460ff16155b8015612a7657506001600160a01b03851660009081526025602052604090205460ff16155b8015612a9b57506001600160a01b03851660009081526023602052604090205460ff16155b8015612ac057506001600160a01b03841660009081526023602052604090205460ff16155b15612aee576009805460ff60a01b1916600160a01b179055612ae0613200565b6009805460ff60a01b191690555b600954600160a01b900460ff16158015612b2057506001600160a01b03841660009081526025602052604090205460ff165b8015612b2e575060105460ff165b8015612b495750601154601254612b459190613c7b565b4210155b8015612b6e57506001600160a01b03851660009081526023602052604090205460ff16155b15612b7d57612b7b61343a565b505b6009546001600160a01b03861660009081526023602052604090205460ff600160a01b909204821615911680612bcb57506001600160a01b03851660009081526023602052604090205460ff165b15612bd4575060005b60008115612db9576001600160a01b03861660009081526025602052604090205460ff168015612c0657506000601f54115b15612cbe57612c256064612196601f548861301390919063ffffffff16565b9050601f5460215482612c389190613de7565b612c429190613e14565b60196000828254612c539190613c7b565b9091555050601f54602254612c689083613de7565b612c729190613e14565b601a6000828254612c839190613c7b565b9091555050601f54602054612c989083613de7565b612ca29190613e14565b60186000828254612cb39190613c7b565b90915550612d9b9050565b6001600160a01b03871660009081526025602052604090205460ff168015612ce857506000601b54115b15612d9b57612d076064612196601b548861301390919063ffffffff16565b9050601b54601d5482612d1a9190613de7565b612d249190613e14565b60196000828254612d359190613c7b565b9091555050601b54601e54612d4a9083613de7565b612d549190613e14565b601a6000828254612d659190613c7b565b9091555050601b54601c54612d7a9083613de7565b612d849190613e14565b60186000828254612d959190613c7b565b90915550505b8015612dac57612dac873083613032565b612db68186613e70565b94505b612dc4878787613032565b50505050505050565b600081604051602001612de09190613cc5565b6040516020818303038152906040528051906020012083604051602001612e079190613cc5565b6040516020818303038152906040528051906020012014905092915050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051602880825260608281019093526000919060208201818036833701905050905060005b6014811015612fb8576000612eb5826013613e70565b612ec0906008613de7565b612ecb906002613f67565b612ede906001600160a01b038716613e14565b60f81b9050600060108260f81c612ef59190613f73565b60f81b905060008160f81c6010612f0c9190613f95565b8360f81c612f1a9190613fb1565b60f81b9050612f28826135ca565b85612f34866002613de7565b81518110612f4457612f44613fca565b60200101906001600160f81b031916908160001a905350612f64816135ca565b85612f70866002613de7565b612f7b906001613c7b565b81518110612f8b57612f8b613fca565b60200101906001600160f81b031916908160001a9053505050508080612fb090613fe0565b915050612e9f565b5092915050565b6001600160a01b038216600081815260256020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b600061301f8284613de7565b9392505050565b600061301f8284613e14565b6001600160a01b0383166130965760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161105e565b6001600160a01b0382166130f85760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161105e565b6001600160a01b038316600090815260208190526040902054818110156131705760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161105e565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906131a7908490613c7b565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516131f391815260200190565b60405180910390a361246f565b3060009081526020819052604081205490506000601a546018546019546132279190613c7b565b6132319190613c7b565b90506000821580613240575081155b1561324a57505050565b600e54613258906014613de7565b83111561327057600e5461326d906014613de7565b92505b6000600283601954866132839190613de7565b61328d9190613e14565b6132979190613e14565b905060006132a58583613600565b9050476132b18261360c565b60006132bd4783613600565b905060006132da876121966018548561301390919063ffffffff16565b905060006132f788612196601a548661301390919063ffffffff16565b90506000816133068486613e70565b6133109190613e70565b600060198190556018819055601a819055600b546040519293506001600160a01b031691849181818185875af1925050503d806000811461336d576040519150601f19603f3d011682016040523d82523d6000602084013e613372565b606091505b509098505086158015906133865750600081115b156133d95761339587826137cc565b601954604080518881526020810184905280820192909252517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a15b600a546040516001600160a01b03909116904790600081818185875af1925050503d8060008114613426576040519150601f19603f3d011682016040523d82523d6000602084013e61342b565b606091505b50505050505050505050505050565b426012556040516370a0823160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166004820152600090819030906370a0823190602401602060405180830381865afa1580156134a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134cb9190613e57565b905060006134ea612710612196600f548561301390919063ffffffff16565b9050801561351f5761351f7f000000000000000000000000000000000000000000000000000000000000000061dead83613032565b60007f00000000000000000000000000000000000000000000000000000000000000009050806001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561357f57600080fd5b505af1158015613593573d6000803e3d6000fd5b50506040517f454c91ae84fcc766ddda0dcb289f26b3d0176efeacf4061fc219fa6ca8c3048d925060009150a16001935050505090565b6000600a60f883901c10156135f1576135e860f883901c6030613ff9565b60f81b92915050565b6135e860f883901c6057613ff9565b600061301f8284613e70565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061364157613641613fca565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156136bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136e39190614012565b816001815181106136f6576136f6613fca565b60200260200101906001600160a01b031690816001600160a01b031681525050613741307f00000000000000000000000000000000000000000000000000000000000000008461227d565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac9479061379690859060009086903090429060040161402f565b600060405180830381600087803b1580156137b057600080fd5b505af11580156137c4573d6000803e3d6000fd5b505050505050565b6137f7307f00000000000000000000000000000000000000000000000000000000000000008461227d565b60405163f305d71960e01b815230600482015260248101839052600060448201819052606482015261dead60848201524260a48201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f305d71990839060c40160606040518083038185885af1158015613881573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906115a591906140a0565b60005b838110156138c15781810151838201526020016138a9565b50506000910152565b600081518084526138e28160208601602086016138a6565b601f01601f19169290920160200192915050565b60208152600061301f60208301846138ca565b6001600160a01b038116811461202357600080fd5b6000806040838503121561393157600080fd5b823561393c81613909565b946020939093013593505050565b60006020828403121561395c57600080fd5b813561301f81613909565b60008060006060848603121561397c57600080fd5b833561398781613909565b9250602084013561399781613909565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126139cf57600080fd5b813567ffffffffffffffff808211156139ea576139ea6139a8565b604051601f8301601f19908116603f01168101908282118183101715613a1257613a126139a8565b81604052838152866020858801011115613a2b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215613a5d57600080fd5b813567ffffffffffffffff811115613a7457600080fd5b613a80848285016139be565b949350505050565b600060208284031215613a9a57600080fd5b5035919050565b8481526001600160a01b0384166020820152608060408201819052600090613acb908301856138ca565b8281036060840152613add81856138ca565b979650505050505050565b80358015158114611f3057600080fd5b600080600060608486031215613b0d57600080fd5b8335925060208401359150613b2460408501613ae8565b90509250925092565b60008060408385031215613b4057600080fd5b823567ffffffffffffffff80821115613b5857600080fd5b613b64868387016139be565b93506020850135915080821115613b7a57600080fd5b50613b87858286016139be565b9150509250929050565b600080600060608486031215613ba657600080fd5b505081359360208301359350604090920135919050565b60008060408385031215613bd057600080fd5b8235613bdb81613909565b9150613be960208401613ae8565b90509250929050565b60008060408385031215613c0557600080fd5b8235613c1081613909565b91506020830135613c2081613909565b809150509250929050565b600181811c90821680613c3f57607f821691505b602082108103613c5f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610d2257610d22613c65565b6020808252601b908201527f596f7520617265206e6f74207468652047616d65204d61737465720000000000604082015260600190565b60008251613cd78184602087016138a6565b9190910192915050565b601f82111561162d57600081815260208120601f850160051c81016020861015613d085750805b601f850160051c820191505b818110156137c457828155600101613d14565b815167ffffffffffffffff811115613d4157613d416139a8565b613d5581613d4f8454613c2b565b84613ce1565b602080601f831160018114613d8a5760008415613d725750858301515b600019600386901b1c1916600185901b1785556137c4565b600085815260208120601f198616915b82811015613db957888601518255948401946001909101908401613d9a565b5085821015613dd75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082028115828204841417610d2257610d22613c65565b634e487b7160e01b600052601260045260246000fd5b600082613e2357613e23613dfe565b500490565b60008351613e3a8184602088016138a6565b835190830190613e4e8183602088016138a6565b01949350505050565b600060208284031215613e6957600080fd5b5051919050565b81810381811115610d2257610d22613c65565b600181815b80851115613ebe578160001904821115613ea457613ea4613c65565b80851615613eb157918102915b93841c9390800290613e88565b509250929050565b600082613ed557506001610d22565b81613ee257506000610d22565b8160018114613ef85760028114613f0257613f1e565b6001915050610d22565b60ff841115613f1357613f13613c65565b50506001821b610d22565b5060208310610133831016604e8410600b8410161715613f41575081810a610d22565b613f4b8383613e83565b8060001904821115613f5f57613f5f613c65565b029392505050565b600061301f8383613ec6565b600060ff831680613f8657613f86613dfe565b8060ff84160491505092915050565b60ff8181168382160290811690818114612fb857612fb8613c65565b60ff8281168282160390811115610d2257610d22613c65565b634e487b7160e01b600052603260045260246000fd5b600060018201613ff257613ff2613c65565b5060010190565b60ff8181168382160190811115610d2257610d22613c65565b60006020828403121561402457600080fd5b815161301f81613909565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b8181101561407f5784516001600160a01b03168352938301939183019160010161405a565b50506001600160a01b03969096166060850152505050608001529392505050565b6000806000606084860312156140b557600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220fe04fe5c200864416b62a62930325d93f3a4757150ffa1fe3ebe953f97431c8164736f6c63430008110033

Deployed Bytecode

0x6080604052600436106104095760003560e01c80638f88a3ea11610213578063c17b5b8c11610123578063d85ba063116100ab578063f11a24d31161007a578063f11a24d314610bfa578063f2fde38b14610c10578063f637434214610c30578063f8b45b0514610c46578063fe72b27a14610c5c57600080fd5b8063d85ba06314610b99578063dd62ed3e14610baf578063e2f4560514610bcf578063e884f26014610be557600080fd5b8063c876d0b9116100f2578063c876d0b914610b13578063c8c8ebe414610b2d578063d257b34f14610b43578063d441ecdc14610b63578063d4c989d314610b7957600080fd5b8063c17b5b8c14610a93578063c18bc19514610ab3578063c2df015514610ad3578063c864320e14610af357600080fd5b80639fccce32116101a6578063a9059cbb11610175578063a9059cbb146109e4578063b62496f514610a04578063bbc0c74214610a34578063bdf84ae714610a53578063c024666814610a7357600080fd5b80639fccce3214610982578063a0d82dc514610998578063a457c2d7146109ae578063a4c82a00146109ce57600080fd5b80639c3b4fdc116101e25780639c3b4fdc146109205780639e74a5cb146109365780639ec22c0e1461094c5780639f4fadb11461096257600080fd5b80638f88a3ea146108ab57806395d89b41146108cb5780639a7a23d6146108e05780639a8a62bb1461090057600080fd5b8063313ce5671161031957806370a08231116102a15780637e440620116102705780637e440620146108185780638095d564146108385780638a8c523c146108585780638da5cb5b1461086d5780638ea5220f1461088b57600080fd5b806370a0823114610798578063715018a6146107ce578063730c1888146107e3578063751039fc1461080357600080fd5b80634a62bb65116102e85780634a62bb65146106ef5780634fbee193146107095780636256d181146107425780636a486a8e146107625780636ddd17131461077857600080fd5b8063313ce5671461065f578063395093511461067b5780633e34cde11461069b57806349bd5a5e146106bb57600080fd5b8063199ffc721161039c578063254c3e1e1161036b578063254c3e1e146105c957806327c8f835146105e95780632aff3e3b146105ff5780632c3e486c1461062f5780632e82f1a01461064557600080fd5b8063199ffc721461055d57806319eeabbd146105735780631a8145bb1461059357806323b872dd146105a957600080fd5b80631694505e116103d85780631694505e146104c457806318160ddd146105105780631816467f14610525578063184c16c51461054757600080fd5b806306fdde0314610415578063095ea7b3146104405780630d3122ed1461047057806310d5de531461049457600080fd5b3661041057005b600080fd5b34801561042157600080fd5b5061042a610c7c565b60405161043791906138f6565b60405180910390f35b34801561044c57600080fd5b5061046061045b36600461391e565b610d0e565b6040519015158152602001610437565b34801561047c57600080fd5b50610486601c5481565b604051908152602001610437565b3480156104a057600080fd5b506104606104af36600461394a565b60246020526000908152604090205460ff1681565b3480156104d057600080fd5b506104f87f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b039091168152602001610437565b34801561051c57600080fd5b50600254610486565b34801561053157600080fd5b5061054561054036600461394a565b610d28565b005b34801561055357600080fd5b5061048660135481565b34801561056957600080fd5b50610486600f5481565b34801561057f57600080fd5b5061054561058e36600461394a565b610d8d565b34801561059f57600080fd5b5061048660195481565b3480156105b557600080fd5b506104606105c4366004613967565b610df2565b3480156105d557600080fd5b5061042a6105e4366004613a4b565b610e16565b3480156105f557600080fd5b506104f861dead81565b34801561060b57600080fd5b5061061f61061a366004613a88565b610ebb565b6040516104379493929190613aa1565b34801561063b57600080fd5b5061048660115481565b34801561065157600080fd5b506010546104609060ff1681565b34801561066b57600080fd5b5060405160128152602001610437565b34801561068757600080fd5b5061046061069636600461391e565b611012565b3480156106a757600080fd5b506105456106b6366004613a4b565b611034565b3480156106c757600080fd5b506104f87f0000000000000000000000003ea40311f40aac2a75f581f8867647999e8920c481565b3480156106fb57600080fd5b506015546104609060ff1681565b34801561071557600080fd5b5061046061072436600461394a565b6001600160a01b031660009081526023602052604090205460ff1690565b34801561074e57600080fd5b5061054561075d366004613a88565b611208565b34801561076e57600080fd5b50610486601f5481565b34801561078457600080fd5b506015546104609062010000900460ff1681565b3480156107a457600080fd5b506104866107b336600461394a565b6001600160a01b031660009081526020819052604090205490565b3480156107da57600080fd5b506105456112c3565b3480156107ef57600080fd5b506105456107fe366004613af8565b6112d7565b34801561080f57600080fd5b506104606113de565b34801561082457600080fd5b50610545610833366004613b2d565b6113f8565b34801561084457600080fd5b50610545610853366004613b91565b6115ac565b34801561086457600080fd5b50610545611632565b34801561087957600080fd5b506005546001600160a01b03166104f8565b34801561089757600080fd5b50600b546104f8906001600160a01b031681565b3480156108b757600080fd5b506105456108c636600461394a565b6116a9565b3480156108d757600080fd5b5061042a6116f5565b3480156108ec57600080fd5b506105456108fb366004613bbd565b611704565b34801561090c57600080fd5b50600a546104f8906001600160a01b031681565b34801561092c57600080fd5b50610486601e5481565b34801561094257600080fd5b5061048660205481565b34801561095857600080fd5b5061048660145481565b34801561096e57600080fd5b5061042a61097d366004613a4b565b6117bd565b34801561098e57600080fd5b50610486601a5481565b3480156109a457600080fd5b5061048660225481565b3480156109ba57600080fd5b506104606109c936600461391e565b6117e1565b3480156109da57600080fd5b5061048660125481565b3480156109f057600080fd5b506104606109ff36600461391e565b61185c565b348015610a1057600080fd5b50610460610a1f36600461394a565b60256020526000908152604090205460ff1681565b348015610a4057600080fd5b5060155461046090610100900460ff1681565b348015610a5f57600080fd5b506009546104f8906001600160a01b031681565b348015610a7f57600080fd5b50610545610a8e366004613bbd565b61186a565b348015610a9f57600080fd5b50610545610aae366004613b91565b6118d1565b348015610abf57600080fd5b50610545610ace366004613a88565b611952565b348015610adf57600080fd5b50610545610aee366004613a4b565b611a01565b348015610aff57600080fd5b50610545610b0e366004613b2d565b611b7b565b348015610b1f57600080fd5b506017546104609060ff1681565b348015610b3957600080fd5b50610486600c5481565b348015610b4f57600080fd5b50610460610b5e366004613a88565b611e01565b348015610b6f57600080fd5b5061048660185481565b348015610b8557600080fd5b50610545610b94366004613bbd565b611f35565b348015610ba557600080fd5b50610486601b5481565b348015610bbb57600080fd5b50610486610bca366004613bf2565b611f68565b348015610bdb57600080fd5b50610486600e5481565b348015610bf157600080fd5b50610460611f93565b348015610c0657600080fd5b50610486601d5481565b348015610c1c57600080fd5b50610545610c2b36600461394a565b611fad565b348015610c3c57600080fd5b5061048660215481565b348015610c5257600080fd5b50610486600d5481565b348015610c6857600080fd5b50610460610c77366004613a88565b612026565b606060038054610c8b90613c2b565b80601f0160208091040260200160405190810160405280929190818152602001828054610cb790613c2b565b8015610d045780601f10610cd957610100808354040283529160200191610d04565b820191906000526020600020905b815481529060010190602001808311610ce757829003601f168201915b5050505050905090565b600033610d1c81858561227d565b60019150505b92915050565b610d306123a1565b600b546040516001600160a01b03918216918316907f90b8024c4923d3873ff5b9fcb43d0360d4b9217fa41225d07ba379993552e74390600090a3600b80546001600160a01b0319166001600160a01b0392909216919091179055565b610d956123a1565b600a546040516001600160a01b03918216918316907f4b3ba0b2cdfd379d3e1cf1da803f94d482b20c172604429751b6cd2527ca18f490600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600033610e008582856123fb565b610e0b858585612475565b506001949350505050565b805160208183018101805160078252928201919093012091528054610e3a90613c2b565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6690613c2b565b8015610eb35780601f10610e8857610100808354040283529160200191610eb3565b820191906000526020600020905b815481529060010190602001808311610e9657829003601f168201915b505050505081565b60088181548110610ecb57600080fd5b60009182526020909120600490910201805460018201546002830180549294506001600160a01b039091169291610f0190613c2b565b80601f0160208091040260200160405190810160405280929190818152602001828054610f2d90613c2b565b8015610f7a5780601f10610f4f57610100808354040283529160200191610f7a565b820191906000526020600020905b815481529060010190602001808311610f5d57829003601f168201915b505050505090806003018054610f8f90613c2b565b80601f0160208091040260200160405190810160405280929190818152602001828054610fbb90613c2b565b80156110085780601f10610fdd57610100808354040283529160200191611008565b820191906000526020600020905b815481529060010190602001808311610feb57829003601f168201915b5050505050905084565b600033610d1c8185856110258383611f68565b61102f9190613c7b565b61227d565b6009546001600160a01b031633146110675760405162461bcd60e51b815260040161105e90613c8e565b60405180910390fd5b61114060068260405161107a9190613cc5565b9081526020016040518091039020805461109390613c2b565b80601f01602080910402602001604051908101604052809291908181526020018280546110bf90613c2b565b801561110c5780601f106110e15761010080835404028352916020019161110c565b820191906000526020600020905b8154815290600101906020018083116110ef57829003601f168201915b5050505050604051806040016040528060118152602001704452414654494e475f4e4f4d494e45455360781b815250612dcd565b6111b25760405162461bcd60e51b815260206004820152603860248201527f43616e206f6e6c79206c6f636b206e6f6d696e6174696f6e7320647572696e6760448201527f204452414654494e475f4e4f4d494e4545532070686173650000000000000000606482015260840161105e565b6040518060400160405280600f81526020016e1393d35253915154d7d313d0d2d151608a1b8152506006826040516111ea9190613cc5565b908152602001604051809103902090816112049190613d27565b5050565b6112106123a1565b670de0b6b3a76400006103e861122560025490565b61123090600a613de7565b61123a9190613e14565b6112449190613e14565b8110156112ab5760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201526e6c6f776572207468616e20312e302560881b606482015260840161105e565b6112bd81670de0b6b3a7640000613de7565b600c5550565b6112cb6123a1565b6112d56000612e26565b565b6112df6123a1565b61025883101561134d5760405162461bcd60e51b815260206004820152603360248201527f63616e6e6f7420736574206275796261636b206d6f7265206f6674656e207468604482015272616e206576657279203130206d696e7574657360681b606482015260840161105e565b6103e8821115801561135d575060015b6113c25760405162461bcd60e51b815260206004820152603060248201527f4d75737420736574206175746f204c50206275726e2070657263656e7420626560448201526f747765656e20302520616e642031302560801b606482015260840161105e565b601192909255600f556010805460ff1916911515919091179055565b60006113e86123a1565b506015805460ff19169055600190565b61140b60068260405161107a9190613cc5565b6114675760405162461bcd60e51b815260206004820152602760248201527f436c617368206973206e6f7420696e204452414654494e475f4e4f4d494e45456044820152665320706861736560c81b606482015260840161105e565b8160078261147433612e78565b604051602001611485929190613e28565b60408051601f198184030181529082905261149f91613cc5565b908152602001604051809103902090816114b99190613d27565b50604080516080810182524281523360208201908152918101838152606082018590526008805460018101825560009190915282517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3600490920291820190815593517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee4820180546001600160a01b0319166001600160a01b0390921691909117905590519192917ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee5909101906115909082613d27565b50606082015160038201906115a59082613d27565b5050505050565b6115b46123a1565b601c839055601d829055601e819055806115ce8385613c7b565b6115d89190613c7b565b601b819055600a101561162d5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c657373000000604482015260640161105e565b505050565b61163a6123a1565b601554610100900460ff16156116925760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720697320616c7265616479206f70656e000000000000000000604482015260640161105e565b6015805462ffff0019166201010017905542601255565b6009546001600160a01b031633146116d35760405162461bcd60e51b815260040161105e90613c8e565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b606060048054610c8b90613c2b565b61170c6123a1565b7f0000000000000000000000003ea40311f40aac2a75f581f8867647999e8920c46001600160a01b0316826001600160a01b0316036117b35760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000606482015260840161105e565b6112048282612fbf565b805160208183018101805160068252928201919093012091528054610e3a90613c2b565b600033816117ef8286611f68565b90508381101561184f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161105e565b610e0b828686840361227d565b600033610d1c818585612475565b6118726123a1565b6001600160a01b038216600081815260236020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6118d96123a1565b602083905560218290556022819055806118f38385613c7b565b6118fd9190613c7b565b601f819055600a101561162d5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c657373000000604482015260640161105e565b61195a6123a1565b670de0b6b3a76400006103e861196f60025490565b61197a90600a613de7565b6119849190613e14565b61198e9190613e14565b8110156119e95760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20604482015263312e302560e01b606482015260840161105e565b6119fb81670de0b6b3a7640000613de7565b600d5550565b6009546001600160a01b03163314611a2b5760405162461bcd60e51b815260040161105e90613c8e565b611aea600682604051611a3e9190613cc5565b90815260200160405180910390208054611a5790613c2b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a8390613c2b565b8015611ad05780601f10611aa557610100808354040283529160200191611ad0565b820191906000526020600020905b815481529060010190602001808311611ab357829003601f168201915b505050505060405180602001604052806000815250612dcd565b611b415760405162461bcd60e51b815260206004820152602260248201527f43616e6e6f74207265637265617465206120636c61736820746f75726e616d656044820152611b9d60f21b606482015260840161105e565b604051806040016040528060118152602001704452414654494e475f4e4f4d494e45455360781b8152506006826040516111ea9190613cc5565b6009546001600160a01b03163314611ba55760405162461bcd60e51b815260040161105e90613c8e565b611c7c600683604051611bb89190613cc5565b90815260200160405180910390208054611bd190613c2b565b80601f0160208091040260200160405190810160405280929190818152602001828054611bfd90613c2b565b8015611c4a5780601f10611c1f57610100808354040283529160200191611c4a565b820191906000526020600020905b815481529060010190602001808311611c2d57829003601f168201915b50505050506040518060400160405280600f81526020016e1393d35253915154d7d313d0d2d151608a1b815250612dcd565b611ce25760405162461bcd60e51b815260206004820152603160248201527f43616e206f6e6c792073657420726573756c747320647572696e67204e4f4d496044820152704e4545535f4c4f434b454420706861736560781b606482015260840161105e565b611cfb8160405180602001604052806000815250612dcd565b15611d405760405162461bcd60e51b8152602060048201526015602482015274086c2dcdcdee840c8cad8cae8ca40c240c6d8c2e6d605b1b604482015260640161105e565b611d7381604051806040016040528060118152602001704452414654494e475f4e4f4d494e45455360781b815250612dcd565b15611dd65760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f7420726576657274206261636b20746f204452414654494e475f4e60448201526c4f4d494e45455320706861736560981b606482015260840161105e565b80600683604051611de79190613cc5565b9081526020016040518091039020908161162d9190613d27565b6000611e0b6123a1565b620186a0611e1860025490565b611e23906001613de7565b611e2d9190613e14565b821015611e9a5760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b606482015260840161105e565b6103e8611ea660025490565b611eb1906005613de7565b611ebb9190613e14565b821115611f275760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171a92903a37ba30b61039bab838363c9760611b606482015260840161105e565b50600e81905560015b919050565b611f3d6123a1565b6001600160a01b03919091166000908152602460205260409020805460ff1916911515919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000611f9d6123a1565b506017805460ff19169055600190565b611fb56123a1565b6001600160a01b03811661201a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161105e565b61202381612e26565b50565b60006120306123a1565b6013546014546120409190613c7b565b421161208e5760405162461bcd60e51b815260206004820181905260248201527f4d757374207761697420666f7220636f6f6c646f776e20746f2066696e697368604482015260640161105e565b6103e88211156120f35760405162461bcd60e51b815260206004820152602a60248201527f4d6179206e6f74206e756b65206d6f7265207468616e20313025206f6620746f60448201526906b656e7320696e204c560b41b606482015260840161105e565b426014556040516370a0823160e01b81526001600160a01b037f0000000000000000000000003ea40311f40aac2a75f581f8867647999e8920c416600482015260009030906370a0823190602401602060405180830381865afa15801561215e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121829190613e57565b9050600061219c6127106121968487613013565b90613026565b905080156121d1576121d17f0000000000000000000000003ea40311f40aac2a75f581f8867647999e8920c461dead83613032565b60007f0000000000000000000000003ea40311f40aac2a75f581f8867647999e8920c49050806001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561223157600080fd5b505af1158015612245573d6000803e3d6000fd5b50506040517f8462566617872a3fbab94534675218431ff9e204063ee3f4f43d965626a39abb925060009150a1506001949350505050565b6001600160a01b0383166122df5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161105e565b6001600160a01b0382166123405760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161105e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146112d55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161105e565b60006124078484611f68565b9050600019811461246f57818110156124625760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161105e565b61246f848484840361227d565b50505050565b6001600160a01b0383166124da5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015265323932b9b99760d11b606482015260840161105e565b6001600160a01b03821661253c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526332b9b99760e11b606482015260840161105e565b806000036125505761162d83836000613032565b60155460ff1615612a0f576005546001600160a01b0384811691161480159061258757506005546001600160a01b03838116911614155b801561259b57506001600160a01b03821615155b80156125b257506001600160a01b03821661dead14155b80156125c85750600954600160a01b900460ff16155b15612a0f57601554610100900460ff16612660576001600160a01b03831660009081526023602052604090205460ff168061261b57506001600160a01b03821660009081526023602052604090205460ff165b6126605760405162461bcd60e51b815260206004820152601660248201527554726164696e67206973206e6f74206163746976652160501b604482015260640161105e565b60175460ff16156127a7576005546001600160a01b038381169116148015906126bb57507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316826001600160a01b031614155b80156126f957507f0000000000000000000000003ea40311f40aac2a75f581f8867647999e8920c46001600160a01b0316826001600160a01b031614155b156127a7573260009081526016602052604090205443116127945760405162461bcd60e51b815260206004820152604960248201527f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60448201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b60648201526820616c6c6f7765642160b81b608482015260a40161105e565b3260009081526016602052604090204390555b6001600160a01b03831660009081526025602052604090205460ff1680156127e857506001600160a01b03821660009081526024602052604090205460ff16155b156128cd57600c5481111561285d5760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e74206578636565647320746865206044820152746d61785472616e73616374696f6e416d6f756e742160581b606482015260840161105e565b600d546001600160a01b0383166000908152602081905260409020546128839083613c7b565b11156128c85760405162461bcd60e51b815260206004820152601460248201527326b0bc103bb0b63632ba1032bc31b2b2b232b21760611b604482015260640161105e565b612a0f565b6001600160a01b03821660009081526025602052604090205460ff16801561290e57506001600160a01b03831660009081526024602052604090205460ff16155b1561298457600c548111156128c85760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e74206578636565647320746865604482015275206d61785472616e73616374696f6e416d6f756e742160501b606482015260840161105e565b6001600160a01b03821660009081526024602052604090205460ff16612a0f57600d546001600160a01b0383166000908152602081905260409020546129ca9083613c7b565b1115612a0f5760405162461bcd60e51b815260206004820152601460248201527326b0bc103bb0b63632ba1032bc31b2b2b232b21760611b604482015260640161105e565b30600090815260208190526040902054600e5481108015908190612a3b575060155462010000900460ff165b8015612a515750600954600160a01b900460ff16155b8015612a7657506001600160a01b03851660009081526025602052604090205460ff16155b8015612a9b57506001600160a01b03851660009081526023602052604090205460ff16155b8015612ac057506001600160a01b03841660009081526023602052604090205460ff16155b15612aee576009805460ff60a01b1916600160a01b179055612ae0613200565b6009805460ff60a01b191690555b600954600160a01b900460ff16158015612b2057506001600160a01b03841660009081526025602052604090205460ff165b8015612b2e575060105460ff165b8015612b495750601154601254612b459190613c7b565b4210155b8015612b6e57506001600160a01b03851660009081526023602052604090205460ff16155b15612b7d57612b7b61343a565b505b6009546001600160a01b03861660009081526023602052604090205460ff600160a01b909204821615911680612bcb57506001600160a01b03851660009081526023602052604090205460ff165b15612bd4575060005b60008115612db9576001600160a01b03861660009081526025602052604090205460ff168015612c0657506000601f54115b15612cbe57612c256064612196601f548861301390919063ffffffff16565b9050601f5460215482612c389190613de7565b612c429190613e14565b60196000828254612c539190613c7b565b9091555050601f54602254612c689083613de7565b612c729190613e14565b601a6000828254612c839190613c7b565b9091555050601f54602054612c989083613de7565b612ca29190613e14565b60186000828254612cb39190613c7b565b90915550612d9b9050565b6001600160a01b03871660009081526025602052604090205460ff168015612ce857506000601b54115b15612d9b57612d076064612196601b548861301390919063ffffffff16565b9050601b54601d5482612d1a9190613de7565b612d249190613e14565b60196000828254612d359190613c7b565b9091555050601b54601e54612d4a9083613de7565b612d549190613e14565b601a6000828254612d659190613c7b565b9091555050601b54601c54612d7a9083613de7565b612d849190613e14565b60186000828254612d959190613c7b565b90915550505b8015612dac57612dac873083613032565b612db68186613e70565b94505b612dc4878787613032565b50505050505050565b600081604051602001612de09190613cc5565b6040516020818303038152906040528051906020012083604051602001612e079190613cc5565b6040516020818303038152906040528051906020012014905092915050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051602880825260608281019093526000919060208201818036833701905050905060005b6014811015612fb8576000612eb5826013613e70565b612ec0906008613de7565b612ecb906002613f67565b612ede906001600160a01b038716613e14565b60f81b9050600060108260f81c612ef59190613f73565b60f81b905060008160f81c6010612f0c9190613f95565b8360f81c612f1a9190613fb1565b60f81b9050612f28826135ca565b85612f34866002613de7565b81518110612f4457612f44613fca565b60200101906001600160f81b031916908160001a905350612f64816135ca565b85612f70866002613de7565b612f7b906001613c7b565b81518110612f8b57612f8b613fca565b60200101906001600160f81b031916908160001a9053505050508080612fb090613fe0565b915050612e9f565b5092915050565b6001600160a01b038216600081815260256020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b600061301f8284613de7565b9392505050565b600061301f8284613e14565b6001600160a01b0383166130965760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161105e565b6001600160a01b0382166130f85760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161105e565b6001600160a01b038316600090815260208190526040902054818110156131705760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161105e565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906131a7908490613c7b565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516131f391815260200190565b60405180910390a361246f565b3060009081526020819052604081205490506000601a546018546019546132279190613c7b565b6132319190613c7b565b90506000821580613240575081155b1561324a57505050565b600e54613258906014613de7565b83111561327057600e5461326d906014613de7565b92505b6000600283601954866132839190613de7565b61328d9190613e14565b6132979190613e14565b905060006132a58583613600565b9050476132b18261360c565b60006132bd4783613600565b905060006132da876121966018548561301390919063ffffffff16565b905060006132f788612196601a548661301390919063ffffffff16565b90506000816133068486613e70565b6133109190613e70565b600060198190556018819055601a819055600b546040519293506001600160a01b031691849181818185875af1925050503d806000811461336d576040519150601f19603f3d011682016040523d82523d6000602084013e613372565b606091505b509098505086158015906133865750600081115b156133d95761339587826137cc565b601954604080518881526020810184905280820192909252517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a15b600a546040516001600160a01b03909116904790600081818185875af1925050503d8060008114613426576040519150601f19603f3d011682016040523d82523d6000602084013e61342b565b606091505b50505050505050505050505050565b426012556040516370a0823160e01b81526001600160a01b037f0000000000000000000000003ea40311f40aac2a75f581f8867647999e8920c4166004820152600090819030906370a0823190602401602060405180830381865afa1580156134a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134cb9190613e57565b905060006134ea612710612196600f548561301390919063ffffffff16565b9050801561351f5761351f7f0000000000000000000000003ea40311f40aac2a75f581f8867647999e8920c461dead83613032565b60007f0000000000000000000000003ea40311f40aac2a75f581f8867647999e8920c49050806001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561357f57600080fd5b505af1158015613593573d6000803e3d6000fd5b50506040517f454c91ae84fcc766ddda0dcb289f26b3d0176efeacf4061fc219fa6ca8c3048d925060009150a16001935050505090565b6000600a60f883901c10156135f1576135e860f883901c6030613ff9565b60f81b92915050565b6135e860f883901c6057613ff9565b600061301f8284613e70565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061364157613641613fca565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156136bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136e39190614012565b816001815181106136f6576136f6613fca565b60200260200101906001600160a01b031690816001600160a01b031681525050613741307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461227d565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac9479061379690859060009086903090429060040161402f565b600060405180830381600087803b1580156137b057600080fd5b505af11580156137c4573d6000803e3d6000fd5b505050505050565b6137f7307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461227d565b60405163f305d71960e01b815230600482015260248101839052600060448201819052606482015261dead60848201524260a48201527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b03169063f305d71990839060c40160606040518083038185885af1158015613881573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906115a591906140a0565b60005b838110156138c15781810151838201526020016138a9565b50506000910152565b600081518084526138e28160208601602086016138a6565b601f01601f19169290920160200192915050565b60208152600061301f60208301846138ca565b6001600160a01b038116811461202357600080fd5b6000806040838503121561393157600080fd5b823561393c81613909565b946020939093013593505050565b60006020828403121561395c57600080fd5b813561301f81613909565b60008060006060848603121561397c57600080fd5b833561398781613909565b9250602084013561399781613909565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126139cf57600080fd5b813567ffffffffffffffff808211156139ea576139ea6139a8565b604051601f8301601f19908116603f01168101908282118183101715613a1257613a126139a8565b81604052838152866020858801011115613a2b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215613a5d57600080fd5b813567ffffffffffffffff811115613a7457600080fd5b613a80848285016139be565b949350505050565b600060208284031215613a9a57600080fd5b5035919050565b8481526001600160a01b0384166020820152608060408201819052600090613acb908301856138ca565b8281036060840152613add81856138ca565b979650505050505050565b80358015158114611f3057600080fd5b600080600060608486031215613b0d57600080fd5b8335925060208401359150613b2460408501613ae8565b90509250925092565b60008060408385031215613b4057600080fd5b823567ffffffffffffffff80821115613b5857600080fd5b613b64868387016139be565b93506020850135915080821115613b7a57600080fd5b50613b87858286016139be565b9150509250929050565b600080600060608486031215613ba657600080fd5b505081359360208301359350604090920135919050565b60008060408385031215613bd057600080fd5b8235613bdb81613909565b9150613be960208401613ae8565b90509250929050565b60008060408385031215613c0557600080fd5b8235613c1081613909565b91506020830135613c2081613909565b809150509250929050565b600181811c90821680613c3f57607f821691505b602082108103613c5f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610d2257610d22613c65565b6020808252601b908201527f596f7520617265206e6f74207468652047616d65204d61737465720000000000604082015260600190565b60008251613cd78184602087016138a6565b9190910192915050565b601f82111561162d57600081815260208120601f850160051c81016020861015613d085750805b601f850160051c820191505b818110156137c457828155600101613d14565b815167ffffffffffffffff811115613d4157613d416139a8565b613d5581613d4f8454613c2b565b84613ce1565b602080601f831160018114613d8a5760008415613d725750858301515b600019600386901b1c1916600185901b1785556137c4565b600085815260208120601f198616915b82811015613db957888601518255948401946001909101908401613d9a565b5085821015613dd75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082028115828204841417610d2257610d22613c65565b634e487b7160e01b600052601260045260246000fd5b600082613e2357613e23613dfe565b500490565b60008351613e3a8184602088016138a6565b835190830190613e4e8183602088016138a6565b01949350505050565b600060208284031215613e6957600080fd5b5051919050565b81810381811115610d2257610d22613c65565b600181815b80851115613ebe578160001904821115613ea457613ea4613c65565b80851615613eb157918102915b93841c9390800290613e88565b509250929050565b600082613ed557506001610d22565b81613ee257506000610d22565b8160018114613ef85760028114613f0257613f1e565b6001915050610d22565b60ff841115613f1357613f13613c65565b50506001821b610d22565b5060208310610133831016604e8410600b8410161715613f41575081810a610d22565b613f4b8383613e83565b8060001904821115613f5f57613f5f613c65565b029392505050565b600061301f8383613ec6565b600060ff831680613f8657613f86613dfe565b8060ff84160491505092915050565b60ff8181168382160290811690818114612fb857612fb8613c65565b60ff8281168282160390811115610d2257610d22613c65565b634e487b7160e01b600052603260045260246000fd5b600060018201613ff257613ff2613c65565b5060010190565b60ff8181168382160190811115610d2257610d22613c65565b60006020828403121561402457600080fd5b815161301f81613909565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b8181101561407f5784516001600160a01b03168352938301939183019160010161405a565b50506001600160a01b03969096166060850152505050608001529392505050565b6000806000606084860312156140b557600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220fe04fe5c200864416b62a62930325d93f3a4757150ffa1fe3ebe953f97431c8164736f6c63430008110033

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.