ETH Price: $3,121.53 (-0.01%)

Token

BananaClubToken (BCT)
 

Overview

Max Total Supply

100,000,000 BCT

Holders

257

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 9 Decimals)

Balance
15,000 BCT

Value
$0.00
0x4e533053832eb9b932f59545e8a3d1e0f2055b0a
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The Banana Club Token is the Governance token of the Mandox Ecosystem.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
BananaClubToken

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : BananaClubToken.sol
// SPDX-License-Identifier: MIT
import "./Ownable.sol";
import "./LazyMath.sol";
import "./BananaFactory.sol";
import "./BananaRouter.sol";
import "./BANANA20.sol";
import "./draft-ERC20Permit.sol";
import "./ERC20Votes.sol";

pragma solidity 0.8.2;
//File: BananaToken.sol
/*
*         
*/
contract BananaClubToken is ERC20, ERC20Permit, ERC20Votes, Ownable {
    using SafeMath for uint256;

    IUniswapV2Router02 public uniswapV2Router;
    address public uniswapV2Pair;

    bool private _swapping;

    address public treasury;
    address public buyBack;
    
    uint256 public maxTransactionAmount;
    uint256 public swapTokensAtAmount;
    uint256 public maxWallet;
        
    bool public limitsInEffect = true;
    bool public tradingActive = false;

    uint256 public buyTotalFees;
    uint256 private _buyTreasuryFee;
    uint256 private _buyLiquidityFee;
    uint256 private _buyBuyBackFee;

    
    uint256 public sellTotalFees;
    uint256 private _sellTreasuryFee;
    uint256 private _sellLiquidityFee;
    uint256 private _sellBuyBackFee;

    
    uint256 private _tokensForTreasury;
    uint256 private _tokensForLiquidity;
    uint256 private _tokensForBuyBack;
    
    /******************/
    // exclude from fees and max transaction amount
    mapping (address => bool) private _isExcludedFromFees;
    mapping (address => bool) public _isExcludedMaxTransactionAmount;

    // store addresses that a automatic market maker pairs. Any transfer *to* these addresses
    // could be subject to a maximum transfer amount
    mapping (address => bool) public automatedMarketMakerPairs;

    event ExcludeFromFees(address indexed account, bool isExcluded);
    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
    event TreasuryUpdated(address newAddress);
    event BuyBackUpdated(address newAddress);
    event LPSwap(uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiquidity);
    event tradingEnabled(bool tradingActive);
    event MaxTxnUpdated(uint256 newNum);
    event MaxWalletAmount(uint256 newNum);
    event MaxTxnExcluded(address updAds);
    event BuyFeeUpdated(uint256 marketingFee, uint256 liquidityFee, uint256 buyBackFee);
    event SellFeeUpdated(uint256 marketingFee, uint256 liquidityFee, uint256 buyBackFee);
    event ExcludedFromFee(address account, bool excluded);
    event limitsRemoved(bool limitsInEffect);
    event swapTokensAt(uint newAmount);
    event feesCollected(bool);



    constructor() ERC20("BananaClubToken", "BCT") ERC20Permit("BananaClubToken") {
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        
        excludeFromMaxTransaction(address(_uniswapV2Router), true);
        uniswapV2Router = _uniswapV2Router;
        
        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
        excludeFromMaxTransaction(address(uniswapV2Pair), true);
        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
        
        uint256 buyTreasuryFee = 1;
        uint256 buyLiquidityFee = 0;
        uint256 buyBuyBackFee = 1;

        uint256 sellTreasuryFee = 1;
        uint256 sellLiquidityFee = 1;
        uint256 sellBuyBackFee = 1;
        
        uint256 totalSupply = 1e8 * 1e9; // 100 million 1e8 = 1(00,000,000) * 1e9 ((9).000000000 decimals)
        
        // Initial Deployed settings maybe be changed later with individual functions - Set all fees, Max AMTs
        maxTransactionAmount = totalSupply * 3 / 1000; // 0.3% maxTransactionAmountTxn 300,000 Tokens
        maxWallet = totalSupply * 2 / 100; // 2% maxWallet 2,000,000 Tokens
        swapTokensAtAmount = totalSupply * 3 / 10000; // 0.03% swap wallet 30,000 tokens

        _buyTreasuryFee = buyTreasuryFee;
        _buyLiquidityFee = buyLiquidityFee;
        _buyBuyBackFee = buyBuyBackFee;

        buyTotalFees = _buyTreasuryFee + _buyLiquidityFee + _buyBuyBackFee;
        
        _sellTreasuryFee = sellTreasuryFee;
        _sellLiquidityFee = sellLiquidityFee;
        _sellBuyBackFee = sellBuyBackFee;

        sellTotalFees = _sellTreasuryFee + _sellLiquidityFee + _sellBuyBackFee;
        
        treasury = address(owner()); // set owner as treasury at launch. Change it after Launch with the Update Function
        buyBack = address(owner()); // set owner as buyBack at launch. Change it after Launch with the Update Function

        // exclude from paying fees or having max transaction amount Owner/this/dead
        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);
        
        excludeFromMaxTransaction(owner(), true);
        excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(0xdead), true);
        
        /*
            _mint is an internal function in ERC20.sol that is only called here,
            and CANNOT be called ever again, this is used to Issue the initial Supply
        */
        _mint(msg.sender, totalSupply);
    }

        // three required checks in solidity
    function _afterTokenTransfer(address from, address to, uint256 amount)
        internal
        override(ERC20, ERC20Votes)
    {
        super._afterTokenTransfer(from, to, amount);
    }

    function _mint(address to, uint256 amount)
        internal
        override(ERC20, ERC20Votes)
    {
        super._mint(to, amount);
    }

    function _burn(address account, uint256 amount)
        internal
        override(ERC20, ERC20Votes)
    {
        super._burn(account, amount);
    }

     /**
     * @dev Enables Trading on Uniswap
     */
    function enableTrading() external onlyOwner {
        tradingActive = true;
        emit tradingEnabled(tradingActive);
    }

        
     /**
     * @dev Removes Max txn, and wallet limits if and when its Needed
     * cannot be turned back on. 
     */
    function removeLimits() external onlyOwner returns (bool) {
        limitsInEffect = false;
        emit limitsRemoved(limitsInEffect);
        return true;
    }
    
     /**
     * @dev Update how many tokens to Swap&Liquify at
     */
    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;
          emit swapTokensAt(newAmount);
  	    return true;
  	}
    
     /**
     * @dev Update MaxTransaction
     */
    function updateMaxTxnAmount(uint256 newNum) external onlyOwner {
        require(newNum >= (totalSupply() * 1 / 1000) / 1e9, "Cannot set maxTransactionAmount lower than 0.1%");
        maxTransactionAmount = newNum * 1e9;
        emit MaxTxnUpdated(newNum);
    }
    
     /**
     * @dev Update MaxWallet
     */
    function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
        require(newNum >= (totalSupply() * 5 / 1000)/1e9, "Cannot set maxWallet lower than 0.5%");
        maxWallet = newNum * 1e9;
        emit MaxWalletAmount(newNum);
    }
    
     /**
     * @dev exclude Address from MaxTxn
     */
    function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
        emit MaxTxnExcluded(updAds);
    }
    
     /**
     * @dev Update Buy Tax
     */
    function updateBuyFees(uint256 treasuryFee, uint256 liquidityFee, uint256 buyBackFee) external onlyOwner {
        _buyTreasuryFee = treasuryFee;
        _buyLiquidityFee = liquidityFee;
        _buyBuyBackFee = buyBackFee;

        buyTotalFees = _buyTreasuryFee + _buyLiquidityFee + _buyBuyBackFee;
        require(buyTotalFees <= 10, "Must keep fees at 10% or less");
        emit BuyFeeUpdated(treasuryFee, liquidityFee, buyBackFee);
    }
    
     /**
     * @dev Update Sell Tax
     */
    function updateSellFees(uint256 treasuryFee, uint256 liquidityFee, uint256 buyBackFee) external onlyOwner {
        _sellTreasuryFee = treasuryFee;
        _sellLiquidityFee = liquidityFee;
        _sellBuyBackFee = buyBackFee;
   
        sellTotalFees = _sellTreasuryFee + _sellLiquidityFee + _sellBuyBackFee;
        require(sellTotalFees <= 15, "Must keep fees at 15% or less");
        emit SellFeeUpdated(treasuryFee, liquidityFee, buyBackFee);
    }
    
     /**
     * @dev Exclude Address from Tax
     */
    function excludeFromFees(address account, bool excluded) public onlyOwner {
        _isExcludedFromFees[account] = excluded;
        emit ExcludeFromFees(account, excluded);
    }

    // function for setting AMM Pairs in the future
    function setAutomatedMarketMakerPair(address pair, bool value) external 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);
    }
    
     /**
     * @dev Update Treasury Address
     */
    function updateTreasury(address newAddress) external onlyOwner {
        treasury = newAddress;
        require(newAddress != address(0),"Address cannot be Zero address");
        emit TreasuryUpdated(newAddress);
    }
    
     /**
     * @dev Update BuyBack Address
     */
    function updateBuyBack(address newAddress) external onlyOwner {
        buyBack = newAddress;
        require(newAddress != address(0),"Address cannot be Zero address");
        emit BuyBackUpdated(newAddress);
    }

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

    // transfer function with required checks
    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.");
                }

                 
                // 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 &&
            !_swapping &&
            !automatedMarketMakerPairs[from] &&
            !_isExcludedFromFees[from] &&
            !_isExcludedFromFees[to]
        ) {
            _swapping = true;
            swapBack();
            _swapping = false;

        }


        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;
                _tokensForTreasury += fees * _sellTreasuryFee / sellTotalFees;
                _tokensForBuyBack += fees * _sellBuyBackFee / sellTotalFees;
            }
            // on buy
            else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
        	    fees = amount.mul(buyTotalFees).div(100);
        	    _tokensForLiquidity += fees * _buyLiquidityFee / buyTotalFees;
                _tokensForTreasury += fees * _buyTreasuryFee / buyTotalFees;
                _tokensForBuyBack += fees * _buyBuyBackFee / buyTotalFees;
            }
            
            if (fees > 0) {
                super._transfer(from, address(this), fees);
            }
        	
        	amount -= fees;
        }

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

    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 _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
            owner(),
            block.timestamp
        );
    }

