ETH Price: $3,310.51 (-4.74%)

Token

ShieldSky Finance (SHIELD)
 

Overview

Max Total Supply

1,000,000,000 SHIELD

Holders

35

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

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:
ShieldSky

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 5 runs

Other Settings:
default evmVersion
File 1 of 14 : ShieldSky.sol
// SPDX-License-Identifier: none
pragma solidity ^0.8.19;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "./DividendTracker.sol"; 

contract ShieldSky is ERC20, Ownable  {    
    IUniswapV2Router02 public immutable uniswapV2Router;
    IDividendTracker public immutable dividendTracker;

    address public immutable uniswapV2Pair;
    address public marketingWallet;       

    bool private swapping;
    bool public limitsInEffect = true;
    bool public tradingActive = true;
    bool public swapEnabled = true;
    
    uint8 public buyTotalFees;
    uint8 public buyMarketingFee;
    uint8 public buyReflectionsFee;
    
    uint8 public sellTotalFees;
    uint8 public sellMarketingFee;
    uint8 public sellReflectionsFee;

    uint32 public gasForProcessingDividends; 
    
    uint256 public maxTransactionAmount;
    uint256 public swapTokensAtAmount;
    uint256 public swapMaxTokensAmount;
    uint256 public maxWalletAmount;
    
    uint256 public tokensForMarketing;
    uint256 public tokensForReflections;
    
    mapping (address => bool) public isExcludedFromFees;
    mapping (address => bool) public isExcludedMaxTransaction;
    mapping (address => bool) public automatedMarketMakerPairs;

    struct DeployArgs {
        string name; 
        string symbol; 
        string dtName; 
        string dtSymbol; 
        uint256 dtClaimWait;
        address marketingWallet;
        address uniswapV2Router;        
        uint8 buyMarketingFee; 
        uint8 buyReflectionsFee; 
        uint8 sellMarketingFee; 
        uint8 sellReflectionsFee;
        uint32 gasForProcessingDividends;
        uint256 maxWalletAmount;
        uint256 maxTransactionAmount;
        uint256 swapTokensAtAmount; 
        uint256 swapMaxTokensAmount;
        uint256 totalSupply;
    }

    constructor(
        DeployArgs memory args
    ) 
        ERC20(args.name, args.symbol)
    {
        uniswapV2Router = IUniswapV2Router02(args.uniswapV2Router); 
        uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());
        
        setAutomatedMarketMakerPair(uniswapV2Pair, true);

        dividendTracker = new DividendTracker(args.dtName, args.dtSymbol);                
        
        setDividendClaimWait(args.dtClaimWait);        
        setExcludedFromDividends(owner(), true);
        setExcludedFromDividends(uniswapV2Pair, true);
        
        setGasForProcessingDividends(args.gasForProcessingDividends);           
        
        setMarketingWallet(args.marketingWallet);     
        
        setExcludeFromFees(args.marketingWallet, true);
        setExcludeFromFees(address(this), true);
        setExcludeFromFees(address(0xdead), true);
        setExcludeFromFees(owner(), true);

        setExcludeFromMaxTransaction(args.uniswapV2Router, true);
        setExcludeFromMaxTransaction(uniswapV2Pair, true);
        setExcludeFromMaxTransaction(args.marketingWallet, true);
        setExcludeFromMaxTransaction(address(this), true);
        setExcludeFromMaxTransaction(address(0xdead), true);
        setExcludeFromMaxTransaction(owner(), true);

        _mint(owner(), args.totalSupply);  

        setMaxWalletAmount(args.maxWalletAmount);
        setMaxTransactionAmount(args.maxTransactionAmount);      
        setSwapTokensAtAmount(args.swapTokensAtAmount, args.swapMaxTokensAmount);

        setBuyFees(args.buyMarketingFee, args.buyReflectionsFee);
        setSellFees(args.sellMarketingFee, args.sellReflectionsFee);  
    }

    // --------------------- OWNER ------------------------

    function enableTrading() external onlyOwner {
        tradingActive = true;
        swapEnabled = true;
        emit TradingEnabled();
    }
    
    function removeLimits() external onlyOwner {
        limitsInEffect = false;
        emit LimitsRemoved();
    }

    function setDividendClaimWait(uint256 value) public onlyOwner {
        dividendTracker.setDividendClaimWait(value);      
        emit SetDividendClaimWait(value);
    }

    function setExcludedFromDividends(address account, bool state) public onlyOwner {
        dividendTracker.setExcludedFromDividends(account, state);       
        emit SetExcludeFromDividends(account, state);
    }

    function setSwapTokensAtAmount(uint256 value, uint256 maxValue) public onlyOwner {
        _checkAlreadySet(swapTokensAtAmount == value);
        require(value >= totalSupply() / 100000, "setSwapTokensAtAmount 1");
        require(value <= totalSupply() / 100, "setSwapTokensAtAmount 2");
        swapTokensAtAmount = value;
        require(value <= maxValue, "setSwapTokensAtAmount 3");
        swapMaxTokensAmount = maxValue;
        emit SetSwapTokensAtAmount(value);
    }
    
    function setGasForProcessingDividends(uint32 value) public onlyOwner {
        _checkAlreadySet(gasForProcessingDividends == value);
        require(value >= 100_000, "setGasForProcessingDividends 1");
        require(value <= 1_500_000, "setGasForProcessingDividends 2");
        gasForProcessingDividends = value;
        emit SetGasForProcessingDividends(value);
    }

    function setMaxTransactionAmount(uint256 value) public onlyOwner {
        _checkAlreadySet(maxTransactionAmount == value);
        require(value >= totalSupply() / 1000, "setMaxTransactionAmount");
        maxTransactionAmount = value;
        emit SetMaxTransactionAmount(value);
    }

    function setMaxWalletAmount(uint256 value) public onlyOwner {
        _checkAlreadySet(maxWalletAmount == value);
        require(value >= totalSupply() * 5 / 1000, "setMaxWalletAmount");
        maxWalletAmount = value;
        emit SetMaxWalletAmount(value);
    }
    
    function setExcludeFromMaxTransaction(address account, bool state) public onlyOwner {
        _checkAlreadySet(isExcludedMaxTransaction[account] == state);
        isExcludedMaxTransaction[account] = state;
        emit SetExcludeFromMaxTransaction(state);
    }
    
    // only use to disable contract sales if absolutely necessary (emergency use only)
    function setSwapEnabled(bool state) public onlyOwner(){
        _checkAlreadySet(swapEnabled == state);
        swapEnabled = state;
        emit SetSwapEnabled(state);
    }
    
    function setBuyFees(uint8 marketingFee_, uint8 reflectionsFee_) public onlyOwner {
        buyMarketingFee = marketingFee_;
        buyReflectionsFee = reflectionsFee_;
        buyTotalFees = buyMarketingFee + buyReflectionsFee;
        require(buyTotalFees <= 50, "setBuyFees");
        emit SetBuyFees(buyMarketingFee, buyReflectionsFee);
    }
    
    function setSellFees(uint8 marketingFee_, uint8 reflectionsFee_) public onlyOwner {
        sellMarketingFee = marketingFee_;
        sellReflectionsFee = reflectionsFee_;
        sellTotalFees = sellMarketingFee + sellReflectionsFee;
        require(sellTotalFees <= 99, "setSellFees");
        emit SetSellFees(buyMarketingFee, buyReflectionsFee);
    }

    function setExcludeFromFees(address account, bool state) public onlyOwner {
        _checkAlreadySet(isExcludedFromFees[account] == state);
        isExcludedFromFees[account] = state;
        emit SetExcludeFromFees(account, state);
    }

    function setAutomatedMarketMakerPair(address account, bool state) public onlyOwner {
        if (account == uniswapV2Pair && !state) {
            require(state, "setAutomatedMarketMakerPair");
        }
        _checkAlreadySet(automatedMarketMakerPairs[account] == state);
        automatedMarketMakerPairs[account] = state;
        emit SetAutomatedMarketMakerPair(account, state);        
    }

    function setMarketingWallet(address account) public onlyOwner {
        _checkAlreadySet(marketingWallet == account);
        marketingWallet = account;
        emit SetMarketingWallet(account);
    }

    // --------------------- INTERNAL ------------------------

    function _checkAlreadySet(bool result) internal pure {
        require(!result, "Already set");
    }
        
    function _transfer(address from, address to, uint256 amount) internal override {//
        if (amount == 0) return super._transfer(from, to, 0);
                
        if (limitsInEffect){
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0xdead) &&
                !swapping
            ){
                if (!tradingActive){
                    require(isExcludedFromFees[from] || isExcludedFromFees[to], "Trading is not active");
                }
                 
                // buy
                if (automatedMarketMakerPairs[from] && !isExcludedMaxTransaction[to]) {
                    require(amount <= maxTransactionAmount, "Buy amount exceeded");
                    require(amount + balanceOf(to) <= maxWalletAmount, "Max wallet exceeded");
                }
                
                // sell
                else if (automatedMarketMakerPairs[to] && !isExcludedMaxTransaction[from]) {
                    require(amount <= maxTransactionAmount, "Sell amount exceeded");
                } 
                else if (!isExcludedMaxTransaction[to]){
                    require(amount + balanceOf(to) <= maxWalletAmount, "Max wallet exceeded");
                }
            }
        }
               
        if (balanceOf(address(this)) >= swapTokensAtAmount && 
            swapEnabled &&
            !swapping &&
            !automatedMarketMakerPairs[from] &&
            !isExcludedFromFees[from] &&
            !isExcludedFromFees[to]
        ) {
            swapping = true;            
            _swapBack();
            swapping = false;
        }
        
        uint256 fees = 0;
        bool takeFee = !swapping;
        if (isExcludedFromFees[from] || isExcludedFromFees[to]) takeFee = false;
        
        if (takeFee){
            // sell
            if (sellTotalFees != 0 && 
                automatedMarketMakerPairs[to]
            ) {
                fees = amount * sellTotalFees / 100;
                tokensForReflections += fees * sellReflectionsFee / sellTotalFees;
                tokensForMarketing += fees * sellMarketingFee / sellTotalFees;
            }
            // buy
            else 
            if (buyTotalFees != 0 && 
                automatedMarketMakerPairs[from]
            ) {
                fees = amount * buyTotalFees / 100;
                tokensForReflections += fees * buyReflectionsFee / buyTotalFees;
                tokensForMarketing += fees * buyMarketingFee / buyTotalFees;
            }
            
            if (fees > 0) super._transfer(from, address(this), fees);
            
            amount -= fees;
        }

        super._transfer(from, to, amount);
       
		dividendTracker.setBalance(payable(from), balanceOf(from));    
        dividendTracker.setBalance(payable(to), balanceOf(to));
        
		if (!swapping) {
            (uint256 iterations, uint256 claims, uint256 lastProcessedIndex) = dividendTracker.process(gasForProcessingDividends);
			emit ProcessedDividends(iterations, claims, lastProcessedIndex);
        }
    }

    function _swapTokensForEth(uint256 tokenAmount) private {        
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

        _approve(address(this), address(uniswapV2Router), tokenAmount);
        
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );        
    }
    
    function _swapBack() private {
        uint256 amountToSwapForETH = balanceOf(address(this));
        uint256 totalTokensToSwap = tokensForReflections + tokensForMarketing;
                
        if (amountToSwapForETH == 0 || totalTokensToSwap == 0) return;
        
        if (amountToSwapForETH > swapMaxTokensAmount) amountToSwapForETH = swapMaxTokensAmount;
                        
        uint256 initialETHBalance = address(this).balance;
        _swapTokensForEth(amountToSwapForETH);         
        uint256 ethBalance = address(this).balance - initialETHBalance;
                       
        uint256 ethForReflections = ethBalance * tokensForReflections / totalTokensToSwap;
                
        tokensForMarketing = 0;
        tokensForReflections = 0;
        
        bool success;
		(success,) = address(dividendTracker).call{value: ethForReflections}("");
        (success,) = marketingWallet.call{value: address(this).balance}("");
    }

    receive() external payable { }
    
    // --------------------- EVENTS ------------------------
    event TradingEnabled();
    event LimitsRemoved();
    event SetMarketingWallet(address account);
    event SetSwapTokensAtAmount(uint256 value);
    event SetMaxTransactionAmount(uint256 value);
    event SetMaxWalletAmount(uint256 value);
    event SetExcludeFromMaxTransaction(bool state);
    event SetSwapEnabled(bool state);
    event SetBuyFees(uint8 buyMarketingFee, uint8 buyReflectionsFee);
    event SetSellFees(uint8 buyMarketingFee, uint8 buyReflectionsFee);
    event SetExcludeFromFees(address account, bool state);
    event SetAutomatedMarketMakerPair(address account, bool state);
    event SetGasForProcessingDividends(uint256 value);
    event SetExcludeFromDividends(address account, bool state);
    event SetDividendClaimWait(uint256 value);
    event ProcessedDividends(uint256 iterations, uint256 claims, uint256 lastProcessedIndex);
}

