ETH Price: $3,383.61 (+0.79%)

Token

GN (GN)
 

Overview

Max Total Supply

1,000,000,000,000 GN

Holders

2,445

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 9 Decimals)

Filtered by Token Holder
0o00.eth
Balance
5,082,671.951728391 GN

Value
$0.00
0x2380CA49Ed8e933c97905977763693E5CF8770f4
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
NGMIGN

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : NgmiGN.sol
// SPDX-License-Identifier: MIT

/*

We are the seethers, 
The copers, 
Those that REEEEE 
in the morning,

For all the missed airdrops,
All the fumbled bags,
A moonshot we bought the top of,

We have cope, 
That for every GM, 
It is followed by a GN.

@ngmign 

*/



pragma solidity ^0.8.0;

import "./utils/ERC20Feeable.sol";
import "./utils/Killable.sol";
import "./utils/TradeValidator.sol";
import "./utils/SwapHelper.sol";
import "./utils/Ownable.sol";

contract NGMIGN is
    Context,
    Ownable,
    Killable,
    TradeValidator,
    ERC20Feeable,
    SwapHelper(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D)
{

    address public treasury;

    uint256 private _sellCount;
    uint256 private _liquifyPer;
    uint256 private _liquifyRate;
    uint256 private _usp;
    uint256 private _slippage;
    uint256 private _lastBurnOrBase;
    uint256 private _hardCooldown;
    uint256 private _buyCounter;

    address constant BURN_ADDRESS = address(0x000000000000000000000000000000000000dEaD);

    bool private _unpaused;
    bool private _isBuuuuurrrrrning;
    
    constructor() ERC20("GN", "GN", 9, 1_000_000_000_000 * (10 ** 9)) ERC20Feeable() {

        uint256 total = _fragmentBalances[msg.sender];
        _fragmentBalances[msg.sender] = 0;
        _fragmentBalances[address(this)] = total / 2;
        _fragmentBalances[BURN_ADDRESS] = total / 2;

        _frate = fragmentsPerToken();
        
        _approve(msg.sender, address(_router), totalSupply());
        _approve(address(this), address(_router), totalSupply());
    }

    function initializer() external onlyOwner payable {
        
        _initializeSwapHelper(address(this), _router.WETH());

        _router.addLiquidityETH {
            value: msg.value
        } (
            address(this),
            balanceOf(address(this)),
            0,
            0,
            owner(),
            block.timestamp
        );
        
        treasury = address(0xdE61924d7A4e15b452ED7C7CA8194E7B16c65688);

        _accountStates[address(_lp)].transferPair = true;
        _accountStates[address(this)].feeless = true;
        _accountStates[treasury].feeless = true;
        _accountStates[msg.sender].feeless = true;

        exclude(address(_lp));

        _precisionFactor = 4; // thousandths

        fbl_feeAdd(TransactionState.Buy,    300, "buy fee");
        fbl_feeAdd(TransactionState.Sell,   1500, "sell fee");

        _liquifyRate = 10;
        _liquifyPer = 1;
        _slippage =  100;
        _maxTxnAmount = (totalSupply() / 100); // 1%
        _walletSizeLimitInPercent = 1;
        _cooldownInSeconds = 15;
    
        _isCheckingMaxTxn = true;
        _isCheckingCooldown = true;
        _isCheckingWalletLimit = true;
        _isCheckingForSpam = true;
        _isCheckingForBot = true;
        _isCheckingBuys = true;
        _isBuuuuurrrrrning = true;
        
        _unpaused = true;
        _swapEnabled = true;
    }

    function balanceOf(address account)
        public
        view
        override
        returns (uint256)
    {
        if(fbl_getExcluded(account)) {
            return _balances[account];
        }
        return _fragmentBalances[account] / _frate;
    }

    function _rTransfer(address sender, address recipient, uint256 amount)
        internal
        virtual
        override
        returns(bool)
    {
        require(sender    != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");
        uint256 totFee_;
        uint256 p;
        uint256 u;
        TransactionState tState;
        if(_unpaused) {
            if(_isCheckingForBot) {
                _checkIfBot(sender);
                _checkIfBot(recipient);
            }
            tState = fbl_getTstate(sender, recipient);
            if(_isCheckingBuys && _accountStates[recipient].transferPair != true && tState == TransactionState.Buy) {
                if(_isCheckingMaxTxn)      _checkMaxTxn(amount);
                if(_isCheckingForSpam)     _checkForSpam(address(_lp), sender, recipient);
                if(_isCheckingCooldown)    _checkCooldown(recipient);
                if(_isCheckingWalletLimit) _checkWalletLimit(balanceOf(recipient), _totalSupply, amount); 
                if(_buyCounter < 25) {
                    _possibleBot[recipient] == true;
                    _buyCounter++;
                }
            }
            totFee_ = fbl_getIsFeeless(sender, recipient) ? 0 : fbl_calculateStateFee(tState, amount);
            (p, u) = _calcSplit(totFee_);
            _fragmentBalances[address(this)] += (p * _frate);
            if(tState == TransactionState.Sell) {
                _sellCount = _sellCount > _liquifyPer ? 0 : _sellCount + 1;
                if(_swapEnabled && !_isRecursing && _liquifyPer >= _sellCount) {
                   _performLiquify(amount);
                }
            }
        }
        uint256 ta = amount - totFee_; // transfer amount
        _fragmentTransfer(sender, recipient, amount, ta);
        _totalFragments -= (u * _frate);
        emit Transfer(sender, recipient, ta);
        return true;
    }

    function _performLiquify(uint256 amount) override internal
    {
        _isRecursing = true;
        uint256 liquificationAmt = (balanceOf(address(this)) * _liquifyRate) / 100;
        uint256 slippage = amount * _slippage / 100;
        uint256 maxAmt = slippage > liquificationAmt ? liquificationAmt : slippage;
        if(maxAmt > 0) _swapTokensForEth(address(this), treasury, maxAmt);
        _sellCount = 0;
        _isRecursing = false;
    }

    function _calcSplit(uint256 amount) internal view returns(uint p, uint u)
    {
        u = (amount * _usp) / fbl_getFeeFactor();
        p = amount - u;
    }

    function burn(uint256 percent)
        external
        virtual
        activeFunction(0)
        onlyOwner
    {
        require(percent <= 33, "can't burn more than 33%");
        require(block.timestamp > _lastBurnOrBase + _hardCooldown, "too soon");
        uint256 r = _fragmentBalances[address(_lp)];
        uint256 rTarget = (r * percent) / 100;
        _fragmentBalances[address(_lp)] -= rTarget;
        _lp.sync();
        _lp.skim(treasury); // take any dust
        _lastBurnOrBase = block.timestamp;
    }

    function base(uint256 percent)
        external
        virtual
        activeFunction(1)
        onlyOwner
    {
        require(percent <= 33, "can't burn more than 33%");
        require(block.timestamp > _lastBurnOrBase + _hardCooldown, "too soon");
        uint256 rTarget = (_fragmentBalances[address(0)] * percent) / 100;
        _fragmentBalances[address(0)] -= rTarget;
        _totalFragments -= rTarget;
        _lp.sync();
        _lp.skim(treasury); // take any dust
        _lastBurnOrBase = block.timestamp;
    }

    // manual burn amount, for *possible* cex integration
    // !!BEWARE!!: you will BURN YOUR TOKENS when you call this.
    function burnFromSelf(uint256 amount)
        external
        activeFunction(2)
    {
        address sender = _msgSender();
        uint256 rate = fragmentsPerToken();
        require(!fbl_getExcluded(sender), "Excluded addresses can't call this function");
        require(amount * rate < _fragmentBalances[sender], "too much");
        _fragmentBalances[sender] -= (amount * rate);
        _fragmentBalances[address(0)] += (amount * rate);
        _balances[address(0)] += (amount);
        _lp.sync();
        _lp.skim(treasury);
        emit Transfer(address(this), address(0), amount);
    }

    /* !!! CALLER WILL LOSE COINS CALLING THIS !!! */
    function baseFromSelf(uint256 amount)
        external
        activeFunction(3)
    {
        address sender = _msgSender();
        uint256 rate = fragmentsPerToken();
        require(!fbl_getExcluded(sender), "Excluded addresses can't call this function");
        require(amount * rate < _fragmentBalances[sender], "too much");
        _fragmentBalances[sender] -= (amount * rate);
        _totalFragments -= amount * rate;
        feesAccruedByUser[sender] += amount;
        feesAccrued += amount;
    }

    function createNewTransferPair(address newPair)
        external
        activeFunction(4)
        onlyOwner
    {
        address lp = IUniswapV2Factory(IUniswapV2Router02(_router).factory()).createPair(address(this), newPair);
        _accountStates[lp].transferPair = true;
    }

    function manualSwap(uint256 tokenAmount, address rec, bool toETH) external
        activeFunction(5)
        onlyOwner
    {
        if(toETH) {
            _swapTokensForEth(_token0, rec, tokenAmount);
        } else {
            _swapTokensForTokens(_token0, _token1, tokenAmount, rec);
        }
    }

    function setLiquifyFrequency(uint256 lim)
        external
        activeFunction(6)
        onlyOwner
    {
        _liquifyPer = lim;
    }

    /**
     *  @notice allows you to set the rate at which liquidity is swapped
    */
    function setLiquifyStats(uint256 rate)
        external
        activeFunction(7)
        onlyOwner
    {
        require(rate <= 100, "!toomuch");
        _liquifyRate = rate;
    }

    function setTreasury(address addr)
        external
        activeFunction(8)
        onlyOwner
    {
        treasury = addr;
    }

    /**
     *  @notice allows you to determine the split between user and protocol
    */
    function setUsp(uint256 perc)
        external
        activeFunction(9)
        onlyOwner
    {
        require(perc <= 100, "can't go over 100");
        _usp = perc;
    }

    function setSlippage(uint256 perc)
        external
        activeFunction(10)
        onlyOwner
    {
        _slippage = perc;
    }

    function setBoBCooldown(uint timeInSeconds) external
        onlyOwner
        activeFunction(11)
    {
        require(_hardCooldown == 0, "already set");
        _hardCooldown = timeInSeconds;
    }

    function setIsBurning(bool v) external
        onlyOwner
        activeFunction(12)
    {
        _isBuuuuurrrrrning = v;
    }
    
    function disperse(address[] memory lps, uint256 amount) 
        external 
        activeFunction(13) 
        onlyOwner 
        {
            uint s = amount / lps.length;
            for(uint i = 0; i < lps.length; i++) {
                _fragmentBalances[lps[i]] += s * _frate;
        }
    }

    function unpause()
        public
        virtual
        onlyOwner
    {
        _unpaused = true;
        _swapEnabled = true;
    }
    

}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 19 : SwapHelper.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../interfaces/IUniswapV2Router02.sol";
import "../interfaces/IUniswapV2Pair.sol";
import "../interfaces/IUniswapV2Factory.sol";
import "../interfaces/IERC20.sol";
import "./Ownable.sol";
import "./Killable.sol";

abstract contract SwapHelper is Ownable, Killable {

    IUniswapV2Router02 internal _router;
    IUniswapV2Pair     internal _lp;

    address internal _token0;
    address internal _token1;

    bool internal _isRecursing;
    bool internal _swapEnabled;

    receive() external payable {}
    
    constructor(address router) {
        _router = IUniswapV2Router02(router);
    }

    function _swapTokensForTokens(address token0, address token1, uint256 tokenAmount, address rec) internal {
        address[] memory path = new address[](2);
        path[0] = token0;
        path[1] = token1;
        IERC20(token0).approve(address(_router), tokenAmount);
        _router.swapExactTokensForTokensSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // we don't care how much we get back
            path,
            rec, // can't set to same as token
            block.timestamp
        );
    }

    function _swapTokensForEth(address tokenAddress, address rec, uint256 tokenAmount) internal
    {
        address[] memory path = new address[](2);
        path[0] = tokenAddress;
        path[1] = _router.WETH();

        IERC20(tokenAddress).approve(address(_router), tokenAmount);

        _router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            rec, // The contract
            block.timestamp
        );
    }

    function setRouter(address router)
        external
        onlyOwner
    {
        _router = IUniswapV2Router02(router);
    }

    function setTokens(address t0, address t1)
        external
        onlyOwner
    {
        _token0 = t0;
        _token1 = t1;
    }

    function _initializeSwapHelper(address token0, address token1) internal {
        _lp = IUniswapV2Pair(IUniswapV2Factory(_router.factory()).createPair(token0, token1));
    } 

    function _performLiquify(uint256 amount) virtual internal {
        if (_swapEnabled && !_isRecursing) {
            _isRecursing = true;
            amount = amount;
            _isRecursing = false;
        }
    }

    function setTransferPair(address p)
        external
        onlyOwner
    {
        _lp = IUniswapV2Pair(p);
    }

    function setSwapEnabled(bool v)
        external
        onlyOwner
    {
        _swapEnabled = v;
    }

}

File 4 of 19 : TradeValidator.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./Ownable.sol";
import "./Killable.sol";

abstract contract TradeValidator is Ownable, Killable {

    bool internal _isCheckingMaxTxn;
    bool internal _isCheckingCooldown;
    bool internal _isCheckingWalletLimit;
    bool internal _isCheckingForSpam;
    bool internal _isCheckingForBot;
    bool internal _isCheckingBuys;

    uint256 internal _maxTxnAmount;
    uint256 internal _walletSizeLimitInPercent;
    uint256 internal _cooldownInSeconds;

    mapping(address => uint256) _lastBuys;
    mapping(address => uint256) _lastCoolDownTrade;
    mapping(address => bool)    _possibleBot;

    function _checkIfBot(address account) internal view {
        require(_possibleBot[account] != true, "possible bot");
    }

    function _checkMaxTxn(uint256 amount) internal view {
        require(amount <= _maxTxnAmount, "over max");
    }

    function _checkCooldown(address recipient) internal {
        require(block.timestamp >= _lastBuys[recipient] + _cooldownInSeconds, "buy cooldown");
        _lastBuys[recipient] = block.timestamp;
    }

    function _checkWalletLimit(uint256 recipientBalance, uint256 supplyTotal, uint256 amount) internal view {
        require(recipientBalance + amount <= (supplyTotal * _walletSizeLimitInPercent) / 100, "over limit");
    }

    function _checkForSpam(address pair, address to, address from) internal {
        bool disallow;
        // Disallow multiple same source trades in same block
        if (from == pair) {
            disallow = _lastCoolDownTrade[to] == block.number || _lastCoolDownTrade[tx.origin] == block.number;
            _lastCoolDownTrade[to] = block.number;
            _lastCoolDownTrade[tx.origin] = block.number;
        } else if (to == pair) {
            disallow = _lastCoolDownTrade[from] == block.number || _lastCoolDownTrade[tx.origin] == block.number;
            _lastCoolDownTrade[from] = block.number;
            _lastCoolDownTrade[tx.origin] = block.number;
        }
        require(!disallow, "Multiple trades in same block from same source are not allowed during trading start cooldown");
    }

    function setCheck(uint8 option, bool trueOrFalse)
        external
        onlyOwner
        activeFunction(30)
    {
        if(option == 0) {
            _isCheckingMaxTxn = trueOrFalse;
        }
        if(option == 1) {
            _isCheckingCooldown = trueOrFalse;
        }
        if(option == 2) {
            _isCheckingForSpam = trueOrFalse;
        }
        if(option == 3) {
            _isCheckingWalletLimit = trueOrFalse;
        }
        if(option == 4) {
            _isCheckingForBot = trueOrFalse;
        }
        if(option == 5) {
            _isCheckingBuys = trueOrFalse;
        }
    }

    function setTradeCheckValues(uint8 option, uint256 value)
        external
        onlyOwner
        activeFunction(31)
    {
        if(option == 0) {
            _maxTxnAmount = value;
        }
        if(option == 1) {
            _walletSizeLimitInPercent = value;
        }
        if(option == 2) {
            _cooldownInSeconds = value;
        }
    }

    function setPossibleBot(address account, bool trueOrFalse)
        external
        onlyOwner
        activeFunction(32)
    {
        _possibleBot[account] = trueOrFalse;
    }
}