function swapBack() private {
        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokensToSwap = _tokensForLiquidity + _tokensForTreasury + _tokensForBuyBack;
        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 ethForTreasury = ethBalance.mul(_tokensForTreasury).div(totalTokensToSwap);
        uint256 ethForLiquidity = ethBalance.mul(_tokensForLiquidity).div(totalTokensToSwap);
        uint256 ethForBuyBack = ethBalance - ethForLiquidity - ethForTreasury;

        _tokensForLiquidity = 0;
        _tokensForTreasury = 0;
        _tokensForBuyBack = 0;

        if (liquidityTokens > 0 && ethForLiquidity > 0) {
            _addLiquidity(liquidityTokens, ethForLiquidity);
            emit LPSwap(amountToSwapForETH, ethForLiquidity, _tokensForLiquidity);
        }

        if (ethForTreasury > 0) {
        (success,) = address(treasury).call{value: ethForTreasury}("");
        }

        if (ethForBuyBack > 0) {
            (success,) = address(buyBack).call{value: ethForBuyBack}("");
        }
    }
    
     /**
     * @dev manually collect any eth from contract to treasury
     */
   function manualCollectFees() external onlyOwner {
        bool success;
     (success,) = address(treasury).call{value: address(this).balance}("");
     require(success, "Error on transfer, reverted");
     emit feesCollected(success);
    }
    
     /**
     * @dev Fallback function for contract to recieve.
     */
    receive() external payable {}
}

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

pragma solidity ^0.8.0;

import "./draft-ERC20Permit.sol";
import "./Math.sol";
import "./SafeCast.sol";
import "./ECDSA.sol";

/**
 * @dev Extension of ERC20 to support Compound-like voting and delegation. This version is more generic than Compound's,
 * and supports token supply up to 2^224^ - 1, while COMP is limited to 2^96^ - 1.
 *
 * NOTE: If exact COMP compatibility is required, use the {ERC20VotesComp} variant of this module.
 *
 * This extension keeps a history (checkpoints) of each account's vote power. Vote power can be delegated either
 * by calling the {delegate} function directly, or by providing a signature to be used with {delegateBySig}. Voting
 * power can be queried through the public accessors {getVotes} and {getPastVotes}.
 *
 * By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it
 * requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked.
 *
 * _Available since v4.2._
 */
abstract contract ERC20Votes is ERC20Permit {
    struct Checkpoint {
        uint32 fromBlock;
        uint224 votes;
    }

    bytes32 private constant _DELEGATION_TYPEHASH =
        keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    mapping(address => address) private _delegates;
    mapping(address => Checkpoint[]) private _checkpoints;
    Checkpoint[] private _totalSupplyCheckpoints;

    /**
     * @dev Emitted when an account changes their delegate.
     */
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /**
     * @dev Emitted when a token transfer or delegate change results in changes to an account's voting power.
     */
    event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance);

    /**
     * @dev Get the `pos`-th checkpoint for `account`.
     */
    function checkpoints(address account, uint32 pos) public view virtual returns (Checkpoint memory) {
        return _checkpoints[account][pos];
    }

    /**
     * @dev Get number of checkpoints for `account`.
     */
    function numCheckpoints(address account) public view virtual returns (uint32) {
        return SafeCast.toUint32(_checkpoints[account].length);
    }

    /**
     * @dev Get the address `account` is currently delegating to.
     */
    function delegates(address account) public view virtual returns (address) {
        return _delegates[account];
    }

    /**
     * @dev Gets the current votes balance for `account`
     */
    function getVotes(address account) public view returns (uint256) {
        uint256 pos = _checkpoints[account].length;
        return pos == 0 ? 0 : _checkpoints[account][pos - 1].votes;
    }

    /**
     * @dev Retrieve the number of votes for `account` at the end of `blockNumber`.
     *
     * Requirements:
     *
     * - `blockNumber` must have been already mined
     */
    function getPastVotes(address account, uint256 blockNumber) public view returns (uint256) {
        require(blockNumber < block.number, "ERC20Votes: block not yet mined");
        return _checkpointsLookup(_checkpoints[account], blockNumber);
    }

    /**
     * @dev Retrieve the `totalSupply` at the end of `blockNumber`. Note, this value is the sum of all balances.
     * It is but NOT the sum of all the delegated votes!
     *
     * Requirements:
     *
     * - `blockNumber` must have been already mined
     */
    function getPastTotalSupply(uint256 blockNumber) public view returns (uint256) {
        require(blockNumber < block.number, "ERC20Votes: block not yet mined");
        return _checkpointsLookup(_totalSupplyCheckpoints, blockNumber);
    }

    /**
     * @dev Lookup a value in a list of (sorted) checkpoints.
     */
    function _checkpointsLookup(Checkpoint[] storage ckpts, uint256 blockNumber) private view returns (uint256) {
        // We run a binary search to look for the earliest checkpoint taken after `blockNumber`.
        //
        // During the loop, the index of the wanted checkpoint remains in the range [low-1, high).
        // With each iteration, either `low` or `high` is moved towards the middle of the range to maintain the invariant.
        // - If the middle checkpoint is after `blockNumber`, we look in [low, mid)
        // - If the middle checkpoint is before or equal to `blockNumber`, we look in [mid+1, high)
        // Once we reach a single value (when low == high), we've found the right checkpoint at the index high-1, if not
        // out of bounds (in which case we're looking too far in the past and the result is 0).
        // Note that if the latest checkpoint available is exactly for `blockNumber`, we end up with an index that is
        // past the end of the array, so we technically don't find a checkpoint after `blockNumber`, but it works out
        // the same.
        uint256 high = ckpts.length;
        uint256 low = 0;
        while (low < high) {
            uint256 mid = Math.average(low, high);
            if (ckpts[mid].fromBlock > blockNumber) {
                high = mid;
            } else {
                low = mid + 1;
            }
        }

        return high == 0 ? 0 : ckpts[high - 1].votes;
    }

    /**
     * @dev Delegate votes from the sender to `delegatee`.
     */
    function delegate(address delegatee) public virtual {
        _delegate(_msgSender(), delegatee);
    }

    /**
     * @dev Delegates votes from signer to `delegatee`
     */
    function delegateBySig(
        address delegatee,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(block.timestamp <= expiry, "ERC20Votes: signature expired");
        address signer = ECDSA.recover(
            _hashTypedDataV4(keccak256(abi.encode(_DELEGATION_TYPEHASH, delegatee, nonce, expiry))),
            v,
            r,
            s
        );
        require(nonce == _useNonce(signer), "ERC20Votes: invalid nonce");
        _delegate(signer, delegatee);
    }

    /**
     * @dev Maximum token supply. Defaults to `type(uint224).max` (2^224^ - 1).
     */
    function _maxSupply() internal view virtual returns (uint224) {
        return type(uint224).max;
    }

    /**
     * @dev Snapshots the totalSupply after it has been increased.
     */
    function _mint(address account, uint256 amount) internal virtual override {
        super._mint(account, amount);
        require(totalSupply() <= _maxSupply(), "ERC20Votes: total supply risks overflowing votes");

        _writeCheckpoint(_totalSupplyCheckpoints, _add, amount);
    }

    /**
     * @dev Snapshots the totalSupply after it has been decreased.
     */
    function _burn(address account, uint256 amount) internal virtual override {
        super._burn(account, amount);

        _writeCheckpoint(_totalSupplyCheckpoints, _subtract, amount);
    }

    /**
     * @dev Move voting power when tokens are transferred.
     *
     * Emits a {DelegateVotesChanged} event.
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._afterTokenTransfer(from, to, amount);

        _moveVotingPower(delegates(from), delegates(to), amount);
    }

    /**
     * @dev Change delegation for `delegator` to `delegatee`.
     *
     * Emits events {DelegateChanged} and {DelegateVotesChanged}.
     */
    function _delegate(address delegator, address delegatee) internal virtual {
        address currentDelegate = delegates(delegator);
        uint256 delegatorBalance = balanceOf(delegator);
        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveVotingPower(currentDelegate, delegatee, delegatorBalance);
    }

    function _moveVotingPower(
        address src,
        address dst,
        uint256 amount
    ) private {
        if (src != dst && amount > 0) {
            if (src != address(0)) {
                (uint256 oldWeight, uint256 newWeight) = _writeCheckpoint(_checkpoints[src], _subtract, amount);
                emit DelegateVotesChanged(src, oldWeight, newWeight);
            }

            if (dst != address(0)) {
                (uint256 oldWeight, uint256 newWeight) = _writeCheckpoint(_checkpoints[dst], _add, amount);
                emit DelegateVotesChanged(dst, oldWeight, newWeight);
            }
        }
    }

    function _writeCheckpoint(
        Checkpoint[] storage ckpts,
        function(uint256, uint256) view returns (uint256) op,
        uint256 delta
    ) private returns (uint256 oldWeight, uint256 newWeight) {
        uint256 pos = ckpts.length;
        oldWeight = pos == 0 ? 0 : ckpts[pos - 1].votes;
        newWeight = op(oldWeight, delta);

        if (pos > 0 && ckpts[pos - 1].fromBlock == block.number) {
            ckpts[pos - 1].votes = SafeCast.toUint224(newWeight);
        } else {
            ckpts.push(Checkpoint({fromBlock: SafeCast.toUint32(block.number), votes: SafeCast.toUint224(newWeight)}));
        }
    }

    function _add(uint256 a, uint256 b) private pure returns (uint256) {
        return a + b;
    }

    function _subtract(uint256 a, uint256 b) private pure returns (uint256) {
        return a - b;
    }
}

File 3 of 18 : draft-ERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-ERC20Permit.sol)

pragma solidity ^0.8.0;

import "./draft-IERC20Permit.sol";
import "./BANANA20.sol";
import "./draft-EIP712.sol";
import "./ECDSA.sol";
import "./Counters.sol";