File 2 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 14 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _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;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

File 5 of 14 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

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

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

File 6 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

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

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

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

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

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

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

File 7 of 14 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/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;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    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));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    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");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 8 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 9 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 10 of 14 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

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

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

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

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

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

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

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

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

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

File 12 of 14 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

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

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

File 13 of 14 : DividendToken.sol
// SPDX-License-Identifier: none
pragma solidity ^0.8.19;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

// ------------------------------------- Context -------------------------------------------
contract DividendToken is ERC20 {
	event DividendsDistributed(
	   address indexed from,
	   uint256 weiAmount,
	   uint256 magnifiedDividendPerShare
	);

	/// @dev This event MUST emit when an address withdraws their dividend.
	/// @param to The address which withdraws ether from this contract.
	/// @param weiAmount The amount of withdrawn ether in wei.
	event DividendWithdrawn(
	   address indexed to,
	   uint256 weiAmount
	);

	event DividendReturn(
	   address indexed to,
	   uint256 weiAmount
	);

	// With `magnitude`, we can properly distribute dividends even if the amount of received ether is small.
	// For more discussion about choosing the value of `magnitude`,
	//  see https://github.com/ethereum/EIPs/issues/1726#issuecomment-472352728
	uint256 constant internal magnitude = 2**128;

	uint256 public magnifiedDividendPerShare;

	// About dividendCorrection:
	// If the token balance of a `_user` is never changed, the dividend of `_user` can be computed with:
	//   `dividendOf(_user) = dividendPerShare * balanceOf(_user)`.
	// When `balanceOf(_user)` is changed (via minting/burning/transferring tokens),
	//   `dividendOf(_user)` should not be changed,
	//   but the computed value of `dividendPerShare * balanceOf(_user)` is changed.
	// To keep the `dividendOf(_user)` unchanged, we add a correction term:
	//   `dividendOf(_user) = dividendPerShare * balanceOf(_user) + dividendCorrectionOf(_user)`,
	//   where `dividendCorrectionOf(_user)` is updated whenever `balanceOf(_user)` is changed:
	//   `dividendCorrectionOf(_user) = dividendPerShare * (old balanceOf(_user)) - (new balanceOf(_user))`.
	// So now `dividendOf(_user)` returns the same value before and after `balanceOf(_user)` is changed.
	mapping(address => int256) public magnifiedDividendCorrections;
	mapping(address => uint256) public withdrawnDividends;
	mapping(address => bool) public excludedAccounts;

	uint256 public totalDividendsDistributed;

	constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) {
	}

	/// @dev Distributes dividends whenever ether is paid to this contract.
	receive() external payable {
		distributeDividends();
	}

	/// @notice Distributes ether to token holders as dividends.
	/// @dev It reverts if the total supply of tokens is 0.
	/// It emits the `DividendsDistributed` event if the amount of received ether is greater than 0.
	/// About undistributed ether:
	///   In each distribution, there is a small amount of ether not distributed,
	///     the magnified amount of which is
	///     `(msg.value * magnitude) % totalSupply()`.
	///   With a well-chosen `magnitude`, the amount of undistributed ether
	///     (de-magnified) in a distribution can be less than 1 wei.
	///   We can actually keep track of the undistributed ether in a distribution
	///     and try to distribute it in the next distribution,
	///     but keeping track of such data on-chain costs much more than
	///     the saved ether, so we don't do that.
	function distributeDividends() public payable {
		require(totalSupply() != 0);

		if (msg.value != 0) {
			magnifiedDividendPerShare += msg.value * magnitude / totalSupply();
			emit DividendsDistributed(msg.sender, msg.value, magnifiedDividendPerShare);
			totalDividendsDistributed += msg.value;
		}
	}

	function returnDividends(uint256 amount) internal {
		if (amount != 0) {
			magnifiedDividendPerShare += amount * magnitude / totalSupply();
		}
	}

	function isExcluded(address account) public view returns (bool) {
		return excludedAccounts[account];
	}
	function _exclude(address account) internal {
		if (!excludedAccounts[account]) excludedAccounts[account] = true;
	}
	function _include(address account) internal {
        if (excludedAccounts[account]) excludedAccounts[account] = false;
	}

	/// @notice Withdraws the ether distributed to the sender.
	/// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
	function withdrawDividend() public { //
		//require(false);
		_withdrawDividendOfUser(payable(msg.sender));
	}

	/// @notice Withdraws the ether distributed to the sender.
	/// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
	function _withdrawDividendOfUser(address payable account) internal returns (uint256) {
		uint256 _withdrawableDividend = withdrawableDividendOf(account);
		if (_withdrawableDividend != 0) {
			withdrawnDividends[account] += _withdrawableDividend;
			
			if (!isExcluded(account)) {
				emit DividendWithdrawn(account, _withdrawableDividend);
				(bool success,) = account.call{ value: _withdrawableDividend, gas: 3000 }("");

				if (!success) {
					withdrawnDividends[account] -= _withdrawableDividend;
					return 0;
				}
				return _withdrawableDividend;
			} else {				
				returnDividends(_withdrawableDividend);
				emit DividendReturn(account, _withdrawableDividend);
			}
		}
		return 0;
	}


	/// @notice View the amount of dividend in wei that an address can withdraw.
	/// @param account The address of a token holder.
	/// @return The amount of dividend in wei that `account` can withdraw.
	function dividendOf(address account) public view returns(uint256) {
		return withdrawableDividendOf(account);
	}

	/// @notice View the amount of dividend in wei that an address can withdraw.
	/// @param account The address of a token holder.
	/// @return The amount of dividend in wei that `account` can withdraw.
	function withdrawableDividendOf(address account) public view returns(uint256) {
		return accumulativeDividendOf(account) - withdrawnDividends[account];
	}

	/// @notice View the amount of dividend in wei that an address has withdrawn.
	/// @param account The address of a token holder.
	/// @return The amount of dividend in wei that `account` has withdrawn.
	function withdrawnDividendOf(address account) public view returns(uint256) {
		return withdrawnDividends[account];
	}


	/// @notice View the amount of dividend in wei that an address has earned in total.
	/// @dev accumulativeDividendOf(account) = withdrawableDividendOf(account) + withdrawnDividendOf(account)
	/// = (magnifiedDividendPerShare * balanceOf(account) + magnifiedDividendCorrections[account]) / magnitude
	/// @param account The address of a token holder.
	/// @return The amount of dividend in wei that `account` has earned in total.
	function accumulativeDividendOf(address account) public view returns(uint256) {
		return uint256(int256(magnifiedDividendPerShare * balanceOf(account)) + magnifiedDividendCorrections[account]) / magnitude;
	}

	/// @dev Internal function that transfer tokens from one address to another.
	/// Update magnifiedDividendCorrections to keep dividends unchanged.
	/// @param from The address to transfer from.
	/// @param to The address to transfer to.
	/// @param value The amount to be transferred.
	function _transfer(address from, address to, uint256 value) internal virtual override {
		require(false);
		int256 _magCorrection = int256(magnifiedDividendPerShare * value);
		magnifiedDividendCorrections[from] += _magCorrection;
		magnifiedDividendCorrections[to] -= _magCorrection;
	}

	/// @dev Internal function that mints tokens to an account.
	/// Update magnifiedDividendCorrections to keep dividends unchanged.
	/// @param account The account that will receive the created tokens.
	/// @param value The amount that will be created.
	function _mint(address account, uint256 value) internal override {
		super._mint(account, value);
		magnifiedDividendCorrections[account] -= int256(magnifiedDividendPerShare * value);
	}

	/// @dev Internal function that burns an amount of the token of a given account.
	/// Update magnifiedDividendCorrections to keep dividends unchanged.
	/// @param account The account whose tokens will be burnt.
	/// @param value The amount that will be burnt.
	function _burn(address account, uint256 value) internal override {
		super._burn(account, value);
		magnifiedDividendCorrections[account] += int256(magnifiedDividendPerShare * value);
	}

	function _setBalance(address account, uint256 newBalance) internal {
		uint256 currentBalance = balanceOf(account);

		if (newBalance > currentBalance) {
			uint256 mintAmount = newBalance - currentBalance;
			_mint(account, mintAmount);
		} else if (newBalance < currentBalance) {
			uint256 burnAmount = currentBalance - newBalance;
			_burn(account, burnAmount);
		}
	}
}

File 14 of 14 : DividendTracker.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./DividendToken.sol";

interface IDividendTracker {
	function setExcludedFromDividends(address account, bool state) external;	
    function setBalance(address payable account, uint256 amount) external;
	function setDividendClaimWait(uint256 value) external;
	function process(uint256 gas) external returns (uint256, uint256, uint256);	
}