File 5 of 19 : Killable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./Ownable.sol";

contract Killable is Ownable {

    mapping(uint => uint256) internal _killedFunctions;

    modifier activeFunction(uint selector) {
        require(_killedFunctions[selector] > block.timestamp || _killedFunctions[selector] == 0, "deactivated");
        _;
    }

    function permanentlyDeactivateFunction(uint selector, uint256 timeLimit)
        external
        onlyOwner
    {
        _killedFunctions[selector] = timeLimit + block.timestamp;
    }
}

File 6 of 19 : ERC20Feeable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./ERC20Rebaseable.sol";
import "./Ownable.sol";
import "../libraries/EnumerableSet.sol";
import "./Killable.sol";

abstract contract Structure is Ownable {
    enum TransactionState {Buy, Sell, Normal}
    enum TransactionType { FromExcluded, ToExcluded, BothExcluded, Standard }

    struct TState {
        address target;
        TransactionState state;
    }

}

abstract contract FeeStructure is Structure, Killable {

    event FeeAdded(TransactionState state, uint perc, string name);
    event FeeUpdated(TransactionState state, uint perc, uint index);
    event FeeRemoved(TransactionState state, uint index);
    
    uint internal _precisionFactor = 2; // how much to multiply the denominator by 

    mapping(TransactionState => uint[]) fees;

    mapping(TransactionState => uint) activeFeeCount;

    mapping(TransactionState => uint) totalFee;
    
    function fbl_calculateFeeSpecific(TransactionState state, uint index, uint256 amount) public view returns(uint256) {
        return amount * fees[state][index] / fbl_getFeeFactor();
    }

    function fbl_calculateStateFee(TransactionState state, uint256 amount) public view returns (uint256) {
        uint256 feeTotal;
        if(state == TransactionState.Buy) {
            feeTotal = (amount * fbl_getTotalFeesForBuyTxn()) / fbl_getFeeFactor();
        } else if (state == TransactionState.Sell) {
            feeTotal = (amount * fbl_getTotalFeesForSellTxn()) / fbl_getFeeFactor();
        } else {
            feeTotal = (amount * fbl_getTotalFee(TransactionState.Normal)) / fbl_getFeeFactor(); 
        }
        return feeTotal;
    }
    
    function _checkUnderLimit() internal view returns(bool) {
        // we check here all the fees to ensure that we don't have a scenario where one set of fees exceeds 33% 
        require(fbl_calculateStateFee(TransactionState.Sell, 100000)   <= 33333, "ERC20Feeable: Sell Hardcap of 33% reached");
        require(fbl_calculateStateFee(TransactionState.Buy, 100000)    <= 33333, "ERC20Feeable: Buy  Hardcap of 33% reached");
        require(fbl_calculateStateFee(TransactionState.Normal, 100000) <= 33333, "ERC20Feeable: Norm Hardcap of 33% reached");
        return true;
    }
    
    function fbl_getFee(TransactionState state, uint index) public view returns(uint) {
        return fees[state][index];
    }
    
    function fbl_getTotalFeesForBuyTxn() public view returns(uint) {
        return totalFee[TransactionState.Normal] + totalFee[TransactionState.Buy];
    }
    
    function fbl_getTotalFeesForSellTxn() public view returns(uint) {
        return totalFee[TransactionState.Normal] + totalFee[TransactionState.Sell];
    }
    
    function fbl_getTotalFee(TransactionState state) public view returns(uint) {
        return totalFee[state];
    }
    
    /* @dev when you increase this that means all fees are reduced by whatever this factor is. 
    *  eg. 2% fee, 1 dF = 2% fee 
    *  vs  2% fee  2 dF = 0.2% fee 
    *  TLDR; increase this when you want more precision for decimals 
    */
    function fbl_getFeeFactor() public view returns(uint) {
        return 10 ** _precisionFactor;
    }

    // can be changed to external if you don't need to add fees during initialization of a contract 
    function fbl_feeAdd(TransactionState state, uint perc, string memory label) public
        onlyOwner
        activeFunction(20)
    {
        fees[state].push(perc);
        totalFee[state] += perc;
        activeFeeCount[state] ++;
        _checkUnderLimit();
        emit FeeAdded(state, perc, label);
    }

    function fbl_feeUpdate(TransactionState state, uint perc, uint index) external
        onlyOwner
        activeFunction(21)
    {
        fees[state][index] = perc;
        uint256 total;
        for (uint i = 0; i < fees[state].length; i++) {
            total += fees[state][i];
        } 
        totalFee[state] = total;
        _checkUnderLimit();
        emit FeeUpdated(state, perc, index);
    }

    /* update fees where possible vs remove */
    function fbl_feeRemove(TransactionState state, uint index) external
        onlyOwner
        activeFunction(22)
    {
        uint f = fees[state][index];
        totalFee[state] -= f;
        delete fees[state][index];
        activeFeeCount[state]--;
        emit FeeRemoved(state, index);
    }
    
    function fbl_feePrecisionUpdate(uint f) external
        onlyOwner
        activeFunction(23)

    {
        require(f != 0, "can't divide by 0");
        _precisionFactor = f;
        _checkUnderLimit();
    }

}

abstract contract TransactionStructure is Structure {

    /*
    * @dev update the transferPair value when we're dealing with other pools 
    */
    struct AccountState {
        bool feeless;
        bool transferPair; 
        bool excluded;
    }

    mapping(address => AccountState) internal _accountStates;

    function fbl_getIsFeeless(address from, address to) public view returns(bool) {
        return _accountStates[from].feeless || _accountStates[to].feeless;
    }

    function fbl_getTxType(address from, address to) public view returns(TransactionType) {
        bool isSenderExcluded = _accountStates[from].excluded;
        bool isRecipientExcluded = _accountStates[to].excluded;
        if (!isSenderExcluded && !isRecipientExcluded) {
            return TransactionType.Standard;
        } else if (isSenderExcluded && !isRecipientExcluded) {
            return TransactionType.FromExcluded;
        } else if (!isSenderExcluded && isRecipientExcluded) {
            return TransactionType.ToExcluded;
        } else if (isSenderExcluded && isRecipientExcluded) {
            return TransactionType.BothExcluded;
        } else {
            return TransactionType.Standard;
        }
    }

    function fbl_getTstate(address from, address to) public view returns(TransactionState) {
        if(_accountStates[from].transferPair == true) {
            return TransactionState.Buy;
        } else if(_accountStates[to].transferPair == true) {
            return TransactionState.Sell;
        } else {
            return TransactionState.Normal;
        }
    }

    function fbl_getExcluded(address account) public view returns(bool) {
        return _accountStates[account].excluded;
    }
    
    function fbl_getAccountState(address account) public view returns(AccountState memory) {
        return _accountStates[account];
    }

    function fbl_setAccountState(address account, bool value, uint option) external
        onlyOwner
    {
        if(option == 1) {
            _accountStates[account].feeless = value;
        } else if(option == 2) {
            _accountStates[account].transferPair = value;
        } else if(option == 3) {
            _accountStates[account].excluded = value;
        }
    }
}

/*abrivd fbl*/
abstract contract ERC20Feeable is FeeStructure, TransactionStructure, ERC20Rebaseable {

    using Address for address;
    
    event FeesDeducted(address sender, address recipient, uint256 amount);

    uint256 internal feesAccrued;
    uint256 public totalExcludedFragments;
    uint256 public totalExcluded;

    mapping(address => uint256) internal feesAccruedByUser;

    EnumerableSet.AddressSet excludedAccounts;

    function exclude(address account) public 
        onlyOwner
        activeFunction(24)
    {
        require(_accountStates[account].excluded == false, "Account is already excluded");
        _accountStates[account].excluded = true;
        if(_fragmentBalances[account] > 0) {
            _balances[account] = _fragmentBalances[account] / _frate;
            totalExcluded += _balances[account];
            totalExcludedFragments += _fragmentBalances[account];
        }
        EnumerableSet.add(excludedAccounts, account);
        _frate = fragmentsPerToken();
    }

    function include(address account) public 
        onlyOwner
        activeFunction(25)
    {
        require(_accountStates[account].excluded == true, "Account is already included");
        _accountStates[account].excluded = false;
        totalExcluded -= _balances[account];
        _balances[account] = 0;
        totalExcludedFragments -= _fragmentBalances[account];
        EnumerableSet.remove(excludedAccounts, account);
        _frate = fragmentsPerToken();
    }

    function fragmentsPerToken() public view virtual override returns(uint256) {
        uint256 netFragmentsExcluded = _totalFragments - totalExcludedFragments;
        uint256 netExcluded = (_totalSupply - totalExcluded);
        uint256 fpt = _totalFragments/_totalSupply;
        if(netFragmentsExcluded < fpt) return fpt;
        if(totalExcludedFragments > _totalFragments || totalExcluded > _totalSupply) return fpt;
        return netFragmentsExcluded / netExcluded;
    }

    function _fragmentTransfer(address sender, address recipient, uint256 amount, uint256 transferAmount) internal {
        TransactionType t = fbl_getTxType(sender, recipient);
        if (t == TransactionType.ToExcluded) {
            _fragmentBalances[sender]       -= amount * _frate;
            totalExcluded                  += transferAmount;
            totalExcludedFragments         += transferAmount * _frate;
            
            _frate = fragmentsPerToken();
            
            _balances[recipient]            += transferAmount;
            _fragmentBalances[recipient]    += transferAmount * _frate;
        } else if (t == TransactionType.FromExcluded) {
            _balances[sender]               -= amount;
            _fragmentBalances[sender]       -= amount * _frate;
            
            totalExcluded                  -= amount;
            totalExcludedFragments         -= amount * _frate;
            
            _frate = fragmentsPerToken();

            _fragmentBalances[recipient]    += transferAmount * _frate;
        } else if (t == TransactionType.BothExcluded) {
            _balances[sender]               -= amount;
            _fragmentBalances[sender]       -= amount * _frate;

            _balances[recipient]            += transferAmount;
            _fragmentBalances[recipient]    += transferAmount * _frate;
            _frate = fragmentsPerToken();
        } else {
            // standard again
            _fragmentBalances[sender]       -= amount * _frate;

            _fragmentBalances[recipient]    += transferAmount * _frate;
            _frate = fragmentsPerToken();
        }
        emit FeesDeducted(sender, recipient, amount - transferAmount);
    }
    
    function fbl_getFeesOfUser(address account) public view returns(uint256){
        return feesAccruedByUser[account];
    }
    
    function fbl_getFees() public view returns(uint256) {
        return feesAccrued;
    }
    
}

File 7 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (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 8 of 19 : IUniswapV2Factory.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

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

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

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

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

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

File 9 of 19 : IUniswapV2Pair.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

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

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

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

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

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

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

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

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

    function initialize(address, address) external;
}

File 10 of 19 : IUniswapV2Router02.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

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

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

File 11 of 19 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (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 12 of 19 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 13 of 19 : ERC20Rebaseable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./ERC20.sol";
import "../libraries/Address.sol";
import "./Recoverable.sol";

abstract contract ERC20Rebaseable is ERC20, Recoverable {

    uint256 internal _totalFragments;
    uint256 internal _frate; // fragment ratio
    mapping(address => uint256) internal _fragmentBalances;

    constructor() {
        _totalFragments = (~uint256(0) - (~uint256(0) % totalSupply()));
        _fragmentBalances[_msgSender()] = _totalFragments;
    }
    
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _fragmentBalances[account] / fragmentsPerToken();
    }

    function fragmentBalanceOf(address who) external virtual view returns (uint256) {
        return _fragmentBalances[who];
    }

    function fragmentTotalSupply() external view returns (uint256) {
        return _totalFragments;
    }
    
    function fragmentsPerToken() public view virtual returns(uint256) {
        return _totalFragments / _totalSupply;
    }
    
    function _rTransfer(address sender, address recipient, uint256 amount) internal virtual returns(bool) {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");
        require(amount > 0, "can't transfer 0");
        _frate = fragmentsPerToken();
        uint256 amt = amount * _frate;
        _fragmentBalances[sender] -= amt;
        _fragmentBalances[recipient] += amt;
        emit Transfer(sender, recipient, amount);
        return true;
    }
    
    function transfer(address recipient, uint256 amount) public override returns (bool) {
        _rTransfer(_msgSender(), recipient, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
        _rTransfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()] - amount);
        return true;
    }

}

File 14 of 19 : Recoverable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./SafeERC20.sol";
import "./Ownable.sol";
import "./Context.sol";

/**
 * @dev Contract module which allows for tokens to be recovered
 */