/**
 * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * _Available since v3.4._
 */
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
    using Counters for Counters.Counter;

    mapping(address => Counters.Counter) private _nonces;

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private immutable _PERMIT_TYPEHASH =
        keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");

    /**
     * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
     *
     * It's a good idea to use the same `name` that is defined as the ERC20 token name.
     */
    constructor(string memory name) EIP712(name, "1") {}

    /**
     * @dev See {IERC20Permit-permit}.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual override {
        require(block.timestamp <= deadline, "ERC20Permit: expired deadline");

        bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        require(signer == owner, "ERC20Permit: invalid signature");

        _approve(owner, spender, value);
    }

    /**
     * @dev See {IERC20Permit-nonces}.
     */
    function nonces(address owner) public view virtual override returns (uint256) {
        return _nonces[owner].current();
    }

    /**
     * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view override returns (bytes32) {
        return _domainSeparatorV4();
    }

    /**
     * @dev "Consume a nonce": return the current value and increment.
     *
     * _Available since v4.1._
     */
    function _useNonce(address owner) internal virtual returns (uint256 current) {
        Counters.Counter storage nonce = _nonces[owner];
        current = nonce.current();
        nonce.increment();
    }
}

File 4 of 18 : BANANA20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./IERC20MetaData.sol";
import "./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 9;
    }

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

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

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

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

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

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

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

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

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

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 18 : BananaRouter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
*
*  Uniswap Router 01 and 02 Interfaces. Needed with Factory
*  and pair to swap tokens for eth supporting 
*  the fees of the Token
*
*/
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);
}

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 6 of 18 : BananaFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
*
*  UniswapV2 Pair and Factory Interfaces Needed with Router to swap tokens
*  for eth supporting the fees of the Token
*
*
*/
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;
}
// Uniswap V2 Factory
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 18 : LazyMath.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
*  A tweaked version of SafeMath from Openzeppelin.
*  In the jungle we call it LazyMath
*
*
*
*/
library SafeMath {
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}


// Safemath Int256
library SafeMathInt {
    int256 private constant MIN_INT256 = int256(1) << 255;
    int256 private constant MAX_INT256 = ~(int256(1) << 255);

    function mul(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a * b;

        require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
        require((b == 0) || (c / b == a));
        return c;
    }

    function div(int256 a, int256 b) internal pure returns (int256) {
        require(b != -1 || a != MIN_INT256);

        return a / b;
    }

    function sub(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a));
        return c;
    }

    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a));
        return c;
    }

    function abs(int256 a) internal pure returns (int256) {
        require(a != MIN_INT256);
        return a < 0 ? -a : a;
    }

    function toUint256Safe(int256 a) internal pure returns (uint256) {
        require(a >= 0);
        return uint256(a);
    }
}

library SafeMathUint {
  function toInt256Safe(uint256 a) internal pure returns (int256) {
    int256 b = int256(a);
    require(b >= 0);
    return b;
  }
}

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

pragma solidity ^0.8.0;

import "./Context.sol";

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 10 of 18 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "./Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 11 of 18 : draft-EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 12 of 18 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 13 of 18 : 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 14 of 18 : SafeCast.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeCast.sol)

pragma solidity ^0.8.0;