contract DividendTracker is IDividendTracker, DividendToken {
	using SafeERC20 for IERC20;

    IERC20 public immutable mainToken;
	
	struct Map {
        address[] keys;
        mapping(address => uint) indexOf;
        mapping(address => bool) inserted;
    }

    Map private tokenHoldersMap;
    uint256 public lastProcessedIndex;
	uint256 public claimWait;

    mapping (address => bool) public excludedFromDividends;
    mapping (address => uint256) public lastClaimTimes;
				
    constructor(
		string memory dtName_, 
		string memory dtSymbol_
	) 
        DividendToken(dtName_, dtSymbol_) 
    {
    	mainToken = IERC20(msg.sender);
    }

	// --------------------- MAIN TOKEN ------------------------
	modifier onlyMainToken() {
        require(_msgSender() == address(mainToken), "Not allowed");
        _;
    }	
    
    function setDividendClaimWait(uint256 value) public onlyMainToken {
    	_checkAlreadySet(claimWait == value);
		claimWait = value;
    }

    function setExcludedFromDividends(address account, bool state) public onlyMainToken {
    	_checkAlreadySet(excludedFromDividends[account] == state);
    	excludedFromDividends[account] = state;
		if (!state) {
			_processAccount(payable(account));
			_exclude(account);
			
			_setBalance(account, 0);		
			_tokenHoldersRemove(account);
		} 
    }

	function setBalance(address payable account, uint256 value) external onlyMainToken {
    	if (excludedFromDividends[account]) return;    		
		_tokenHoldersAdd(account);
		_setBalance(account, value);    		
		
		_processAccount(account);
		_include(account);	
    }

    // --------------------- VIEW ------------------------

    function getAccount(address account_) public view returns (
        address account,
        int256 index,
        int256 iterationsUntilProcessed,
        uint256 withdrawableDividends,
        uint256 totalDividends,
        uint256 lastClaimTime,
        uint256 nextClaimTime,
        uint256 secondsUntilAutoClaimAvailable
	) {
        account = account_;
        index = tokenHoldersGetIndexOfKey(account);
        iterationsUntilProcessed = -1;

        if (index >= 0) {
            if (uint256(index) > lastProcessedIndex) {
                iterationsUntilProcessed = index - int256(lastProcessedIndex);
            } else {
                uint256 processesUntilEndOfArray = tokenHoldersSize() > lastProcessedIndex ? tokenHoldersSize() - lastProcessedIndex : 0;
                iterationsUntilProcessed = index + int256(processesUntilEndOfArray);
            }
        }

        withdrawableDividends = withdrawableDividendOf(account);
        totalDividends = accumulativeDividendOf(account);
        lastClaimTime = lastClaimTimes[account];
        nextClaimTime = lastClaimTime > 0 ? lastClaimTime + claimWait : 0;
        secondsUntilAutoClaimAvailable = nextClaimTime > block.timestamp ? nextClaimTime - block.timestamp : 0;
    }

    function getAccountAtIndex(uint256 index) public view returns (address, int256, int256, uint256, uint256, uint256, uint256, uint256) {
    	if (index >= tokenHoldersSize()) {
            return (0x0000000000000000000000000000000000000000, -1, -1, 0, 0, 0, 0, 0);
        }
        address account = tokenHoldersGetKeyAtIndex(index);
        return getAccount(account);
    }

    // --------------------- PUBLIC ------------------------

	function process(uint256 gas) public returns (uint256, uint256, uint256) {
    	uint256 numberOfTokenHolders = tokenHoldersSize();

    	if (numberOfTokenHolders == 0) {
    		return (0, 0, lastProcessedIndex);
    	}

    	uint256 _lastProcessedIndex = lastProcessedIndex;
    	uint256 gasUsed = 0;
    	uint256 gasLeft = gasleft();
    	uint256 iterations = 0;
    	uint256 claims = 0;

    	while (gasUsed < gas && iterations < numberOfTokenHolders) {
    		_lastProcessedIndex++;
			if (_lastProcessedIndex >= tokenHoldersSize()) {
    			_lastProcessedIndex = 0;
    		}

    		address account = tokenHoldersMap.keys[_lastProcessedIndex];
			
			// check on every distribution is user still eligible
            bool canClaim = block.timestamp - lastClaimTimes[account] >= claimWait;							
			if (canClaim && _processAccount(payable(account))) claims++;					
									
			iterations++;

    		uint256 newGasLeft = gasleft();
    		if (gasLeft > newGasLeft) {
				uint256 iterationGas = gasLeft - newGasLeft;
    			gasUsed += iterationGas;				
    		}
			
    		gasLeft = newGasLeft;			
    	}

    	lastProcessedIndex = _lastProcessedIndex;
    	return (iterations, claims, lastProcessedIndex);
    }

    // --------------------- INTERNAL ------------------------

	function _processAccount(address payable account) internal returns (bool) {
		uint256 amount = _withdrawDividendOfUser(account);    	
		if (amount != 0) {
    		lastClaimTimes[account] = block.timestamp;
            return true;			
    	}
    	return false;
    }

    function _checkAlreadySet(bool result) internal pure {
        require(!result, "Already set");
    }
	
	// --------------------- HOLDERS MAP ------------------------
	
    function tokenHoldersGetIndexOfKey(address key) public view returns (int) {
        if (!tokenHoldersMap.inserted[key]) {
            return -1;
        }
        return int(tokenHoldersMap.indexOf[key]);
    }

    function tokenHoldersGetKeyAtIndex(uint index) public view returns (address) {
        return tokenHoldersMap.keys[index];
    }

    function tokenHoldersSize() public view returns (uint) {
        return tokenHoldersMap.keys.length;
    }

    function _tokenHoldersAdd(address key) internal {
		Map storage map = tokenHoldersMap;
        if (!map.inserted[key]) {
            map.inserted[key] = true;            
            map.indexOf[key] = map.keys.length;
            map.keys.push(key);
        } 
    }

    function _tokenHoldersRemove(address key) internal {
		Map storage map = tokenHoldersMap;
        if (!map.inserted[key]) {
            return;
        }

        delete map.inserted[key];

        uint index = map.indexOf[key];
        uint lastIndex = map.keys.length - 1;
        address lastKey = map.keys[lastIndex];

        map.indexOf[lastKey] = index;
        delete map.indexOf[key];

        map.keys[index] = lastKey;
        map.keys.pop();
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"dtName","type":"string"},{"internalType":"string","name":"dtSymbol","type":"string"},{"internalType":"uint256","name":"dtClaimWait","type":"uint256"},{"internalType":"address","name":"marketingWallet","type":"address"},{"internalType":"address","name":"uniswapV2Router","type":"address"},{"internalType":"uint8","name":"buyMarketingFee","type":"uint8"},{"internalType":"uint8","name":"buyReflectionsFee","type":"uint8"},{"internalType":"uint8","name":"sellMarketingFee","type":"uint8"},{"internalType":"uint8","name":"sellReflectionsFee","type":"uint8"},{"internalType":"uint32","name":"gasForProcessingDividends","type":"uint32"},{"internalType":"uint256","name":"maxWalletAmount","type":"uint256"},{"internalType":"uint256","name":"maxTransactionAmount","type":"uint256"},{"internalType":"uint256","name":"swapTokensAtAmount","type":"uint256"},{"internalType":"uint256","name":"swapMaxTokensAmount","type":"uint256"},{"internalType":"uint256","name":"totalSupply","type":"uint256"}],"internalType":"struct ShieldSky.DeployArgs","name":"args","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[],"name":"LimitsRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"iterations","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claims","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastProcessedIndex","type":"uint256"}],"name":"ProcessedDividends","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"buyMarketingFee","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"buyReflectionsFee","type":"uint8"}],"name":"SetBuyFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SetDividendClaimWait","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"SetExcludeFromDividends","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"SetExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"SetExcludeFromMaxTransaction","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SetGasForProcessingDividends","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"SetMarketingWallet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SetMaxTransactionAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SetMaxWalletAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"buyMarketingFee","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"buyReflectionsFee","type":"uint8"}],"name":"SetSellFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"SetSwapEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SetSwapTokensAtAmount","type":"event"},{"anonymous":false,"inputs":[],"name":"TradingEnabled","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":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyMarketingFee","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyReflectionsFee","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTotalFees","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dividendTracker","outputs":[{"internalType":"contract IDividendTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gasForProcessingDividends","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedMaxTransaction","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitsInEffect","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTransactionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"removeLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellMarketingFee","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellReflectionsFee","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellTotalFees","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"marketingFee_","type":"uint8"},{"internalType":"uint8","name":"reflectionsFee_","type":"uint8"}],"name":"setBuyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setDividendClaimWait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setExcludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setExcludeFromMaxTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setExcludedFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"value","type":"uint32"}],"name":"setGasForProcessingDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"setMarketingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setMaxTransactionAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setMaxWalletAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"marketingFee_","type":"uint8"},{"internalType":"uint8","name":"reflectionsFee_","type":"uint8"}],"name":"setSellFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"setSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"maxValue","type":"uint256"}],"name":"setSwapTokensAtAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapMaxTokensAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForMarketing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForReflections","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60e06040526006805462ffffff60a81b19166201010160a81b1790553480156200002857600080fd5b5060405162005e0438038062005e048339810160408190526200004b916200111a565b80516020820151600362000060838262001368565b5060046200006f828262001368565b5050506200008c62000086620003ec60201b60201c565b620003f0565b60c08101516001600160a01b031660808190526040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa158015620000db573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000101919062001434565b6001600160a01b031663c9c65396306080516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000151573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000177919062001434565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015620001c5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001eb919062001434565b6001600160a01b031660c08190526200020690600162000442565b806040015181606001516040516200021e9062000fcf565b6200022b92919062001487565b604051809103906000f08015801562000248573d6000803e3d6000fd5b506001600160a01b031660a0526080810151620002659062000558565b6200027b62000273620005ff565b60016200060e565b60c0516200028b9060016200060e565b6101608101516200029c90620006b1565b60a0810151620002ac90620007d3565b60a0810151620002be90600162000848565b620002cb30600162000848565b620002da61dead600162000848565b620002f0620002e8620005ff565b600162000848565b60c081015162000302906001620008d7565b60c05162000312906001620008d7565b60a081015162000324906001620008d7565b62000331306001620008d7565b6200034061dead6001620008d7565b620003566200034e620005ff565b6001620008d7565b6200037062000364620005ff565b61020083015162000967565b610180810151620003819062000a2a565b6101a0810151620003929062000ae6565b620003ae816101c00151826101e0015162000ba060201b60201c565b620003c98160e0015182610100015162000d1b60201b60201c565b620003e581610120015182610140015162000e1f60201b60201c565b506200155f565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200044c62000f24565b60c0516001600160a01b0316826001600160a01b03161480156200046e575080155b15620004c75780620004c75760405162461bcd60e51b815260206004820152601b60248201527f7365744175746f6d617465644d61726b65744d616b657250616972000000000060448201526064015b60405180910390fd5b6001600160a01b038216600090815260106020526040902054620004f49060ff1615158215151462000f89565b6001600160a01b03821660009081526010602052604090819020805460ff1916831515179055517fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab906200054c9084908490620014b9565b60405180910390a15050565b6200056262000f24565b60a051604051632ccc84af60e11b8152600481018390526001600160a01b0390911690635999095e90602401600060405180830381600087803b158015620005a957600080fd5b505af1158015620005be573d6000803e3d6000fd5b505050507f092d199477fd82ecdeb1008d445e68d316e378eb7137f873d73156f8e07c278a81604051620005f491815260200190565b60405180910390a150565b6005546001600160a01b031690565b6200061862000f24565b60a0516001600160a01b031663d429293b83836040518363ffffffff1660e01b81526004016200064a929190620014b9565b600060405180830381600087803b1580156200066557600080fd5b505af11580156200067a573d6000803e3d6000fd5b505050507fc1acab0dbe9a65466daf3111ea86891f8502751690852be913bbb729f0814b2782826040516200054c929190620014b9565b620006bb62000f24565b600754620006d49063ffffffff83811691161462000f89565b620186a08163ffffffff1610156200072f5760405162461bcd60e51b815260206004820152601e60248201527f736574476173466f7250726f63657373696e674469766964656e6473203100006044820152606401620004be565b6216e3608163ffffffff1611156200078a5760405162461bcd60e51b815260206004820152601e60248201527f736574476173466f7250726f63657373696e674469766964656e6473203200006044820152606401620004be565b6007805463ffffffff191663ffffffff83169081179091556040519081527f8cfadd37c23d646610dedbade9a4f217406de3dc8db84ef65ec97c8061f3077790602001620005f4565b620007dd62000f24565b600654620007f9906001600160a01b0383811691161462000f89565b600680546001600160a01b0319166001600160a01b0383169081179091556040519081527f1d5165cf8e89286f2d38f9d17d4f9b30a4197d38fd9dafde1d3bf78dbc7e49f090602001620005f4565b6200085262000f24565b6001600160a01b0382166000908152600e60205260409020546200087f9060ff1615158215151462000f89565b6001600160a01b0382166000908152600e602052604090819020805460ff1916831515179055517f3f3af5ad5225fea847fdb19fb8a94b09a585a081f88b02ea3d5cd792f0f242c7906200054c9084908490620014b9565b620008e162000f24565b6001600160a01b0382166000908152600f60205260409020546200090e9060ff1615158215151462000f89565b6001600160a01b0382166000908152600f6020908152604091829020805460ff191684151590811790915591519182527f287a6222bf95a4cad4c1d2c2811aa743d8015661270e11837b3f2967124fab3a91016200054c565b6001600160a01b038216620009bf5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620004be565b8060026000828254620009d39190620014ea565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b62000a3462000f24565b600b5462000a4490821462000f89565b6103e862000a5160025490565b62000a5e90600562001506565b62000a6a919062001520565b81101562000ab05760405162461bcd60e51b81526020600482015260126024820152711cd95d13585e15d85b1b195d105b5bdd5b9d60721b6044820152606401620004be565b600b8190556040518181527f0176e9211818debdc4483c2bb0972798b7eb106239c8e465d4f1cee4ce5ae6e790602001620005f4565b62000af062000f24565b60085462000b0090821462000f89565b6103e862000b0d60025490565b62000b19919062001520565b81101562000b6a5760405162461bcd60e51b815260206004820152601760248201527f7365744d61785472616e73616374696f6e416d6f756e740000000000000000006044820152606401620004be565b60088190556040518181527f97ab21c06137f3c46fb0fe64a6b691e86433e8aff6abc7fda74f6d23b3d1396190602001620005f4565b62000baa62000f24565b60095462000bba90831462000f89565b620186a062000bc860025490565b62000bd4919062001520565b82101562000c255760405162461bcd60e51b815260206004820152601760248201527f73657453776170546f6b656e734174416d6f756e7420310000000000000000006044820152606401620004be565b606462000c3160025490565b62000c3d919062001520565b82111562000c8e5760405162461bcd60e51b815260206004820152601760248201527f73657453776170546f6b656e734174416d6f756e7420320000000000000000006044820152606401620004be565b60098290558082111562000ce55760405162461bcd60e51b815260206004820152601760248201527f73657453776170546f6b656e734174416d6f756e7420330000000000000000006044820152606401620004be565b600a8190556040518281527f09e89af7cbd8410d0ad2a74ab3cc8d9ddeef8ab1177f0f8a1984d355bb9d78f1906020016200054c565b62000d2562000f24565b6006805461ffff60c81b1916600160c81b60ff858116820260ff60d01b191692909217600160d01b8584168102919091179384905562000d6f939081048316929190041662001543565b6006805460ff60c01b1916600160c01b60ff9384168102919091179182905560329104909116111562000dd25760405162461bcd60e51b815260206004820152600a6024820152697365744275794665657360b01b6044820152606401620004be565b6006546040805160ff600160c81b840481168252600160d01b90930490921660208301527f2d2ab4c2d91e66ada36dda6bf9ba09ab145d96744096b36fc2a8f67789e1043691016200054c565b62000e2962000f24565b6006805461ffff60e01b1916600160e01b60ff858116820260ff60e81b191692909217600160e81b8584168102919091179384905562000e73939081048316929190041662001543565b6006805460ff60d81b1916600160d81b60ff9384168102919091179182905560639104909116111562000ed75760405162461bcd60e51b815260206004820152600b60248201526a73657453656c6c4665657360a81b6044820152606401620004be565b6006546040805160ff600160c81b840481168252600160d01b90930490921660208301527f5a7362c0837834088d68cb475f360baf8b27f8e05a14d40064da6563927ade6a91016200054c565b3362000f2f620005ff565b6001600160a01b03161462000f875760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620004be565b565b801562000fc75760405162461bcd60e51b815260206004820152600b60248201526a105b1c9958591e481cd95d60aa1b6044820152606401620004be565b50565b505050565b611dd4806200403083390190565b634e487b7160e01b600052604160045260246000fd5b60405161022081016001600160401b038111828210171562001019576200101962000fdd565b60405290565b60005b838110156200103c57818101518382015260200162001022565b50506000910152565b600082601f8301126200105757600080fd5b81516001600160401b038082111562001074576200107462000fdd565b604051601f8301601f19908116603f011681019082821181831017156200109f576200109f62000fdd565b81604052838152866020858801011115620010b957600080fd5b620010cc8460208301602089016200101f565b9695505050505050565b80516001600160a01b0381168114620010ee57600080fd5b919050565b805160ff81168114620010ee57600080fd5b805163ffffffff81168114620010ee57600080fd5b6000602082840312156200112d57600080fd5b81516001600160401b03808211156200114557600080fd5b9083019061022082860312156200115b57600080fd5b6200116562000ff3565b8251828111156200117557600080fd5b620011838782860162001045565b8252506020830151828111156200119957600080fd5b620011a78782860162001045565b602083015250604083015182811115620011c057600080fd5b620011ce8782860162001045565b604083015250606083015182811115620011e757600080fd5b620011f58782860162001045565b606083015250608083015160808201526200121360a08401620010d6565b60a08201526200122660c08401620010d6565b60c08201526200123960e08401620010f3565b60e0820152610100915062001250828401620010f3565b82820152610120915062001266828401620010f3565b8282015261014091506200127c828401620010f3565b8282015261016091506200129282840162001105565b9181019190915261018082810151908201526101a080830151908201526101c080830151908201526101e0808301519082015261020091820151918101919091529392505050565b600181811c90821680620012ef57607f821691505b6020821081036200131057634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000fca57600081815260208120601f850160051c810160208610156200133f5750805b601f850160051c820191505b8181101562001360578281556001016200134b565b505050505050565b81516001600160401b0381111562001384576200138462000fdd565b6200139c81620013958454620012da565b8462001316565b602080601f831160018114620013d45760008415620013bb5750858301515b600019600386901b1c1916600185901b17855562001360565b600085815260208120601f198616915b828110156200140557888601518255948401946001909101908401620013e4565b5085821015620014245787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200144757600080fd5b6200145282620010d6565b9392505050565b60008151808452620014738160208601602086016200101f565b601f01601f19169290920160200192915050565b6040815260006200149c604083018562001459565b8281036020840152620014b0818562001459565b95945050505050565b6001600160a01b039290921682521515602082015260400190565b634e487b7160e01b600052601160045260246000fd5b80820180821115620015005762001500620014d4565b92915050565b8082028115828204841417620015005762001500620014d4565b6000826200153e57634e487b7160e01b600052601260045260246000fd5b500490565b60ff8181168382160190811115620015005762001500620014d4565b60805160a05160c051612a5b620015d56000396000818161049a0152610e850152600081816103d401528181610ca40152818161114401528181611eb401528181611f3c01528181611ff901526123570152600081816103060152818161246e0152818161252701526125630152612a5b6000f3fe6080604052600436106102535760003560e01c806306fdde031461025f578063095ea7b31461028a57806312611ae8146102ba578063145eec7a146102de5780631694505e146102f457806318160ddd146103355780631e293c101461034a5780631f3fed8f1461036c57806323b872dd1461038257806327a14fc2146103a25780632c1f5216146103c25780632c926ffc146103f6578063313ce5671461041657806331f4ee0314610438578063395093511461046857806349bd5a5e146104885780634a62bb65146104bc5780634fbee193146104dd5780635999095e1461050d57806359e1ee0d1461052d5780635d098b381461054e5780635dfba9001461056e5780636a486a8e1461058f5780636ddd1713146105b057806370a08231146105d1578063715018a6146105f1578063751039fc1461060657806375f0a8741461061b5780637a1cd8c51461063b5780637bce5a04146106655780638a8c523c146106865780638da5cb5b1461069b57806392136913146106b057806395d89b41146106d15780639a7a23d6146106e6578063a457c2d714610706578063a9059cbb14610726578063aa4bde2814610746578063b62496f51461075c578063bbc0c7421461078c578063c8c8ebe4146107ad578063c9700097146107c3578063d429293b146107e3578063d63cad2214610803578063d6ebafe114610823578063d85ba06314610843578063db9855e814610864578063dd62ed3e14610884578063e01af92c146108a4578063e2f45605146108c4578063f2fde38b146108da578063fa3d7fe6146108fa57600080fd5b3661025a57005b600080fd5b34801561026b57600080fd5b5061027461091a565b60405161028191906125d7565b60405180910390f35b34801561029657600080fd5b506102aa6102a536600461263a565b6109ac565b6040519015158152602001610281565b3480156102c657600080fd5b506102d0600d5481565b604051908152602001610281565b3480156102ea57600080fd5b506102d0600a5481565b34801561030057600080fd5b506103287f000000000000000000000000000000000000000000000000000000000000000081565b6040516102819190612666565b34801561034157600080fd5b506002546102d0565b34801561035657600080fd5b5061036a61036536600461267a565b6109c6565b005b34801561037857600080fd5b506102d0600c5481565b34801561038e57600080fd5b506102aa61039d366004612693565b610a7b565b3480156103ae57600080fd5b5061036a6103bd36600461267a565b610a9f565b3480156103ce57600080fd5b506103287f000000000000000000000000000000000000000000000000000000000000000081565b34801561040257600080fd5b5061036a6104113660046126d4565b610b4e565b34801561042257600080fd5b5060125b60405160ff9091168152602001610281565b34801561044457600080fd5b506102aa610453366004612701565b600f6020526000908152604090205460ff1681565b34801561047457600080fd5b506102aa61048336600461263a565b610c64565b34801561049457600080fd5b506103287f000000000000000000000000000000000000000000000000000000000000000081565b3480156104c857600080fd5b506006546102aa90600160a81b900460ff1681565b3480156104e957600080fd5b506102aa6104f8366004612701565b600e6020526000908152604090205460ff1681565b34801561051957600080fd5b5061036a61052836600461267a565b610c86565b34801561053957600080fd5b5060065461042690600160d01b900460ff1681565b34801561055a57600080fd5b5061036a610569366004612701565b610d39565b34801561057a57600080fd5b5060065461042690600160e81b900460ff1681565b34801561059b57600080fd5b5060065461042690600160d81b900460ff1681565b3480156105bc57600080fd5b506006546102aa90600160b81b900460ff1681565b3480156105dd57600080fd5b506102d06105ec366004612701565b610da6565b3480156105fd57600080fd5b5061036a610dc1565b34801561061257600080fd5b5061036a610dd5565b34801561062757600080fd5b50600654610328906001600160a01b031681565b34801561064757600080fd5b506007546106589063ffffffff1681565b604051610281919061271e565b34801561067157600080fd5b5060065461042690600160c81b900460ff1681565b34801561069257600080fd5b5061036a610e15565b3480156106a757600080fd5b50610328610e5d565b3480156106bc57600080fd5b5060065461042690600160e01b900460ff1681565b3480156106dd57600080fd5b50610274610e6c565b3480156106f257600080fd5b5061036a610701366004612744565b610e7b565b34801561071257600080fd5b506102aa61072136600461263a565b610f9f565b34801561073257600080fd5b506102aa61074136600461263a565b61101a565b34801561075257600080fd5b506102d0600b5481565b34801561076857600080fd5b506102aa610777366004612701565b60106020526000908152604090205460ff1681565b34801561079857600080fd5b506006546102aa90600160b01b900460ff1681565b3480156107b957600080fd5b506102d060085481565b3480156107cf57600080fd5b5061036a6107de36600461278a565b611028565b3480156107ef57600080fd5b5061036a6107fe366004612744565b611125565b34801561080f57600080fd5b5061036a61081e366004612744565b6111de565b34801561082f57600080fd5b5061036a61083e36600461278a565b611267565b34801561084f57600080fd5b5060065461042690600160c01b900460ff1681565b34801561087057600080fd5b5061036a61087f366004612744565b611365565b34801561089057600080fd5b506102d061089f3660046127b4565b6113f0565b3480156108b057600080fd5b5061036a6108bf3660046127ed565b61141b565b3480156108d057600080fd5b506102d060095481565b3480156108e657600080fd5b5061036a6108f5366004612701565b61148d565b34801561090657600080fd5b5061036a610915366004612808565b611506565b6060600380546109299061282a565b80601f01602080910402602001604051908101604052809291908181526020018280546109559061282a565b80156109a25780601f10610977576101008083540402835291602001916109a2565b820191906000526020600020905b81548152906001019060200180831161098557829003601f168201915b5050505050905090565b6000336109ba81858561165d565b60019150505b92915050565b6109ce611781565b6109db81600854146117e0565b6103e86109e760025490565b6109f1919061287a565b811015610a3f5760405162461bcd60e51b81526020600482015260176024820152761cd95d13585e151c985b9cd858dd1a5bdb905b5bdd5b9d604a1b60448201526064015b60405180910390fd5b60088190556040518181527f97ab21c06137f3c46fb0fe64a6b691e86433e8aff6abc7fda74f6d23b3d13961906020015b60405180910390a150565b600033610a8985828561181c565b610a94858585611896565b506001949350505050565b610aa7611781565b610ab481600b54146117e0565b6103e8610ac060025490565b610acb90600561289c565b610ad5919061287a565b811015610b195760405162461bcd60e51b81526020600482015260126024820152711cd95d13585e15d85b1b195d105b5bdd5b9d60721b6044820152606401610a36565b600b8190556040518181527f0176e9211818debdc4483c2bb0972798b7eb106239c8e465d4f1cee4ce5ae6e790602001610a70565b610b56611781565b600754610b6d9063ffffffff8381169116146117e0565b620186a08163ffffffff161015610bc65760405162461bcd60e51b815260206004820152601e60248201527f736574476173466f7250726f63657373696e674469766964656e6473203100006044820152606401610a36565b6216e3608163ffffffff161115610c1f5760405162461bcd60e51b815260206004820152601e60248201527f736574476173466f7250726f63657373696e674469766964656e6473203200006044820152606401610a36565b6007805463ffffffff191663ffffffff83161790556040517f8cfadd37c23d646610dedbade9a4f217406de3dc8db84ef65ec97c8061f3077790610a7090839061271e565b6000336109ba818585610c7783836113f0565b610c8191906128b3565b61165d565b610c8e611781565b604051632ccc84af60e11b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690635999095e90602401600060405180830381600087803b158015610cf057600080fd5b505af1158015610d04573d6000803e3d6000fd5b505050507f092d199477fd82ecdeb1008d445e68d316e378eb7137f873d73156f8e07c278a81604051610a7091815260200190565b610d41611781565b600654610d5b906001600160a01b038381169116146117e0565b600680546001600160a01b0319166001600160a01b0383161790556040517f1d5165cf8e89286f2d38f9d17d4f9b30a4197d38fd9dafde1d3bf78dbc7e49f090610a70908390612666565b6001600160a01b031660009081526020819052604090205490565b610dc9611781565b610dd360006120cc565b565b610ddd611781565b6006805460ff60a81b191690556040517f7bfa7bacf025baa75e5308bf15bcf2948f406c7ebe3eb1a8bb611862b9d647ef90600090a1565b610e1d611781565b6006805461ffff60b01b191661010160b01b1790556040517f799663458a5ef2936f7fa0c99b3336c69c25890f82974f04e811e5bb359186c790600090a1565b6005546001600160a01b031690565b6060600480546109299061282a565b610e83611781565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316148015610ec2575080155b15610f125780610f125760405162461bcd60e51b815260206004820152601b60248201527a39b2ba20baba37b6b0ba32b226b0b935b2ba26b0b5b2b92830b4b960291b6044820152606401610a36565b6001600160a01b038216600090815260106020526040902054610f3d9060ff161515821515146117e0565b6001600160a01b03821660009081526010602052604090819020805460ff1916831515179055517fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90610f9390849084906128c6565b60405180910390a15050565b60003381610fad82866113f0565b90508381101561100d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a36565b610a94828686840361165d565b6000336109ba818585611896565b611030611781565b6006805461ffff60c81b1916600160c81b60ff858116820260ff60d01b191692909217600160d01b8584168102919091179384905561107893908104831692919004166128e1565b6006805460ff60c01b1916600160c01b60ff938416810291909117918290556032910490911611156110d95760405162461bcd60e51b815260206004820152600a6024820152697365744275794665657360b01b6044820152606401610a36565b6006546040805160ff600160c81b840481168252600160d01b90930490921660208301527f2d2ab4c2d91e66ada36dda6bf9ba09ab145d96744096b36fc2a8f67789e104369101610f93565b61112d611781565b60405163d429293b60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d429293b9061117b90859085906004016128c6565b600060405180830381600087803b15801561119557600080fd5b505af11580156111a9573d6000803e3d6000fd5b505050507fc1acab0dbe9a65466daf3111ea86891f8502751690852be913bbb729f0814b278282604051610f939291906128c6565b6111e6611781565b6001600160a01b0382166000908152600e60205260409020546112119060ff161515821515146117e0565b6001600160a01b0382166000908152600e602052604090819020805460ff1916831515179055517f3f3af5ad5225fea847fdb19fb8a94b09a585a081f88b02ea3d5cd792f0f242c790610f9390849084906128c6565b61126f611781565b6006805461ffff60e01b1916600160e01b60ff858116820260ff60e81b191692909217600160e81b858416810291909117938490556112b793908104831692919004166128e1565b6006805460ff60d81b1916600160d81b60ff938416810291909117918290556063910490911611156113195760405162461bcd60e51b815260206004820152600b60248201526a73657453656c6c4665657360a81b6044820152606401610a36565b6006546040805160ff600160c81b840481168252600160d01b90930490921660208301527f5a7362c0837834088d68cb475f360baf8b27f8e05a14d40064da6563927ade6a9101610f93565b61136d611781565b6001600160a01b0382166000908152600f60205260409020546113989060ff161515821515146117e0565b6001600160a01b0382166000908152600f6020908152604091829020805460ff191684151590811790915591519182527f287a6222bf95a4cad4c1d2c2811aa743d8015661270e11837b3f2967124fab3a9101610f93565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611423611781565b6006546114409060ff600160b81b909104161515821515146117e0565b60068054821515600160b81b0260ff60b81b199091161790556040517f8bcc108c7d867d0a70433f71ecba3056c4dcc48eaabe4ca987f9fb1f836091d590610a7090831515815260200190565b611495611781565b6001600160a01b0381166114fa5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a36565b611503816120cc565b50565b61150e611781565b61151b82600954146117e0565b620186a061152860025490565b611532919061287a565b82101561157b5760405162461bcd60e51b815260206004820152601760248201527673657453776170546f6b656e734174416d6f756e74203160481b6044820152606401610a36565b606461158660025490565b611590919061287a565b8211156115d95760405162461bcd60e51b815260206004820152601760248201527639b2ba29bbb0b82a37b5b2b739a0ba20b6b7bab73a101960491b6044820152606401610a36565b6009829055808211156116285760405162461bcd60e51b815260206004820152601760248201527673657453776170546f6b656e734174416d6f756e74203360481b6044820152606401610a36565b600a8190556040518281527f09e89af7cbd8410d0ad2a74ab3cc8d9ddeef8ab1177f0f8a1984d355bb9d78f190602001610f93565b6001600160a01b0383166116bf5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a36565b6001600160a01b0382166117205760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a36565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b3361178a610e5d565b6001600160a01b031614610dd35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a36565b80156115035760405162461bcd60e51b815260206004820152600b60248201526a105b1c9958591e481cd95d60aa1b6044820152606401610a36565b600061182884846113f0565b9050600019811461189057818110156118835760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a36565b611890848484840361165d565b50505050565b806000036118af576118aa8383600061211e565b505050565b600654600160a81b900460ff1615611b87576118c9610e5d565b6001600160a01b0316836001600160a01b03161415801561190357506118ed610e5d565b6001600160a01b0316826001600160a01b031614155b801561191757506001600160a01b03821615155b801561192e57506001600160a01b03821661dead14155b80156119445750600654600160a01b900460ff16155b15611b8757600654600160b01b900460ff166119dd576001600160a01b0383166000908152600e602052604090205460ff168061199957506001600160a01b0382166000908152600e602052604090205460ff165b6119dd5760405162461bcd60e51b815260206004820152601560248201527454726164696e67206973206e6f742061637469766560581b6044820152606401610a36565b6001600160a01b03831660009081526010602052604090205460ff168015611a1e57506001600160a01b0382166000908152600f602052604090205460ff16155b15611aa457600854811115611a6b5760405162461bcd60e51b8152602060048201526013602482015272109d5e48185b5bdd5b9d08195e18d959591959606a1b6044820152606401610a36565b600b54611a7783610da6565b611a8190836128b3565b1115611a9f5760405162461bcd60e51b8152600401610a36906128fa565b611b87565b6001600160a01b03821660009081526010602052604090205460ff168015611ae557506001600160a01b0383166000908152600f602052604090205460ff16155b15611b3357600854811115611a9f5760405162461bcd60e51b815260206004820152601460248201527314d95b1b08185b5bdd5b9d08195e18d95959195960621b6044820152606401610a36565b6001600160a01b0382166000908152600f602052604090205460ff16611b8757600b54611b5f83610da6565b611b6990836128b3565b1115611b875760405162461bcd60e51b8152600401610a36906128fa565b600954611b9330610da6565b10158015611baa5750600654600160b81b900460ff165b8015611bc05750600654600160a01b900460ff16155b8015611be557506001600160a01b03831660009081526010602052604090205460ff16155b8015611c0a57506001600160a01b0383166000908152600e602052604090205460ff16155b8015611c2f57506001600160a01b0382166000908152600e602052604090205460ff16155b15611c5d576006805460ff60a01b1916600160a01b179055611c4f6122c2565b6006805460ff60a01b191690555b6006546001600160a01b0384166000908152600e6020526040812054909160ff600160a01b909104811615911680611cad57506001600160a01b0384166000908152600e602052604090205460ff165b15611cb6575060005b8015611ea757600654600160d81b900460ff1615801590611cef57506001600160a01b03841660009081526010602052604090205460ff165b15611da557600654606490611d0e90600160d81b900460ff168561289c565b611d18919061287a565b60065490925060ff600160d81b8204811691611d3d91600160e81b909104168461289c565b611d47919061287a565b600d6000828254611d5891906128b3565b909155505060065460ff600160d81b8204811691611d7f91600160e01b909104168461289c565b611d89919061287a565b600c6000828254611d9a91906128b3565b90915550611e899050565b600654600160c01b900460ff1615801590611dd857506001600160a01b03851660009081526010602052604090205460ff165b15611e8957600654606490611df790600160c01b900460ff168561289c565b611e01919061287a565b60065490925060ff600160c01b8204811691611e2691600160d01b909104168461289c565b611e30919061287a565b600d6000828254611e4191906128b3565b909155505060065460ff600160c01b8204811691611e6891600160c81b909104168461289c565b611e72919061287a565b600c6000828254611e8391906128b3565b90915550505b8115611e9a57611e9a85308461211e565b611ea48284612927565b92505b611eb285858561211e565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e30443bc86611eeb88610da6565b6040518363ffffffff1660e01b8152600401611f0892919061293a565b600060405180830381600087803b158015611f2257600080fd5b505af1158015611f36573d6000803e3d6000fd5b505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e30443bc85611f7387610da6565b6040518363ffffffff1660e01b8152600401611f9092919061293a565b600060405180830381600087803b158015611faa57600080fd5b505af1158015611fbe573d6000803e3d6000fd5b5050600654600160a01b900460ff1691506120c59050576007546040516001624d3b8760e01b03198152600091829182916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163ffb2c479916120359163ffffffff9091169060040161271e565b6060604051808303816000875af1158015612054573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120789190612953565b604080518481526020810184905290810182905292955090935091507f9d1265ce9469ecf594fc2be0512c33d3cce4500f12fe1d2a22e26de6abc53c639060600160405180910390a15050505b5050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166121825760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a36565b6001600160a01b0382166121e45760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a36565b6001600160a01b0383166000908152602081905260409020548181101561225c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a36565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611890565b60006122cd30610da6565b90506000600c54600d546122e191906128b3565b90508115806122ee575080155b156122f7575050565b600a5482111561230757600a5491505b4761231183612417565b600061231d8247612927565b9050600083600d5483612330919061289c565b61233a919061287a565b6000600c819055600d819055604051919250906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169083908381818185875af1925050503d80600081146123b2576040519150601f19603f3d011682016040523d82523d6000602084013e6123b7565b606091505b50506006546040519192506001600160a01b0316904790600081818185875af1925050503d8060008114612407576040519150601f19603f3d011682016040523d82523d6000602084013e61240c565b606091505b505050505050505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061244c5761244c612981565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156124ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ee9190612997565b8160018151811061250157612501612981565b60200260200101906001600160a01b031690816001600160a01b03168152505061254c307f00000000000000000000000000000000000000000000000000000000000000008461165d565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac947906125a19085906000908690309042906004016129b4565b600060405180830381600087803b1580156125bb57600080fd5b505af11580156125cf573d6000803e3d6000fd5b505050505050565b600060208083528351808285015260005b81811015612604578581018301518582016040015282016125e8565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461150357600080fd5b6000806040838503121561264d57600080fd5b823561265881612625565b946020939093013593505050565b6001600160a01b0391909116815260200190565b60006020828403121561268c57600080fd5b5035919050565b6000806000606084860312156126a857600080fd5b83356126b381612625565b925060208401356126c381612625565b929592945050506040919091013590565b6000602082840312156126e657600080fd5b813563ffffffff811681146126fa57600080fd5b9392505050565b60006020828403121561271357600080fd5b81356126fa81612625565b63ffffffff91909116815260200190565b8035801515811461273f57600080fd5b919050565b6000806040838503121561275757600080fd5b823561276281612625565b91506127706020840161272f565b90509250929050565b803560ff8116811461273f57600080fd5b6000806040838503121561279d57600080fd5b6127a683612779565b915061277060208401612779565b600080604083850312156127c757600080fd5b82356127d281612625565b915060208301356127e281612625565b809150509250929050565b6000602082840312156127ff57600080fd5b6126fa8261272f565b6000806040838503121561281b57600080fd5b50508035926020909101359150565b600181811c9082168061283e57607f821691505b60208210810361285e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008261289757634e487b7160e01b600052601260045260246000fd5b500490565b80820281158282048414176109c0576109c0612864565b808201808211156109c0576109c0612864565b6001600160a01b039290921682521515602082015260400190565b60ff81811683821601908111156109c0576109c0612864565b60208082526013908201527213585e081dd85b1b195d08195e18d959591959606a1b604082015260600190565b818103818111156109c0576109c0612864565b6001600160a01b03929092168252602082015260400190565b60008060006060848603121561296857600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156129a957600080fd5b81516126fa81612625565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612a045784516001600160a01b0316835293830193918301916001016129df565b50506001600160a01b0396909616606085015250505060800152939250505056fea264697066735822122016055877874b2036cd56cb55db567ecb022cfb91e03d76b88d5f388685c2e5b864736f6c6343000813003360a06040523480156200001157600080fd5b5060405162001dd438038062001dd483398101604081905262000034916200012c565b81818181600362000046838262000225565b50600462000055828262000225565b50503360805250620002f19350505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200008f57600080fd5b81516001600160401b0380821115620000ac57620000ac62000067565b604051601f8301601f19908116603f01168101908282118183101715620000d757620000d762000067565b81604052838152602092508683858801011115620000f457600080fd5b600091505b83821015620001185785820183015181830184015290820190620000f9565b600093810190920192909252949350505050565b600080604083850312156200014057600080fd5b82516001600160401b03808211156200015857600080fd5b62000166868387016200007d565b935060208501519150808211156200017d57600080fd5b506200018c858286016200007d565b9150509250929050565b600181811c90821680620001ab57607f821691505b602082108103620001cc57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200022057600081815260208120601f850160051c81016020861015620001fb5750805b601f850160051c820191505b818110156200021c5782815560010162000207565b5050505b505050565b81516001600160401b0381111562000241576200024162000067565b620002598162000252845462000196565b84620001d2565b602080601f831160018114620002915760008415620002785750858301515b600019600386901b1c1916600185901b1785556200021c565b600085815260208120601f198616915b82811015620002c257888601518255948401946001909101908401620002a1565b5085821015620002e15787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b608051611ab2620003226000396000818161032b0152818161094c01528181610b370152610c290152611ab26000f3fe6080604052600436106101ae5760003560e01c806303c83302146101c257806306fdde03146101ca578063095ea7b3146101f557806318160ddd14610225578063226cfa3d1461024457806323b872dd1461027157806327ce0147146102915780633009a609146102b1578063313ce567146102c757806339509351146102e35780633a7960e0146103035780633fc15f15146103195780634e7b827f146103655780635183d6fd146103955780635999095e146103fa5780636a4740021461041a5780636f2789ec1461042f57806370a082311461044557806371f75a15146104655780638234c9d21461047a57806385a6b3ae1461049a57806391b89fba146104b057806395d89b41146104d057806397a06724146104e55780639b06d06414610512578063a457c2d714610542578063a8b9d24014610562578063a9059cbb14610582578063aafd847a146105a2578063cba0e996146105d8578063cd3aec9f146105f8578063d429293b14610618578063dd62ed3e14610638578063de3aaf6114610658578063e30443bc14610685578063fbcbc0f1146106a5578063ffb2c479146106c557600080fd5b366101bd576101bb610700565b005b600080fd5b6101bb610700565b3480156101d657600080fd5b506101df6107a4565b6040516101ec9190611782565b60405180910390f35b34801561020157600080fd5b506102156102103660046117e5565b610836565b60405190151581526020016101ec565b34801561023157600080fd5b506002545b6040519081526020016101ec565b34801561025057600080fd5b5061023661025f366004611811565b60106020526000908152604090205481565b34801561027d57600080fd5b5061021561028c366004611835565b610850565b34801561029d57600080fd5b506102366102ac366004611811565b610871565b3480156102bd57600080fd5b50610236600d5481565b3480156102d357600080fd5b50604051601281526020016101ec565b3480156102ef57600080fd5b506102156102fe3660046117e5565b6108ba565b34801561030f57600080fd5b5061023660055481565b34801561032557600080fd5b5061034d7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101ec565b34801561037157600080fd5b50610215610380366004611811565b600f6020526000908152604090205460ff1681565b3480156103a157600080fd5b506103b56103b0366004611876565b6108dc565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e0820152610100016101ec565b34801561040657600080fd5b506101bb610415366004611876565b610949565b34801561042657600080fd5b506101bb6109ac565b34801561043b57600080fd5b50610236600e5481565b34801561045157600080fd5b50610236610460366004611811565b6109b8565b34801561047157600080fd5b50600a54610236565b34801561048657600080fd5b50610236610495366004611811565b6109d3565b3480156104a657600080fd5b5061023660095481565b3480156104bc57600080fd5b506102366104cb366004611811565b610a18565b3480156104dc57600080fd5b506101df610a23565b3480156104f157600080fd5b50610236610500366004611811565b60066020526000908152604090205481565b34801561051e57600080fd5b5061021561052d366004611811565b60086020526000908152604090205460ff1681565b34801561054e57600080fd5b5061021561055d3660046117e5565b610a32565b34801561056e57600080fd5b5061023661057d366004611811565b610aad565b34801561058e57600080fd5b5061021561059d3660046117e5565b610ad9565b3480156105ae57600080fd5b506102366105bd366004611811565b6001600160a01b031660009081526007602052604090205490565b3480156105e457600080fd5b506102156105f3366004611811565b610ae3565b34801561060457600080fd5b5061034d610613366004611876565b610b01565b34801561062457600080fd5b506101bb61063336600461188f565b610b34565b34801561064457600080fd5b506102366106533660046118cd565b610bfb565b34801561066457600080fd5b50610236610673366004611811565b60076020526000908152604090205481565b34801561069157600080fd5b506101bb6106a03660046117e5565b610c26565b3480156106b157600080fd5b506103b56106c0366004611811565b610cb4565b3480156106d157600080fd5b506106e56106e0366004611876565b610d9f565b604080519384526020840192909252908201526060016101ec565b60025460000361070f57600080fd5b34156107a257600254610726600160801b34611911565b6107309190611928565b60056000828254610741919061194a565b909155505060055460405133917fd2f6b4ff9fc44f9f09c0bf947cfb196c17c66213ea2a7d59a42bab3428ccd94e9161078291348252602082015260400190565b60405180910390a2346009600082825461079c919061194a565b90915550505b565b6060600380546107b39061195d565b80601f01602080910402602001604051908101604052809291908181526020018280546107df9061195d565b801561082c5780601f106108015761010080835404028352916020019161082c565b820191906000526020600020905b81548152906001019060200180831161080f57829003601f168201915b5050505050905090565b600033610844818585610ed9565b60019150505b92915050565b60003361085e858285610ffd565b610866600080fd5b506001949350505050565b6001600160a01b038116600090815260066020526040812054600160801b90610899846109b8565b6005546108a69190611911565b6108b09190611997565b61084a9190611928565b6000336108448185856108cd8383610bfb565b6108d7919061194a565b610ed9565b6000806000806000806000806108f1600a5490565b891061091657506000965060001995508594508693508392508291508190508061093e565b60006109218a610b01565b905061092c81610cb4565b98509850985098509850985098509850505b919395975091939597565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161461099a5760405162461bcd60e51b8152600401610991906119bf565b60405180910390fd5b6109a781600e5414611077565b600e55565b6109b5336110b3565b50565b6001600160a01b031660009081526020819052604090205490565b6001600160a01b0381166000908152600c602052604081205460ff166109fc5750600019919050565b506001600160a01b03166000908152600b602052604090205490565b600061084a82610aad565b6060600480546107b39061195d565b60003381610a408286610bfb565b905083811015610aa05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610991565b6108668286868403610ed9565b6001600160a01b038116600090815260076020526040812054610acf83610871565b61084a91906119e4565b6000336108448280fd5b6001600160a01b031660009081526008602052604090205460ff1690565b6000600a6000018281548110610b1957610b196119f7565b6000918252602090912001546001600160a01b031692915050565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614610b7c5760405162461bcd60e51b8152600401610991906119bf565b6001600160a01b0382166000908152600f6020526040902054610ba79060ff16151582151514611077565b6001600160a01b0382166000908152600f60205260409020805460ff191682151517905580610bf757610bd982611239565b50610be38261126e565b610bee8260006112b4565b610bf782611306565b5050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614610c6e5760405162461bcd60e51b8152600401610991906119bf565b6001600160a01b0382166000908152600f602052604090205460ff16610bf757610c9782611436565b610ca182826112b4565b610caa82611239565b50610bf7826114b0565b806000808080808080610cc6886109d3565b9650600019955060008712610d2d57600d54871115610cf357600d54610cec9088611a0d565b9550610d2d565b6000600d54610d01600a5490565b11610d0d576000610d1d565b600d54600a54610d1d91906119e4565b9050610d298189611997565b9650505b610d3688610aad565b9450610d4188610871565b6001600160a01b038916600090815260106020526040902054909450925082610d6b576000610d78565b600e54610d78908461194a565b9150428211610d88576000610d92565b610d9242836119e4565b9050919395975091939597565b600080600080610dae600a5490565b905080600003610dc9575050600d5460009250829150610ed2565b600d546000805a90506000805b8984108015610de457508582105b15610ec15784610df381611a2d565b955050610dff600a5490565b8510610e0a57600094505b6000600a6000018681548110610e2257610e226119f7565b6000918252602080832090910154600e546001600160a01b039091168084526010909252604083205491935090610e5990426119e4565b10159050808015610e6e5750610e6e82611239565b15610e815782610e7d81611a2d565b9350505b83610e8b81611a2d565b94505060005a905080861115610eb7576000610ea782886119e4565b9050610eb3818961194a565b9750505b9450610dd6915050565b600d85905590975095509193505050505b9193909250565b6001600160a01b038316610f3b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610991565b6001600160a01b038216610f9c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610991565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006110098484610bfb565b9050600019811461107157818110156110645760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610991565b6110718484848403610ed9565b50505050565b80156109b55760405162461bcd60e51b815260206004820152600b60248201526a105b1c9958591e481cd95d60aa1b6044820152606401610991565b6000806110bf83610aad565b90508015611230576001600160a01b038316600090815260076020526040812080548392906110ef90849061194a565b909155506110fe905083610ae3565b6111e357826001600160a01b03167fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d8260405161113d91815260200190565b60405180910390a26000836001600160a01b031682610bb890604051600060405180830381858888f193505050503d8060008114611197576040519150601f19603f3d011682016040523d82523d6000602084013e61119c565b606091505b50509050806111dc576001600160a01b038416600090815260076020526040812080548492906111cd9084906119e4565b90915550600095945050505050565b5092915050565b6111ec816114f2565b826001600160a01b03167f3f7ae20ba919d7706fbd6dc76195345b62aba2e088a54878c89fa6fc809893fa8260405161122791815260200190565b60405180910390a25b50600092915050565b600080611245836110b3565b905080156112305750506001600160a01b03166000908152601060205260409020429055600190565b6001600160a01b03811660009081526008602052604090205460ff166109b5576001600160a01b0381166000908152600860205260409020805460ff1916600117905550565b60006112bf836109b8565b9050808211156112e15760006112d582846119e4565b9050611071848261152c565b808210156113015760006112f583836119e4565b90506110718482611575565b505050565b6001600160a01b0381166000908152600c6020526040902054600a9060ff1661132d575050565b6001600160a01b03821660009081526002820160209081526040808320805460ff191690556001808501909252822054835490929161136b916119e4565b90506000836000018281548110611384576113846119f7565b60009182526020808320909101546001600160a01b039081168084526001880190925260408084208790559088168352822091909155845490915081908590859081106113d3576113d36119f7565b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055835484908061140d5761140d611a46565b600082815260209020810160001990810180546001600160a01b03191690550190555050505050565b6001600160a01b0381166000908152600c6020526040902054600a9060ff16610bf7576001600160a01b03821660008181526002830160209081526040808320805460ff19166001908117909155855486820184529184208290558101855584835291200180546001600160a01b03191690911790555050565b6001600160a01b03811660009081526008602052604090205460ff16156109b5576001600160a01b03166000908152600860205260409020805460ff19169055565b80156109b557600254611509600160801b83611911565b6115139190611928565b60056000828254611524919061194a565b909155505050565b61153682826115b5565b806005546115449190611911565b6001600160a01b0383166000908152600660205260408120805490919061156c908490611a0d565b90915550505050565b61157f8282611662565b8060055461158d9190611911565b6001600160a01b0383166000908152600660205260408120805490919061156c908490611997565b6001600160a01b03821661160b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610991565b806002600082825461161d919061194a565b90915550506001600160a01b03821660008181526020818152604080832080548601905551848152600080516020611a5d833981519152910160405180910390a35050565b6001600160a01b0382166116c25760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610991565b6001600160a01b038216600090815260208190526040902054818110156117365760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610991565b6001600160a01b038316600081815260208181526040808320868603905560028054879003905551858152919291600080516020611a5d833981519152910160405180910390a3505050565b600060208083528351808285015260005b818110156117af57858101830151858201604001528201611793565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b03811681146109b557600080fd5b600080604083850312156117f857600080fd5b8235611803816117d0565b946020939093013593505050565b60006020828403121561182357600080fd5b813561182e816117d0565b9392505050565b60008060006060848603121561184a57600080fd5b8335611855816117d0565b92506020840135611865816117d0565b929592945050506040919091013590565b60006020828403121561188857600080fd5b5035919050565b600080604083850312156118a257600080fd5b82356118ad816117d0565b9150602083013580151581146118c257600080fd5b809150509250929050565b600080604083850312156118e057600080fd5b82356118eb816117d0565b915060208301356118c2816117d0565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761084a5761084a6118fb565b60008261194557634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561084a5761084a6118fb565b600181811c9082168061197157607f821691505b60208210810361199157634e487b7160e01b600052602260045260246000fd5b50919050565b80820182811260008312801582168215821617156119b7576119b76118fb565b505092915050565b6020808252600b908201526a139bdd08185b1b1bddd95960aa1b604082015260600190565b8181038181111561084a5761084a6118fb565b634e487b7160e01b600052603260045260246000fd5b81810360008312801583831316838312821617156111dc576111dc6118fb565b600060018201611a3f57611a3f6118fb565b5060010190565b634e487b7160e01b600052603160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212205864e1664115b6f8fdbe880af7406d76f147e1be39617e6322b0f4c5726d8e6064736f6c6343000813003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000000000000000e1000000000000000000000000037dffaff5f0429317ee4fc7d706a254af08782690000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000493e00000000000000000000000000000000000000000000c685fa11e01ec6f0000000000000000000000000000000000000000000000000c685fa11e01ec6f00000000000000000000000000000000000000000000000000152d02c7e14af680000000000000000000000000000000000000000000000000d3c21bcecceda10000000000000000000000000000000000000000000000033b2e3c9fd0803ce80000000000000000000000000000000000000000000000000000000000000000000011536869656c64536b792046696e616e63650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006534849454c4400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011536869656c64536b794469766964656e6400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035354440000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102535760003560e01c806306fdde031461025f578063095ea7b31461028a57806312611ae8146102ba578063145eec7a146102de5780631694505e146102f457806318160ddd146103355780631e293c101461034a5780631f3fed8f1461036c57806323b872dd1461038257806327a14fc2146103a25780632c1f5216146103c25780632c926ffc146103f6578063313ce5671461041657806331f4ee0314610438578063395093511461046857806349bd5a5e146104885780634a62bb65146104bc5780634fbee193146104dd5780635999095e1461050d57806359e1ee0d1461052d5780635d098b381461054e5780635dfba9001461056e5780636a486a8e1461058f5780636ddd1713146105b057806370a08231146105d1578063715018a6146105f1578063751039fc1461060657806375f0a8741461061b5780637a1cd8c51461063b5780637bce5a04146106655780638a8c523c146106865780638da5cb5b1461069b57806392136913146106b057806395d89b41146106d15780639a7a23d6146106e6578063a457c2d714610706578063a9059cbb14610726578063aa4bde2814610746578063b62496f51461075c578063bbc0c7421461078c578063c8c8ebe4146107ad578063c9700097146107c3578063d429293b146107e3578063d63cad2214610803578063d6ebafe114610823578063d85ba06314610843578063db9855e814610864578063dd62ed3e14610884578063e01af92c146108a4578063e2f45605146108c4578063f2fde38b146108da578063fa3d7fe6146108fa57600080fd5b3661025a57005b600080fd5b34801561026b57600080fd5b5061027461091a565b60405161028191906125d7565b60405180910390f35b34801561029657600080fd5b506102aa6102a536600461263a565b6109ac565b6040519015158152602001610281565b3480156102c657600080fd5b506102d0600d5481565b604051908152602001610281565b3480156102ea57600080fd5b506102d0600a5481565b34801561030057600080fd5b506103287f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516102819190612666565b34801561034157600080fd5b506002546102d0565b34801561035657600080fd5b5061036a61036536600461267a565b6109c6565b005b34801561037857600080fd5b506102d0600c5481565b34801561038e57600080fd5b506102aa61039d366004612693565b610a7b565b3480156103ae57600080fd5b5061036a6103bd36600461267a565b610a9f565b3480156103ce57600080fd5b506103287f0000000000000000000000001275e7a67b7b52985d2a2a2bc147424b6c0ffb4e81565b34801561040257600080fd5b5061036a6104113660046126d4565b610b4e565b34801561042257600080fd5b5060125b60405160ff9091168152602001610281565b34801561044457600080fd5b506102aa610453366004612701565b600f6020526000908152604090205460ff1681565b34801561047457600080fd5b506102aa61048336600461263a565b610c64565b34801561049457600080fd5b506103287f000000000000000000000000a1eafa6d0873df97c0abb3fd76fa32ecc4df42cc81565b3480156104c857600080fd5b506006546102aa90600160a81b900460ff1681565b3480156104e957600080fd5b506102aa6104f8366004612701565b600e6020526000908152604090205460ff1681565b34801561051957600080fd5b5061036a61052836600461267a565b610c86565b34801561053957600080fd5b5060065461042690600160d01b900460ff1681565b34801561055a57600080fd5b5061036a610569366004612701565b610d39565b34801561057a57600080fd5b5060065461042690600160e81b900460ff1681565b34801561059b57600080fd5b5060065461042690600160d81b900460ff1681565b3480156105bc57600080fd5b506006546102aa90600160b81b900460ff1681565b3480156105dd57600080fd5b506102d06105ec366004612701565b610da6565b3480156105fd57600080fd5b5061036a610dc1565b34801561061257600080fd5b5061036a610dd5565b34801561062757600080fd5b50600654610328906001600160a01b031681565b34801561064757600080fd5b506007546106589063ffffffff1681565b604051610281919061271e565b34801561067157600080fd5b5060065461042690600160c81b900460ff1681565b34801561069257600080fd5b5061036a610e15565b3480156106a757600080fd5b50610328610e5d565b3480156106bc57600080fd5b5060065461042690600160e01b900460ff1681565b3480156106dd57600080fd5b50610274610e6c565b3480156106f257600080fd5b5061036a610701366004612744565b610e7b565b34801561071257600080fd5b506102aa61072136600461263a565b610f9f565b34801561073257600080fd5b506102aa61074136600461263a565b61101a565b34801561075257600080fd5b506102d0600b5481565b34801561076857600080fd5b506102aa610777366004612701565b60106020526000908152604090205460ff1681565b34801561079857600080fd5b506006546102aa90600160b01b900460ff1681565b3480156107b957600080fd5b506102d060085481565b3480156107cf57600080fd5b5061036a6107de36600461278a565b611028565b3480156107ef57600080fd5b5061036a6107fe366004612744565b611125565b34801561080f57600080fd5b5061036a61081e366004612744565b6111de565b34801561082f57600080fd5b5061036a61083e36600461278a565b611267565b34801561084f57600080fd5b5060065461042690600160c01b900460ff1681565b34801561087057600080fd5b5061036a61087f366004612744565b611365565b34801561089057600080fd5b506102d061089f3660046127b4565b6113f0565b3480156108b057600080fd5b5061036a6108bf3660046127ed565b61141b565b3480156108d057600080fd5b506102d060095481565b3480156108e657600080fd5b5061036a6108f5366004612701565b61148d565b34801561090657600080fd5b5061036a610915366004612808565b611506565b6060600380546109299061282a565b80601f01602080910402602001604051908101604052809291908181526020018280546109559061282a565b80156109a25780601f10610977576101008083540402835291602001916109a2565b820191906000526020600020905b81548152906001019060200180831161098557829003601f168201915b5050505050905090565b6000336109ba81858561165d565b60019150505b92915050565b6109ce611781565b6109db81600854146117e0565b6103e86109e760025490565b6109f1919061287a565b811015610a3f5760405162461bcd60e51b81526020600482015260176024820152761cd95d13585e151c985b9cd858dd1a5bdb905b5bdd5b9d604a1b60448201526064015b60405180910390fd5b60088190556040518181527f97ab21c06137f3c46fb0fe64a6b691e86433e8aff6abc7fda74f6d23b3d13961906020015b60405180910390a150565b600033610a8985828561181c565b610a94858585611896565b506001949350505050565b610aa7611781565b610ab481600b54146117e0565b6103e8610ac060025490565b610acb90600561289c565b610ad5919061287a565b811015610b195760405162461bcd60e51b81526020600482015260126024820152711cd95d13585e15d85b1b195d105b5bdd5b9d60721b6044820152606401610a36565b600b8190556040518181527f0176e9211818debdc4483c2bb0972798b7eb106239c8e465d4f1cee4ce5ae6e790602001610a70565b610b56611781565b600754610b6d9063ffffffff8381169116146117e0565b620186a08163ffffffff161015610bc65760405162461bcd60e51b815260206004820152601e60248201527f736574476173466f7250726f63657373696e674469766964656e6473203100006044820152606401610a36565b6216e3608163ffffffff161115610c1f5760405162461bcd60e51b815260206004820152601e60248201527f736574476173466f7250726f63657373696e674469766964656e6473203200006044820152606401610a36565b6007805463ffffffff191663ffffffff83161790556040517f8cfadd37c23d646610dedbade9a4f217406de3dc8db84ef65ec97c8061f3077790610a7090839061271e565b6000336109ba818585610c7783836113f0565b610c8191906128b3565b61165d565b610c8e611781565b604051632ccc84af60e11b8152600481018290527f0000000000000000000000001275e7a67b7b52985d2a2a2bc147424b6c0ffb4e6001600160a01b031690635999095e90602401600060405180830381600087803b158015610cf057600080fd5b505af1158015610d04573d6000803e3d6000fd5b505050507f092d199477fd82ecdeb1008d445e68d316e378eb7137f873d73156f8e07c278a81604051610a7091815260200190565b610d41611781565b600654610d5b906001600160a01b038381169116146117e0565b600680546001600160a01b0319166001600160a01b0383161790556040517f1d5165cf8e89286f2d38f9d17d4f9b30a4197d38fd9dafde1d3bf78dbc7e49f090610a70908390612666565b6001600160a01b031660009081526020819052604090205490565b610dc9611781565b610dd360006120cc565b565b610ddd611781565b6006805460ff60a81b191690556040517f7bfa7bacf025baa75e5308bf15bcf2948f406c7ebe3eb1a8bb611862b9d647ef90600090a1565b610e1d611781565b6006805461ffff60b01b191661010160b01b1790556040517f799663458a5ef2936f7fa0c99b3336c69c25890f82974f04e811e5bb359186c790600090a1565b6005546001600160a01b031690565b6060600480546109299061282a565b610e83611781565b7f000000000000000000000000a1eafa6d0873df97c0abb3fd76fa32ecc4df42cc6001600160a01b0316826001600160a01b0316148015610ec2575080155b15610f125780610f125760405162461bcd60e51b815260206004820152601b60248201527a39b2ba20baba37b6b0ba32b226b0b935b2ba26b0b5b2b92830b4b960291b6044820152606401610a36565b6001600160a01b038216600090815260106020526040902054610f3d9060ff161515821515146117e0565b6001600160a01b03821660009081526010602052604090819020805460ff1916831515179055517fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90610f9390849084906128c6565b60405180910390a15050565b60003381610fad82866113f0565b90508381101561100d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a36565b610a94828686840361165d565b6000336109ba818585611896565b611030611781565b6006805461ffff60c81b1916600160c81b60ff858116820260ff60d01b191692909217600160d01b8584168102919091179384905561107893908104831692919004166128e1565b6006805460ff60c01b1916600160c01b60ff938416810291909117918290556032910490911611156110d95760405162461bcd60e51b815260206004820152600a6024820152697365744275794665657360b01b6044820152606401610a36565b6006546040805160ff600160c81b840481168252600160d01b90930490921660208301527f2d2ab4c2d91e66ada36dda6bf9ba09ab145d96744096b36fc2a8f67789e104369101610f93565b61112d611781565b60405163d429293b60e01b81526001600160a01b037f0000000000000000000000001275e7a67b7b52985d2a2a2bc147424b6c0ffb4e169063d429293b9061117b90859085906004016128c6565b600060405180830381600087803b15801561119557600080fd5b505af11580156111a9573d6000803e3d6000fd5b505050507fc1acab0dbe9a65466daf3111ea86891f8502751690852be913bbb729f0814b278282604051610f939291906128c6565b6111e6611781565b6001600160a01b0382166000908152600e60205260409020546112119060ff161515821515146117e0565b6001600160a01b0382166000908152600e602052604090819020805460ff1916831515179055517f3f3af5ad5225fea847fdb19fb8a94b09a585a081f88b02ea3d5cd792f0f242c790610f9390849084906128c6565b61126f611781565b6006805461ffff60e01b1916600160e01b60ff858116820260ff60e81b191692909217600160e81b858416810291909117938490556112b793908104831692919004166128e1565b6006805460ff60d81b1916600160d81b60ff938416810291909117918290556063910490911611156113195760405162461bcd60e51b815260206004820152600b60248201526a73657453656c6c4665657360a81b6044820152606401610a36565b6006546040805160ff600160c81b840481168252600160d01b90930490921660208301527f5a7362c0837834088d68cb475f360baf8b27f8e05a14d40064da6563927ade6a9101610f93565b61136d611781565b6001600160a01b0382166000908152600f60205260409020546113989060ff161515821515146117e0565b6001600160a01b0382166000908152600f6020908152604091829020805460ff191684151590811790915591519182527f287a6222bf95a4cad4c1d2c2811aa743d8015661270e11837b3f2967124fab3a9101610f93565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611423611781565b6006546114409060ff600160b81b909104161515821515146117e0565b60068054821515600160b81b0260ff60b81b199091161790556040517f8bcc108c7d867d0a70433f71ecba3056c4dcc48eaabe4ca987f9fb1f836091d590610a7090831515815260200190565b611495611781565b6001600160a01b0381166114fa5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a36565b611503816120cc565b50565b61150e611781565b61151b82600954146117e0565b620186a061152860025490565b611532919061287a565b82101561157b5760405162461bcd60e51b815260206004820152601760248201527673657453776170546f6b656e734174416d6f756e74203160481b6044820152606401610a36565b606461158660025490565b611590919061287a565b8211156115d95760405162461bcd60e51b815260206004820152601760248201527639b2ba29bbb0b82a37b5b2b739a0ba20b6b7bab73a101960491b6044820152606401610a36565b6009829055808211156116285760405162461bcd60e51b815260206004820152601760248201527673657453776170546f6b656e734174416d6f756e74203360481b6044820152606401610a36565b600a8190556040518281527f09e89af7cbd8410d0ad2a74ab3cc8d9ddeef8ab1177f0f8a1984d355bb9d78f190602001610f93565b6001600160a01b0383166116bf5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a36565b6001600160a01b0382166117205760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a36565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b3361178a610e5d565b6001600160a01b031614610dd35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a36565b80156115035760405162461bcd60e51b815260206004820152600b60248201526a105b1c9958591e481cd95d60aa1b6044820152606401610a36565b600061182884846113f0565b9050600019811461189057818110156118835760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a36565b611890848484840361165d565b50505050565b806000036118af576118aa8383600061211e565b505050565b600654600160a81b900460ff1615611b87576118c9610e5d565b6001600160a01b0316836001600160a01b03161415801561190357506118ed610e5d565b6001600160a01b0316826001600160a01b031614155b801561191757506001600160a01b03821615155b801561192e57506001600160a01b03821661dead14155b80156119445750600654600160a01b900460ff16155b15611b8757600654600160b01b900460ff166119dd576001600160a01b0383166000908152600e602052604090205460ff168061199957506001600160a01b0382166000908152600e602052604090205460ff165b6119dd5760405162461bcd60e51b815260206004820152601560248201527454726164696e67206973206e6f742061637469766560581b6044820152606401610a36565b6001600160a01b03831660009081526010602052604090205460ff168015611a1e57506001600160a01b0382166000908152600f602052604090205460ff16155b15611aa457600854811115611a6b5760405162461bcd60e51b8152602060048201526013602482015272109d5e48185b5bdd5b9d08195e18d959591959606a1b6044820152606401610a36565b600b54611a7783610da6565b611a8190836128b3565b1115611a9f5760405162461bcd60e51b8152600401610a36906128fa565b611b87565b6001600160a01b03821660009081526010602052604090205460ff168015611ae557506001600160a01b0383166000908152600f602052604090205460ff16155b15611b3357600854811115611a9f5760405162461bcd60e51b815260206004820152601460248201527314d95b1b08185b5bdd5b9d08195e18d95959195960621b6044820152606401610a36565b6001600160a01b0382166000908152600f602052604090205460ff16611b8757600b54611b5f83610da6565b611b6990836128b3565b1115611b875760405162461bcd60e51b8152600401610a36906128fa565b600954611b9330610da6565b10158015611baa5750600654600160b81b900460ff165b8015611bc05750600654600160a01b900460ff16155b8015611be557506001600160a01b03831660009081526010602052604090205460ff16155b8015611c0a57506001600160a01b0383166000908152600e602052604090205460ff16155b8015611c2f57506001600160a01b0382166000908152600e602052604090205460ff16155b15611c5d576006805460ff60a01b1916600160a01b179055611c4f6122c2565b6006805460ff60a01b191690555b6006546001600160a01b0384166000908152600e6020526040812054909160ff600160a01b909104811615911680611cad57506001600160a01b0384166000908152600e602052604090205460ff165b15611cb6575060005b8015611ea757600654600160d81b900460ff1615801590611cef57506001600160a01b03841660009081526010602052604090205460ff165b15611da557600654606490611d0e90600160d81b900460ff168561289c565b611d18919061287a565b60065490925060ff600160d81b8204811691611d3d91600160e81b909104168461289c565b611d47919061287a565b600d6000828254611d5891906128b3565b909155505060065460ff600160d81b8204811691611d7f91600160e01b909104168461289c565b611d89919061287a565b600c6000828254611d9a91906128b3565b90915550611e899050565b600654600160c01b900460ff1615801590611dd857506001600160a01b03851660009081526010602052604090205460ff165b15611e8957600654606490611df790600160c01b900460ff168561289c565b611e01919061287a565b60065490925060ff600160c01b8204811691611e2691600160d01b909104168461289c565b611e30919061287a565b600d6000828254611e4191906128b3565b909155505060065460ff600160c01b8204811691611e6891600160c81b909104168461289c565b611e72919061287a565b600c6000828254611e8391906128b3565b90915550505b8115611e9a57611e9a85308461211e565b611ea48284612927565b92505b611eb285858561211e565b7f0000000000000000000000001275e7a67b7b52985d2a2a2bc147424b6c0ffb4e6001600160a01b031663e30443bc86611eeb88610da6565b6040518363ffffffff1660e01b8152600401611f0892919061293a565b600060405180830381600087803b158015611f2257600080fd5b505af1158015611f36573d6000803e3d6000fd5b505050507f0000000000000000000000001275e7a67b7b52985d2a2a2bc147424b6c0ffb4e6001600160a01b031663e30443bc85611f7387610da6565b6040518363ffffffff1660e01b8152600401611f9092919061293a565b600060405180830381600087803b158015611faa57600080fd5b505af1158015611fbe573d6000803e3d6000fd5b5050600654600160a01b900460ff1691506120c59050576007546040516001624d3b8760e01b03198152600091829182916001600160a01b037f0000000000000000000000001275e7a67b7b52985d2a2a2bc147424b6c0ffb4e169163ffb2c479916120359163ffffffff9091169060040161271e565b6060604051808303816000875af1158015612054573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120789190612953565b604080518481526020810184905290810182905292955090935091507f9d1265ce9469ecf594fc2be0512c33d3cce4500f12fe1d2a22e26de6abc53c639060600160405180910390a15050505b5050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166121825760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a36565b6001600160a01b0382166121e45760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a36565b6001600160a01b0383166000908152602081905260409020548181101561225c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a36565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611890565b60006122cd30610da6565b90506000600c54600d546122e191906128b3565b90508115806122ee575080155b156122f7575050565b600a5482111561230757600a5491505b4761231183612417565b600061231d8247612927565b9050600083600d5483612330919061289c565b61233a919061287a565b6000600c819055600d819055604051919250906001600160a01b037f0000000000000000000000001275e7a67b7b52985d2a2a2bc147424b6c0ffb4e169083908381818185875af1925050503d80600081146123b2576040519150601f19603f3d011682016040523d82523d6000602084013e6123b7565b606091505b50506006546040519192506001600160a01b0316904790600081818185875af1925050503d8060008114612407576040519150601f19603f3d011682016040523d82523d6000602084013e61240c565b606091505b505050505050505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061244c5761244c612981565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156124ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ee9190612997565b8160018151811061250157612501612981565b60200260200101906001600160a01b031690816001600160a01b03168152505061254c307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461165d565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac947906125a19085906000908690309042906004016129b4565b600060405180830381600087803b1580156125bb57600080fd5b505af11580156125cf573d6000803e3d6000fd5b505050505050565b600060208083528351808285015260005b81811015612604578581018301518582016040015282016125e8565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461150357600080fd5b6000806040838503121561264d57600080fd5b823561265881612625565b946020939093013593505050565b6001600160a01b0391909116815260200190565b60006020828403121561268c57600080fd5b5035919050565b6000806000606084860312156126a857600080fd5b83356126b381612625565b925060208401356126c381612625565b929592945050506040919091013590565b6000602082840312156126e657600080fd5b813563ffffffff811681146126fa57600080fd5b9392505050565b60006020828403121561271357600080fd5b81356126fa81612625565b63ffffffff91909116815260200190565b8035801515811461273f57600080fd5b919050565b6000806040838503121561275757600080fd5b823561276281612625565b91506127706020840161272f565b90509250929050565b803560ff8116811461273f57600080fd5b6000806040838503121561279d57600080fd5b6127a683612779565b915061277060208401612779565b600080604083850312156127c757600080fd5b82356127d281612625565b915060208301356127e281612625565b809150509250929050565b6000602082840312156127ff57600080fd5b6126fa8261272f565b6000806040838503121561281b57600080fd5b50508035926020909101359150565b600181811c9082168061283e57607f821691505b60208210810361285e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008261289757634e487b7160e01b600052601260045260246000fd5b500490565b80820281158282048414176109c0576109c0612864565b808201808211156109c0576109c0612864565b6001600160a01b039290921682521515602082015260400190565b60ff81811683821601908111156109c0576109c0612864565b60208082526013908201527213585e081dd85b1b195d08195e18d959591959606a1b604082015260600190565b818103818111156109c0576109c0612864565b6001600160a01b03929092168252602082015260400190565b60008060006060848603121561296857600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156129a957600080fd5b81516126fa81612625565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612a045784516001600160a01b0316835293830193918301916001016129df565b50506001600160a01b0396909616606085015250505060800152939250505056fea264697066735822122016055877874b2036cd56cb55db567ecb022cfb91e03d76b88d5f388685c2e5b864736f6c63430008130033

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