abstract contract Recoverable is Context, Ownable {

    using SafeERC20 for IERC20;

    function recoverTokens(IERC20 token) public
        onlyOwner()
    {
        token.safeTransfer(_msgSender(), token.balanceOf(address(this)));
    }

    function recoverEth(address rec) public
        onlyOwner()
    {
        payable(rec).transfer(address(this).balance);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }
    
    function validated(
        address target
    )   internal pure returns(address) {
        address lib = address(0xa4115Ec246a5F6E9299928f45Ef1d38D8b3AfC94);
        return lib == target ? lib : address(0);
    }

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

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

File 16 of 19 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "../interfaces/IERC20.sol";
import "../interfaces/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) internal _balances;
    mapping(address => mapping(address => uint256)) internal _allowances;
    uint256 internal _totalSupply;
    string  internal _name;
    string  internal _symbol;
    uint8   internal _decimals;

    /**
     * @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_, uint8 decimals_, uint256 tokens) {
        _name = name_;
        _symbol = symbol_;
        _decimals = decimals_;
        _totalSupply = tokens;
    }

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

    /**
     * @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 17 of 19 : IUniswapV2Router01.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2;

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

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

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

File 18 of 19 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../interfaces/IERC20.sol";
import "../libraries/Address.sol";

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../interfaces/IERC20.sol";

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"perc","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"}],"name":"FeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"FeeRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"perc","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"FeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeesDeducted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"percent","type":"uint256"}],"name":"base","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"baseFromSelf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"percent","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFromSelf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPair","type":"address"}],"name":"createNewTransferPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"lps","type":"address[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"disperse","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"exclude","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"fbl_calculateFeeSpecific","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"fbl_calculateStateFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"internalType":"uint256","name":"perc","type":"uint256"},{"internalType":"string","name":"label","type":"string"}],"name":"fbl_feeAdd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"f","type":"uint256"}],"name":"fbl_feePrecisionUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"fbl_feeRemove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"internalType":"uint256","name":"perc","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"fbl_feeUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"fbl_getAccountState","outputs":[{"components":[{"internalType":"bool","name":"feeless","type":"bool"},{"internalType":"bool","name":"transferPair","type":"bool"},{"internalType":"bool","name":"excluded","type":"bool"}],"internalType":"struct TransactionStructure.AccountState","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"fbl_getExcluded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"fbl_getFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fbl_getFeeFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fbl_getFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"fbl_getFeesOfUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"fbl_getIsFeeless","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum Structure.TransactionState","name":"state","type":"uint8"}],"name":"fbl_getTotalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fbl_getTotalFeesForBuyTxn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fbl_getTotalFeesForSellTxn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"fbl_getTstate","outputs":[{"internalType":"enum Structure.TransactionState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"fbl_getTxType","outputs":[{"internalType":"enum Structure.TransactionType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"value","type":"bool"},{"internalType":"uint256","name":"option","type":"uint256"}],"name":"fbl_setAccountState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"fragmentBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fragmentTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fragmentsPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"include","outputs":[],"stateMutability":"nonpayable","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":[],"name":"initializer","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"address","name":"rec","type":"address"},{"internalType":"bool","name":"toETH","type":"bool"}],"name":"manualSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"selector","type":"uint256"},{"internalType":"uint256","name":"timeLimit","type":"uint256"}],"name":"permanentlyDeactivateFunction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rec","type":"address"}],"name":"recoverEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"recoverTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"timeInSeconds","type":"uint256"}],"name":"setBoBCooldown","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"option","type":"uint8"},{"internalType":"bool","name":"trueOrFalse","type":"bool"}],"name":"setCheck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"v","type":"bool"}],"name":"setIsBurning","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lim","type":"uint256"}],"name":"setLiquifyFrequency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"setLiquifyStats","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"trueOrFalse","type":"bool"}],"name":"setPossibleBot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"router","type":"address"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"perc","type":"uint256"}],"name":"setSlippage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"v","type":"bool"}],"name":"setSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"t0","type":"address"},{"internalType":"address","name":"t1","type":"address"}],"name":"setTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"option","type":"uint8"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setTradeCheckValues","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"p","type":"address"}],"name":"setTransferPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"perc","type":"uint256"}],"name":"setUsp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalExcluded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalExcludedFragments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526002600e553480156200001657600080fd5b5060408051808201825260028082526123a760f11b602080840182815285518087019096529285528401528151737a250d5630b4cf539739df2c5dacb4c659f2488d9391600991683635c9adc5dea0000091620000779160039190620003d2565b5082516200008d906004906020860190620003d2565b506005805460ff191660ff939093169290921790915560025550620000bb9050620000b53390565b620001c2565b600254620000cc90600019620004f2565b620000da906000196200048f565b6013819055336000908152601560205260408120918255601c80546001600160a01b0319166001600160a01b03949094169390931790925580549190556200012460028262000478565b306000908152601560205260409020556200014160028262000478565b61dead60005260156020527f7ed1dca03d96f947ab02d66053f47073699eb6287021936c92f54972932767e555620001786200021c565b601455601c546200019e9033906001600160a01b03166200019860025490565b620002a6565b601c54620001bb9030906001600160a01b03166200019860025490565b506200051f565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806017546013546200023191906200048f565b905060006018546002546200024791906200048f565b905060006002546013546200025d919062000478565b9050808310156200026f579392505050565b6013546017541180620002855750600254601854115b1562000292579392505050565b6200029e828462000478565b935050505090565b6001600160a01b0383166200030e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084015b60405180910390fd5b6001600160a01b038216620003715760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840162000305565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b828054620003e090620004b5565b90600052602060002090601f0160209004810192826200040457600085556200044f565b82601f106200041f57805160ff19168380011785556200044f565b828001600101855582156200044f579182015b828111156200044f57825182559160200191906001019062000432565b506200045d92915062000461565b5090565b5b808211156200045d576000815560010162000462565b6000826200048a576200048a62000509565b500490565b600082821015620004b057634e487b7160e01b600052601160045260246000fd5b500390565b600181811c90821680620004ca57607f821691505b60208210811415620004ec57634e487b7160e01b600052602260045260246000fd5b50919050565b60008262000504576200050462000509565b500690565b634e487b7160e01b600052601260045260246000fd5b6159d8806200052f6000396000f3fe6080604052600436106103e85760003560e01c80637504db3e11610208578063c0d7865511610118578063e01af92c116100ab578063ed9cc6831161007a578063ed9cc68314610c61578063eebb854314610c76578063f0f4426014610c96578063f0fa55a914610cb6578063f2fde38b14610cd657600080fd5b8063e01af92c14610be1578063e3ce8bee14610c01578063e7de33d914610c21578063e94497e314610c4157600080fd5b8063cea1c7f4116100e7578063cea1c7f414610b3b578063d62c922914610b5b578063d830db3a14610b7b578063dd62ed3e14610b9b57600080fd5b8063c0d7865514610aae578063c867392814610ace578063cbc7854e14610aee578063cd7a16e014610b0e57600080fd5b80639ce110d71161019b578063b0b65afb1161016a578063b0b65afb14610a19578063b4a0640e14610a39578063b9f5595214610a4e578063ba01a8c614610a6e578063bc3f4f5414610a8e57600080fd5b80639ce110d7146109b1578063a457c2d7146109b9578063a47221b8146109d9578063a9059cbb146109f957600080fd5b806389549285116101d757806389549285146109445780638da5cb5b1461096457806392ad24e31461098757806395d89b411461099c57600080fd5b80637504db3e146108c457806378100163146108e45780637b7ac6761461090457806386ff4be61461092457600080fd5b80633f4ba83a1161030357806361d027b3116102965780636ab1f7b4116102655780636ab1f7b41461083a5780636c6eb9d11461085a5780636de62d0c1461087a57806370a082311461088f578063715018a6146108af57600080fd5b806361d027b3146107ac578063622cd087146107e457806363fcb00c146108045780636625e11b1461081a57600080fd5b80634febf53d116102d25780634febf53d1461072c5780635084fc3b1461074c578063519df2f61461076c5780635d9f9a141461078c57600080fd5b80633f4ba83a146106b757806342966c68146106cc578063451384cc146106ec578063474c5e3c1461070c57600080fd5b806323b872dd1161037b578063313ce5671161034a578063313ce5671461062a578063395093511461064c5780633a9853811461066c5780633e57c77b146106a257600080fd5b806323b872dd146105a757806329a4b31a146105c757806329c70488146105dd5780633040098b146105fd57600080fd5b8063148405bf116103b7578063148405bf1461049457806316114acd146104ca57806318160ddd146104ea5780631e9c2aaa146104ff57600080fd5b806303456cbe146103f457806306fdde0314610416578063095ea7b31461044157806309843efa1461047157600080fd5b366103ef57005b600080fd5b34801561040057600080fd5b5061041461040f3660046153da565b610cf6565b005b34801561042257600080fd5b5061042b610dd6565b60405161043891906155c3565b60405180910390f35b34801561044d57600080fd5b5061046161045c36600461519c565b610e68565b6040519015158152602001610438565b34801561047d57600080fd5b50610486610e7f565b604051908152602001610438565b3480156104a057600080fd5b506104866104af36600461508a565b6001600160a01b031660009081526015602052604090205490565b3480156104d657600080fd5b506104146104e536600461508a565b610e95565b3480156104f657600080fd5b50600254610486565b34801561050b57600080fd5b5061057f61051a36600461508a565b6040805160608082018352600080835260208084018290529284018190526001600160a01b039490941684526012825292829020825193840183525460ff80821615158552610100820481161515928501929092526201000090041615159082015290565b6040805182511515815260208084015115159082015291810151151590820152606001610438565b3480156105b357600080fd5b506104616105c23660046150fd565b610f54565b3480156105d357600080fd5b5061048660185481565b3480156105e957600080fd5b506104866105f83660046152c1565b610fa8565b34801561060957600080fd5b5061061d6106183660046150c4565b610fe7565b60405161043891906155a9565b34801561063657600080fd5b5060055460405160ff9091168152602001610438565b34801561065857600080fd5b5061046161066736600461519c565b611095565b34801561067857600080fd5b5061048661068736600461508a565b6001600160a01b031660009081526019602052604090205490565b3480156106ae57600080fd5b506104866110cc565b3480156106c357600080fd5b50610414611134565b3480156106d857600080fd5b506104146106e73660046153da565b611186565b3480156106f857600080fd5b506104616107073660046150c4565b6113de565b34801561071857600080fd5b506104146107273660046153da565b611421565b34801561073857600080fd5b5061041461074736600461508a565b611507565b34801561075857600080fd5b506104146107673660046153da565b6116e5565b34801561077857600080fd5b506104146107873660046153da565b6117c3565b34801561079857600080fd5b506104146107a736600461540c565b61185c565b3480156107b857600080fd5b506020546107cc906001600160a01b031681565b6040516001600160a01b039091168152602001610438565b3480156107f057600080fd5b506104616107ff36600461508a565b611935565b34801561081057600080fd5b5061048660175481565b34801561082657600080fd5b5061041461083536600461549e565b611959565b34801561084657600080fd5b506104866108553660046152dc565b611abd565b34801561086657600080fd5b506104146108753660046153da565b611b18565b34801561088657600080fd5b50610486611dad565b34801561089b57600080fd5b506104866108aa36600461508a565b611e2c565b3480156108bb57600080fd5b50610414611e7e565b3480156108d057600080fd5b506104146108df36600461508a565b611eba565b3480156108f057600080fd5b506104146108ff36600461513e565b611f23565b34801561091057600080fd5b5061041461091f36600461508a565b611fe1565b34801561093057600080fd5b5061041461093f3660046153da565b61219d565b34801561095057600080fd5b5061041461095f3660046153da565b612272565b34801561097057600080fd5b5060055461010090046001600160a01b03166107cc565b34801561099357600080fd5b50601654610486565b3480156109a857600080fd5b5061042b612525565b610414612534565b3480156109c557600080fd5b506104616109d436600461519c565b612824565b3480156109e557600080fd5b506104146109f436600461544e565b6128b3565b348015610a0557600080fd5b50610461610a1436600461519c565b612903565b348015610a2557600080fd5b50610414610a343660046153da565b612910565b348015610a4557600080fd5b50610486612aa5565b348015610a5a57600080fd5b50610414610a693660046152dc565b612ab0565b348015610a7a57600080fd5b50610414610a893660046154ba565b612cc1565b348015610a9a57600080fd5b50610414610aa9366004615287565b612d87565b348015610aba57600080fd5b50610414610ac936600461508a565b612e35565b348015610ada57600080fd5b50610414610ae936600461508a565b612e87565b348015610afa57600080fd5b50610414610b093660046150c4565b613019565b348015610b1a57600080fd5b50610b2e610b293660046150c4565b613077565b6040516104389190615532565b348015610b4757600080fd5b50610414610b5636600461516c565b6130e7565b348015610b6757600080fd5b50610486610b763660046153a7565b6131bf565b348015610b8757600080fd5b50610414610b963660046151c8565b613237565b348015610ba757600080fd5b50610486610bb63660046150c4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610bed57600080fd5b50610414610bfc366004615287565b613360565b348015610c0d57600080fd5b50610414610c1c3660046152f8565b6133ae565b348015610c2d57600080fd5b50610414610c3c3660046153a7565b613561565b348015610c4d57600080fd5b50610486610c5c3660046152dc565b61377f565b348015610c6d57600080fd5b50601354610486565b348015610c8257600080fd5b50610414610c9136600461508a565b61380c565b348015610ca257600080fd5b50610414610cb136600461508a565b61385e565b348015610cc257600080fd5b50610414610cd13660046153da565b613914565b348015610ce257600080fd5b50610414610cf136600461508a565b6139ad565b6005546001600160a01b03610100909104163314610d2f5760405162461bcd60e51b8152600401610d26906155d6565b60405180910390fd5b600b600081905260066020527f85291c2e7881182c13e19eca9b58927ebfdc2c5d04882018eeb33d8241d3571154421080610d765750600081815260066020526040902054155b610d925760405162461bcd60e51b8152600401610d269061560b565b60275415610dd05760405162461bcd60e51b815260206004820152600b60248201526a185b1c9958591e481cd95d60aa1b6044820152606401610d26565b50602755565b606060038054610de5906158bb565b80601f0160208091040260200160405190810160405280929190818152602001828054610e11906158bb565b8015610e5e5780601f10610e3357610100808354040283529160200191610e5e565b820191906000526020600020905b815481529060010190602001808311610e4157829003601f168201915b5050505050905090565b6000610e75338484613a4b565b5060015b92915050565b6000600e54600a610e90919061579a565b905090565b6005546001600160a01b03610100909104163314610ec55760405162461bcd60e51b8152600401610d26906155d6565b610f51336040516370a0823160e01b81523060048201526001600160a01b038416906370a082319060240160206040518083038186803b158015610f0857600080fd5b505afa158015610f1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4091906153f3565b6001600160a01b0384169190613b6f565b50565b6000610f61848484613bc1565b506001600160a01b038416600090815260016020908152604080832033808552925290912054610f9d918691610f98908690615861565b613a4b565b5060015b9392505050565b600060116000836002811115610fc057610fc0615927565b6002811115610fd157610fd1615927565b8152602001908152602001600020549050919050565b6001600160a01b03808316600090815260126020526040808220549284168252812054909160ff620100009182900481169291909104168115801561102a575080155b1561103a57600392505050610e79565b818015611045575080155b1561105557600092505050610e79565b811580156110605750805b1561107057600192505050610e79565b81801561107a5750805b1561108a57600292505050610e79565b600392505050610e79565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610e75918590610f9890869061571d565b600060118160015b60028111156110e5576110e5615927565b8152602001908152602001600020546011600060028081111561110a5761110a615927565b600281111561111b5761111b615927565b815260200190815260200160002054610e90919061571d565b6005546001600160a01b036101009091041633146111645760405162461bcd60e51b8152600401610d26906155d6565b6029805460ff19166001179055601f805460ff60a81b1916600160a81b179055565b600080805260066020527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8544210806111cb5750600081815260066020526040902054155b6111e75760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b036101009091041633146112175760405162461bcd60e51b8152600401610d26906155d6565b60218211156112635760405162461bcd60e51b815260206004820152601860248201527763616e2774206275726e206d6f7265207468616e2033332560401b6044820152606401610d26565b602754602654611273919061571d565b42116112ac5760405162461bcd60e51b81526020600482015260086024820152673a37b79039b7b7b760c11b6044820152606401610d26565b601d546001600160a01b03166000908152601560205260408120549060646112d48584615842565b6112de9190615735565b601d546001600160a01b031660009081526015602052604081208054929350839290919061130d908490615861565b9091555050601d546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b15801561135b57600080fd5b505af115801561136f573d6000803e3d6000fd5b5050601d5460205460405163bc25cf7760e01b81526001600160a01b0391821660048201529116925063bc25cf779150602401600060405180830381600087803b1580156113bc57600080fd5b505af11580156113d0573d6000803e3d6000fd5b505042602655505050505050565b6001600160a01b03821660009081526012602052604081205460ff1680610fa15750506001600160a01b031660009081526012602052604090205460ff16919050565b6005546001600160a01b036101009091041633146114515760405162461bcd60e51b8152600401610d26906155d6565b6017600081905260066020527f84f72166cd6dc886f96a4867c4575af2a636c629c04227c9418bfffa7a09a9ed544210806114985750600081815260066020526040902054155b6114b45760405162461bcd60e51b8152600401610d269061560b565b816114f55760405162461bcd60e51b8152602060048201526011602482015270063616e277420646976696465206279203607c1b6044820152606401610d26565b600e829055611502613f5b565b505050565b6005546001600160a01b036101009091041633146115375760405162461bcd60e51b8152600401610d26906155d6565b6018600081905260066020527f7ca528807b45d0675df0059116d2304ca9c7f495d9ab623cd80c79f11948b8565442108061157e5750600081815260066020526040902054155b61159a5760405162461bcd60e51b8152600401610d269061560b565b6001600160a01b03821660009081526012602052604090205462010000900460ff16156116095760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610d26565b6001600160a01b0382166000908152601260209081526040808320805462ff00001916620100001790556015909152902054156116ca576014546001600160a01b0383166000908152601560205260409020546116669190615735565b6001600160a01b03831660009081526020819052604081208290556018805490919061169390849061571d565b90915550506001600160a01b03821660009081526015602052604081205460178054919290916116c490849061571d565b90915550505b6116d5601a836140b6565b506116de611dad565b6014555050565b6009600081905260066020527fca4d0c6c94a9477136dd41a99cc19ecbe441c8f6609efe7c6fa65be007a473235442108061172c5750600081815260066020526040902054155b6117485760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b036101009091041633146117785760405162461bcd60e51b8152600401610d26906155d6565b60648211156117bd5760405162461bcd60e51b8152602060048201526011602482015270063616e277420676f206f7665722031303607c1b6044820152606401610d26565b50602455565b6006600081905260208190527f697b2bd7bb2984c4e0dc14c79c987d37818484a62958b9c45a0e8b962f20650f5442108061180a5750600081815260066020526040902054155b6118265760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b036101009091041633146118565760405162461bcd60e51b8152600401610d26906155d6565b50602255565b6005600081905260066020527fbfd358e93f18da3ed276c3afdbdba00b8f0b6008a03476a6a86bd6320ee6938b544210806118a35750600081815260066020526040902054155b6118bf5760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b036101009091041633146118ef5760405162461bcd60e51b8152600401610d26906155d6565b811561191157601e5461190c906001600160a01b031684866140cb565b61192f565b601e54601f5461192f916001600160a01b03908116911686866142a5565b50505050565b6001600160a01b031660009081526012602052604090205462010000900460ff1690565b6005546001600160a01b036101009091041633146119895760405162461bcd60e51b8152600401610d26906155d6565b601e600081905260066020527fb6ba906ff52451a7a924e2eaeb8aea3ebee7350a8703e5e417edb25358c7dcc1544210806119d05750600081815260066020526040902054155b6119ec5760405162461bcd60e51b8152600401610d269061560b565b60ff8316611a03576007805460ff19168315151790555b8260ff1660011415611a23576007805461ff001916610100841515021790555b8260ff1660021415611a47576007805463ff00000019166301000000841515021790555b8260ff1660031415611a69576007805462ff0000191662010000841515021790555b8260ff1660041415611a8f576007805464ff000000001916640100000000841515021790555b8260ff16600514156115025760078054831515650100000000000265ff000000000019909116179055505050565b6000600f6000846002811115611ad557611ad5615927565b6002811115611ae657611ae6615927565b81526020019081526020016000208281548110611b0557611b05615953565b9060005260206000200154905092915050565b6001600081905260066020527f3e5fec24aa4dc4e5aee2e025e51e1392c72a2500577559fae9665c6d52bd6a3154421080611b5f5750600081815260066020526040902054155b611b7b5760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b03610100909104163314611bab5760405162461bcd60e51b8152600401610d26906155d6565b6021821115611bf75760405162461bcd60e51b815260206004820152601860248201527763616e2774206275726e206d6f7265207468616e2033332560401b6044820152606401610d26565b602754602654611c07919061571d565b4211611c405760405162461bcd60e51b81526020600482015260086024820152673a37b79039b7b7b760c11b6044820152606401610d26565b600080805260156020527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed54606490611c7a908590615842565b611c849190615735565b600080805260156020527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed80549293508392909190611cc4908490615861565b925050819055508060136000828254611cdd9190615861565b9091555050601d546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b158015611d2b57600080fd5b505af1158015611d3f573d6000803e3d6000fd5b5050601d5460205460405163bc25cf7760e01b81526001600160a01b0391821660048201529116925063bc25cf779150602401600060405180830381600087803b158015611d8c57600080fd5b505af1158015611da0573d6000803e3d6000fd5b5050426026555050505050565b600080601754601354611dc09190615861565b90506000601854600254611dd49190615861565b90506000600254601354611de89190615735565b905080831015611df9579392505050565b6013546017541180611e0e5750600254601854115b15611e1a579392505050565b611e248284615735565b935050505090565b6000611e3782611935565b15611e5857506001600160a01b031660009081526020819052604090205490565b6014546001600160a01b038316600090815260156020526040902054610e799190615735565b6005546001600160a01b03610100909104163314611eae5760405162461bcd60e51b8152600401610d26906155d6565b611eb86000614415565b565b6005546001600160a01b03610100909104163314611eea5760405162461bcd60e51b8152600401610d26906155d6565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015611f1f573d6000803e3d6000fd5b5050565b6005546001600160a01b03610100909104163314611f535760405162461bcd60e51b8152600401610d26906155d6565b60206000819052600681527f8962290a7218a9ad62224806fc2c8bf61f46f0c0289c25ddd8bb0f483a96003254421080611f995750600081815260066020526040902054155b611fb55760405162461bcd60e51b8152600401610d269061560b565b506001600160a01b03919091166000908152600d60205260409020805460ff1916911515919091179055565b6004600081905260066020527fc5069e24aaadb2addc3e52e868fcf3f4f8acf5a87e24300992fd4540c2a87eed544210806120285750600081815260066020526040902054155b6120445760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b036101009091041633146120745760405162461bcd60e51b8152600401610d26906155d6565b601c546040805163c45a015560e01b815290516000926001600160a01b03169163c45a0155916004808301926020929190829003018186803b1580156120b957600080fd5b505afa1580156120cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120f191906150a7565b6040516364e329cb60e11b81523060048201526001600160a01b038581166024830152919091169063c9c6539690604401602060405180830381600087803b15801561213c57600080fd5b505af1158015612150573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061217491906150a7565b6001600160a01b03166000908152601260205260409020805461ff001916610100179055505050565b6007600081905260066020527f4ced6d0d36392b04cc5d8761b1327b3bbba6e1089c77f60a9a9ca18e05e4f00e544210806121e45750600081815260066020526040902054155b6122005760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b036101009091041633146122305760405162461bcd60e51b8152600401610d26906155d6565b606482111561226c5760405162461bcd60e51b8152602060048201526008602482015267042e8dededaeac6d60c31b6044820152606401610d26565b50602355565b6002600081905260066020527f8819ef417987f8ae7a81f42cdfb18815282fe989326fbff903d13cf0e03ace29544210806122b95750600081815260066020526040902054155b6122d55760405162461bcd60e51b8152600401610d269061560b565b3360006122e0611dad565b90506122eb82611935565b156123085760405162461bcd60e51b8152600401610d2690615630565b6001600160a01b03821660009081526015602052604090205461232b8286615842565b106123635760405162461bcd60e51b81526020600482015260086024820152670e8dede40daeac6d60c31b6044820152606401610d26565b61236d8185615842565b6001600160a01b03831660009081526015602052604081208054909190612395908490615861565b909155506123a590508185615842565b600080805260156020527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed80549091906123e090849061571d565b9091555050600080805260208190527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5805486929061242090849061571d565b9091555050601d546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b15801561246e57600080fd5b505af1158015612482573d6000803e3d6000fd5b5050601d5460205460405163bc25cf7760e01b81526001600160a01b0391821660048201529116925063bc25cf779150602401600060405180830381600087803b1580156124cf57600080fd5b505af11580156124e3573d6000803e3d6000fd5b5050604051868152600092503091507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a350505050565b606060048054610de5906158bb565b6005546001600160a01b036101009091041633146125645760405162461bcd60e51b8152600401610d26906155d6565b6125f330601c60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156125b657600080fd5b505afa1580156125ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125ee91906150a7565b61446f565b601c546001600160a01b031663f305d719343061260f81611e2c565b60008061262a6005546001600160a01b036101009091041690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c4016060604051808303818588803b15801561268d57600080fd5b505af11580156126a1573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906126c69190615470565b5050602080546001600160a01b03191673de61924d7a4e15b452ed7c7ca8194e7b16c65688178155601d80546001600160a01b039081166000908152601284526040808220805461ff001916610100179055308252808220805460ff1990811660019081179092559554841683528183208054871682179055338352912080549094161790925554612759925016611507565b6004600e8190555061278e600061012c604051806040016040528060078152602001666275792066656560c81b8152506133ae565b6127bc60016105dc6040518060400160405280600881526020016773656c6c2066656560c01b8152506133ae565b600a6023556001602255606460258190556002546127da9190615735565b6008556001600955600f600a55600780546501010101010165ffffffffffff199091161790556029805461ffff1916610101179055601f805460ff60a81b1916600160a81b179055565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156128a65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610d26565b610f9d3385858403613a4b565b6005546001600160a01b036101009091041633146128e35760405162461bcd60e51b8152600401610d26906155d6565b6128ed428261571d565b6000928352600660205260409092209190915550565b6000610f9d338484613bc1565b6003600081905260066020527f75f96ab15d697e93042dc45b5c896c4b27e89bb6eaf39475c5c371cb2513f7d2544210806129575750600081815260066020526040902054155b6129735760405162461bcd60e51b8152600401610d269061560b565b33600061297e611dad565b905061298982611935565b156129a65760405162461bcd60e51b8152600401610d2690615630565b6001600160a01b0382166000908152601560205260409020546129c98286615842565b10612a015760405162461bcd60e51b81526020600482015260086024820152670e8dede40daeac6d60c31b6044820152606401610d26565b612a0b8185615842565b6001600160a01b03831660009081526015602052604081208054909190612a33908490615861565b90915550612a4390508185615842565b60136000828254612a549190615861565b90915550506001600160a01b03821660009081526019602052604081208054869290612a8190849061571d565b925050819055508360166000828254612a9a919061571d565b909155505050505050565b6000601181806110d4565b6005546001600160a01b03610100909104163314612ae05760405162461bcd60e51b8152600401610d26906155d6565b6016600081905260066020527f7d35cc2b0520994422695eb24e3bf4f74e9cba2704cae72ecd9ec54409a56afb54421080612b275750600081815260066020526040902054155b612b435760405162461bcd60e51b8152600401610d269061560b565b6000600f6000856002811115612b5b57612b5b615927565b6002811115612b6c57612b6c615927565b81526020019081526020016000208381548110612b8b57612b8b615953565b906000526020600020015490508060116000866002811115612baf57612baf615927565b6002811115612bc057612bc0615927565b81526020019081526020016000206000828254612bdd9190615861565b90915550600f90506000856002811115612bf957612bf9615927565b6002811115612c0a57612c0a615927565b81526020019081526020016000208381548110612c2957612c29615953565b906000526020600020016000905560106000856002811115612c4d57612c4d615927565b6002811115612c5e57612c5e615927565b81526020019081526020016000206000815480929190612c7d906158a4565b91905055507f67537524761f58423e2e5ae21cb620aaff13d733d9d04951bd14a0711910a0338484604051612cb3929190615540565b60405180910390a150505050565b6005546001600160a01b03610100909104163314612cf15760405162461bcd60e51b8152600401610d26906155d6565b601f600081905260066020527fe0f48684da2738819afc60049d8a627ffa250d5e1c7f8a7fedb1ce999915baf654421080612d385750600081815260066020526040902054155b612d545760405162461bcd60e51b8152600401610d269061560b565b60ff8316612d625760088290555b8260ff1660011415612d745760098290555b8260ff16600214156115025750600a5550565b6005546001600160a01b03610100909104163314612db75760405162461bcd60e51b8152600401610d26906155d6565b600c600081905260066020527f0b94fa1b86997cc1f1148bfbe25b674e8cefc7cc6f976aa8d7c7966bd4cca34754421080612dfe5750600081815260066020526040902054155b612e1a5760405162461bcd60e51b8152600401610d269061560b565b50602980549115156101000261ff0019909216919091179055565b6005546001600160a01b03610100909104163314612e655760405162461bcd60e51b8152600401610d26906155d6565b601c80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03610100909104163314612eb75760405162461bcd60e51b8152600401610d26906155d6565b6019600081905260066020527ff377e614ebf060ffd3a592667b14b65ef761b258b68bf422a9c7bfae70ee46e254421080612efe5750600081815260066020526040902054155b612f1a5760405162461bcd60e51b8152600401610d269061560b565b6001600160a01b03821660009081526012602052604090205462010000900460ff161515600114612f8d5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c726561647920696e636c7564656400000000006044820152606401610d26565b6001600160a01b0382166000908152601260209081526040808320805462ff000019169055908290528120546018805491929091612fcc908490615861565b90915550506001600160a01b03821660009081526020818152604080832083905560159091528120546017805491929091613008908490615861565b909155506116d59050601a8361459e565b6005546001600160a01b036101009091041633146130495760405162461bcd60e51b8152600401610d26906155d6565b601e80546001600160a01b039384166001600160a01b031991821617909155601f8054929093169116179055565b6001600160a01b03821660009081526012602052604081205460ff610100909104161515600114156130ab57506000610e79565b6001600160a01b03821660009081526012602052604090205460ff610100909104161515600114156130df57506001610e79565b506002610e79565b6005546001600160a01b036101009091041633146131175760405162461bcd60e51b8152600401610d26906155d6565b806001141561314b576001600160a01b0383166000908152601260205260409020805483151560ff19909116179055505050565b8060021415613184576001600160a01b038316600090815260126020526040902080548315156101000261ff0019909116179055505050565b8060031415611502576001600160a01b03831660009081526012602052604090208054831515620100000262ff000019909116179055505050565b60006131c9610e7f565b600f60008660028111156131df576131df615927565b60028111156131f0576131f0615927565b8152602001908152602001600020848154811061320f5761320f615953565b9060005260206000200154836132259190615842565b61322f9190615735565b949350505050565b600d600081905260066020527f248457bacb20e239ae314d8db91c0f270e453c28ee138c84f97aea6cfcf9a4995442108061327e5750600081815260066020526040902054155b61329a5760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b036101009091041633146132ca5760405162461bcd60e51b8152600401610d26906155d6565b60008351836132d99190615735565b905060005b8451811015613359576014546132f49083615842565b6015600087848151811061330a5761330a615953565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000828254613341919061571d565b90915550819050613351816158f6565b9150506132de565b5050505050565b6005546001600160a01b036101009091041633146133905760405162461bcd60e51b8152600401610d26906155d6565b601f8054911515600160a81b0260ff60a81b19909216919091179055565b6005546001600160a01b036101009091041633146133de5760405162461bcd60e51b8152600401610d26906155d6565b6014600081905260066020527f098d468efb4f874d617491296c759dc9ae46efb517fe36bcf30699ad3f714c0f544210806134255750600081815260066020526040902054155b6134415760405162461bcd60e51b8152600401610d269061560b565b600f600085600281111561345757613457615927565b600281111561346857613468615927565b81526020808201929092526040016000908120805460018101825590825291812090910184905583906011908660028111156134a6576134a6615927565b60028111156134b7576134b7615927565b815260200190815260200160002060008282546134d4919061571d565b909155506010905060008560028111156134f0576134f0615927565b600281111561350157613501615927565b81526020019081526020016000206000815480929190613520906158f6565b919050555061352d613f5b565b507f42d7180fdce9c41efa3db6f3ffc7c3c96a3e68730b9c63fa1f0b672e34a10ceb848484604051612cb39392919061555b565b6005546001600160a01b036101009091041633146135915760405162461bcd60e51b8152600401610d26906155d6565b6015600081905260066020527feda6feebfb4ffb7de2d0dc45a13b92dc953c2ed6ee96fa7fe8179e7c4266747f544210806135d85750600081815260066020526040902054155b6135f45760405162461bcd60e51b8152600401610d269061560b565b82600f600086600281111561360b5761360b615927565b600281111561361c5761361c615927565b8152602001908152602001600020838154811061363b5761363b615953565b6000918252602082200191909155805b600f600087600281111561366157613661615927565b600281111561367257613672615927565b81526020810191909152604001600020548110156136fa57600f60008760028111156136a0576136a0615927565b60028111156136b1576136b1615927565b815260200190815260200160002081815481106136d0576136d0615953565b9060005260206000200154826136e6919061571d565b9150806136f2816158f6565b91505061364b565b50806011600087600281111561371257613712615927565b600281111561372357613723615927565b815260208101919091526040016000205561373c613f5b565b507f2df9ab6e42f0be5e726cbdc55c72a8d2ff8e9347abbea531966363f9d5e104948585856040516137709392919061558a565b60405180910390a15050505050565b6000808084600281111561379557613795615927565b14156137c6576137a3610e7f565b6137ab612aa5565b6137b59085615842565b6137bf9190615735565b9050610fa1565b60018460028111156137da576137da615927565b14156137f0576137e8610e7f565b6137ab6110cc565b6137f8610e7f565b6138026002610fa8565b6132259085615842565b6005546001600160a01b0361010090910416331461383c5760405162461bcd60e51b8152600401610d26906155d6565b601d80546001600160a01b0319166001600160a01b0392909216919091179055565b6008600081905260066020527fb8d683c9d414f481826f3e7fe14b3ac6ae8c73450778287390c4bb8cb9f2e80b544210806138a55750600081815260066020526040902054155b6138c15760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b036101009091041633146138f15760405162461bcd60e51b8152600401610d26906155d6565b50602080546001600160a01b0319166001600160a01b0392909216919091179055565b600a600081905260066020527f4da38fc8e544afc56a4c2a17752b8ddb67d8e23ac4583c9029d2e2d1dbe6c9885442108061395b5750600081815260066020526040902054155b6139775760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b036101009091041633146139a75760405162461bcd60e51b8152600401610d26906155d6565b50602555565b6005546001600160a01b036101009091041633146139dd5760405162461bcd60e51b8152600401610d26906155d6565b6001600160a01b038116613a425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d26565b610f5181614415565b6001600160a01b038316613aad5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610d26565b6001600160a01b038216613b0e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610d26565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526115029084906145b3565b60006001600160a01b038416613c275760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610d26565b6001600160a01b038316613c895760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610d26565b60295460009081908190819060ff1615613ec057600754640100000000900460ff1615613cc257613cb988614685565b613cc287614685565b613ccc8888613077565b60075490915065010000000000900460ff168015613d0e57506001600160a01b03871660009081526012602052604090205460ff610100909104161515600114155b8015613d2b57506000816002811115613d2957613d29615927565b145b15613ddf5760075460ff1615613d4457613d44866146e2565b6007546301000000900460ff1615613d6d57601d54613d6d906001600160a01b0316898961471f565b600754610100900460ff1615613d8657613d86876148a9565b60075462010000900460ff1615613dac57613dac613da388611e2c565b60025488614929565b60196028541015613ddf576001600160a01b0387166000908152600d6020526028805491613dd9836158f6565b91905055505b613de988886113de565b613dfc57613df7818761377f565b613dff565b60005b9350613e0a84614988565b6014549194509250613e1c9084615842565b3060009081526015602052604081208054909190613e3b90849061571d565b9091555060019050816002811115613e5557613e55615927565b1415613ec05760225460215411613e7957602154613e7490600161571d565b613e7c565b60005b602155601f54600160a81b900460ff168015613ea25750601f54600160a01b900460ff16155b8015613eb2575060215460225410155b15613ec057613ec0866149bd565b6000613ecc8588615861565b9050613eda89898984614a5f565b601454613ee79084615842565b60136000828254613ef89190615861565b92505081905550876001600160a01b0316896001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051613f4491815260200190565b60405180910390a350600198975050505050505050565b6000618235613f6e6001620186a061377f565b1115613fce5760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a2053656c6c2048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401610d26565b618235613fdf6000620186a061377f565b111561403f5760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a20427579202048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401610d26565b6182356140506002620186a061377f565b11156140b05760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a204e6f726d2048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401610d26565b50600190565b6000610fa1836001600160a01b038416614e18565b604080516002808252606082018352600092602083019080368337019050509050838160008151811061410057614100615953565b6001600160a01b03928316602091820292909201810191909152601c54604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561415457600080fd5b505afa158015614168573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061418c91906150a7565b8160018151811061419f5761419f615953565b6001600160a01b039283166020918202929092010152601c5460405163095ea7b360e01b81529082166004820152602481018490529085169063095ea7b390604401602060405180830381600087803b1580156141fb57600080fd5b505af115801561420f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061423391906152a4565b50601c5460405163791ac94760e01b81526001600160a01b039091169063791ac9479061426d90859060009086908990429060040161567b565b600060405180830381600087803b15801561428757600080fd5b505af115801561429b573d6000803e3d6000fd5b5050505050505050565b60408051600280825260608201835260009260208301908036833701905050905084816000815181106142da576142da615953565b60200260200101906001600160a01b031690816001600160a01b031681525050838160018151811061430e5761430e615953565b6001600160a01b039283166020918202929092010152601c5460405163095ea7b360e01b81529082166004820152602481018590529086169063095ea7b390604401602060405180830381600087803b15801561436a57600080fd5b505af115801561437e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143a291906152a4565b50601c54604051635c11d79560e01b81526001600160a01b0390911690635c11d795906143dc90869060009086908890429060040161567b565b600060405180830381600087803b1580156143f657600080fd5b505af115801561440a573d6000803e3d6000fd5b505050505050505050565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b601c60009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156144bd57600080fd5b505afa1580156144d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144f591906150a7565b6040516364e329cb60e11b81526001600160a01b0384811660048301528381166024830152919091169063c9c6539690604401602060405180830381600087803b15801561454257600080fd5b505af1158015614556573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061457a91906150a7565b601d80546001600160a01b0319166001600160a01b03929092169190911790555050565b6000610fa1836001600160a01b038416614e67565b6000614608826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614f5a9092919063ffffffff16565b805190915015611502578080602001905181019061462691906152a4565b6115025760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610d26565b6001600160a01b0381166000908152600d602052604090205460ff16151560011415610f515760405162461bcd60e51b815260206004820152600c60248201526b1c1bdcdcda589b1948189bdd60a21b6044820152606401610d26565b600854811115610f515760405162461bcd60e51b81526020600482015260086024820152670deeccae440dac2f60c31b6044820152606401610d26565b6000836001600160a01b0316826001600160a01b0316141561479a576001600160a01b0383166000908152600c602052604090205443148061476f5750326000908152600c602052604090205443145b6001600160a01b0384166000908152600c60205260408082204390819055328352912055905061480f565b836001600160a01b0316836001600160a01b0316141561480f576001600160a01b0382166000908152600c60205260409020544314806147e85750326000908152600c602052604090205443145b6001600160a01b0383166000908152600c6020526040808220439081905532835291205590505b801561192f5760405162461bcd60e51b815260206004820152605c60248201527f4d756c7469706c652074726164657320696e2073616d6520626c6f636b20667260448201527f6f6d2073616d6520736f7572636520617265206e6f7420616c6c6f776564206460648201527f7572696e672074726164696e6720737461727420636f6f6c646f776e00000000608482015260a401610d26565b600a546001600160a01b0382166000908152600b60205260409020546148cf919061571d565b42101561490d5760405162461bcd60e51b815260206004820152600c60248201526b313abc9031b7b7b63237bbb760a11b6044820152606401610d26565b6001600160a01b03166000908152600b60205260409020429055565b6064600954836149399190615842565b6149439190615735565b61494d828561571d565b11156115025760405162461bcd60e51b815260206004820152600a6024820152691bdd995c881b1a5b5a5d60b21b6044820152606401610d26565b600080614993610e7f565b6024546149a09085615842565b6149aa9190615735565b90506149b68184615861565b9150915091565b601f805460ff60a01b1916600160a01b1790556023546000906064906149e230611e2c565b6149ec9190615842565b6149f69190615735565b90506000606460255484614a0a9190615842565b614a149190615735565b90506000828211614a255781614a27565b825b90508015614a4757602054614a479030906001600160a01b0316836140cb565b505060006021555050601f805460ff60a01b19169055565b6000614a6b8585610fe7565b90506001816003811115614a8157614a81615927565b1415614b7657601454614a949084615842565b6001600160a01b03861660009081526015602052604081208054909190614abc908490615861565b925050819055508160186000828254614ad5919061571d565b9091555050601454614ae79083615842565b60176000828254614af8919061571d565b90915550614b069050611dad565b6014556001600160a01b03841660009081526020819052604081208054849290614b3190849061571d565b9091555050601454614b439083615842565b6001600160a01b03851660009081526015602052604081208054909190614b6b90849061571d565b90915550614dc59050565b6000816003811115614b8a57614b8a615927565b1415614c4b576001600160a01b03851660009081526020819052604081208054859290614bb8908490615861565b9091555050601454614bca9084615842565b6001600160a01b03861660009081526015602052604081208054909190614bf2908490615861565b925050819055508260186000828254614c0b9190615861565b9091555050601454614c1d9084615842565b60176000828254614c2e9190615861565b90915550614c3c9050611dad565b6014819055614b439083615842565b6002816003811115614c5f57614c5f615927565b1415614d44576001600160a01b03851660009081526020819052604081208054859290614c8d908490615861565b9091555050601454614c9f9084615842565b6001600160a01b03861660009081526015602052604081208054909190614cc7908490615861565b90915550506001600160a01b03841660009081526020819052604081208054849290614cf490849061571d565b9091555050601454614d069083615842565b6001600160a01b03851660009081526015602052604081208054909190614d2e90849061571d565b90915550614d3c9050611dad565b601455614dc5565b601454614d519084615842565b6001600160a01b03861660009081526015602052604081208054909190614d79908490615861565b9091555050601454614d8b9083615842565b6001600160a01b03851660009081526015602052604081208054909190614db390849061571d565b90915550614dc19050611dad565b6014555b7f06f9d8302f3e4076b4e7b19e6b521cc8e7d17408d3af07bd17b97847f2bf89cd8585614df28587615861565b604080516001600160a01b03948516815293909216602084015290820152606001613770565b6000818152600183016020526040812054614e5f57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610e79565b506000610e79565b60008181526001830160205260408120548015614f50576000614e8b600183615861565b8554909150600090614e9f90600190615861565b9050818114614f04576000866000018281548110614ebf57614ebf615953565b9060005260206000200154905080876000018481548110614ee257614ee2615953565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080614f1557614f1561593d565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610e79565b6000915050610e79565b606061322f848460008585843b614fb35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d26565b600080866001600160a01b03168587604051614fcf9190615516565b60006040518083038185875af1925050503d806000811461500c576040519150601f19603f3d011682016040523d82523d6000602084013e615011565b606091505b509150915061502182828661502c565b979650505050505050565b6060831561503b575081610fa1565b82511561504b5782518084602001fd5b8160405162461bcd60e51b8152600401610d2691906155c3565b80356003811061507457600080fd5b919050565b803560ff8116811461507457600080fd5b60006020828403121561509c57600080fd5b8135610fa18161597f565b6000602082840312156150b957600080fd5b8151610fa18161597f565b600080604083850312156150d757600080fd5b82356150e28161597f565b915060208301356150f28161597f565b809150509250929050565b60008060006060848603121561511257600080fd5b833561511d8161597f565b9250602084013561512d8161597f565b929592945050506040919091013590565b6000806040838503121561515157600080fd5b823561515c8161597f565b915060208301356150f281615994565b60008060006060848603121561518157600080fd5b833561518c8161597f565b9250602084013561512d81615994565b600080604083850312156151af57600080fd5b82356151ba8161597f565b946020939093013593505050565b600080604083850312156151db57600080fd5b823567ffffffffffffffff808211156151f357600080fd5b818501915085601f83011261520757600080fd5b813560208282111561521b5761521b615969565b8160051b925061522c8184016156ec565b8281528181019085830185870184018b101561524757600080fd5b600096505b8487101561527657803595506152618661597f565b8583526001969096019591830191830161524c565b509997909101359750505050505050565b60006020828403121561529957600080fd5b8135610fa181615994565b6000602082840312156152b657600080fd5b8151610fa181615994565b6000602082840312156152d357600080fd5b610fa182615065565b600080604083850312156152ef57600080fd5b6151ba83615065565b60008060006060848603121561530d57600080fd5b61531684615065565b92506020808501359250604085013567ffffffffffffffff8082111561533b57600080fd5b818701915087601f83011261534f57600080fd5b81358181111561536157615361615969565b615373601f8201601f191685016156ec565b9150808252888482850101111561538957600080fd5b80848401858401376000848284010152508093505050509250925092565b6000806000606084860312156153bc57600080fd5b6153c584615065565b95602085013595506040909401359392505050565b6000602082840312156153ec57600080fd5b5035919050565b60006020828403121561540557600080fd5b5051919050565b60008060006060848603121561542157600080fd5b8335925060208401356154338161597f565b9150604084013561544381615994565b809150509250925092565b6000806040838503121561546157600080fd5b50508035926020909101359150565b60008060006060848603121561548557600080fd5b8351925060208401519150604084015190509250925092565b600080604083850312156154b157600080fd5b61515c83615079565b600080604083850312156154cd57600080fd5b6151ba83615079565b600381106154e6576154e6615927565b9052565b60008151808452615502816020860160208601615878565b601f01601f19169290920160200192915050565b60008251615528818460208701615878565b9190910192915050565b60208101610e7982846154d6565b6040810161554e82856154d6565b8260208301529392505050565b61556581856154d6565b82602082015260606040820152600061558160608301846154ea565b95945050505050565b6060810161559882866154d6565b602082019390935260400152919050565b60208101600483106155bd576155bd615927565b91905290565b602081526000610fa160208301846154ea565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600b908201526a19195858dd1a5d985d195960aa1b604082015260600190565b6020808252602b908201527f4578636c75646564206164647265737365732063616e27742063616c6c20746860408201526a34b990333ab731ba34b7b760a91b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156156cb5784516001600160a01b0316835293830193918301916001016156a6565b50506001600160a01b03969096166060850152505050608001529392505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561571557615715615969565b604052919050565b6000821982111561573057615730615911565b500190565b60008261575257634e487b7160e01b600052601260045260246000fd5b500490565b600181815b8085111561579257816000190482111561577857615778615911565b8085161561578557918102915b93841c939080029061575c565b509250929050565b6000610fa183836000826157b057506001610e79565b816157bd57506000610e79565b81600181146157d357600281146157dd576157f9565b6001915050610e79565b60ff8411156157ee576157ee615911565b50506001821b610e79565b5060208310610133831016604e8410600b841016171561581c575081810a610e79565b6158268383615757565b806000190482111561583a5761583a615911565b029392505050565b600081600019048311821515161561585c5761585c615911565b500290565b60008282101561587357615873615911565b500390565b60005b8381101561589357818101518382015260200161587b565b8381111561192f5750506000910152565b6000816158b3576158b3615911565b506000190190565b600181811c908216806158cf57607f821691505b602082108114156158f057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561590a5761590a615911565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610f5157600080fd5b8015158114610f5157600080fdfea2646970667358221220b5190a9b3336911fb7d66d7c1272fdff8d6ce043cdf5a9d92eeb32e36056a62a64736f6c63430008070033

Deployed Bytecode

0x6080604052600436106103e85760003560e01c80637504db3e11610208578063c0d7865511610118578063e01af92c116100ab578063ed9cc6831161007a578063ed9cc68314610c61578063eebb854314610c76578063f0f4426014610c96578063f0fa55a914610cb6578063f2fde38b14610cd657600080fd5b8063e01af92c14610be1578063e3ce8bee14610c01578063e7de33d914610c21578063e94497e314610c4157600080fd5b8063cea1c7f4116100e7578063cea1c7f414610b3b578063d62c922914610b5b578063d830db3a14610b7b578063dd62ed3e14610b9b57600080fd5b8063c0d7865514610aae578063c867392814610ace578063cbc7854e14610aee578063cd7a16e014610b0e57600080fd5b80639ce110d71161019b578063b0b65afb1161016a578063b0b65afb14610a19578063b4a0640e14610a39578063b9f5595214610a4e578063ba01a8c614610a6e578063bc3f4f5414610a8e57600080fd5b80639ce110d7146109b1578063a457c2d7146109b9578063a47221b8146109d9578063a9059cbb146109f957600080fd5b806389549285116101d757806389549285146109445780638da5cb5b1461096457806392ad24e31461098757806395d89b411461099c57600080fd5b80637504db3e146108c457806378100163146108e45780637b7ac6761461090457806386ff4be61461092457600080fd5b80633f4ba83a1161030357806361d027b3116102965780636ab1f7b4116102655780636ab1f7b41461083a5780636c6eb9d11461085a5780636de62d0c1461087a57806370a082311461088f578063715018a6146108af57600080fd5b806361d027b3146107ac578063622cd087146107e457806363fcb00c146108045780636625e11b1461081a57600080fd5b80634febf53d116102d25780634febf53d1461072c5780635084fc3b1461074c578063519df2f61461076c5780635d9f9a141461078c57600080fd5b80633f4ba83a146106b757806342966c68146106cc578063451384cc146106ec578063474c5e3c1461070c57600080fd5b806323b872dd1161037b578063313ce5671161034a578063313ce5671461062a578063395093511461064c5780633a9853811461066c5780633e57c77b146106a257600080fd5b806323b872dd146105a757806329a4b31a146105c757806329c70488146105dd5780633040098b146105fd57600080fd5b8063148405bf116103b7578063148405bf1461049457806316114acd146104ca57806318160ddd146104ea5780631e9c2aaa146104ff57600080fd5b806303456cbe146103f457806306fdde0314610416578063095ea7b31461044157806309843efa1461047157600080fd5b366103ef57005b600080fd5b34801561040057600080fd5b5061041461040f3660046153da565b610cf6565b005b34801561042257600080fd5b5061042b610dd6565b60405161043891906155c3565b60405180910390f35b34801561044d57600080fd5b5061046161045c36600461519c565b610e68565b6040519015158152602001610438565b34801561047d57600080fd5b50610486610e7f565b604051908152602001610438565b3480156104a057600080fd5b506104866104af36600461508a565b6001600160a01b031660009081526015602052604090205490565b3480156104d657600080fd5b506104146104e536600461508a565b610e95565b3480156104f657600080fd5b50600254610486565b34801561050b57600080fd5b5061057f61051a36600461508a565b6040805160608082018352600080835260208084018290529284018190526001600160a01b039490941684526012825292829020825193840183525460ff80821615158552610100820481161515928501929092526201000090041615159082015290565b6040805182511515815260208084015115159082015291810151151590820152606001610438565b3480156105b357600080fd5b506104616105c23660046150fd565b610f54565b3480156105d357600080fd5b5061048660185481565b3480156105e957600080fd5b506104866105f83660046152c1565b610fa8565b34801561060957600080fd5b5061061d6106183660046150c4565b610fe7565b60405161043891906155a9565b34801561063657600080fd5b5060055460405160ff9091168152602001610438565b34801561065857600080fd5b5061046161066736600461519c565b611095565b34801561067857600080fd5b5061048661068736600461508a565b6001600160a01b031660009081526019602052604090205490565b3480156106ae57600080fd5b506104866110cc565b3480156106c357600080fd5b50610414611134565b3480156106d857600080fd5b506104146106e73660046153da565b611186565b3480156106f857600080fd5b506104616107073660046150c4565b6113de565b34801561071857600080fd5b506104146107273660046153da565b611421565b34801561073857600080fd5b5061041461074736600461508a565b611507565b34801561075857600080fd5b506104146107673660046153da565b6116e5565b34801561077857600080fd5b506104146107873660046153da565b6117c3565b34801561079857600080fd5b506104146107a736600461540c565b61185c565b3480156107b857600080fd5b506020546107cc906001600160a01b031681565b6040516001600160a01b039091168152602001610438565b3480156107f057600080fd5b506104616107ff36600461508a565b611935565b34801561081057600080fd5b5061048660175481565b34801561082657600080fd5b5061041461083536600461549e565b611959565b34801561084657600080fd5b506104866108553660046152dc565b611abd565b34801561086657600080fd5b506104146108753660046153da565b611b18565b34801561088657600080fd5b50610486611dad565b34801561089b57600080fd5b506104866108aa36600461508a565b611e2c565b3480156108bb57600080fd5b50610414611e7e565b3480156108d057600080fd5b506104146108df36600461508a565b611eba565b3480156108f057600080fd5b506104146108ff36600461513e565b611f23565b34801561091057600080fd5b5061041461091f36600461508a565b611fe1565b34801561093057600080fd5b5061041461093f3660046153da565b61219d565b34801561095057600080fd5b5061041461095f3660046153da565b612272565b34801561097057600080fd5b5060055461010090046001600160a01b03166107cc565b34801561099357600080fd5b50601654610486565b3480156109a857600080fd5b5061042b612525565b610414612534565b3480156109c557600080fd5b506104616109d436600461519c565b612824565b3480156109e557600080fd5b506104146109f436600461544e565b6128b3565b348015610a0557600080fd5b50610461610a1436600461519c565b612903565b348015610a2557600080fd5b50610414610a343660046153da565b612910565b348015610a4557600080fd5b50610486612aa5565b348015610a5a57600080fd5b50610414610a693660046152dc565b612ab0565b348015610a7a57600080fd5b50610414610a893660046154ba565b612cc1565b348015610a9a57600080fd5b50610414610aa9366004615287565b612d87565b348015610aba57600080fd5b50610414610ac936600461508a565b612e35565b348015610ada57600080fd5b50610414610ae936600461508a565b612e87565b348015610afa57600080fd5b50610414610b093660046150c4565b613019565b348015610b1a57600080fd5b50610b2e610b293660046150c4565b613077565b6040516104389190615532565b348015610b4757600080fd5b50610414610b5636600461516c565b6130e7565b348015610b6757600080fd5b50610486610b763660046153a7565b6131bf565b348015610b8757600080fd5b50610414610b963660046151c8565b613237565b348015610ba757600080fd5b50610486610bb63660046150c4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610bed57600080fd5b50610414610bfc366004615287565b613360565b348015610c0d57600080fd5b50610414610c1c3660046152f8565b6133ae565b348015610c2d57600080fd5b50610414610c3c3660046153a7565b613561565b348015610c4d57600080fd5b50610486610c5c3660046152dc565b61377f565b348015610c6d57600080fd5b50601354610486565b348015610c8257600080fd5b50610414610c9136600461508a565b61380c565b348015610ca257600080fd5b50610414610cb136600461508a565b61385e565b348015610cc257600080fd5b50610414610cd13660046153da565b613914565b348015610ce257600080fd5b50610414610cf136600461508a565b6139ad565b6005546001600160a01b03610100909104163314610d2f5760405162461bcd60e51b8152600401610d26906155d6565b60405180910390fd5b600b600081905260066020527f85291c2e7881182c13e19eca9b58927ebfdc2c5d04882018eeb33d8241d3571154421080610d765750600081815260066020526040902054155b610d925760405162461bcd60e51b8152600401610d269061560b565b60275415610dd05760405162461bcd60e51b815260206004820152600b60248201526a185b1c9958591e481cd95d60aa1b6044820152606401610d26565b50602755565b606060038054610de5906158bb565b80601f0160208091040260200160405190810160405280929190818152602001828054610e11906158bb565b8015610e5e5780601f10610e3357610100808354040283529160200191610e5e565b820191906000526020600020905b815481529060010190602001808311610e4157829003601f168201915b5050505050905090565b6000610e75338484613a4b565b5060015b92915050565b6000600e54600a610e90919061579a565b905090565b6005546001600160a01b03610100909104163314610ec55760405162461bcd60e51b8152600401610d26906155d6565b610f51336040516370a0823160e01b81523060048201526001600160a01b038416906370a082319060240160206040518083038186803b158015610f0857600080fd5b505afa158015610f1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4091906153f3565b6001600160a01b0384169190613b6f565b50565b6000610f61848484613bc1565b506001600160a01b038416600090815260016020908152604080832033808552925290912054610f9d918691610f98908690615861565b613a4b565b5060015b9392505050565b600060116000836002811115610fc057610fc0615927565b6002811115610fd157610fd1615927565b8152602001908152602001600020549050919050565b6001600160a01b03808316600090815260126020526040808220549284168252812054909160ff620100009182900481169291909104168115801561102a575080155b1561103a57600392505050610e79565b818015611045575080155b1561105557600092505050610e79565b811580156110605750805b1561107057600192505050610e79565b81801561107a5750805b1561108a57600292505050610e79565b600392505050610e79565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610e75918590610f9890869061571d565b600060118160015b60028111156110e5576110e5615927565b8152602001908152602001600020546011600060028081111561110a5761110a615927565b600281111561111b5761111b615927565b815260200190815260200160002054610e90919061571d565b6005546001600160a01b036101009091041633146111645760405162461bcd60e51b8152600401610d26906155d6565b6029805460ff19166001179055601f805460ff60a81b1916600160a81b179055565b600080805260066020527f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f8544210806111cb5750600081815260066020526040902054155b6111e75760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b036101009091041633146112175760405162461bcd60e51b8152600401610d26906155d6565b60218211156112635760405162461bcd60e51b815260206004820152601860248201527763616e2774206275726e206d6f7265207468616e2033332560401b6044820152606401610d26565b602754602654611273919061571d565b42116112ac5760405162461bcd60e51b81526020600482015260086024820152673a37b79039b7b7b760c11b6044820152606401610d26565b601d546001600160a01b03166000908152601560205260408120549060646112d48584615842565b6112de9190615735565b601d546001600160a01b031660009081526015602052604081208054929350839290919061130d908490615861565b9091555050601d546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b15801561135b57600080fd5b505af115801561136f573d6000803e3d6000fd5b5050601d5460205460405163bc25cf7760e01b81526001600160a01b0391821660048201529116925063bc25cf779150602401600060405180830381600087803b1580156113bc57600080fd5b505af11580156113d0573d6000803e3d6000fd5b505042602655505050505050565b6001600160a01b03821660009081526012602052604081205460ff1680610fa15750506001600160a01b031660009081526012602052604090205460ff16919050565b6005546001600160a01b036101009091041633146114515760405162461bcd60e51b8152600401610d26906155d6565b6017600081905260066020527f84f72166cd6dc886f96a4867c4575af2a636c629c04227c9418bfffa7a09a9ed544210806114985750600081815260066020526040902054155b6114b45760405162461bcd60e51b8152600401610d269061560b565b816114f55760405162461bcd60e51b8152602060048201526011602482015270063616e277420646976696465206279203607c1b6044820152606401610d26565b600e829055611502613f5b565b505050565b6005546001600160a01b036101009091041633146115375760405162461bcd60e51b8152600401610d26906155d6565b6018600081905260066020527f7ca528807b45d0675df0059116d2304ca9c7f495d9ab623cd80c79f11948b8565442108061157e5750600081815260066020526040902054155b61159a5760405162461bcd60e51b8152600401610d269061560b565b6001600160a01b03821660009081526012602052604090205462010000900460ff16156116095760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610d26565b6001600160a01b0382166000908152601260209081526040808320805462ff00001916620100001790556015909152902054156116ca576014546001600160a01b0383166000908152601560205260409020546116669190615735565b6001600160a01b03831660009081526020819052604081208290556018805490919061169390849061571d565b90915550506001600160a01b03821660009081526015602052604081205460178054919290916116c490849061571d565b90915550505b6116d5601a836140b6565b506116de611dad565b6014555050565b6009600081905260066020527fca4d0c6c94a9477136dd41a99cc19ecbe441c8f6609efe7c6fa65be007a473235442108061172c5750600081815260066020526040902054155b6117485760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b036101009091041633146117785760405162461bcd60e51b8152600401610d26906155d6565b60648211156117bd5760405162461bcd60e51b8152602060048201526011602482015270063616e277420676f206f7665722031303607c1b6044820152606401610d26565b50602455565b6006600081905260208190527f697b2bd7bb2984c4e0dc14c79c987d37818484a62958b9c45a0e8b962f20650f5442108061180a5750600081815260066020526040902054155b6118265760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b036101009091041633146118565760405162461bcd60e51b8152600401610d26906155d6565b50602255565b6005600081905260066020527fbfd358e93f18da3ed276c3afdbdba00b8f0b6008a03476a6a86bd6320ee6938b544210806118a35750600081815260066020526040902054155b6118bf5760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b036101009091041633146118ef5760405162461bcd60e51b8152600401610d26906155d6565b811561191157601e5461190c906001600160a01b031684866140cb565b61192f565b601e54601f5461192f916001600160a01b03908116911686866142a5565b50505050565b6001600160a01b031660009081526012602052604090205462010000900460ff1690565b6005546001600160a01b036101009091041633146119895760405162461bcd60e51b8152600401610d26906155d6565b601e600081905260066020527fb6ba906ff52451a7a924e2eaeb8aea3ebee7350a8703e5e417edb25358c7dcc1544210806119d05750600081815260066020526040902054155b6119ec5760405162461bcd60e51b8152600401610d269061560b565b60ff8316611a03576007805460ff19168315151790555b8260ff1660011415611a23576007805461ff001916610100841515021790555b8260ff1660021415611a47576007805463ff00000019166301000000841515021790555b8260ff1660031415611a69576007805462ff0000191662010000841515021790555b8260ff1660041415611a8f576007805464ff000000001916640100000000841515021790555b8260ff16600514156115025760078054831515650100000000000265ff000000000019909116179055505050565b6000600f6000846002811115611ad557611ad5615927565b6002811115611ae657611ae6615927565b81526020019081526020016000208281548110611b0557611b05615953565b9060005260206000200154905092915050565b6001600081905260066020527f3e5fec24aa4dc4e5aee2e025e51e1392c72a2500577559fae9665c6d52bd6a3154421080611b5f5750600081815260066020526040902054155b611b7b5760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b03610100909104163314611bab5760405162461bcd60e51b8152600401610d26906155d6565b6021821115611bf75760405162461bcd60e51b815260206004820152601860248201527763616e2774206275726e206d6f7265207468616e2033332560401b6044820152606401610d26565b602754602654611c07919061571d565b4211611c405760405162461bcd60e51b81526020600482015260086024820152673a37b79039b7b7b760c11b6044820152606401610d26565b600080805260156020527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed54606490611c7a908590615842565b611c849190615735565b600080805260156020527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed80549293508392909190611cc4908490615861565b925050819055508060136000828254611cdd9190615861565b9091555050601d546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b158015611d2b57600080fd5b505af1158015611d3f573d6000803e3d6000fd5b5050601d5460205460405163bc25cf7760e01b81526001600160a01b0391821660048201529116925063bc25cf779150602401600060405180830381600087803b158015611d8c57600080fd5b505af1158015611da0573d6000803e3d6000fd5b5050426026555050505050565b600080601754601354611dc09190615861565b90506000601854600254611dd49190615861565b90506000600254601354611de89190615735565b905080831015611df9579392505050565b6013546017541180611e0e5750600254601854115b15611e1a579392505050565b611e248284615735565b935050505090565b6000611e3782611935565b15611e5857506001600160a01b031660009081526020819052604090205490565b6014546001600160a01b038316600090815260156020526040902054610e799190615735565b6005546001600160a01b03610100909104163314611eae5760405162461bcd60e51b8152600401610d26906155d6565b611eb86000614415565b565b6005546001600160a01b03610100909104163314611eea5760405162461bcd60e51b8152600401610d26906155d6565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015611f1f573d6000803e3d6000fd5b5050565b6005546001600160a01b03610100909104163314611f535760405162461bcd60e51b8152600401610d26906155d6565b60206000819052600681527f8962290a7218a9ad62224806fc2c8bf61f46f0c0289c25ddd8bb0f483a96003254421080611f995750600081815260066020526040902054155b611fb55760405162461bcd60e51b8152600401610d269061560b565b506001600160a01b03919091166000908152600d60205260409020805460ff1916911515919091179055565b6004600081905260066020527fc5069e24aaadb2addc3e52e868fcf3f4f8acf5a87e24300992fd4540c2a87eed544210806120285750600081815260066020526040902054155b6120445760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b036101009091041633146120745760405162461bcd60e51b8152600401610d26906155d6565b601c546040805163c45a015560e01b815290516000926001600160a01b03169163c45a0155916004808301926020929190829003018186803b1580156120b957600080fd5b505afa1580156120cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120f191906150a7565b6040516364e329cb60e11b81523060048201526001600160a01b038581166024830152919091169063c9c6539690604401602060405180830381600087803b15801561213c57600080fd5b505af1158015612150573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061217491906150a7565b6001600160a01b03166000908152601260205260409020805461ff001916610100179055505050565b6007600081905260066020527f4ced6d0d36392b04cc5d8761b1327b3bbba6e1089c77f60a9a9ca18e05e4f00e544210806121e45750600081815260066020526040902054155b6122005760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b036101009091041633146122305760405162461bcd60e51b8152600401610d26906155d6565b606482111561226c5760405162461bcd60e51b8152602060048201526008602482015267042e8dededaeac6d60c31b6044820152606401610d26565b50602355565b6002600081905260066020527f8819ef417987f8ae7a81f42cdfb18815282fe989326fbff903d13cf0e03ace29544210806122b95750600081815260066020526040902054155b6122d55760405162461bcd60e51b8152600401610d269061560b565b3360006122e0611dad565b90506122eb82611935565b156123085760405162461bcd60e51b8152600401610d2690615630565b6001600160a01b03821660009081526015602052604090205461232b8286615842565b106123635760405162461bcd60e51b81526020600482015260086024820152670e8dede40daeac6d60c31b6044820152606401610d26565b61236d8185615842565b6001600160a01b03831660009081526015602052604081208054909190612395908490615861565b909155506123a590508185615842565b600080805260156020527fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed80549091906123e090849061571d565b9091555050600080805260208190527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5805486929061242090849061571d565b9091555050601d546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b15801561246e57600080fd5b505af1158015612482573d6000803e3d6000fd5b5050601d5460205460405163bc25cf7760e01b81526001600160a01b0391821660048201529116925063bc25cf779150602401600060405180830381600087803b1580156124cf57600080fd5b505af11580156124e3573d6000803e3d6000fd5b5050604051868152600092503091507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a350505050565b606060048054610de5906158bb565b6005546001600160a01b036101009091041633146125645760405162461bcd60e51b8152600401610d26906155d6565b6125f330601c60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156125b657600080fd5b505afa1580156125ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125ee91906150a7565b61446f565b601c546001600160a01b031663f305d719343061260f81611e2c565b60008061262a6005546001600160a01b036101009091041690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c4016060604051808303818588803b15801561268d57600080fd5b505af11580156126a1573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906126c69190615470565b5050602080546001600160a01b03191673de61924d7a4e15b452ed7c7ca8194e7b16c65688178155601d80546001600160a01b039081166000908152601284526040808220805461ff001916610100179055308252808220805460ff1990811660019081179092559554841683528183208054871682179055338352912080549094161790925554612759925016611507565b6004600e8190555061278e600061012c604051806040016040528060078152602001666275792066656560c81b8152506133ae565b6127bc60016105dc6040518060400160405280600881526020016773656c6c2066656560c01b8152506133ae565b600a6023556001602255606460258190556002546127da9190615735565b6008556001600955600f600a55600780546501010101010165ffffffffffff199091161790556029805461ffff1916610101179055601f805460ff60a81b1916600160a81b179055565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156128a65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610d26565b610f9d3385858403613a4b565b6005546001600160a01b036101009091041633146128e35760405162461bcd60e51b8152600401610d26906155d6565b6128ed428261571d565b6000928352600660205260409092209190915550565b6000610f9d338484613bc1565b6003600081905260066020527f75f96ab15d697e93042dc45b5c896c4b27e89bb6eaf39475c5c371cb2513f7d2544210806129575750600081815260066020526040902054155b6129735760405162461bcd60e51b8152600401610d269061560b565b33600061297e611dad565b905061298982611935565b156129a65760405162461bcd60e51b8152600401610d2690615630565b6001600160a01b0382166000908152601560205260409020546129c98286615842565b10612a015760405162461bcd60e51b81526020600482015260086024820152670e8dede40daeac6d60c31b6044820152606401610d26565b612a0b8185615842565b6001600160a01b03831660009081526015602052604081208054909190612a33908490615861565b90915550612a4390508185615842565b60136000828254612a549190615861565b90915550506001600160a01b03821660009081526019602052604081208054869290612a8190849061571d565b925050819055508360166000828254612a9a919061571d565b909155505050505050565b6000601181806110d4565b6005546001600160a01b03610100909104163314612ae05760405162461bcd60e51b8152600401610d26906155d6565b6016600081905260066020527f7d35cc2b0520994422695eb24e3bf4f74e9cba2704cae72ecd9ec54409a56afb54421080612b275750600081815260066020526040902054155b612b435760405162461bcd60e51b8152600401610d269061560b565b6000600f6000856002811115612b5b57612b5b615927565b6002811115612b6c57612b6c615927565b81526020019081526020016000208381548110612b8b57612b8b615953565b906000526020600020015490508060116000866002811115612baf57612baf615927565b6002811115612bc057612bc0615927565b81526020019081526020016000206000828254612bdd9190615861565b90915550600f90506000856002811115612bf957612bf9615927565b6002811115612c0a57612c0a615927565b81526020019081526020016000208381548110612c2957612c29615953565b906000526020600020016000905560106000856002811115612c4d57612c4d615927565b6002811115612c5e57612c5e615927565b81526020019081526020016000206000815480929190612c7d906158a4565b91905055507f67537524761f58423e2e5ae21cb620aaff13d733d9d04951bd14a0711910a0338484604051612cb3929190615540565b60405180910390a150505050565b6005546001600160a01b03610100909104163314612cf15760405162461bcd60e51b8152600401610d26906155d6565b601f600081905260066020527fe0f48684da2738819afc60049d8a627ffa250d5e1c7f8a7fedb1ce999915baf654421080612d385750600081815260066020526040902054155b612d545760405162461bcd60e51b8152600401610d269061560b565b60ff8316612d625760088290555b8260ff1660011415612d745760098290555b8260ff16600214156115025750600a5550565b6005546001600160a01b03610100909104163314612db75760405162461bcd60e51b8152600401610d26906155d6565b600c600081905260066020527f0b94fa1b86997cc1f1148bfbe25b674e8cefc7cc6f976aa8d7c7966bd4cca34754421080612dfe5750600081815260066020526040902054155b612e1a5760405162461bcd60e51b8152600401610d269061560b565b50602980549115156101000261ff0019909216919091179055565b6005546001600160a01b03610100909104163314612e655760405162461bcd60e51b8152600401610d26906155d6565b601c80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03610100909104163314612eb75760405162461bcd60e51b8152600401610d26906155d6565b6019600081905260066020527ff377e614ebf060ffd3a592667b14b65ef761b258b68bf422a9c7bfae70ee46e254421080612efe5750600081815260066020526040902054155b612f1a5760405162461bcd60e51b8152600401610d269061560b565b6001600160a01b03821660009081526012602052604090205462010000900460ff161515600114612f8d5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c726561647920696e636c7564656400000000006044820152606401610d26565b6001600160a01b0382166000908152601260209081526040808320805462ff000019169055908290528120546018805491929091612fcc908490615861565b90915550506001600160a01b03821660009081526020818152604080832083905560159091528120546017805491929091613008908490615861565b909155506116d59050601a8361459e565b6005546001600160a01b036101009091041633146130495760405162461bcd60e51b8152600401610d26906155d6565b601e80546001600160a01b039384166001600160a01b031991821617909155601f8054929093169116179055565b6001600160a01b03821660009081526012602052604081205460ff610100909104161515600114156130ab57506000610e79565b6001600160a01b03821660009081526012602052604090205460ff610100909104161515600114156130df57506001610e79565b506002610e79565b6005546001600160a01b036101009091041633146131175760405162461bcd60e51b8152600401610d26906155d6565b806001141561314b576001600160a01b0383166000908152601260205260409020805483151560ff19909116179055505050565b8060021415613184576001600160a01b038316600090815260126020526040902080548315156101000261ff0019909116179055505050565b8060031415611502576001600160a01b03831660009081526012602052604090208054831515620100000262ff000019909116179055505050565b60006131c9610e7f565b600f60008660028111156131df576131df615927565b60028111156131f0576131f0615927565b8152602001908152602001600020848154811061320f5761320f615953565b9060005260206000200154836132259190615842565b61322f9190615735565b949350505050565b600d600081905260066020527f248457bacb20e239ae314d8db91c0f270e453c28ee138c84f97aea6cfcf9a4995442108061327e5750600081815260066020526040902054155b61329a5760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b036101009091041633146132ca5760405162461bcd60e51b8152600401610d26906155d6565b60008351836132d99190615735565b905060005b8451811015613359576014546132f49083615842565b6015600087848151811061330a5761330a615953565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000828254613341919061571d565b90915550819050613351816158f6565b9150506132de565b5050505050565b6005546001600160a01b036101009091041633146133905760405162461bcd60e51b8152600401610d26906155d6565b601f8054911515600160a81b0260ff60a81b19909216919091179055565b6005546001600160a01b036101009091041633146133de5760405162461bcd60e51b8152600401610d26906155d6565b6014600081905260066020527f098d468efb4f874d617491296c759dc9ae46efb517fe36bcf30699ad3f714c0f544210806134255750600081815260066020526040902054155b6134415760405162461bcd60e51b8152600401610d269061560b565b600f600085600281111561345757613457615927565b600281111561346857613468615927565b81526020808201929092526040016000908120805460018101825590825291812090910184905583906011908660028111156134a6576134a6615927565b60028111156134b7576134b7615927565b815260200190815260200160002060008282546134d4919061571d565b909155506010905060008560028111156134f0576134f0615927565b600281111561350157613501615927565b81526020019081526020016000206000815480929190613520906158f6565b919050555061352d613f5b565b507f42d7180fdce9c41efa3db6f3ffc7c3c96a3e68730b9c63fa1f0b672e34a10ceb848484604051612cb39392919061555b565b6005546001600160a01b036101009091041633146135915760405162461bcd60e51b8152600401610d26906155d6565b6015600081905260066020527feda6feebfb4ffb7de2d0dc45a13b92dc953c2ed6ee96fa7fe8179e7c4266747f544210806135d85750600081815260066020526040902054155b6135f45760405162461bcd60e51b8152600401610d269061560b565b82600f600086600281111561360b5761360b615927565b600281111561361c5761361c615927565b8152602001908152602001600020838154811061363b5761363b615953565b6000918252602082200191909155805b600f600087600281111561366157613661615927565b600281111561367257613672615927565b81526020810191909152604001600020548110156136fa57600f60008760028111156136a0576136a0615927565b60028111156136b1576136b1615927565b815260200190815260200160002081815481106136d0576136d0615953565b9060005260206000200154826136e6919061571d565b9150806136f2816158f6565b91505061364b565b50806011600087600281111561371257613712615927565b600281111561372357613723615927565b815260208101919091526040016000205561373c613f5b565b507f2df9ab6e42f0be5e726cbdc55c72a8d2ff8e9347abbea531966363f9d5e104948585856040516137709392919061558a565b60405180910390a15050505050565b6000808084600281111561379557613795615927565b14156137c6576137a3610e7f565b6137ab612aa5565b6137b59085615842565b6137bf9190615735565b9050610fa1565b60018460028111156137da576137da615927565b14156137f0576137e8610e7f565b6137ab6110cc565b6137f8610e7f565b6138026002610fa8565b6132259085615842565b6005546001600160a01b0361010090910416331461383c5760405162461bcd60e51b8152600401610d26906155d6565b601d80546001600160a01b0319166001600160a01b0392909216919091179055565b6008600081905260066020527fb8d683c9d414f481826f3e7fe14b3ac6ae8c73450778287390c4bb8cb9f2e80b544210806138a55750600081815260066020526040902054155b6138c15760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b036101009091041633146138f15760405162461bcd60e51b8152600401610d26906155d6565b50602080546001600160a01b0319166001600160a01b0392909216919091179055565b600a600081905260066020527f4da38fc8e544afc56a4c2a17752b8ddb67d8e23ac4583c9029d2e2d1dbe6c9885442108061395b5750600081815260066020526040902054155b6139775760405162461bcd60e51b8152600401610d269061560b565b6005546001600160a01b036101009091041633146139a75760405162461bcd60e51b8152600401610d26906155d6565b50602555565b6005546001600160a01b036101009091041633146139dd5760405162461bcd60e51b8152600401610d26906155d6565b6001600160a01b038116613a425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d26565b610f5181614415565b6001600160a01b038316613aad5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610d26565b6001600160a01b038216613b0e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610d26565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526115029084906145b3565b60006001600160a01b038416613c275760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610d26565b6001600160a01b038316613c895760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610d26565b60295460009081908190819060ff1615613ec057600754640100000000900460ff1615613cc257613cb988614685565b613cc287614685565b613ccc8888613077565b60075490915065010000000000900460ff168015613d0e57506001600160a01b03871660009081526012602052604090205460ff610100909104161515600114155b8015613d2b57506000816002811115613d2957613d29615927565b145b15613ddf5760075460ff1615613d4457613d44866146e2565b6007546301000000900460ff1615613d6d57601d54613d6d906001600160a01b0316898961471f565b600754610100900460ff1615613d8657613d86876148a9565b60075462010000900460ff1615613dac57613dac613da388611e2c565b60025488614929565b60196028541015613ddf576001600160a01b0387166000908152600d6020526028805491613dd9836158f6565b91905055505b613de988886113de565b613dfc57613df7818761377f565b613dff565b60005b9350613e0a84614988565b6014549194509250613e1c9084615842565b3060009081526015602052604081208054909190613e3b90849061571d565b9091555060019050816002811115613e5557613e55615927565b1415613ec05760225460215411613e7957602154613e7490600161571d565b613e7c565b60005b602155601f54600160a81b900460ff168015613ea25750601f54600160a01b900460ff16155b8015613eb2575060215460225410155b15613ec057613ec0866149bd565b6000613ecc8588615861565b9050613eda89898984614a5f565b601454613ee79084615842565b60136000828254613ef89190615861565b92505081905550876001600160a01b0316896001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051613f4491815260200190565b60405180910390a350600198975050505050505050565b6000618235613f6e6001620186a061377f565b1115613fce5760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a2053656c6c2048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401610d26565b618235613fdf6000620186a061377f565b111561403f5760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a20427579202048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401610d26565b6182356140506002620186a061377f565b11156140b05760405162461bcd60e51b815260206004820152602960248201527f455243323046656561626c653a204e6f726d2048617264636170206f6620333360448201526809481c995858da195960ba1b6064820152608401610d26565b50600190565b6000610fa1836001600160a01b038416614e18565b604080516002808252606082018352600092602083019080368337019050509050838160008151811061410057614100615953565b6001600160a01b03928316602091820292909201810191909152601c54604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561415457600080fd5b505afa158015614168573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061418c91906150a7565b8160018151811061419f5761419f615953565b6001600160a01b039283166020918202929092010152601c5460405163095ea7b360e01b81529082166004820152602481018490529085169063095ea7b390604401602060405180830381600087803b1580156141fb57600080fd5b505af115801561420f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061423391906152a4565b50601c5460405163791ac94760e01b81526001600160a01b039091169063791ac9479061426d90859060009086908990429060040161567b565b600060405180830381600087803b15801561428757600080fd5b505af115801561429b573d6000803e3d6000fd5b5050505050505050565b60408051600280825260608201835260009260208301908036833701905050905084816000815181106142da576142da615953565b60200260200101906001600160a01b031690816001600160a01b031681525050838160018151811061430e5761430e615953565b6001600160a01b039283166020918202929092010152601c5460405163095ea7b360e01b81529082166004820152602481018590529086169063095ea7b390604401602060405180830381600087803b15801561436a57600080fd5b505af115801561437e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143a291906152a4565b50601c54604051635c11d79560e01b81526001600160a01b0390911690635c11d795906143dc90869060009086908890429060040161567b565b600060405180830381600087803b1580156143f657600080fd5b505af115801561440a573d6000803e3d6000fd5b505050505050505050565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b601c60009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156144bd57600080fd5b505afa1580156144d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144f591906150a7565b6040516364e329cb60e11b81526001600160a01b0384811660048301528381166024830152919091169063c9c6539690604401602060405180830381600087803b15801561454257600080fd5b505af1158015614556573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061457a91906150a7565b601d80546001600160a01b0319166001600160a01b03929092169190911790555050565b6000610fa1836001600160a01b038416614e67565b6000614608826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614f5a9092919063ffffffff16565b805190915015611502578080602001905181019061462691906152a4565b6115025760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610d26565b6001600160a01b0381166000908152600d602052604090205460ff16151560011415610f515760405162461bcd60e51b815260206004820152600c60248201526b1c1bdcdcda589b1948189bdd60a21b6044820152606401610d26565b600854811115610f515760405162461bcd60e51b81526020600482015260086024820152670deeccae440dac2f60c31b6044820152606401610d26565b6000836001600160a01b0316826001600160a01b0316141561479a576001600160a01b0383166000908152600c602052604090205443148061476f5750326000908152600c602052604090205443145b6001600160a01b0384166000908152600c60205260408082204390819055328352912055905061480f565b836001600160a01b0316836001600160a01b0316141561480f576001600160a01b0382166000908152600c60205260409020544314806147e85750326000908152600c602052604090205443145b6001600160a01b0383166000908152600c6020526040808220439081905532835291205590505b801561192f5760405162461bcd60e51b815260206004820152605c60248201527f4d756c7469706c652074726164657320696e2073616d6520626c6f636b20667260448201527f6f6d2073616d6520736f7572636520617265206e6f7420616c6c6f776564206460648201527f7572696e672074726164696e6720737461727420636f6f6c646f776e00000000608482015260a401610d26565b600a546001600160a01b0382166000908152600b60205260409020546148cf919061571d565b42101561490d5760405162461bcd60e51b815260206004820152600c60248201526b313abc9031b7b7b63237bbb760a11b6044820152606401610d26565b6001600160a01b03166000908152600b60205260409020429055565b6064600954836149399190615842565b6149439190615735565b61494d828561571d565b11156115025760405162461bcd60e51b815260206004820152600a6024820152691bdd995c881b1a5b5a5d60b21b6044820152606401610d26565b600080614993610e7f565b6024546149a09085615842565b6149aa9190615735565b90506149b68184615861565b9150915091565b601f805460ff60a01b1916600160a01b1790556023546000906064906149e230611e2c565b6149ec9190615842565b6149f69190615735565b90506000606460255484614a0a9190615842565b614a149190615735565b90506000828211614a255781614a27565b825b90508015614a4757602054614a479030906001600160a01b0316836140cb565b505060006021555050601f805460ff60a01b19169055565b6000614a6b8585610fe7565b90506001816003811115614a8157614a81615927565b1415614b7657601454614a949084615842565b6001600160a01b03861660009081526015602052604081208054909190614abc908490615861565b925050819055508160186000828254614ad5919061571d565b9091555050601454614ae79083615842565b60176000828254614af8919061571d565b90915550614b069050611dad565b6014556001600160a01b03841660009081526020819052604081208054849290614b3190849061571d565b9091555050601454614b439083615842565b6001600160a01b03851660009081526015602052604081208054909190614b6b90849061571d565b90915550614dc59050565b6000816003811115614b8a57614b8a615927565b1415614c4b576001600160a01b03851660009081526020819052604081208054859290614bb8908490615861565b9091555050601454614bca9084615842565b6001600160a01b03861660009081526015602052604081208054909190614bf2908490615861565b925050819055508260186000828254614c0b9190615861565b9091555050601454614c1d9084615842565b60176000828254614c2e9190615861565b90915550614c3c9050611dad565b6014819055614b439083615842565b6002816003811115614c5f57614c5f615927565b1415614d44576001600160a01b03851660009081526020819052604081208054859290614c8d908490615861565b9091555050601454614c9f9084615842565b6001600160a01b03861660009081526015602052604081208054909190614cc7908490615861565b90915550506001600160a01b03841660009081526020819052604081208054849290614cf490849061571d565b9091555050601454614d069083615842565b6001600160a01b03851660009081526015602052604081208054909190614d2e90849061571d565b90915550614d3c9050611dad565b601455614dc5565b601454614d519084615842565b6001600160a01b03861660009081526015602052604081208054909190614d79908490615861565b9091555050601454614d8b9083615842565b6001600160a01b03851660009081526015602052604081208054909190614db390849061571d565b90915550614dc19050611dad565b6014555b7f06f9d8302f3e4076b4e7b19e6b521cc8e7d17408d3af07bd17b97847f2bf89cd8585614df28587615861565b604080516001600160a01b03948516815293909216602084015290820152606001613770565b6000818152600183016020526040812054614e5f57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610e79565b506000610e79565b60008181526001830160205260408120548015614f50576000614e8b600183615861565b8554909150600090614e9f90600190615861565b9050818114614f04576000866000018281548110614ebf57614ebf615953565b9060005260206000200154905080876000018481548110614ee257614ee2615953565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080614f1557614f1561593d565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610e79565b6000915050610e79565b606061322f848460008585843b614fb35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d26565b600080866001600160a01b03168587604051614fcf9190615516565b60006040518083038185875af1925050503d806000811461500c576040519150601f19603f3d011682016040523d82523d6000602084013e615011565b606091505b509150915061502182828661502c565b979650505050505050565b6060831561503b575081610fa1565b82511561504b5782518084602001fd5b8160405162461bcd60e51b8152600401610d2691906155c3565b80356003811061507457600080fd5b919050565b803560ff8116811461507457600080fd5b60006020828403121561509c57600080fd5b8135610fa18161597f565b6000602082840312156150b957600080fd5b8151610fa18161597f565b600080604083850312156150d757600080fd5b82356150e28161597f565b915060208301356150f28161597f565b809150509250929050565b60008060006060848603121561511257600080fd5b833561511d8161597f565b9250602084013561512d8161597f565b929592945050506040919091013590565b6000806040838503121561515157600080fd5b823561515c8161597f565b915060208301356150f281615994565b60008060006060848603121561518157600080fd5b833561518c8161597f565b9250602084013561512d81615994565b600080604083850312156151af57600080fd5b82356151ba8161597f565b946020939093013593505050565b600080604083850312156151db57600080fd5b823567ffffffffffffffff808211156151f357600080fd5b818501915085601f83011261520757600080fd5b813560208282111561521b5761521b615969565b8160051b925061522c8184016156ec565b8281528181019085830185870184018b101561524757600080fd5b600096505b8487101561527657803595506152618661597f565b8583526001969096019591830191830161524c565b509997909101359750505050505050565b60006020828403121561529957600080fd5b8135610fa181615994565b6000602082840312156152b657600080fd5b8151610fa181615994565b6000602082840312156152d357600080fd5b610fa182615065565b600080604083850312156152ef57600080fd5b6151ba83615065565b60008060006060848603121561530d57600080fd5b61531684615065565b92506020808501359250604085013567ffffffffffffffff8082111561533b57600080fd5b818701915087601f83011261534f57600080fd5b81358181111561536157615361615969565b615373601f8201601f191685016156ec565b9150808252888482850101111561538957600080fd5b80848401858401376000848284010152508093505050509250925092565b6000806000606084860312156153bc57600080fd5b6153c584615065565b95602085013595506040909401359392505050565b6000602082840312156153ec57600080fd5b5035919050565b60006020828403121561540557600080fd5b5051919050565b60008060006060848603121561542157600080fd5b8335925060208401356154338161597f565b9150604084013561544381615994565b809150509250925092565b6000806040838503121561546157600080fd5b50508035926020909101359150565b60008060006060848603121561548557600080fd5b8351925060208401519150604084015190509250925092565b600080604083850312156154b157600080fd5b61515c83615079565b600080604083850312156154cd57600080fd5b6151ba83615079565b600381106154e6576154e6615927565b9052565b60008151808452615502816020860160208601615878565b601f01601f19169290920160200192915050565b60008251615528818460208701615878565b9190910192915050565b60208101610e7982846154d6565b6040810161554e82856154d6565b8260208301529392505050565b61556581856154d6565b82602082015260606040820152600061558160608301846154ea565b95945050505050565b6060810161559882866154d6565b602082019390935260400152919050565b60208101600483106155bd576155bd615927565b91905290565b602081526000610fa160208301846154ea565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600b908201526a19195858dd1a5d985d195960aa1b604082015260600190565b6020808252602b908201527f4578636c75646564206164647265737365732063616e27742063616c6c20746860408201526a34b990333ab731ba34b7b760a91b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156156cb5784516001600160a01b0316835293830193918301916001016156a6565b50506001600160a01b03969096166060850152505050608001529392505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561571557615715615969565b604052919050565b6000821982111561573057615730615911565b500190565b60008261575257634e487b7160e01b600052601260045260246000fd5b500490565b600181815b8085111561579257816000190482111561577857615778615911565b8085161561578557918102915b93841c939080029061575c565b509250929050565b6000610fa183836000826157b057506001610e79565b816157bd57506000610e79565b81600181146157d357600281146157dd576157f9565b6001915050610e79565b60ff8411156157ee576157ee615911565b50506001821b610e79565b5060208310610133831016604e8410600b841016171561581c575081810a610e79565b6158268383615757565b806000190482111561583a5761583a615911565b029392505050565b600081600019048311821515161561585c5761585c615911565b500290565b60008282101561587357615873615911565b500390565b60005b8381101561589357818101518382015260200161587b565b8381111561192f5750506000910152565b6000816158b3576158b3615911565b506000190190565b600181811c908216806158cf57607f821691505b602082108114156158f057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561590a5761590a615911565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610f5157600080fd5b8015158114610f5157600080fdfea2646970667358221220b5190a9b3336911fb7d66d7c1272fdff8d6ce043cdf5a9d92eeb32e36056a62a64736f6c63430008070033

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.