/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */
library SafeCast {
    /**
     * @dev Returns the downcasted uint224 from uint256, reverting on
     * overflow (when the input is greater than largest uint224).
     *
     * Counterpart to Solidity's `uint224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     */
    function toUint224(uint256 value) internal pure returns (uint224) {
        require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits");
        return uint224(value);
    }

    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits");
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint96 from uint256, reverting on
     * overflow (when the input is greater than largest uint96).
     *
     * Counterpart to Solidity's `uint96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     */
    function toUint96(uint256 value) internal pure returns (uint96) {
        require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits");
        return uint96(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits");
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits");
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits");
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits");
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        require(value >= 0, "SafeCast: value must be positive");
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v3.1._
     */
    function toInt128(int256 value) internal pure returns (int128) {
        require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits");
        return int128(value);
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v3.1._
     */
    function toInt64(int256 value) internal pure returns (int64) {
        require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits");
        return int64(value);
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v3.1._
     */
    function toInt32(int256 value) internal pure returns (int32) {
        require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits");
        return int32(value);
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v3.1._
     */
    function toInt16(int256 value) internal pure returns (int16) {
        require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits");
        return int16(value);
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     *
     * _Available since v3.1._
     */
    function toInt8(int256 value) internal pure returns (int8) {
        require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits");
        return int8(value);
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive
        require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256");
        return int256(value);
    }
}

File 15 of 18 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}

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

pragma solidity ^0.8.0;

import "./IERC20.sol";

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

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

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

File 17 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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":[{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"BuyBackUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"marketingFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidityFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"buyBackFee","type":"uint256"}],"name":"BuyFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","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":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"excluded","type":"bool"}],"name":"ExcludedFromFee","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":"LPSwap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"updAds","type":"address"}],"name":"MaxTxnExcluded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"MaxTxnUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"MaxWalletAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"marketingFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidityFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"buyBackFee","type":"uint256"}],"name":"SellFeeUpdated","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":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":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"TreasuryUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"","type":"bool"}],"name":"feesCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"limitsInEffect","type":"bool"}],"name":"limitsRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"swapTokensAt","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"tradingActive","type":"bool"}],"name":"tradingEnabled","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"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":"buyBack","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTotalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint32","name":"pos","type":"uint32"}],"name":"checkpoints","outputs":[{"components":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint224","name":"votes","type":"uint224"}],"internalType":"struct ERC20Votes.Checkpoint","name":"","type":"tuple"}],"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":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"excludeFromMaxTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"limitsInEffect","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manualCollectFees","outputs":[],"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":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","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":"sellTotalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","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":"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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"address","name":"newAddress","type":"address"}],"name":"updateBuyBack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"treasuryFee","type":"uint256"},{"internalType":"uint256","name":"liquidityFee","type":"uint256"},{"internalType":"uint256","name":"buyBackFee","type":"uint256"}],"name":"updateBuyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"updateMaxTxnAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"updateMaxWalletAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"treasuryFee","type":"uint256"},{"internalType":"uint256","name":"liquidityFee","type":"uint256"},{"internalType":"uint256","name":"buyBackFee","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"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101606040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610140526011805461ff001960ff19919091166001171690553480156200004c57600080fd5b506040518060400160405280600f81526020016e2130b730b730a1b63ab12a37b5b2b760891b81525080604051806040016040528060018152602001603160f81b8152506040518060400160405280600f81526020016e2130b730b730a1b63ab12a37b5b2b760891b815250604051806040016040528060038152602001621090d560ea1b8152508160039080519060200190620000ec92919062000d4b565b5080516200010290600490602084019062000d4b565b5050825160208085019190912083518483012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c0019052805194019390932091935091906080523060601b60c0526101205250620001b19350620001ab925050620005209050565b62000524565b737a250d5630b4cf539739df2c5dacb4c659f2488d620001d381600162000576565b600a80546001600160a01b0319166001600160a01b0383169081179091556040805163c45a015560e01b8152905163c45a015591600480820192602092909190829003018186803b1580156200022857600080fd5b505afa1580156200023d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000263919062000de7565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015620002ac57600080fd5b505afa158015620002c1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002e7919062000de7565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b1580156200033057600080fd5b505af115801562000345573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200036b919062000de7565b600b80546001600160a01b0319166001600160a01b039283161790819055620003979116600162000576565b600b54620003b0906001600160a01b0316600162000621565b600160008180808067016345785d8a00006103e8620003d182600362000e4c565b620003dd919062000e2b565b600e556064620003ef82600262000e4c565b620003fb919062000e2b565b6010556127106200040e82600362000e4c565b6200041a919062000e2b565b600f556013879055601486905560158590558462000439878962000e10565b62000445919062000e10565b6012556017849055601883905560198290558162000464848662000e10565b62000470919062000e10565b601655600954600c80546001600160a01b03199081166001600160a01b03909316928317909155600d805490911682179055620004af90600162000675565b620004bc30600162000675565b620004cb61dead600162000675565b620004ea620004e26009546001600160a01b031690565b600162000576565b620004f730600162000576565b6200050661dead600162000576565b6200051233826200071f565b505050505050505062000edb565b3390565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6009546001600160a01b03163314620005c55760405162461bcd60e51b8152602060048201819052602482015260008051602062004cff83398151915260448201526064015b60405180910390fd5b6001600160a01b0382166000818152601e6020908152604091829020805460ff191685151517905590519182527fc65aa989ecbad45c4af70755a3bde58cd7317cd04a213b0304ad619add45d4fb910160405180910390a15050565b6001600160a01b0382166000818152601f6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6009546001600160a01b03163314620006c05760405162461bcd60e51b8152602060048201819052602482015260008051602062004cff8339815191526044820152606401620005bc565b6001600160a01b0382166000818152601d6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6200073682826200073a60201b62001cd01760201c565b5050565b620007518282620007ed60201b62001d601760201c565b6001600160e01b0362000765620008dc8216565b1115620007ce5760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b6064820152608401620005bc565b620007e7600862001e47620008e260201b1783620008f7565b50505050565b6001600160a01b038216620008455760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620005bc565b806002600082825462000859919062000e10565b90915550506001600160a01b038216600090815260208190526040812080548392906200088890849062000e10565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3620007366000838362000ae0565b60025490565b6000620008f0828462000e10565b9392505050565b8254600090819080156200095557856200091360018362000e6e565b815481106200093257634e487b7160e01b600052603260045260246000fd5b60009182526020909120015464010000000090046001600160e01b031662000958565b60005b6001600160e01b031692506200096f83858760201c565b9150600081118015620009bf575043866200098c60018462000e6e565b81548110620009ab57634e487b7160e01b600052603260045260246000fd5b60009182526020909120015463ffffffff16145b1562000a3f57620009db8262000af860201b62001e531760201c565b86620009e960018462000e6e565b8154811062000a0857634e487b7160e01b600052603260045260246000fd5b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b0316021790555062000ad2565b85604051806040016040528062000a614362000b6760201b62001ec01760201c565b63ffffffff16815260200162000a828562000af860201b62001e531760201c565b6001600160e01b039081169091528254600181018455600093845260209384902083519101805493909401519091166401000000000263ffffffff91821663ffffffff1990931692909217161790555b50935093915050565b505050565b62000adb83838362000bce60201b62001f251760201c565b60006001600160e01b0382111562000b635760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b6064820152608401620005bc565b5090565b600063ffffffff82111562000b635760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b6064820152608401620005bc565b62000be683838362000adb60201b62001f571760201c565b6001600160a01b0383811660009081526006602052604080822054858416835291205462000adb9291821691168381831480159062000c255750600081115b1562000adb576001600160a01b0383161562000cb2576001600160a01b03831660009081526007602090815260408220829162000c6f919062000d3d901b62001f5c1785620008f7565b91509150846001600160a01b031660008051602062004d1f833981519152838360405162000ca7929190918252602082015260400190565b60405180910390a250505b6001600160a01b0382161562000adb576001600160a01b03821660009081526007602090815260408220829162000cf69190620008e2901b62001e471785620008f7565b91509150836001600160a01b031660008051602062004d1f833981519152838360405162000d2e929190918252602082015260400190565b60405180910390a25050505050565b6000620008f0828462000e6e565b82805462000d599062000e88565b90600052602060002090601f01602090048101928262000d7d576000855562000dc8565b82601f1062000d9857805160ff191683800117855562000dc8565b8280016001018555821562000dc8579182015b8281111562000dc857825182559160200191906001019062000dab565b5062000b639291505b8082111562000b63576000815560010162000dd1565b60006020828403121562000df9578081fd5b81516001600160a01b0381168114620008f0578182fd5b6000821982111562000e265762000e2662000ec5565b500190565b60008262000e4757634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161562000e695762000e6962000ec5565b500290565b60008282101562000e835762000e8362000ec5565b500390565b60028104600182168062000e9d57607f821691505b6020821081141562000ebf57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60805160a05160c05160601c60e051610100516101205161014051613dc662000f396000396000611a9601526000612808015260006128570152600061283201526000612789015260006127b3015260006127dd0152613dc66000f3fe6080604052600436106103035760003560e01c80638095d56411610190578063c0246668116100dc578063d505accf11610095578063e2f456051161006f578063e2f4560514610960578063f1127ed814610976578063f2fde38b146109c0578063f8b45b05146109e05761030a565b8063d505accf146108e4578063d85ba06314610904578063dd62ed3e1461091a5761030a565b8063c02466681461082e578063c17b5b8c1461084e578063c18bc1951461086e578063c3cda5201461088e578063c8c8ebe4146108ae578063d257b34f146108c45761030a565b80639ab24eb011610149578063acdf4f1811610123578063acdf4f181461079f578063ae9e81e0146107bf578063b62496f5146107df578063bbc0c7421461080f5761030a565b80639ab24eb01461073f578063a457c2d71461075f578063a9059cbb1461077f5761030a565b80638095d564146106975780638a8c523c146106b75780638da5cb5b146106cc5780638e539e8c146106ea57806395d89b411461070a5780639a7a23d61461071f5761030a565b80634fbee1931161024f57806370a08231116102085780637571336a116101e25780637571336a146106225780637692f826146106425780637ecebe00146106575780637f51bb1f146106775761030a565b806370a08231146105c2578063715018a6146105f8578063751039fc1461060d5761030a565b80634fbee193146104de578063587cde1e146104fe5780635c19a95c1461053757806361d027b3146105575780636a486a8e146105775780636fcfff451461058d5761030a565b806323b872dd116102bc578063395093511161029657806339509351146104645780633a46b1a81461048457806349bd5a5e146104a45780634a62bb65146104c45761030a565b806323b872dd14610413578063313ce567146104335780633644e5151461044f5761030a565b806306fdde031461030f578063095ea7b31461033a57806310d5de531461036a5780631694505e1461039a57806318160ddd146103d2578063203e727e146103f15761030a565b3661030a57005b600080fd5b34801561031b57600080fd5b506103246109f6565b6040516103319190613b42565b60405180910390f35b34801561034657600080fd5b5061035a610355366004613a19565b610a89565b6040519015158152602001610331565b34801561037657600080fd5b5061035a6103853660046138cb565b601e6020526000908152604090205460ff1681565b3480156103a657600080fd5b50600a546103ba906001600160a01b031681565b6040516001600160a01b039091168152602001610331565b3480156103de57600080fd5b506002545b604051908152602001610331565b3480156103fd57600080fd5b5061041161040c366004613ad2565b610aa0565b005b34801561041f57600080fd5b5061035a61042e36600461393b565b610bb2565b34801561043f57600080fd5b5060405160098152602001610331565b34801561045b57600080fd5b506103e3610c5c565b34801561047057600080fd5b5061035a61047f366004613a19565b610c6b565b34801561049057600080fd5b506103e361049f366004613a19565b610ca7565b3480156104b057600080fd5b50600b546103ba906001600160a01b031681565b3480156104d057600080fd5b5060115461035a9060ff1681565b3480156104ea57600080fd5b5061035a6104f93660046138cb565b610d21565b34801561050a57600080fd5b506103ba6105193660046138cb565b6001600160a01b039081166000908152600660205260409020541690565b34801561054357600080fd5b506104116105523660046138cb565b610d43565b34801561056357600080fd5b50600c546103ba906001600160a01b031681565b34801561058357600080fd5b506103e360165481565b34801561059957600080fd5b506105ad6105a83660046138cb565b610d50565b60405163ffffffff9091168152602001610331565b3480156105ce57600080fd5b506103e36105dd3660046138cb565b6001600160a01b031660009081526020819052604090205490565b34801561060457600080fd5b50610411610d72565b34801561061957600080fd5b5061035a610da8565b34801561062e57600080fd5b5061041161063d3660046139e8565b610e19565b34801561064e57600080fd5b50610411610e9f565b34801561066357600080fd5b506103e36106723660046138cb565b610fa0565b34801561068357600080fd5b506104116106923660046138cb565b610fbe565b3480156106a357600080fd5b506104116106b2366004613aea565b61108b565b3480156106c357600080fd5b50610411611175565b3480156106d857600080fd5b506009546001600160a01b03166103ba565b3480156106f657600080fd5b506103e3610705366004613ad2565b6111f4565b34801561071657600080fd5b50610324611250565b34801561072b57600080fd5b5061041161073a3660046139e8565b61125f565b34801561074b57600080fd5b506103e361075a3660046138cb565b61131b565b34801561076b57600080fd5b5061035a61077a366004613a19565b6113b0565b34801561078b57600080fd5b5061035a61079a366004613a19565b611449565b3480156107ab57600080fd5b50600d546103ba906001600160a01b031681565b3480156107cb57600080fd5b506104116107da3660046138cb565b611456565b3480156107eb57600080fd5b5061035a6107fa3660046138cb565b601f6020526000908152604090205460ff1681565b34801561081b57600080fd5b5060115461035a90610100900460ff1681565b34801561083a57600080fd5b506104116108493660046139e8565b611523565b34801561085a57600080fd5b50610411610869366004613aea565b6115ac565b34801561087a57600080fd5b50610411610889366004613ad2565b61168d565b34801561089a57600080fd5b506104116108a9366004613a44565b611783565b3480156108ba57600080fd5b506103e3600e5481565b3480156108d057600080fd5b5061035a6108df366004613ad2565b6118b9565b3480156108f057600080fd5b506104116108ff36600461397b565b611a42565b34801561091057600080fd5b506103e360125481565b34801561092657600080fd5b506103e3610935366004613903565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561096c57600080fd5b506103e3600f5481565b34801561098257600080fd5b50610996610991366004613a9d565b611ba6565b60408051825163ffffffff1681526020928301516001600160e01b03169281019290925201610331565b3480156109cc57600080fd5b506104116109db3660046138cb565b611c38565b3480156109ec57600080fd5b506103e360105481565b606060038054610a0590613d30565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3190613d30565b8015610a7e5780601f10610a5357610100808354040283529160200191610a7e565b820191906000526020600020905b815481529060010190602001808311610a6157829003601f168201915b505050505090505b90565b6000610a96338484611f68565b5060015b92915050565b6009546001600160a01b03163314610ad35760405162461bcd60e51b8152600401610aca90613bd8565b60405180910390fd5b633b9aca006103e8610ae460025490565b610aef906001613cfa565b610af99190613cda565b610b039190613cda565b811015610b6a5760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201526e6c6f776572207468616e20302e312560881b6064820152608401610aca565b610b7881633b9aca00613cfa565b600e556040518181527fe5b4bfc380c3a1aee22ea479849c75117cc58c467670fd4c6427016d3998f2e0906020015b60405180910390a150565b6000610bbf84848461208c565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610c445760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610aca565b610c518533858403611f68565b506001949350505050565b6000610c6661277c565b905090565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610a96918590610ca2908690613cc2565b611f68565b6000438210610cf85760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401610aca565b6001600160a01b0383166000908152600760205260409020610d1a90836128a7565b9392505050565b6001600160a01b0381166000908152601d602052604090205460ff165b919050565b610d4d3382612980565b50565b6001600160a01b038116600090815260076020526040812054610a9a90611ec0565b6009546001600160a01b03163314610d9c5760405162461bcd60e51b8152600401610aca90613bd8565b610da660006129f9565b565b6009546000906001600160a01b03163314610dd55760405162461bcd60e51b8152600401610aca90613bd8565b6011805460ff19169055604051600081527f4635cb52f5ade96c6a7856f059db1e988bdbacc4dfd9a62cabf0ca7852e5253e9060200160405180910390a150600190565b6009546001600160a01b03163314610e435760405162461bcd60e51b8152600401610aca90613bd8565b6001600160a01b0382166000818152601e6020908152604091829020805460ff191685151517905590519182527fc65aa989ecbad45c4af70755a3bde58cd7317cd04a213b0304ad619add45d4fb910160405180910390a15050565b6009546001600160a01b03163314610ec95760405162461bcd60e51b8152600401610aca90613bd8565b600c546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610f16576040519150601f19603f3d011682016040523d82523d6000602084013e610f1b565b606091505b50508091505080610f6e5760405162461bcd60e51b815260206004820152601b60248201527f4572726f72206f6e207472616e736665722c20726576657274656400000000006044820152606401610aca565b60405181151581527f94184c17f7224964ab3ffe55031fc42749092578acfc9d29a576d76985c3be8e90602001610ba7565b6001600160a01b038116600090815260056020526040812054610a9a565b6009546001600160a01b03163314610fe85760405162461bcd60e51b8152600401610aca90613bd8565b600c80546001600160a01b0319166001600160a01b0383169081179091556110525760405162461bcd60e51b815260206004820152601e60248201527f416464726573732063616e6e6f74206265205a65726f206164647265737300006044820152606401610aca565b6040516001600160a01b03821681527f7dae230f18360d76a040c81f050aa14eb9d6dc7901b20fc5d855e2a20fe814d190602001610ba7565b6009546001600160a01b031633146110b55760405162461bcd60e51b8152600401610aca90613bd8565b601383905560148290556015819055806110cf8385613cc2565b6110d99190613cc2565b6012819055600a101561112e5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c6573730000006044820152606401610aca565b60408051848152602081018490529081018290527f38513c502b0ab4834ac1df9502b76f75dcf7092469782cfd0db7fe664388e25e906060015b60405180910390a1505050565b6009546001600160a01b0316331461119f5760405162461bcd60e51b8152600401610aca90613bd8565b6011805461ff001916610100908117918290556040517f2de3f956844815ec700c656bcec4ca8c7c939372f954dd09ec0c7fd0a751f819926111ea92900460ff161515815260200190565b60405180910390a1565b60004382106112455760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401610aca565b610a9a6008836128a7565b606060048054610a0590613d30565b6009546001600160a01b031633146112895760405162461bcd60e51b8152600401610aca90613bd8565b600b546001600160a01b038381169116141561130d5760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b65725061697273000000000000006064820152608401610aca565b6113178282612a4b565b5050565b6001600160a01b038116600090815260076020526040812054801561139d576001600160a01b038316600090815260076020526040902061135d600183613d19565b8154811061137b57634e487b7160e01b600052603260045260246000fd5b60009182526020909120015464010000000090046001600160e01b03166113a0565b60005b6001600160e01b03169392505050565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156114325760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610aca565b61143f3385858403611f68565b5060019392505050565b6000610a9633848461208c565b6009546001600160a01b031633146114805760405162461bcd60e51b8152600401610aca90613bd8565b600d80546001600160a01b0319166001600160a01b0383169081179091556114ea5760405162461bcd60e51b815260206004820152601e60248201527f416464726573732063616e6e6f74206265205a65726f206164647265737300006044820152606401610aca565b6040516001600160a01b03821681527f454d7692ed6f71bd3b3c0dadb17cc08d2f8affd474466b5d7796696d1ee61c3d90602001610ba7565b6009546001600160a01b0316331461154d5760405162461bcd60e51b8152600401610aca90613bd8565b6001600160a01b0382166000818152601d6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6009546001600160a01b031633146115d65760405162461bcd60e51b8152600401610aca90613bd8565b601783905560188290556019819055806115f08385613cc2565b6115fa9190613cc2565b6016819055600f101561164f5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313525206f72206c6573730000006044820152606401610aca565b60408051848152602081018490529081018290527fcb5f36df892836a2eaedc349de29a7581176990398ee185d16eaa8f6c1abd8f190606001611168565b6009546001600160a01b031633146116b75760405162461bcd60e51b8152600401610aca90613bd8565b633b9aca006103e86116c860025490565b6116d3906005613cfa565b6116dd9190613cda565b6116e79190613cda565b8110156117425760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20604482015263302e352560e01b6064820152608401610aca565b61175081633b9aca00613cfa565b6010556040518181527f22c83a5ec34271153086583a02141e6d8afa47085fffe4f3c546e7011357aa0990602001610ba7565b834211156117d35760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e617475726520657870697265640000006044820152606401610aca565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b03881691810191909152606081018690526080810185905260009061184d906118459060a00160405160208183030381529060405280519060200120612a9f565b858585612aed565b905061185881612b15565b86146118a65760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e6365000000000000006044820152606401610aca565b6118b08188612980565b50505050505050565b6009546000906001600160a01b031633146118e65760405162461bcd60e51b8152600401610aca90613bd8565b620186a06118f360025490565b6118fe906001613cfa565b6119089190613cda565b8210156119755760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b6064820152608401610aca565b6103e861198160025490565b61198c906005613cfa565b6119969190613cda565b821115611a025760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171a92903a37ba30b61039bab838363c9760611b6064820152608401610aca565b600f8290556040518281527f465ee8e57953b7477cd200062fe90fa18292da3f23f87c8b22b32fbb1284c6099060200160405180910390a1506001919050565b83421115611a925760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610aca565b60007f0000000000000000000000000000000000000000000000000000000000000000888888611ac18c612b15565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000611b1c82612a9f565b90506000611b2c82878787612aed565b9050896001600160a01b0316816001600160a01b031614611b8f5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610aca565b611b9a8a8a8a611f68565b50505050505050505050565b60408051808201909152600080825260208201526001600160a01b0383166000908152600760205260409020805463ffffffff8416908110611bf857634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6009546001600160a01b03163314611c625760405162461bcd60e51b8152600401610aca90613bd8565b6001600160a01b038116611cc75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610aca565b610d4d816129f9565b611cda8282611d60565b6002546001600160e01b031015611d4c5760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b6064820152608401610aca565b611d5a6008611e4783612b3d565b50505050565b6001600160a01b038216611db65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610aca565b8060026000828254611dc89190613cc2565b90915550506001600160a01b03821660009081526020819052604081208054839290611df5908490613cc2565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361131760008383612cee565b6000610d1a8284613cc2565b60006001600160e01b03821115611ebc5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b6064820152608401610aca565b5090565b600063ffffffff821115611ebc5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b6064820152608401610aca565b6001600160a01b03838116600090815260066020526040808220548584168352912054611f5792918216911683612cf9565b505050565b6000610d1a8284613d19565b6001600160a01b038316611fca5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610aca565b6001600160a01b03821661202b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610aca565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166120b25760405162461bcd60e51b8152600401610aca90613c0d565b6001600160a01b0382166120d85760405162461bcd60e51b8152600401610aca90613b95565b806120ee576120e983836000612e36565b611f57565b60115460ff1615612464576009546001600160a01b0384811691161480159061212557506009546001600160a01b03838116911614155b801561213957506001600160a01b03821615155b801561215057506001600160a01b03821661dead14155b80156121665750600b54600160a01b900460ff16155b1561246457601154610100900460ff166121fe576001600160a01b0383166000908152601d602052604090205460ff16806121b957506001600160a01b0382166000908152601d602052604090205460ff165b6121fe5760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610aca565b6001600160a01b0383166000908152601f602052604090205460ff16801561223f57506001600160a01b0382166000908152601e602052604090205460ff16155b1561232357600e548111156122b45760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b6064820152608401610aca565b6010546001600160a01b0383166000908152602081905260409020546122da9083613cc2565b111561231e5760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610aca565b612464565b6001600160a01b0382166000908152601f602052604090205460ff16801561236457506001600160a01b0383166000908152601e602052604090205460ff16155b156123da57600e5481111561231e5760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b6064820152608401610aca565b6001600160a01b0382166000908152601e602052604090205460ff16612464576010546001600160a01b0383166000908152602081905260409020546124209083613cc2565b11156124645760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610aca565b30600090815260208190526040902054600f54811080159081906124925750600b54600160a01b900460ff16155b80156124b757506001600160a01b0385166000908152601f602052604090205460ff16155b80156124dc57506001600160a01b0385166000908152601d602052604090205460ff16155b801561250157506001600160a01b0384166000908152601d602052604090205460ff16155b1561252f57600b805460ff60a01b1916600160a01b179055612521612f90565b600b805460ff60a01b191690555b600b546001600160a01b0386166000908152601d602052604090205460ff600160a01b90920482161591168061257d57506001600160a01b0385166000908152601d602052604090205460ff165b15612586575060005b60008115612771576001600160a01b0386166000908152601f602052604090205460ff1680156125b857506000601654115b15612676576125dd60646125d7601654886131db90919063ffffffff16565b9061325a565b9050601654601854826125f09190613cfa565b6125fa9190613cda565b601b600082825461260b9190613cc2565b90915550506016546017546126209083613cfa565b61262a9190613cda565b601a600082825461263b9190613cc2565b90915550506016546019546126509083613cfa565b61265a9190613cda565b601c600082825461266b9190613cc2565b909155506127539050565b6001600160a01b0387166000908152601f602052604090205460ff1680156126a057506000601254115b15612753576126bf60646125d7601254886131db90919063ffffffff16565b9050601254601454826126d29190613cfa565b6126dc9190613cda565b601b60008282546126ed9190613cc2565b90915550506012546013546127029083613cfa565b61270c9190613cda565b601a600082825461271d9190613cc2565b90915550506012546015546127329083613cfa565b61273c9190613cda565b601c600082825461274d9190613cc2565b90915550505b801561276457612764873083612e36565b61276e8186613d19565b94505b6118b0878787612e36565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156127d557507f000000000000000000000000000000000000000000000000000000000000000046145b1561280157507f0000000000000000000000000000000000000000000000000000000000000000610a86565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c09092019092528051910120610a86565b8154600090815b818110156129195760006128c2828461329c565b9050848682815481106128e557634e487b7160e01b600052603260045260246000fd5b60009182526020909120015463ffffffff16111561290557809250612913565b612910816001613cc2565b91505b506128ae565b811561296b578461292b600184613d19565b8154811061294957634e487b7160e01b600052603260045260246000fd5b60009182526020909120015464010000000090046001600160e01b031661296e565b60005b6001600160e01b031695945050505050565b6001600160a01b038281166000818152600660208181526040808420805485845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611d5a828483612cf9565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166000818152601f6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6000610a9a612aac61277c565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000612afe878787876132b7565b91509150612b0b816133a4565b5095945050505050565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b825460009081908015612b965785612b56600183613d19565b81548110612b7457634e487b7160e01b600052603260045260246000fd5b60009182526020909120015464010000000090046001600160e01b0316612b99565b60005b6001600160e01b03169250612bb283858763ffffffff16565b9150600081118015612bfe57504386612bcc600184613d19565b81548110612bea57634e487b7160e01b600052603260045260246000fd5b60009182526020909120015463ffffffff16145b15612c6c57612c0c82611e53565b86612c18600184613d19565b81548110612c3657634e487b7160e01b600052603260045260246000fd5b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b03160217905550612ce5565b856040518060400160405280612c8143611ec0565b63ffffffff168152602001612c9585611e53565b6001600160e01b039081169091528254600181018455600093845260209384902083519101805493909401519091166401000000000263ffffffff91821663ffffffff1990931692909217161790555b50935093915050565b611f57838383611f25565b816001600160a01b0316836001600160a01b031614158015612d1b5750600081115b15611f57576001600160a01b03831615612da9576001600160a01b03831660009081526007602052604081208190612d5690611f5c85612b3d565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612d9e929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615611f57576001600160a01b03821660009081526007602052604081208190612ddf90611e4785612b3d565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612e27929190918252602082015260400190565b60405180910390a25050505050565b6001600160a01b038316612e5c5760405162461bcd60e51b8152600401610aca90613c0d565b6001600160a01b038216612e825760405162461bcd60e51b8152600401610aca90613b95565b6001600160a01b03831660009081526020819052604090205481811015612efa5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610aca565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290612f31908490613cc2565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612f7d91815260200190565b60405180910390a3611d5a848484612cee565b3060009081526020819052604081205490506000601c54601a54601b54612fb79190613cc2565b612fc19190613cc2565b90506000821580612fd0575081155b15612fdd57505050610da6565b600f54612feb906014613cfa565b83111561300357600f54613000906014613cfa565b92505b6000600283601b54866130169190613cfa565b6130209190613cda565b61302a9190613cda565b9050600061303885836135a7565b905047613044826135e9565b600061305047836135a7565b9050600061306d876125d7601a54856131db90919063ffffffff16565b9050600061308a886125d7601b54866131db90919063ffffffff16565b90506000826130998386613d19565b6130a39190613d19565b6000601b819055601a819055601c55905086158015906130c35750600082115b15613116576130d2878361376e565b601b54604080518881526020810185905280820192909252517fb7acf4189040e91762f06cd1aa5856b7e948526c34e24080a81f91930c54f0189181900360600190a15b821561317457600c546040516001600160a01b03909116908490600081818185875af1925050503d8060008114613169576040519150601f19603f3d011682016040523d82523d6000602084013e61316e565b606091505b50909850505b8015611b9a57600d546040516001600160a01b03909116908290600081818185875af1925050503d80600081146131c7576040519150601f19603f3d011682016040523d82523d6000602084013e6131cc565b606091505b50505050505050505050505050565b6000826131ea57506000610a9a565b60006131f68385613cfa565b9050826132038583613cda565b14610d1a5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610aca565b6000610d1a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613852565b60006132ab6002848418613cda565b610d1a90848416613cc2565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156132ee575060009050600361339b565b8460ff16601b1415801561330657508460ff16601c14155b15613317575060009050600461339b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561336b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166133945760006001925092505061339b565b9150600090505b94509492505050565b60008160048111156133c657634e487b7160e01b600052602160045260246000fd5b14156133d157610d4d565b60018160048111156133f357634e487b7160e01b600052602160045260246000fd5b14156134415760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610aca565b600281600481111561346357634e487b7160e01b600052602160045260246000fd5b14156134b15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610aca565b60038160048111156134d357634e487b7160e01b600052602160045260246000fd5b141561352c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610aca565b600481600481111561354e57634e487b7160e01b600052602160045260246000fd5b1415610d4d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610aca565b6000610d1a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613889565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061362c57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201810191909152600a54604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561368057600080fd5b505afa158015613694573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136b891906138e7565b816001815181106136d957634e487b7160e01b600052603260045260246000fd5b6001600160a01b039283166020918202929092010152600a546136ff9130911684611f68565b600a5460405163791ac94760e01b81526001600160a01b039091169063791ac94790613738908590600090869030904290600401613c52565b600060405180830381600087803b15801561375257600080fd5b505af1158015613766573d6000803e3d6000fd5b505050505050565b600a546137869030906001600160a01b031684611f68565b600a546001600160a01b031663f305d7198230856000806137af6009546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c4016060604051808303818588803b15801561381257600080fd5b505af1158015613826573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061384b9190613b15565b5050505050565b600081836138735760405162461bcd60e51b8152600401610aca9190613b42565b5060006138808486613cda565b95945050505050565b600081848411156138ad5760405162461bcd60e51b8152600401610aca9190613b42565b5060006138808486613d19565b803560ff81168114610d3e57600080fd5b6000602082840312156138dc578081fd5b8135610d1a81613d7b565b6000602082840312156138f8578081fd5b8151610d1a81613d7b565b60008060408385031215613915578081fd5b823561392081613d7b565b9150602083013561393081613d7b565b809150509250929050565b60008060006060848603121561394f578081fd5b833561395a81613d7b565b9250602084013561396a81613d7b565b929592945050506040919091013590565b600080600080600080600060e0888a031215613995578283fd5b87356139a081613d7b565b965060208801356139b081613d7b565b955060408801359450606088013593506139cc608089016138ba565b925060a0880135915060c0880135905092959891949750929550565b600080604083850312156139fa578182fd5b8235613a0581613d7b565b915060208301358015158114613930578182fd5b60008060408385031215613a2b578182fd5b8235613a3681613d7b565b946020939093013593505050565b60008060008060008060c08789031215613a5c578182fd5b8635613a6781613d7b565b95506020870135945060408701359350613a83606088016138ba565b92506080870135915060a087013590509295509295509295565b60008060408385031215613aaf578182fd5b8235613aba81613d7b565b9150602083013563ffffffff81168114613930578182fd5b600060208284031215613ae3578081fd5b5035919050565b600080600060608486031215613afe578283fd5b505081359360208301359350604090920135919050565b600080600060608486031215613b29578283fd5b8351925060208401519150604084015190509250925092565b6000602080835283518082850152825b81811015613b6e57858101830151858201604001528201613b52565b81811115613b7f5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b81811015613ca15784516001600160a01b031683529383019391830191600101613c7c565b50506001600160a01b03969096166060850152505050608001529392505050565b60008219821115613cd557613cd5613d65565b500190565b600082613cf557634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615613d1457613d14613d65565b500290565b600082821015613d2b57613d2b613d65565b500390565b600281046001821680613d4457607f821691505b60208210811415612b3757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610d4d57600080fdfea2646970667358221220aad8e5627e8a75d616fe3a058870cb5108e3a253a4b59a31344c827bc5bea84d64736f6c634300080200334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572dec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724

Deployed Bytecode

0x6080604052600436106103035760003560e01c80638095d56411610190578063c0246668116100dc578063d505accf11610095578063e2f456051161006f578063e2f4560514610960578063f1127ed814610976578063f2fde38b146109c0578063f8b45b05146109e05761030a565b8063d505accf146108e4578063d85ba06314610904578063dd62ed3e1461091a5761030a565b8063c02466681461082e578063c17b5b8c1461084e578063c18bc1951461086e578063c3cda5201461088e578063c8c8ebe4146108ae578063d257b34f146108c45761030a565b80639ab24eb011610149578063acdf4f1811610123578063acdf4f181461079f578063ae9e81e0146107bf578063b62496f5146107df578063bbc0c7421461080f5761030a565b80639ab24eb01461073f578063a457c2d71461075f578063a9059cbb1461077f5761030a565b80638095d564146106975780638a8c523c146106b75780638da5cb5b146106cc5780638e539e8c146106ea57806395d89b411461070a5780639a7a23d61461071f5761030a565b80634fbee1931161024f57806370a08231116102085780637571336a116101e25780637571336a146106225780637692f826146106425780637ecebe00146106575780637f51bb1f146106775761030a565b806370a08231146105c2578063715018a6146105f8578063751039fc1461060d5761030a565b80634fbee193146104de578063587cde1e146104fe5780635c19a95c1461053757806361d027b3146105575780636a486a8e146105775780636fcfff451461058d5761030a565b806323b872dd116102bc578063395093511161029657806339509351146104645780633a46b1a81461048457806349bd5a5e146104a45780634a62bb65146104c45761030a565b806323b872dd14610413578063313ce567146104335780633644e5151461044f5761030a565b806306fdde031461030f578063095ea7b31461033a57806310d5de531461036a5780631694505e1461039a57806318160ddd146103d2578063203e727e146103f15761030a565b3661030a57005b600080fd5b34801561031b57600080fd5b506103246109f6565b6040516103319190613b42565b60405180910390f35b34801561034657600080fd5b5061035a610355366004613a19565b610a89565b6040519015158152602001610331565b34801561037657600080fd5b5061035a6103853660046138cb565b601e6020526000908152604090205460ff1681565b3480156103a657600080fd5b50600a546103ba906001600160a01b031681565b6040516001600160a01b039091168152602001610331565b3480156103de57600080fd5b506002545b604051908152602001610331565b3480156103fd57600080fd5b5061041161040c366004613ad2565b610aa0565b005b34801561041f57600080fd5b5061035a61042e36600461393b565b610bb2565b34801561043f57600080fd5b5060405160098152602001610331565b34801561045b57600080fd5b506103e3610c5c565b34801561047057600080fd5b5061035a61047f366004613a19565b610c6b565b34801561049057600080fd5b506103e361049f366004613a19565b610ca7565b3480156104b057600080fd5b50600b546103ba906001600160a01b031681565b3480156104d057600080fd5b5060115461035a9060ff1681565b3480156104ea57600080fd5b5061035a6104f93660046138cb565b610d21565b34801561050a57600080fd5b506103ba6105193660046138cb565b6001600160a01b039081166000908152600660205260409020541690565b34801561054357600080fd5b506104116105523660046138cb565b610d43565b34801561056357600080fd5b50600c546103ba906001600160a01b031681565b34801561058357600080fd5b506103e360165481565b34801561059957600080fd5b506105ad6105a83660046138cb565b610d50565b60405163ffffffff9091168152602001610331565b3480156105ce57600080fd5b506103e36105dd3660046138cb565b6001600160a01b031660009081526020819052604090205490565b34801561060457600080fd5b50610411610d72565b34801561061957600080fd5b5061035a610da8565b34801561062e57600080fd5b5061041161063d3660046139e8565b610e19565b34801561064e57600080fd5b50610411610e9f565b34801561066357600080fd5b506103e36106723660046138cb565b610fa0565b34801561068357600080fd5b506104116106923660046138cb565b610fbe565b3480156106a357600080fd5b506104116106b2366004613aea565b61108b565b3480156106c357600080fd5b50610411611175565b3480156106d857600080fd5b506009546001600160a01b03166103ba565b3480156106f657600080fd5b506103e3610705366004613ad2565b6111f4565b34801561071657600080fd5b50610324611250565b34801561072b57600080fd5b5061041161073a3660046139e8565b61125f565b34801561074b57600080fd5b506103e361075a3660046138cb565b61131b565b34801561076b57600080fd5b5061035a61077a366004613a19565b6113b0565b34801561078b57600080fd5b5061035a61079a366004613a19565b611449565b3480156107ab57600080fd5b50600d546103ba906001600160a01b031681565b3480156107cb57600080fd5b506104116107da3660046138cb565b611456565b3480156107eb57600080fd5b5061035a6107fa3660046138cb565b601f6020526000908152604090205460ff1681565b34801561081b57600080fd5b5060115461035a90610100900460ff1681565b34801561083a57600080fd5b506104116108493660046139e8565b611523565b34801561085a57600080fd5b50610411610869366004613aea565b6115ac565b34801561087a57600080fd5b50610411610889366004613ad2565b61168d565b34801561089a57600080fd5b506104116108a9366004613a44565b611783565b3480156108ba57600080fd5b506103e3600e5481565b3480156108d057600080fd5b5061035a6108df366004613ad2565b6118b9565b3480156108f057600080fd5b506104116108ff36600461397b565b611a42565b34801561091057600080fd5b506103e360125481565b34801561092657600080fd5b506103e3610935366004613903565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561096c57600080fd5b506103e3600f5481565b34801561098257600080fd5b50610996610991366004613a9d565b611ba6565b60408051825163ffffffff1681526020928301516001600160e01b03169281019290925201610331565b3480156109cc57600080fd5b506104116109db3660046138cb565b611c38565b3480156109ec57600080fd5b506103e360105481565b606060038054610a0590613d30565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3190613d30565b8015610a7e5780601f10610a5357610100808354040283529160200191610a7e565b820191906000526020600020905b815481529060010190602001808311610a6157829003601f168201915b505050505090505b90565b6000610a96338484611f68565b5060015b92915050565b6009546001600160a01b03163314610ad35760405162461bcd60e51b8152600401610aca90613bd8565b60405180910390fd5b633b9aca006103e8610ae460025490565b610aef906001613cfa565b610af99190613cda565b610b039190613cda565b811015610b6a5760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201526e6c6f776572207468616e20302e312560881b6064820152608401610aca565b610b7881633b9aca00613cfa565b600e556040518181527fe5b4bfc380c3a1aee22ea479849c75117cc58c467670fd4c6427016d3998f2e0906020015b60405180910390a150565b6000610bbf84848461208c565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610c445760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610aca565b610c518533858403611f68565b506001949350505050565b6000610c6661277c565b905090565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610a96918590610ca2908690613cc2565b611f68565b6000438210610cf85760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401610aca565b6001600160a01b0383166000908152600760205260409020610d1a90836128a7565b9392505050565b6001600160a01b0381166000908152601d602052604090205460ff165b919050565b610d4d3382612980565b50565b6001600160a01b038116600090815260076020526040812054610a9a90611ec0565b6009546001600160a01b03163314610d9c5760405162461bcd60e51b8152600401610aca90613bd8565b610da660006129f9565b565b6009546000906001600160a01b03163314610dd55760405162461bcd60e51b8152600401610aca90613bd8565b6011805460ff19169055604051600081527f4635cb52f5ade96c6a7856f059db1e988bdbacc4dfd9a62cabf0ca7852e5253e9060200160405180910390a150600190565b6009546001600160a01b03163314610e435760405162461bcd60e51b8152600401610aca90613bd8565b6001600160a01b0382166000818152601e6020908152604091829020805460ff191685151517905590519182527fc65aa989ecbad45c4af70755a3bde58cd7317cd04a213b0304ad619add45d4fb910160405180910390a15050565b6009546001600160a01b03163314610ec95760405162461bcd60e51b8152600401610aca90613bd8565b600c546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610f16576040519150601f19603f3d011682016040523d82523d6000602084013e610f1b565b606091505b50508091505080610f6e5760405162461bcd60e51b815260206004820152601b60248201527f4572726f72206f6e207472616e736665722c20726576657274656400000000006044820152606401610aca565b60405181151581527f94184c17f7224964ab3ffe55031fc42749092578acfc9d29a576d76985c3be8e90602001610ba7565b6001600160a01b038116600090815260056020526040812054610a9a565b6009546001600160a01b03163314610fe85760405162461bcd60e51b8152600401610aca90613bd8565b600c80546001600160a01b0319166001600160a01b0383169081179091556110525760405162461bcd60e51b815260206004820152601e60248201527f416464726573732063616e6e6f74206265205a65726f206164647265737300006044820152606401610aca565b6040516001600160a01b03821681527f7dae230f18360d76a040c81f050aa14eb9d6dc7901b20fc5d855e2a20fe814d190602001610ba7565b6009546001600160a01b031633146110b55760405162461bcd60e51b8152600401610aca90613bd8565b601383905560148290556015819055806110cf8385613cc2565b6110d99190613cc2565b6012819055600a101561112e5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313025206f72206c6573730000006044820152606401610aca565b60408051848152602081018490529081018290527f38513c502b0ab4834ac1df9502b76f75dcf7092469782cfd0db7fe664388e25e906060015b60405180910390a1505050565b6009546001600160a01b0316331461119f5760405162461bcd60e51b8152600401610aca90613bd8565b6011805461ff001916610100908117918290556040517f2de3f956844815ec700c656bcec4ca8c7c939372f954dd09ec0c7fd0a751f819926111ea92900460ff161515815260200190565b60405180910390a1565b60004382106112455760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401610aca565b610a9a6008836128a7565b606060048054610a0590613d30565b6009546001600160a01b031633146112895760405162461bcd60e51b8152600401610aca90613bd8565b600b546001600160a01b038381169116141561130d5760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b65725061697273000000000000006064820152608401610aca565b6113178282612a4b565b5050565b6001600160a01b038116600090815260076020526040812054801561139d576001600160a01b038316600090815260076020526040902061135d600183613d19565b8154811061137b57634e487b7160e01b600052603260045260246000fd5b60009182526020909120015464010000000090046001600160e01b03166113a0565b60005b6001600160e01b03169392505050565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156114325760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610aca565b61143f3385858403611f68565b5060019392505050565b6000610a9633848461208c565b6009546001600160a01b031633146114805760405162461bcd60e51b8152600401610aca90613bd8565b600d80546001600160a01b0319166001600160a01b0383169081179091556114ea5760405162461bcd60e51b815260206004820152601e60248201527f416464726573732063616e6e6f74206265205a65726f206164647265737300006044820152606401610aca565b6040516001600160a01b03821681527f454d7692ed6f71bd3b3c0dadb17cc08d2f8affd474466b5d7796696d1ee61c3d90602001610ba7565b6009546001600160a01b0316331461154d5760405162461bcd60e51b8152600401610aca90613bd8565b6001600160a01b0382166000818152601d6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6009546001600160a01b031633146115d65760405162461bcd60e51b8152600401610aca90613bd8565b601783905560188290556019819055806115f08385613cc2565b6115fa9190613cc2565b6016819055600f101561164f5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313525206f72206c6573730000006044820152606401610aca565b60408051848152602081018490529081018290527fcb5f36df892836a2eaedc349de29a7581176990398ee185d16eaa8f6c1abd8f190606001611168565b6009546001600160a01b031633146116b75760405162461bcd60e51b8152600401610aca90613bd8565b633b9aca006103e86116c860025490565b6116d3906005613cfa565b6116dd9190613cda565b6116e79190613cda565b8110156117425760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20604482015263302e352560e01b6064820152608401610aca565b61175081633b9aca00613cfa565b6010556040518181527f22c83a5ec34271153086583a02141e6d8afa47085fffe4f3c546e7011357aa0990602001610ba7565b834211156117d35760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e617475726520657870697265640000006044820152606401610aca565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b03881691810191909152606081018690526080810185905260009061184d906118459060a00160405160208183030381529060405280519060200120612a9f565b858585612aed565b905061185881612b15565b86146118a65760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e6365000000000000006044820152606401610aca565b6118b08188612980565b50505050505050565b6009546000906001600160a01b031633146118e65760405162461bcd60e51b8152600401610aca90613bd8565b620186a06118f360025490565b6118fe906001613cfa565b6119089190613cda565b8210156119755760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b6064820152608401610aca565b6103e861198160025490565b61198c906005613cfa565b6119969190613cda565b821115611a025760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171a92903a37ba30b61039bab838363c9760611b6064820152608401610aca565b600f8290556040518281527f465ee8e57953b7477cd200062fe90fa18292da3f23f87c8b22b32fbb1284c6099060200160405180910390a1506001919050565b83421115611a925760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610aca565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888611ac18c612b15565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000611b1c82612a9f565b90506000611b2c82878787612aed565b9050896001600160a01b0316816001600160a01b031614611b8f5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610aca565b611b9a8a8a8a611f68565b50505050505050505050565b60408051808201909152600080825260208201526001600160a01b0383166000908152600760205260409020805463ffffffff8416908110611bf857634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6009546001600160a01b03163314611c625760405162461bcd60e51b8152600401610aca90613bd8565b6001600160a01b038116611cc75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610aca565b610d4d816129f9565b611cda8282611d60565b6002546001600160e01b031015611d4c5760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b6064820152608401610aca565b611d5a6008611e4783612b3d565b50505050565b6001600160a01b038216611db65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610aca565b8060026000828254611dc89190613cc2565b90915550506001600160a01b03821660009081526020819052604081208054839290611df5908490613cc2565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361131760008383612cee565b6000610d1a8284613cc2565b60006001600160e01b03821115611ebc5760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b6064820152608401610aca565b5090565b600063ffffffff821115611ebc5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b6064820152608401610aca565b6001600160a01b03838116600090815260066020526040808220548584168352912054611f5792918216911683612cf9565b505050565b6000610d1a8284613d19565b6001600160a01b038316611fca5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610aca565b6001600160a01b03821661202b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610aca565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166120b25760405162461bcd60e51b8152600401610aca90613c0d565b6001600160a01b0382166120d85760405162461bcd60e51b8152600401610aca90613b95565b806120ee576120e983836000612e36565b611f57565b60115460ff1615612464576009546001600160a01b0384811691161480159061212557506009546001600160a01b03838116911614155b801561213957506001600160a01b03821615155b801561215057506001600160a01b03821661dead14155b80156121665750600b54600160a01b900460ff16155b1561246457601154610100900460ff166121fe576001600160a01b0383166000908152601d602052604090205460ff16806121b957506001600160a01b0382166000908152601d602052604090205460ff165b6121fe5760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610aca565b6001600160a01b0383166000908152601f602052604090205460ff16801561223f57506001600160a01b0382166000908152601e602052604090205460ff16155b1561232357600e548111156122b45760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b6064820152608401610aca565b6010546001600160a01b0383166000908152602081905260409020546122da9083613cc2565b111561231e5760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610aca565b612464565b6001600160a01b0382166000908152601f602052604090205460ff16801561236457506001600160a01b0383166000908152601e602052604090205460ff16155b156123da57600e5481111561231e5760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b6064820152608401610aca565b6001600160a01b0382166000908152601e602052604090205460ff16612464576010546001600160a01b0383166000908152602081905260409020546124209083613cc2565b11156124645760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610aca565b30600090815260208190526040902054600f54811080159081906124925750600b54600160a01b900460ff16155b80156124b757506001600160a01b0385166000908152601f602052604090205460ff16155b80156124dc57506001600160a01b0385166000908152601d602052604090205460ff16155b801561250157506001600160a01b0384166000908152601d602052604090205460ff16155b1561252f57600b805460ff60a01b1916600160a01b179055612521612f90565b600b805460ff60a01b191690555b600b546001600160a01b0386166000908152601d602052604090205460ff600160a01b90920482161591168061257d57506001600160a01b0385166000908152601d602052604090205460ff165b15612586575060005b60008115612771576001600160a01b0386166000908152601f602052604090205460ff1680156125b857506000601654115b15612676576125dd60646125d7601654886131db90919063ffffffff16565b9061325a565b9050601654601854826125f09190613cfa565b6125fa9190613cda565b601b600082825461260b9190613cc2565b90915550506016546017546126209083613cfa565b61262a9190613cda565b601a600082825461263b9190613cc2565b90915550506016546019546126509083613cfa565b61265a9190613cda565b601c600082825461266b9190613cc2565b909155506127539050565b6001600160a01b0387166000908152601f602052604090205460ff1680156126a057506000601254115b15612753576126bf60646125d7601254886131db90919063ffffffff16565b9050601254601454826126d29190613cfa565b6126dc9190613cda565b601b60008282546126ed9190613cc2565b90915550506012546013546127029083613cfa565b61270c9190613cda565b601a600082825461271d9190613cc2565b90915550506012546015546127329083613cfa565b61273c9190613cda565b601c600082825461274d9190613cc2565b90915550505b801561276457612764873083612e36565b61276e8186613d19565b94505b6118b0878787612e36565b6000306001600160a01b037f000000000000000000000000350d3f0f41b5b21f0e252fe2645ae9d55562150a161480156127d557507f000000000000000000000000000000000000000000000000000000000000000146145b1561280157507f743c2c160af2db137f5a230195ffd97d2526afc19ee19a23a175c7bb3c3fade2610a86565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527fdad4850e9f9d74d0553d5a00db1313d7741b7ce62fca1ced463eefdfd77c4aa2828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c09092019092528051910120610a86565b8154600090815b818110156129195760006128c2828461329c565b9050848682815481106128e557634e487b7160e01b600052603260045260246000fd5b60009182526020909120015463ffffffff16111561290557809250612913565b612910816001613cc2565b91505b506128ae565b811561296b578461292b600184613d19565b8154811061294957634e487b7160e01b600052603260045260246000fd5b60009182526020909120015464010000000090046001600160e01b031661296e565b60005b6001600160e01b031695945050505050565b6001600160a01b038281166000818152600660208181526040808420805485845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611d5a828483612cf9565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166000818152601f6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6000610a9a612aac61277c565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000612afe878787876132b7565b91509150612b0b816133a4565b5095945050505050565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b825460009081908015612b965785612b56600183613d19565b81548110612b7457634e487b7160e01b600052603260045260246000fd5b60009182526020909120015464010000000090046001600160e01b0316612b99565b60005b6001600160e01b03169250612bb283858763ffffffff16565b9150600081118015612bfe57504386612bcc600184613d19565b81548110612bea57634e487b7160e01b600052603260045260246000fd5b60009182526020909120015463ffffffff16145b15612c6c57612c0c82611e53565b86612c18600184613d19565b81548110612c3657634e487b7160e01b600052603260045260246000fd5b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b03160217905550612ce5565b856040518060400160405280612c8143611ec0565b63ffffffff168152602001612c9585611e53565b6001600160e01b039081169091528254600181018455600093845260209384902083519101805493909401519091166401000000000263ffffffff91821663ffffffff1990931692909217161790555b50935093915050565b611f57838383611f25565b816001600160a01b0316836001600160a01b031614158015612d1b5750600081115b15611f57576001600160a01b03831615612da9576001600160a01b03831660009081526007602052604081208190612d5690611f5c85612b3d565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612d9e929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615611f57576001600160a01b03821660009081526007602052604081208190612ddf90611e4785612b3d565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612e27929190918252602082015260400190565b60405180910390a25050505050565b6001600160a01b038316612e5c5760405162461bcd60e51b8152600401610aca90613c0d565b6001600160a01b038216612e825760405162461bcd60e51b8152600401610aca90613b95565b6001600160a01b03831660009081526020819052604090205481811015612efa5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610aca565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290612f31908490613cc2565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612f7d91815260200190565b60405180910390a3611d5a848484612cee565b3060009081526020819052604081205490506000601c54601a54601b54612fb79190613cc2565b612fc19190613cc2565b90506000821580612fd0575081155b15612fdd57505050610da6565b600f54612feb906014613cfa565b83111561300357600f54613000906014613cfa565b92505b6000600283601b54866130169190613cfa565b6130209190613cda565b61302a9190613cda565b9050600061303885836135a7565b905047613044826135e9565b600061305047836135a7565b9050600061306d876125d7601a54856131db90919063ffffffff16565b9050600061308a886125d7601b54866131db90919063ffffffff16565b90506000826130998386613d19565b6130a39190613d19565b6000601b819055601a819055601c55905086158015906130c35750600082115b15613116576130d2878361376e565b601b54604080518881526020810185905280820192909252517fb7acf4189040e91762f06cd1aa5856b7e948526c34e24080a81f91930c54f0189181900360600190a15b821561317457600c546040516001600160a01b03909116908490600081818185875af1925050503d8060008114613169576040519150601f19603f3d011682016040523d82523d6000602084013e61316e565b606091505b50909850505b8015611b9a57600d546040516001600160a01b03909116908290600081818185875af1925050503d80600081146131c7576040519150601f19603f3d011682016040523d82523d6000602084013e6131cc565b606091505b50505050505050505050505050565b6000826131ea57506000610a9a565b60006131f68385613cfa565b9050826132038583613cda565b14610d1a5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610aca565b6000610d1a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613852565b60006132ab6002848418613cda565b610d1a90848416613cc2565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156132ee575060009050600361339b565b8460ff16601b1415801561330657508460ff16601c14155b15613317575060009050600461339b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561336b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166133945760006001925092505061339b565b9150600090505b94509492505050565b60008160048111156133c657634e487b7160e01b600052602160045260246000fd5b14156133d157610d4d565b60018160048111156133f357634e487b7160e01b600052602160045260246000fd5b14156134415760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610aca565b600281600481111561346357634e487b7160e01b600052602160045260246000fd5b14156134b15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610aca565b60038160048111156134d357634e487b7160e01b600052602160045260246000fd5b141561352c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610aca565b600481600481111561354e57634e487b7160e01b600052602160045260246000fd5b1415610d4d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610aca565b6000610d1a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613889565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061362c57634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201810191909152600a54604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561368057600080fd5b505afa158015613694573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136b891906138e7565b816001815181106136d957634e487b7160e01b600052603260045260246000fd5b6001600160a01b039283166020918202929092010152600a546136ff9130911684611f68565b600a5460405163791ac94760e01b81526001600160a01b039091169063791ac94790613738908590600090869030904290600401613c52565b600060405180830381600087803b15801561375257600080fd5b505af1158015613766573d6000803e3d6000fd5b505050505050565b600a546137869030906001600160a01b031684611f68565b600a546001600160a01b031663f305d7198230856000806137af6009546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c4016060604051808303818588803b15801561381257600080fd5b505af1158015613826573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061384b9190613b15565b5050505050565b600081836138735760405162461bcd60e51b8152600401610aca9190613b42565b5060006138808486613cda565b95945050505050565b600081848411156138ad5760405162461bcd60e51b8152600401610aca9190613b42565b5060006138808486613d19565b803560ff81168114610d3e57600080fd5b6000602082840312156138dc578081fd5b8135610d1a81613d7b565b6000602082840312156138f8578081fd5b8151610d1a81613d7b565b60008060408385031215613915578081fd5b823561392081613d7b565b9150602083013561393081613d7b565b809150509250929050565b60008060006060848603121561394f578081fd5b833561395a81613d7b565b9250602084013561396a81613d7b565b929592945050506040919091013590565b600080600080600080600060e0888a031215613995578283fd5b87356139a081613d7b565b965060208801356139b081613d7b565b955060408801359450606088013593506139cc608089016138ba565b925060a0880135915060c0880135905092959891949750929550565b600080604083850312156139fa578182fd5b8235613a0581613d7b565b915060208301358015158114613930578182fd5b60008060408385031215613a2b578182fd5b8235613a3681613d7b565b946020939093013593505050565b60008060008060008060c08789031215613a5c578182fd5b8635613a6781613d7b565b95506020870135945060408701359350613a83606088016138ba565b92506080870135915060a087013590509295509295509295565b60008060408385031215613aaf578182fd5b8235613aba81613d7b565b9150602083013563ffffffff81168114613930578182fd5b600060208284031215613ae3578081fd5b5035919050565b600080600060608486031215613afe578283fd5b505081359360208301359350604090920135919050565b600080600060608486031215613b29578283fd5b8351925060208401519150604084015190509250925092565b6000602080835283518082850152825b81811015613b6e57858101830151858201604001528201613b52565b81811115613b7f5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b81811015613ca15784516001600160a01b031683529383019391830191600101613c7c565b50506001600160a01b03969096166060850152505050608001529392505050565b60008219821115613cd557613cd5613d65565b500190565b600082613cf557634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615613d1457613d14613d65565b500290565b600082821015613d2b57613d2b613d65565b500390565b600281046001821680613d4457607f821691505b60208210811415612b3757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610d4d57600080fdfea2646970667358221220aad8e5627e8a75d616fe3a058870cb5108e3a253a4b59a31344c827bc5bea84d64736f6c63430008020033

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.