00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000000000000000e1000000000000000000000000037dffaff5f0429317ee4fc7d706a254af08782690000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000493e00000000000000000000000000000000000000000000c685fa11e01ec6f0000000000000000000000000000000000000000000000000c685fa11e01ec6f00000000000000000000000000000000000000000000000000152d02c7e14af680000000000000000000000000000000000000000000000000d3c21bcecceda10000000000000000000000000000000000000000000000033b2e3c9fd0803ce80000000000000000000000000000000000000000000000000000000000000000000011536869656c64536b792046696e616e63650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006534849454c4400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011536869656c64536b794469766964656e6400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035354440000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : args (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]

-----Encoded View---------------
26 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000260
Arg [3] : 00000000000000000000000000000000000000000000000000000000000002a0
Arg [4] : 00000000000000000000000000000000000000000000000000000000000002e0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000e10
Arg [6] : 00000000000000000000000037dffaff5f0429317ee4fc7d706a254af0878269
Arg [7] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [12] : 00000000000000000000000000000000000000000000000000000000000493e0
Arg [13] : 0000000000000000000000000000000000000000000c685fa11e01ec6f000000
Arg [14] : 0000000000000000000000000000000000000000000c685fa11e01ec6f000000
Arg [15] : 00000000000000000000000000000000000000000000152d02c7e14af6800000
Arg [16] : 00000000000000000000000000000000000000000000d3c21bcecceda1000000
Arg [17] : 0000000000000000000000000000000000000000033b2e3c9fd0803ce8000000
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [19] : 536869656c64536b792046696e616e6365000000000000000000000000000000
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [21] : 534849454c440000000000000000000000000000000000000000000000000000
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [23] : 536869656c64536b794469766964656e64000000000000000000000000000000
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [25] : 5354440000000000000000000000000000000000000000000000000000000000


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.