ETH Price: $3,414.62 (+3.09%)

Token

Anti Jeet Inu (AJI)
 

Overview

Max Total Supply

7,995,254,375.321235482835153213 AJI

Holders

101

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
2,475 AJI

Value
$0.00
0xc93f5bd8c230773efaa0d8d30ed6d1080f733cf5
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:
AntiJeetInu

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 1 : AntiJeetInu.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;



abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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

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

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

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

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

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

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

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

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


/// @title Dividend-Paying Token Optional Interface
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev OPTIONAL functions for a dividend-paying token contract.
interface DividendPayingTokenOptionalInterface {
    /// @notice View the amount of dividend in wei that an address can withdraw.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` can withdraw.
    function withdrawableDividendOf(address _owner) external view returns(uint256);

    /// @notice View the amount of dividend in wei that an address has withdrawn.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` has withdrawn.
    function withdrawnDividendOf(address _owner) external view returns(uint256);

    /// @notice View the amount of dividend in wei that an address has earned in total.
    /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` has earned in total.
    function accumulativeDividendOf(address _owner) external view returns(uint256);
}


/// @title Dividend-Paying Token Interface
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev An interface for a dividend-paying token contract.
interface DividendPayingTokenInterface {
    /// @notice View the amount of dividend in wei that an address can withdraw.
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` can withdraw.
    function dividendOf(address _owner) external view returns(uint256);

    /// @notice Distributes ether to token holders as dividends.
    /// @dev SHOULD distribute the paid ether to token holders as dividends.
    ///  SHOULD NOT directly transfer ether to token holders in this function.
    ///  MUST emit a `DividendsDistributed` event when the amount of distributed ether is greater than 0.
    function distributeDividends() external payable;

    /// @dev This event MUST emit when ether is distributed to token holders.
    /// @param from The address which sends ether to this contract.
    /// @param weiAmount The amount of distributed ether in wei.
    event DividendsDistributed(
        address indexed from,
        uint256 weiAmount
    );

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

/**
 * @title SafeMathInt
 * @dev Math operations for int256 with overflow safety checks.
 */
library SafeMathInt {
    int256 private constant MIN_INT256 = int256(1) << 255;
    int256 private constant MAX_INT256 = ~(int256(1) << 255);

    /**
     * @dev Multiplies two int256 variables and fails on overflow.
     */
    function mul(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a * b;

        // Detect overflow when multiplying MIN_INT256 with -1
        require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
        require((b == 0) || (c / b == a));
        return c;
    }

    /**
     * @dev Division of two int256 variables and fails on overflow.
     */
    function div(int256 a, int256 b) internal pure returns (int256) {
        // Prevent overflow when dividing MIN_INT256 by -1
        require(b != -1 || a != MIN_INT256);

        // Solidity already throws when dividing by 0.
        return a / b;
    }

    /**
     * @dev Subtracts two int256 variables and fails on overflow.
     */
    function sub(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a));
        return c;
    }

    /**
     * @dev Adds two int256 variables and fails on overflow.
     */
    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a));
        return c;
    }

    /**
     * @dev Converts to absolute value, and fails on overflow.
     */
    function abs(int256 a) internal pure returns (int256) {
        require(a != MIN_INT256);
        return a < 0 ? -a : a;
    }


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

/**
 * @title SafeMathUint
 * @dev Math operations with safety checks that revert on error
 */
library SafeMathUint {
    function toInt256Safe(uint256 a) internal pure returns (int256) {
        int256 b = int256(a);
        require(b >= 0);
        return b;
    }
}

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of 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 {
    using SafeMath for uint256;

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

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

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

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(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);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

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

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

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to 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 {}
}

interface IMysteryContract {
    function handleBuy(address account, uint256 amount, int256 feeTokens) external;
    function handleSell(address account, uint256 amount, int256 feeTokens) external;
}


library Transfers {
    using Fees for Fees.Data;
    using Referrals for Referrals.Data;
    using BiggestBuyer for BiggestBuyer.Data;

    struct Data {
        address uniswapV2Router;
        address uniswapV2Pair;
    }

    uint256 private constant FACTOR_MAX = 10000;

    event BuyWithFees(
        address indexed account,
        uint256 amount,
        int256 feeFactor,
        int256 feeTokens
    );

    event SellWithFees(
        address indexed account,
        uint256 amount,
        uint256 feeFactor,
        uint256 feeTokens
    );

    function init(
        Data storage data,
        address uniswapV2Router,
        address uniswapV2Pair)
    public {
        data.uniswapV2Router = uniswapV2Router;
        data.uniswapV2Pair = uniswapV2Pair;
    }

    function transferIsBuy(Data storage data, address from, address to) public view returns (bool) {
        return from == data.uniswapV2Pair && to != data.uniswapV2Router;
    }

    function transferIsSell(Data storage data, address from, address to) public view returns (bool) {
        return from != data.uniswapV2Router && to == data.uniswapV2Pair;
    }


    function handleTransferWithFees(Data storage data, AntiJeetInuStorage.Data storage _storage, address from, address to, uint256 amount, address referrer) public returns(uint256 fees, uint256 buyerMint, uint256 referrerMint) {
        if(transferIsBuy(data, from, to)) {
            (int256 buyFee,) = _storage.fees.getCurrentFees();

            if(referrer != address(0)) {
                //lower buy fee by referral bonus, which will either trigger
                //a lower buy fee, or a larger bonus
                buyFee -= int256(_storage.referrals.referredBonus);
            }

            uint256 tokensBought = amount;

            if(buyFee > 0) {
                fees = Fees.calculateFees(amount, uint256(buyFee));

                tokensBought = amount - fees;

                emit BuyWithFees(to, amount, buyFee, int256(fees));
            }
            else if(buyFee < 0) {
                uint256 extraTokens = amount * uint256(-buyFee) / FACTOR_MAX;

                /*
                    When buy fee is negative, the user gets a bonus
                    via temporarily minted tokens which can be burned
                    from liquidity by anyone in another transaction
                    using the function `burnLiquidityTokens`.

                    It must be done in another transaction because
                    you cannot mess with the liquidity in the pair
                    during a swap.
                */
                buyerMint = extraTokens;

                tokensBought += extraTokens;

                emit BuyWithFees(to, amount, buyFee, -int256(extraTokens));
            }

            if(referrer != address(0)) {
                uint256 referralBonus = tokensBought * _storage.referrals.referralBonus / FACTOR_MAX;

                referrerMint = referralBonus;
            }

            _storage.biggestBuyer.handleBuy(to, amount);
        }
        else if(transferIsSell(data, from, to)) {
            uint256 sellFee = _storage.fees.handleSell(amount);

            fees = Fees.calculateFees(amount, sellFee);

            emit SellWithFees(from, amount, sellFee, fees);

            //Force a claim of dividends when selling
            //so that paperhands are forced to claim unvested divs
            _storage.dividendTracker.claimDividends(
                from,
                _storage.marketingWallet1,
                _storage.marketingWallet2,
                true);
        }
        else {
            fees = Fees.calculateFees(amount, _storage.fees.baseFee);
        }
    }
}

library Referrals {
    struct Data {
        uint256 referralBonus;
        uint256 referredBonus;
        uint256 tokensNeededForRefferalNumber;
        mapping(uint256 => address) registeredReferrersByCode;
        mapping(address => uint256) registeredReferrersByAddress;
        uint256 currentRefferralCode;
    }

    uint256 private constant FACTOR_MAX = 10000;

    event RefferalCodeGenerated(address account, uint256 code, uint256 inc1, uint256 inc2);
    event UpdateReferralBonus(uint256 value);
    event UpdateReferredBonus(uint256 value);


    event UpdateTokensNeededForReferralNumber(uint256 value);


    function init(Data storage data) public {
        updateReferralBonus(data, 200); //2% bonus on buys from people you refer
        updateReferredBonus(data, 200); //2% bonus when you buy with referral code

        updateTokensNeededForReferralNumber(data, 1000 * (10**18)); //1000 tokens needed

        data.currentRefferralCode = 100;
    }

    function updateReferralBonus(Data storage data, uint256 value) public {
        require(value <= 500, "invalid referral referredBonus"); //max 5%
        data.referralBonus = value;
        emit UpdateReferralBonus(value);
    }

    function updateReferredBonus(Data storage data, uint256 value) public {
        require(value <= 500, "invalid referred bonus"); //max 5%
        data.referredBonus = value;
        emit UpdateReferredBonus(value);
    }

    function updateTokensNeededForReferralNumber(Data storage data, uint256 value) public {
        data.tokensNeededForRefferalNumber = value;
        emit UpdateTokensNeededForReferralNumber(value);
    }

    function random(Data storage data, uint256 min, uint256 max) private view returns (uint256) {
        return min + uint256(keccak256(abi.encodePacked(block.difficulty, block.timestamp, data.currentRefferralCode))) % (max - min + 1);
    }

    function handleNewBalance(Data storage data, address account, uint256 balance) public {
        //already registered
        if(data.registeredReferrersByAddress[account] != 0) {
            return;
        }
        //not enough tokens
        if(balance < data.tokensNeededForRefferalNumber) {
            return;
        }
        //randomly increment referral code by anywhere from 5-50 so they
        //cannot be guessed easily
        uint256 inc1 = random(data, 5, 50);
        uint256 inc2 = random(data, 1, 9);
        data.currentRefferralCode += inc1;

        //don't allow referral code to end in 0,
        //so that ambiguous codes do not exist (ie, 420 and 4200)
        if(data.currentRefferralCode % 10 == 0) {
            data.currentRefferralCode += inc2;
        }

        data.registeredReferrersByCode[data.currentRefferralCode] = account;
        data.registeredReferrersByAddress[account] = data.currentRefferralCode;

        emit RefferalCodeGenerated(account, data.currentRefferralCode, inc1, inc2);
    }

    function getReferralCode(Data storage referrals, address account) public view returns (uint256) {
        return referrals.registeredReferrersByAddress[account];
    }

    function getReferrer(Data storage referrals, uint256 referralCode) public view returns (address) {
        return referrals.registeredReferrersByCode[referralCode];
    }

    function getReferralCodeFromTokenAmount(uint256 tokenAmount) private pure returns (uint256) {
        uint256 decimals = 18;

        uint256 numberAfterDecimals = tokenAmount % (10**decimals);

        uint256 checkDecimals = 3;

        while(checkDecimals < decimals) {
            uint256 factor = 10**(decimals - checkDecimals);
            //check if number is all 0s after the decimalth decimal
            if(numberAfterDecimals % factor == 0) {
                return numberAfterDecimals / factor;
            }
            checkDecimals++;
        }

        return numberAfterDecimals;
    }

    function getReferrerFromTokenAmount(Data storage referrals, uint256 tokenAmount) public view returns (address) {
        uint256 referralCode = getReferralCodeFromTokenAmount(tokenAmount);

        return referrals.registeredReferrersByCode[referralCode];
    }

    function isValidReferrer(Data storage referrals, address referrer, uint256 referrerBalance, address transferTo) public view returns (bool) {
        if(referrer == address(0)) {
            return false;
        }

        uint256 tokensNeeded = referrals.tokensNeededForRefferalNumber;

        return referrerBalance >= tokensNeeded && referrer != transferTo;
    }
}

library BiggestBuyer {
    struct Data {
        uint256 initHour;
        uint256 rewardFactor;
        mapping(uint256 => address) biggestBuyerAccount;
        mapping(uint256 => uint256) biggestBuyerAmount;
        mapping(uint256 => uint256) biggestBuyerPaid;
    }

    uint256 private constant FACTOR_MAX = 10000;

    event UpdateBiggestBuyerRewordFactor(uint256 value);

    event BiggestBuyerPayout(uint256 hour, address indexed account, uint256 value);

    function init(Data storage data) public {
        data.initHour = getCurrentHour();
        updateRewardFactor(data, 500); //5% from liquidity
    }

    function updateRewardFactor(Data storage data, uint256 value) public {
        require(value <= 1000, "invalid biggest buyer reward percent"); //max 10%
        data.rewardFactor = value;
        emit UpdateBiggestBuyerRewordFactor(value);
    }

    function getCurrentHour() private view returns (uint256) {
        return block.timestamp / (1 hours);
    }

    // starts at 0 and increments at the turn of the hour every hour
    function getHour(Data storage data) public view returns (uint256) {
        uint256 currentHour = getCurrentHour();
        return currentHour - data.initHour;
    }

    function handleBuy(Data storage data, address account, uint256 amount) public {
        uint256 hour = getHour(data);

        if(amount > data.biggestBuyerAmount[hour]) {
            data.biggestBuyerAmount[hour] = amount;
            data.biggestBuyerAccount[hour] = account;
        }
    }

    function calculateBiggestBuyerReward(Data storage data, uint256 liquidityTokenBalance) public view returns (uint256) {
        return liquidityTokenBalance * data.rewardFactor / FACTOR_MAX;
    }

    function payBiggestBuyer(Data storage data, uint256 hour, uint256 liquidityTokenBalance) public returns (address, uint256) {
        require(hour < getHour(data), "Hour is not complete");
        if(
            data.biggestBuyerAmount[hour] == 0 ||
            data.biggestBuyerPaid[hour] > 0) {
            return (address(0), 0);
        }

        address winner = data.biggestBuyerAccount[hour];

        uint256 amountWon = calculateBiggestBuyerReward(data, liquidityTokenBalance);

        //Set to 1 so the check for if payment occurred will succeed
        if(amountWon == 0) {
            amountWon = 1;
        }

        data.biggestBuyerPaid[hour] = amountWon;

        emit BiggestBuyerPayout(hour, winner, amountWon);

        return (winner, amountWon);
    }

    function getBiggestBuyer(Data storage data, uint256 hour) public view returns (address, uint256, uint256) {
        return (
        data.biggestBuyerAccount[hour],
        data.biggestBuyerAmount[hour],
        data.biggestBuyerPaid[hour]);
    }
}


library Fees {
    struct Data {
        address uniswapV2Pair;
        uint256 baseFee;//in 100ths of a percent
        uint256 extraFee;//in 100ths of a percent, extra sell fees. Buy fee is baseFee - extraFee
        uint256 extraFeeUpdateTime; //when the extraFee was updated. Use time elapsed to dynamically calculate new fee

        uint256 feeSellImpact; //in 100ths of a percent, how much price impact on sells (in percent) increases extraFee.
        uint256 feeTimeImpact; //in 100ths of a percent, how much time elapsed (in minutes) lowers extraFee

        uint256 dividendsPercent; //80% of fees go to dividends
        uint256 marketingPercent; //20% of fees go to marketing
        uint256 mysteryPercent; //0% of fees go to mystery contract... for now
    }

    uint256 private constant FACTOR_MAX = 10000;

    event UpdateBaseFee(uint256 value);
    event UpdateFeeSellImpact(uint256 value);
    event UpdateFeeTimeImpact(uint256 value);

    event UpdateFeeDestinationPercents(
        uint256 dividendsPercent,
        uint256 marketingPercent,
        uint256 mysteryPercent
    );


    event BuyWithFees(
        address indexed account,
        int256 feeFactor,
        int256 feeTokens,
        uint256 referredBonus,
        uint256 referralBonus,
        address referrer
    );

    event SellWithFees(
        address indexed account,
        uint256 feeFactor,
        uint256 feeTokens
    );

    event SendDividends(
        uint256 tokensSwapped,
        uint256 amount
    );

    event SendToMarketing1(
        uint256 tokensSwapped,
        uint256 amount
    );

    event SendToMarketing2(
        uint256 tokensSwapped,
        uint256 amount
    );

    event SendToMystery(
        uint256 tokensSwapped,
        uint256 amount
    );

    function init(
        Data storage data,
        AntiJeetInuStorage.Data storage _storage,
        address uniswapV2Pair) public {
        data.uniswapV2Pair = uniswapV2Pair;
        updateBaseFee(data, 1000); //10% base fee
        updateFeeSellImpact(data, 100); //each 1% price impact on sells will increase sell fee 1%, and lower buy fee 1%
        updateFeeTimeImpact(data, 100); //extra sell fee lowers 1% every minute, and buy fee increases 1% every minute until back to base fee

        updateFeeDestinationPercents(data, _storage, 75, 25, 0);
    }

    function updateBaseFee(Data storage data, uint256 value) public {
        require(value >= 300 && value <= 1000, "invalid base fee");
        data.baseFee = value;
        emit UpdateBaseFee(value);
    }

    function updateFeeSellImpact(Data storage data, uint256 value) public {
        require(value >= 10 && value <= 500, "invalid fee sell impact");
        data.feeSellImpact = value;
        emit UpdateFeeSellImpact(value);
    }

    function updateFeeTimeImpact(Data storage data, uint256 value) public {
        require(value >= 10 && value <= 500, "invalid fee time impact");
        data.feeTimeImpact = value;
        emit UpdateFeeSellImpact(value);
    }

    function updateFeeDestinationPercents(Data storage data, AntiJeetInuStorage.Data storage _storage, uint256 dividendsPercent, uint256 marketingPercent, uint256 mysteryPercent) public {
        require(dividendsPercent + marketingPercent + mysteryPercent == 100, "invalid percents");
        require(dividendsPercent >= 50, "invalid percent");

        if(address(_storage.mysteryContract) == address(0)) {
            require(mysteryPercent == 0, "invalid percent");
        }

        data.dividendsPercent = dividendsPercent;
        data.marketingPercent = marketingPercent;
        data.mysteryPercent = mysteryPercent;

        emit UpdateFeeDestinationPercents(dividendsPercent, marketingPercent, mysteryPercent);
    }


    //Gets fees in 100ths of a percent for buy and sell (anything else is always base fee)
    //and also returns current timestamp
    function getCurrentFees(Data storage data) public view returns (int256, uint256) {
        uint256 timeElapsed = block.timestamp - data.extraFeeUpdateTime;

        uint256 timeImpact = data.feeTimeImpact * timeElapsed / 60;

        //Enough time has passed that fees are back to base
        if(timeImpact >= data.extraFee) {
            return (int256(data.baseFee), data.baseFee);
        }

        uint256 realExtraFee = data.extraFee - timeImpact;

        int256 buyFee = int256(data.baseFee) - int256(realExtraFee);
        uint256 sellFee = data.baseFee + realExtraFee;

        return (buyFee, sellFee);
    }

    function handleSell(Data storage data, uint256 amount) public
    returns (uint256) {
        (,uint256 sellFee) = getCurrentFees(data);

        uint256 priceImpact = UniswapV2PriceImpactCalculator.calculateSellPriceImpact(address(this), data.uniswapV2Pair, amount);

        uint256 increaseSellFee = priceImpact * data.feeSellImpact / 100;

        sellFee = sellFee + increaseSellFee;

        //max 30% so it is always sellable with 49% slippage on Uniswap
        if(sellFee >= 3000) {
            sellFee = 3000;
        }

        data.extraFee = sellFee - data.baseFee;
        data.extraFeeUpdateTime = block.timestamp;

        return sellFee;
    }

    function calculateFees(uint256 amount, uint256 feeFactor) public pure returns (uint256) {
        if(feeFactor > FACTOR_MAX) {
            feeFactor = FACTOR_MAX;
        }
        return amount * uint256(feeFactor) / FACTOR_MAX;
    }

    function swapTokensForEth(uint256 tokenAmount, IUniswapV2Router02 router)
    private {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = router.WETH();

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

    function swapAccumulatedFees(Data storage data, AntiJeetInuStorage.Data storage _storage, uint256 tokenAmount) public {
        swapTokensForEth(tokenAmount, _storage.router);
        uint256 balance = address(this).balance;

        uint256 dividends = balance * data.dividendsPercent / 100;
        uint256 marketing = balance * data.marketingPercent / 100;
        uint256 mystery = balance - dividends - marketing;

        if(data.mysteryPercent == 0) {
            mystery = 0;
        }

        bool success;

        (success,) = address(_storage.dividendTracker).call{value: dividends}("");

        if(success) {
            emit SendDividends(tokenAmount, dividends);
        }

        uint256 marketing1 = marketing / 2;
        uint256 marketing2 = marketing - marketing1;

        (success,) = address(_storage.marketingWallet1).call{value: marketing1}("");

        if(success) {
            emit SendToMarketing1(tokenAmount, marketing1);
        }

        (success,) = address(_storage.marketingWallet2).call{value: marketing2}("");

        if(success) {
            emit SendToMarketing2(tokenAmount, marketing2);
        }

        if(mystery > 0 && address(_storage.mysteryContract) != address(0)) {
            (success,) = address(_storage.mysteryContract).call{value: mystery, gas: 50000}("");

            if(success) {
                emit SendToMystery(tokenAmount, mystery);
            }
        }
    }
}



/// @title Dividend-Paying Token
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev A mintable ERC20 token that allows anyone to pay and distribute ether
///  to token holders as dividends and allows token holders to withdraw their dividends.
///  Reference: the source code of PoWH3D: https://etherscan.io/address/0xB3775fB83F7D12A36E0475aBdD1FCA35c091efBe#code
contract DividendPayingToken is ERC20, DividendPayingTokenInterface, DividendPayingTokenOptionalInterface {
    using SafeMath for uint256;
    using SafeMathUint for uint256;
    using SafeMathInt for int256;

    // 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 internal 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) internal magnifiedDividendCorrections;
    mapping(address => uint256) internal withdrawnDividends;

    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 override payable {
        require(totalSupply() > 0);

        if (msg.value > 0) {
            magnifiedDividendPerShare = magnifiedDividendPerShare.add(
                (msg.value).mul(magnitude) / totalSupply()
            );
            emit DividendsDistributed(msg.sender, msg.value);

            totalDividendsDistributed = totalDividendsDistributed.add(msg.value);
        }
    }


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

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

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


    /// @notice View the amount of dividend in wei that an address has earned in total.
    /// @dev accumulativeDividendOf(_owner) = withdrawableDividendOf(_owner) + withdrawnDividendOf(_owner)
    /// = (magnifiedDividendPerShare * balanceOf(_owner) + magnifiedDividendCorrections[_owner]) / magnitude
    /// @param _owner The address of a token holder.
    /// @return The amount of dividend in wei that `_owner` has earned in total.
    function accumulativeDividendOf(address _owner) public view override returns(uint256) {
        return magnifiedDividendPerShare.mul(balanceOf(_owner)).toInt256Safe()
        .add(magnifiedDividendCorrections[_owner]).toUint256Safe() / 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 = magnifiedDividendPerShare.mul(value).toInt256Safe();
        magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from].add(_magCorrection);
        magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to].sub(_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] = magnifiedDividendCorrections[account]
        .sub( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
    }

    /// @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] = magnifiedDividendCorrections[account]
        .add( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
    }

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

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



interface IWETH {
    function deposit() external payable;
    function transfer(address dst, uint wad) external returns (bool);
}

library AntiJeetInuStorage {
    using Transfers for Transfers.Data;

    struct Data {
        Fees.Data fees;
        BiggestBuyer.Data biggestBuyer;
        Referrals.Data referrals;
        Transfers.Data transfers;
        IUniswapV2Router02 router;
        IUniswapV2Pair pair;
        AntiJeetInuDividendTracker dividendTracker;
        address marketingWallet1;
        address marketingWallet2;
        IMysteryContract mysteryContract;
    }

    function handleTransfer(Data storage data, address from, address to, uint256 amount, int256 fees) public {
        if(address(data.mysteryContract) != address(0)) {
            if(data.transfers.transferIsBuy(from, to)) {
                try data.mysteryContract.handleBuy{gas: 50000}(to, amount, fees) {} catch {}
            }
            else if(data.transfers.transferIsSell(from, to)) {
                try data.mysteryContract.handleSell{gas: 50000}(from, amount, fees) {} catch {}
            }
        }
    }
}

library MaxWalletCalculator {
    function calculateMaxWallet(uint256 totalSupply, uint256 hatchTime) public view returns (uint256) {
        if(hatchTime == 0) {
            return totalSupply;
        }

        uint256 FACTOR_MAX = 10000;

        uint256 antiJeetInuAge = block.timestamp - hatchTime;

        uint256 base = totalSupply * 30 / FACTOR_MAX; // 0.3%
        uint256 increasePerMinute = totalSupply * 10 / FACTOR_MAX; // 0.1%

        uint256 extra = increasePerMinute * antiJeetInuAge / (1 minutes); // up 0.1% per minute

        return base + extra;
    }
}

library LiquidityBurnCalculator {
    function calculateBurn(uint256 liquidityTokensBalance, uint256 liquidityTokensAvailableToBurn, uint256 liquidityBurnTime)
    public
    view
    returns (uint256) {
        if(liquidityTokensAvailableToBurn == 0) {
            return 0;
        }

        if(block.timestamp < liquidityBurnTime + 5 minutes) {
            return 0;
        }

        //Maximum burn of 2% every 5 minutes to prevent
        //huge burns at once
        uint256 maxBurn = liquidityTokensBalance * 2 / 100;

        uint256 burnAmount = liquidityTokensAvailableToBurn;

        if(burnAmount > maxBurn) {
            burnAmount = maxBurn;
        }

        return burnAmount;
    }
}

library UniswapV2PriceImpactCalculator {
    function calculateSellPriceImpact(address tokenAddress, address pairAddress, uint256 value) public view returns (uint256) {
        value = value * 998 / 1000;

        IUniswapV2Pair pair = IUniswapV2Pair(pairAddress);

        (uint256 r0, uint256 r1,) = pair.getReserves();

        IERC20Metadata token0 = IERC20Metadata(pair.token0());
        IERC20Metadata token1 = IERC20Metadata(pair.token1());

        if(address(token1) == tokenAddress) {
            IERC20Metadata tokenTemp = token0;
            token0 = token1;
            token1 = tokenTemp;

            uint256 rTemp = r0;
            r0 = r1;
            r1 = rTemp;
        }

        uint256 product = r0 * r1;

        uint256 r0After = r0 + value;
        uint256 r1After = product / r0After;

        return (10000 - (r1After * 10000 / r1)) * 998 / 1000;
    }
}


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



// pragma solidity >=0.6.2;

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;
}

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;
}

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

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

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

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

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

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

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

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

    function initialize(address, address) external;
}

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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

library IterableMapping {
    // Iterable mapping from address to uint;
    struct Map {
        address[] keys;
        mapping(address => uint) values;
        mapping(address => uint) indexOf;
        mapping(address => bool) inserted;
    }

    function get(Map storage map, address key) public view returns (uint) {
        return map.values[key];
    }

    function getIndexOfKey(Map storage map, address key) public view returns (int) {
        if(!map.inserted[key]) {
            return -1;
        }
        return int(map.indexOf[key]);
    }

    function getKeyAtIndex(Map storage map, uint index) public view returns (address) {
        return map.keys[index];
    }



    function size(Map storage map) public view returns (uint) {
        return map.keys.length;
    }

    function set(Map storage map, address key, uint val) public {
        if (map.inserted[key]) {
            map.values[key] = val;
        } else {
            map.inserted[key] = true;
            map.values[key] = val;
            map.indexOf[key] = map.keys.length;
            map.keys.push(key);
        }
    }

    function remove(Map storage map, address key) public {
        if (!map.inserted[key]) {
            return;
        }

        delete map.inserted[key];
        delete map.values[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();
    }
}

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

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

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

        return c;
    }

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

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

        return c;
    }

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

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

contract AntiJeetInuDividendTracker is DividendPayingToken, Ownable {
    using SafeMath for uint256;
    using SafeMathInt for int256;

    AntiJeetInu public immutable token;
    IUniswapV2Pair public immutable uniswapV2Pair;
    IWETH public immutable WETH;

    mapping (address => bool) public excludedFromDividends;
    mapping (address => uint256) public lastClaimTimes;

    uint256 public vestingDuration;
    uint256 private vestingDurationUpdateTime;

    uint256 public unvestedDividendsMarketingFee;

    /*
        Users must claim their dividends within 60 days
        of first buy, or previous claim, or the owner
        has the ability to claim for them assuming
        they have forgotten about the token
    */
    uint256 public constant mustClaimDuration = 5184000;

    event ExcludeFromDividends(address indexed account);
    event UpdateeVestingDuration(uint256 vestingDuration);
    event UpdateUnvestedDividendsMarketingFee(uint256 unvestedDividendsMarketingFee);

    event Claim(address indexed account, bool isFromSell, uint256 factor, uint256 amount, uint256 toLiquidity, uint256 toMarketing);

    event ClaimInactive(address indexed account, uint256 amount);

    modifier onlyOwnerOfOwner() {
        require(Ownable(owner()).owner() == _msgSender(), "caller is not the owner's owner");
        _;
    }

    constructor(address payable owner, address pair, address weth) DividendPayingToken("AntiJeetInuDividendTracker", "AJI_DIVS") {
        token = AntiJeetInu(owner);
        uniswapV2Pair = IUniswapV2Pair(pair);
        WETH = IWETH(weth);

        updateVestingDuration(259200); //3 days
        updateUnvestedDividendsMarketingFee(25); //25%

        transferOwnership(owner);
    }

    bool private silenceWarning;

    function _transfer(address, address, uint256) internal override {
        silenceWarning = true;
        require(false, "AntiJeetInuDividendTracker: No transfers allowed");
    }

    function excludeFromDividends(address account) external onlyOwner {
        if(excludedFromDividends[account]) {
            return;
        }

        excludedFromDividends[account] = true;

        _setBalance(account, 0);

        emit ExcludeFromDividends(account);
    }

    function updateVestingDuration(uint256 newVestingDuration) public onlyOwner {
        require(newVestingDuration <= 2592000, "AntiJeetInuDividendTracker: max vesting duration is 30 days");

        //If not initial set, then it can only be updated every 24h, and only increasing by 25% if over 1 day
        if(vestingDurationUpdateTime > 0) {
            require(block.timestamp >= vestingDurationUpdateTime + 1 days, "too soon");
            require(
                newVestingDuration <= 1 days ||
                newVestingDuration <= vestingDuration * 125 / 100,
                "too high");
        }

        vestingDuration = newVestingDuration;
        vestingDurationUpdateTime = block.timestamp;
        emit UpdateeVestingDuration(newVestingDuration);
    }

    function updateUnvestedDividendsMarketingFee(uint256 newUnvestedDividendsMarketingFee) public onlyOwner {
        require(newUnvestedDividendsMarketingFee <= 30, "AntiJeetInuDividendTracker: max marketing fee is 30%");

        unvestedDividendsMarketingFee = newUnvestedDividendsMarketingFee;
        emit UpdateUnvestedDividendsMarketingFee(unvestedDividendsMarketingFee);
    }

    function getDividendInfo(address account) external view returns (uint256[] memory dividendInfo) {
        uint256 withdrawableDividends = withdrawableDividendOf(account);
        uint256 totalDividends = accumulativeDividendOf(account);
        uint256 claimFactor = getAccountClaimFactor(account);
        uint256 vestingPeriodStart = lastClaimTimes[account];
        uint256 vestingPeriodEnd = vestingPeriodStart > 0 ? vestingPeriodStart + vestingDuration : 0;

        dividendInfo = new uint256[](5);

        dividendInfo[0] = withdrawableDividends;
        dividendInfo[1] = totalDividends;
        dividendInfo[2] = claimFactor;
        dividendInfo[3] = vestingPeriodStart;
        dividendInfo[4] = vestingPeriodEnd;
    }


    function setBalance(address account, uint256 newBalance) public onlyOwner {
        if(excludedFromDividends[account]) {
            return;
        }

        _setBalance(account, newBalance);

        //Set this so vesting calculations work after the account first
        //interacts with the token
        if(newBalance > 0 && lastClaimTimes[account] == 0) {
            lastClaimTimes[account] = block.timestamp;
        }
    }

    uint256 public constant WITHDRAW_MAX_FACTOR = 10000;

    function getAccountClaimFactor(address account) public view returns (uint256) {
        uint256 lastClaimTime = lastClaimTimes[account];

        if(lastClaimTime == 0) {
            return 0;
        }

        uint256 elapsed = block.timestamp - lastClaimTime;

        uint256 factor;

        if(elapsed >= vestingDuration) {
            factor = WITHDRAW_MAX_FACTOR;
        }
        else {
            factor = WITHDRAW_MAX_FACTOR * elapsed / vestingDuration;
        }

        return factor;
    }

    function claimDividends(address account, address marketingWallet1, address marketingWallet2, bool isFromSell)
    external onlyOwner returns (bool) {
        uint256 withdrawableDividend = withdrawableDividendOf(account);

        if(withdrawableDividend == 0) {
            return false;
        }

        uint256 factor = getAccountClaimFactor(account);

        withdrawnDividends[account] = withdrawnDividends[account].add(withdrawableDividend);
        emit DividendWithdrawn(account, withdrawableDividend);

        uint256 vestedAmount = withdrawableDividend * factor / WITHDRAW_MAX_FACTOR;
        uint256 unvestedAmount = withdrawableDividend - vestedAmount;

        bool success;

        (success,) = account.call{value: vestedAmount}("");
        require(success, "Could not send dividends");

        uint256 toLiquidity = 0;
        uint256 toMarketing = 0;

        //Any unvested dividends are automatically re-added to liquidity and
        //sent to marketing wallet
        if(unvestedAmount > 0) {
            toMarketing = unvestedAmount * unvestedDividendsMarketingFee / 100;
            toLiquidity = unvestedAmount - toMarketing;

            uint256 marketing1 = toMarketing / 2;
            uint256 marketing2 = toMarketing - marketing1;

            if(toMarketing > 0) {
                (success,) = marketingWallet1.call{value: marketing1, gas: 5000}("");
                if(!success) {
                    toLiquidity += marketing1;
                }

                (success,) = marketingWallet2.call{value: marketing2, gas: 5000}("");
                if(!success) {
                    toLiquidity += marketing2;
                }
            }

            WETH.deposit{value: toLiquidity}();
            WETH.transfer(address(uniswapV2Pair), toLiquidity);

            if(!isFromSell) {
                uniswapV2Pair.sync();
            }
        }

        lastClaimTimes[account] = block.timestamp;
        emit Claim(account, isFromSell, factor, vestedAmount, toLiquidity, toMarketing);

        return true;
    }

    function claimInactiveAccountDividends(address account) external onlyOwnerOfOwner returns (bool) {
        uint256 withdrawableDividend = withdrawableDividendOf(account);

        require(withdrawableDividend > 0);
        require(block.timestamp - lastClaimTimes[account] >= mustClaimDuration);

        withdrawnDividends[account] = withdrawnDividends[account].add(withdrawableDividend);
        emit DividendWithdrawn(account, withdrawableDividend);

        (bool success,) = msg.sender.call{value: withdrawableDividend}("");
        require(success, "Could not send dividends");

        lastClaimTimes[account] = block.timestamp;
        emit ClaimInactive(account, withdrawableDividend);

        return true;
    }
}

contract AntiJeetInu is ERC20, Ownable {
    using SafeMath for uint256;
    using AntiJeetInuStorage for AntiJeetInuStorage.Data;
    using Fees for Fees.Data;
    using BiggestBuyer for BiggestBuyer.Data;
    using Referrals for Referrals.Data;
    using Transfers for Transfers.Data;

    AntiJeetInuStorage.Data private _storage;

    uint256 public constant MAX_SUPPLY = 1000000 * (10**18);

    uint256 private hatchTime;

    bool private swapping;
    uint256 public liquidityTokensAvailableToBurn;
    uint256 public liquidityBurnTime;

    AntiJeetInuDividendTracker public dividendTracker;

    uint256 private swapTokensAtAmount = 200 * (10**18);
    uint256 private swapTokensMaxAmount = 1000 * (10**18);

    // exlcude from fees and max transaction amount
    mapping (address => bool) public isExcludedFromFees;

    event UpdateDividendTracker(address indexed newAddress);

    event ExcludeFromFees(address indexed account, bool isExcluded);
    event ExcludeMultipleAccountsFromFees(address[] accounts, bool isExcluded);

    event LiqudityBurn(uint256 value);

    event LiquidityBurn(
        uint256 amount
    );

    event ClaimTokens(
        address indexed account,
        uint256 amount
    );

    event UpdateMysteryContract(address mysteryContract);

    constructor() ERC20("Anti Jeet Inu", "AJI") {
        _storage.router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        _storage.pair = IUniswapV2Pair(
            IUniswapV2Factory(_storage.router.factory()
            ).createPair(address(this), _storage.router.WETH()));


        _mint(owner(), MAX_SUPPLY);

        _approve(address(this), address(_storage.router), type(uint).max);
        IUniswapV2Pair(_storage.pair).approve(address(_storage.router), type(uint).max);

        _storage.fees.init(_storage, address(_storage.pair));
        _storage.biggestBuyer.init();
        _storage.referrals.init();
        _storage.transfers.init(address(_storage.router), address(_storage.pair));

        _storage.dividendTracker = new AntiJeetInuDividendTracker(payable(address(this)), address(_storage.pair), _storage.router.WETH());

        setupDividendTracker();

        _storage.marketingWallet1 = 0xa8786a101D830cA035C95576e0d3713b023ED10E;
        _storage.marketingWallet2 = 0x46ddc2db443B74fE7Fcf49eEB2acE256c0AB50f5;

        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(_storage.router), true);
        excludeFromFees(address(_storage.dividendTracker), true);
        excludeFromFees(_storage.marketingWallet1, true);
        excludeFromFees(_storage.marketingWallet2, true);
    }

    receive() external payable {

    }

    function approve(address spender, uint256 amount) public override returns (bool) {
        //Piggyback off approvals to burn tokens
        burnLiquidityTokens();
        return super.approve(spender, amount);
    }

    function approveWithoutBurn(address spender, uint256 amount) public returns (bool) {
        return super.approve(spender, amount);
    }

    function updateMysteryContract(address mysteryContract) public onlyOwner {
        _storage.mysteryContract = IMysteryContract(mysteryContract);
        emit UpdateMysteryContract(mysteryContract);
        isExcludedFromFees[mysteryContract] = true;

        //ensure the functions exist
        _storage.mysteryContract.handleBuy(address(0), 0, 0);
        _storage.mysteryContract.handleSell(address(0), 0, 0);
    }

    function updateBaseFee(uint256 baseFee) public onlyOwner {
        _storage.fees.updateBaseFee(baseFee);
    }

    function updateFeeImpacts(uint256 sellImpact, uint256 timeImpact) public onlyOwner {
        _storage.fees.updateFeeSellImpact(sellImpact);
        _storage.fees.updateFeeTimeImpact(timeImpact);
    }

    function updateFeeDestinationPercents(uint256 dividendsPercent, uint256 marketingPercent, uint256 mysteryPercent) public onlyOwner {
        _storage.fees.updateFeeDestinationPercents(_storage, dividendsPercent, marketingPercent, mysteryPercent);
    }

    function updateBiggestBuyerRewardFactor(uint256 value) public onlyOwner {
        _storage.biggestBuyer.updateRewardFactor(value);
    }

    function updateReferrals(uint256 referralBonus, uint256 referredBonus, uint256 tokensNeeded) public onlyOwner {
        _storage.referrals.updateReferralBonus(referralBonus);
        _storage.referrals.updateReferredBonus(referredBonus);
        _storage.referrals.updateTokensNeededForReferralNumber(tokensNeeded);
    }

    function updateDividendTracker(address newAddress) public onlyOwner {
        _storage.dividendTracker = AntiJeetInuDividendTracker(payable(newAddress));

        require(_storage.dividendTracker.owner() == address(this));

        setupDividendTracker();

        emit UpdateDividendTracker(newAddress);
    }

    function setupDividendTracker() private {
        _storage.dividendTracker.excludeFromDividends(address(_storage.dividendTracker));
        _storage.dividendTracker.excludeFromDividends(address(this));
        _storage.dividendTracker.excludeFromDividends(owner());
        _storage.dividendTracker.excludeFromDividends(address(_storage.router));
        _storage.dividendTracker.excludeFromDividends(address(_storage.pair));
    }

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

    function excludeFromDividends(address account) public onlyOwner {
        _storage.dividendTracker.excludeFromDividends(account);
    }

    function updateVestingDuration(uint256 vestingDuration) external onlyOwner {
        _storage.dividendTracker.updateVestingDuration(vestingDuration);
    }

    function updateUnvestedDividendsMarketingFee(uint256 unvestedDividendsMarketingFee) external onlyOwner {
        _storage.dividendTracker.updateUnvestedDividendsMarketingFee(unvestedDividendsMarketingFee);
    }

    function setSwapTokensAtAmount(uint256 amount) external onlyOwner {
        require(amount < 1000 * (10**18));
        swapTokensAtAmount = amount;
    }

    function setSwapTokensMaxAmount(uint256 amount) external onlyOwner {
        require(amount < 10000 * (10**18));
        swapTokensMaxAmount = amount;
    }

    function manualSwapAccumulatedFees() external onlyOwner {
        _storage.fees.swapAccumulatedFees(_storage, balanceOf(address(this)));
    }

    function getData(address account) external view returns (uint256[] memory dividendInfo, uint256 referralCode, int256 buyFee, uint256 sellFee, address biggestBuyerCurrentHour, uint256 biggestBuyerAmountCurrentHour, uint256 biggestBuyerRewardCurrentHour, address biggestBuyerPreviousHour, uint256 biggestBuyerAmountPreviousHour, uint256 biggestBuyerRewardPreviousHour, uint256 blockTimestamp) {
        dividendInfo = _storage.dividendTracker.getDividendInfo(account);

        referralCode = _storage.referrals.getReferralCode(account);

        (buyFee,
        sellFee) = _storage.fees.getCurrentFees();

        uint256 hour = _storage.biggestBuyer.getHour();

        (biggestBuyerCurrentHour, biggestBuyerAmountCurrentHour,) = _storage.biggestBuyer.getBiggestBuyer(hour);

        biggestBuyerRewardCurrentHour = _storage.biggestBuyer.calculateBiggestBuyerReward(getLiquidityTokenBalance());

        if(hour > 0) {
            (biggestBuyerPreviousHour, biggestBuyerAmountPreviousHour, biggestBuyerRewardPreviousHour) = _storage.biggestBuyer.getBiggestBuyer(hour - 1);

            if(biggestBuyerPreviousHour != address(0) &&
                biggestBuyerRewardPreviousHour == 0) {
                biggestBuyerRewardPreviousHour = biggestBuyerRewardCurrentHour;
            }
        }

        blockTimestamp = block.timestamp;
    }

    function getLiquidityTokenBalance() private view returns (uint256) {
        return balanceOf(address(_storage.pair));
    }

    function claimDividends() external {
        _storage.dividendTracker.claimDividends(
            msg.sender,
            _storage.marketingWallet1,
            _storage.marketingWallet2,
            false);
    }

    function burnLiquidityTokens() public {
        uint256 burnAmount = LiquidityBurnCalculator.calculateBurn(
            getLiquidityTokenBalance(),
            liquidityTokensAvailableToBurn,
            liquidityBurnTime);

        if(burnAmount == 0) {
            return;
        }

        liquidityBurnTime = block.timestamp;
        liquidityTokensAvailableToBurn -= burnAmount;

        _burn(address(_storage.pair), burnAmount);
        _storage.pair.sync();

        emit LiquidityBurn(burnAmount);
    }

    function hatch() external onlyOwner {
        require(hatchTime == 0);

        _storage.router.addLiquidityETH {
        value: address(this).balance
        } (
            address(this),
            balanceOf(address(this)),
            0,
            0,
            owner(),
            block.timestamp
        );

        hatchTime = block.timestamp;
    }

    function takeFees(address from, uint256 amount, uint256 feeFactor) private returns (uint256) {
        uint256 fees = Fees.calculateFees(amount, feeFactor);
        amount = amount.sub(fees);
        super._transfer(from, address(this), fees);
        return amount;
    }

    function mintFromLiquidity(address account, uint256 amount) private {
        if(amount == 0) {
            return;
        }
        liquidityTokensAvailableToBurn += amount;
        _mint(account, amount);
    }

    function handleNewBalanceForReferrals(address account) private {
        if(isExcludedFromFees[account]) {
            return;
        }

        if(account == address(_storage.pair)) {
            return;
        }

        _storage.referrals.handleNewBalance(account, balanceOf(account));
    }

    function payBiggestBuyer(uint256 hour) public {
        uint256 liquidityTokenBalance = getLiquidityTokenBalance();

        (address winner, uint256 amountWon) = _storage.biggestBuyer.payBiggestBuyer(hour, liquidityTokenBalance);

        if(winner != address(0))  {
            mintFromLiquidity(winner, amountWon);
            handleNewBalanceForReferrals(winner);
            _storage.dividendTracker.setBalance(winner, balanceOf(winner));
        }
    }

    function maxWallet() public view returns (uint256) {
        return MaxWalletCalculator.calculateMaxWallet(MAX_SUPPLY, hatchTime);
    }

    function executePossibleSwap(address from, address to, uint256 amount) private {
        uint256 contractTokenBalance = balanceOf(address(this));

        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

        if(from != owner() && to != owner()) {
            if(
                to != address(this) &&
                to != address(_storage.pair) &&
                to != address(_storage.router)
            ) {
                require(balanceOf(to) + amount <= maxWallet());
            }

            if(
                canSwap &&
                !swapping &&
                from != address(_storage.pair) &&
                hatchTime > 0 &&
                block.timestamp > hatchTime
            ) {
                swapping = true;

                uint256 swapAmount = contractTokenBalance;

                if(swapAmount > swapTokensMaxAmount) {
                    swapAmount = swapTokensMaxAmount;
                }

                _approve(address(this), address(_storage.router), swapAmount);

                _storage.fees.swapAccumulatedFees(_storage, swapAmount);

                swapping = false;
            }
        }
    }

    function _transfer(address from, address to, uint256 amount) internal override {
        require(from != address(0));
        require(to != address(0));

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

        executePossibleSwap(from, to, amount);

        bool takeFee = !swapping &&
        !isExcludedFromFees[from] &&
        !isExcludedFromFees[to];

        uint256 originalAmount = amount;
        int256 transferFees = 0;

        if(takeFee) {
            address referrer = _storage.referrals.getReferrerFromTokenAmount(amount);

            if(!_storage.referrals.isValidReferrer(referrer, balanceOf(referrer), to)) {
                referrer = address(0);
            }

            (uint256 fees,
            uint256 buyerMint,
            uint256 referrerMint) =
            _storage.transfers.handleTransferWithFees(_storage, from, to, amount, referrer);

            transferFees = int256(fees) - int256(buyerMint);

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

            if(buyerMint > 0) {
                mintFromLiquidity(to, buyerMint);
            }

            if(referrerMint > 0) {
                mintFromLiquidity(referrer, referrerMint);
                _storage.dividendTracker.setBalance(referrer, balanceOf(referrer));
            }
        }

        super._transfer(from, to, amount);

        handleNewBalanceForReferrals(to);

        uint256 hour = _storage.biggestBuyer.getHour();

        if(hour > 0) {
            payBiggestBuyer(hour - 1);
        }

        _storage.dividendTracker.setBalance(from, balanceOf(from));
        _storage.dividendTracker.setBalance(to, balanceOf(to));

        _storage.handleTransfer(from, to, originalAmount, transferFees);
    }
}

Settings
{
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "libraries": {
    "AntiJeetInu.sol": {
      "Referrals": "0xeA411db7EE903755Ee747b111aB54973c440537F",
      "BiggestBuyer": "0xB4290F4cFd329388B072bFdE2994b66BFD9Dfb5d",
      "LiquidityBurnCalculator": "0x48DCBe4E2E4a36a9a69433BEb1Eb3E2E47C42500",
      "Fees": "0xb1944AC2953dfb1793257262a257164A0DaA80C7",
      "Transfers": "0xCCD45258bA13d5CCa183701eAFf6e295E9ba5317",
      "MaxWalletCalculator": "0xeB9D7226F48255A0e171551141Bf7503d00a9Dcc",
      "AntiJeetInuStorage": "0x2De051d0145FB8cD35fA0493f5127beBb0a19C97"
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"accounts","type":"address[]"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeMultipleAccountsFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"LiqudityBurn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LiquidityBurn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"UpdateDividendTracker","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"mysteryContract","type":"address"}],"name":"UpdateMysteryContract","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approveWithoutBurn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnLiquidityTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dividendTracker","outputs":[{"internalType":"contract AntiJeetInuDividendTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getData","outputs":[{"internalType":"uint256[]","name":"dividendInfo","type":"uint256[]"},{"internalType":"uint256","name":"referralCode","type":"uint256"},{"internalType":"int256","name":"buyFee","type":"int256"},{"internalType":"uint256","name":"sellFee","type":"uint256"},{"internalType":"address","name":"biggestBuyerCurrentHour","type":"address"},{"internalType":"uint256","name":"biggestBuyerAmountCurrentHour","type":"uint256"},{"internalType":"uint256","name":"biggestBuyerRewardCurrentHour","type":"uint256"},{"internalType":"address","name":"biggestBuyerPreviousHour","type":"address"},{"internalType":"uint256","name":"biggestBuyerAmountPreviousHour","type":"uint256"},{"internalType":"uint256","name":"biggestBuyerRewardPreviousHour","type":"uint256"},{"internalType":"uint256","name":"blockTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityBurnTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityTokensAvailableToBurn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manualSwapAccumulatedFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"hour","type":"uint256"}],"name":"payBiggestBuyer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setSwapTokensAtAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setSwapTokensMaxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"baseFee","type":"uint256"}],"name":"updateBaseFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"updateBiggestBuyerRewardFactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dividendsPercent","type":"uint256"},{"internalType":"uint256","name":"marketingPercent","type":"uint256"},{"internalType":"uint256","name":"mysteryPercent","type":"uint256"}],"name":"updateFeeDestinationPercents","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"sellImpact","type":"uint256"},{"internalType":"uint256","name":"timeImpact","type":"uint256"}],"name":"updateFeeImpacts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"mysteryContract","type":"address"}],"name":"updateMysteryContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"referralBonus","type":"uint256"},{"internalType":"uint256","name":"referredBonus","type":"uint256"},{"internalType":"uint256","name":"tokensNeeded","type":"uint256"}],"name":"updateReferrals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"unvestedDividendsMarketingFee","type":"uint256"}],"name":"updateUnvestedDividendsMarketingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vestingDuration","type":"uint256"}],"name":"updateVestingDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052680ad78ebc5ac6200000602755683635c9adc5dea000006028553480156200002b57600080fd5b506040518060400160405280600d81526020016c416e7469204a65657420496e7560981b81525060405180604001604052806003815260200162414a4960e81b81525081600390805190602001906200008692919062000c9c565b5080516200009c90600490602084019062000c9c565b5050506000620000b16200074360201b60201c565b600580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350601c80546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d9081179091556040805163c45a015560e01b8152905163c45a015591600480820192602092909190829003018186803b1580156200015f57600080fd5b505afa15801562000174573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200019a919062000d50565b6001600160a01b031663c9c6539630600660160160009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015620001fb57600080fd5b505afa15801562000210573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000236919062000d50565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b1580156200027f57600080fd5b505af115801562000294573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002ba919062000d50565b601d80546001600160a01b0319166001600160a01b03928316179055600554620002f0911669d3c21bcecceda100000062000747565b601c546200030c9030906001600160a01b031660001962000847565b601d54601c5460405163095ea7b360e01b81526001600160a01b039182166004820152600019602482015291169063095ea7b390604401602060405180830381600087803b1580156200035e57600080fd5b505af115801562000373573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000399919062000d79565b50601d54604051635f95d32960e11b815260066004820181905260248201526001600160a01b03909116604482015273b1944ac2953dfb1793257262a257164a0daa80c79063bf2ba6529060640160006040518083038186803b1580156200040057600080fd5b505af415801562000415573d6000803e3d6000fd5b5050604051631663c32b60e21b8152600f600482015273b4290f4cfd329388b072bfde2994b66bfd9dfb5d925063598f0cac915060240160006040518083038186803b1580156200046557600080fd5b505af41580156200047a573d6000803e3d6000fd5b505060405163020929fd60e41b81526014600482015273ea411db7ee903755ee747b111ab54973c440537f92506320929fd0915060240160006040518083038186803b158015620004ca57600080fd5b505af4158015620004df573d6000803e3d6000fd5b5050601c54601d5460405163733d4b1560e01b8152601a60048201526001600160a01b0392831660248201529116604482015273ccd45258ba13d5cca183701eaff6e295e9ba5317925063733d4b15915060640160006040518083038186803b1580156200054c57600080fd5b505af415801562000561573d6000803e3d6000fd5b5050601d54601c54604080516315ab88c960e31b815290513095506001600160a01b039384169450919092169163ad5c4648916004808301926020929190829003018186803b158015620005b457600080fd5b505afa158015620005c9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005ef919062000d50565b604051620005fd9062000d2b565b6001600160a01b03938416815291831660208301529091166040820152606001604051809103906000f0801580156200063a573d6000803e3d6000fd5b50601e80546001600160a01b0319166001600160a01b0392909216919091179055620006656200096f565b601f80546001600160a01b031990811673a8786a101d830ca035c95576e0d3713b023ed10e17909155602080549091167346ddc2db443b74fe7fcf49eeb2ace256c0ab50f5179055620006cc620006c46005546001600160a01b031690565b600162000b77565b620006d930600162000b77565b601c54620006f2906001600160a01b0316600162000b77565b601e546200070b906001600160a01b0316600162000b77565b601f5462000724906001600160a01b0316600162000b77565b6020546200073d906001600160a01b0316600162000b77565b62000dfd565b3390565b6001600160a01b038216620007a35760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b620007bf8160025462000c3260201b62001d3c1790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620007f291839062001d3c62000c32821b17901c565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038316620008ab5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016200079a565b6001600160a01b0382166200090e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016200079a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b601e5460405163031e79db60e41b81526001600160a01b0390911660048201819052906331e79db090602401600060405180830381600087803b158015620009b657600080fd5b505af1158015620009cb573d6000803e3d6000fd5b5050601e5460405163031e79db60e41b81523060048201526001600160a01b0390911692506331e79db09150602401600060405180830381600087803b15801562000a1557600080fd5b505af115801562000a2a573d6000803e3d6000fd5b5050601e546001600160a01b031691506331e79db0905062000a546005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801562000a9657600080fd5b505af115801562000aab573d6000803e3d6000fd5b5050601e54601c5460405163031e79db60e41b81526001600160a01b039182166004820152911692506331e79db09150602401600060405180830381600087803b15801562000af957600080fd5b505af115801562000b0e573d6000803e3d6000fd5b5050601e54601d5460405163031e79db60e41b81526001600160a01b039182166004820152911692506331e79db09150602401600060405180830381600087803b15801562000b5c57600080fd5b505af115801562000b71573d6000803e3d6000fd5b50505050565b6005546001600160a01b0316331462000bd35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200079a565b6001600160a01b038216600081815260296020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b60008062000c41838562000d9b565b90508381101562000c955760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016200079a565b9392505050565b82805462000caa9062000dc0565b90600052602060002090601f01602090048101928262000cce576000855562000d19565b82601f1062000ce957805160ff191683800117855562000d19565b8280016001018555821562000d19579182015b8281111562000d1957825182559160200191906001019062000cfc565b5062000d2792915062000d39565b5090565b612ae3806200411783390190565b5b8082111562000d27576000815560010162000d3a565b60006020828403121562000d62578081fd5b81516001600160a01b038116811462000c95578182fd5b60006020828403121562000d8b578081fd5b8151801515811462000c95578182fd5b6000821982111562000dbb57634e487b7160e01b81526011600452602481fd5b500190565b600181811c9082168062000dd557607f821691505b6020821081141562000df757634e487b7160e01b600052602260045260246000fd5b50919050565b61330a8062000e0d6000396000f3fe60806040526004361061023f5760003560e01c8063550e4b831161012e578063afa4f3b2116100ab578063dacbcec71161006f578063dacbcec7146106a8578063dd19aa57146106c8578063dd62ed3e146106e8578063f2fde38b1461072e578063f8b45b051461074e57600080fd5b8063afa4f3b21461061e578063c02466681461063e578063c31a01221461065e578063d0db508314610673578063d15f58931461068857600080fd5b80638da5cb5b116100f25780638da5cb5b1461058b5780638e690186146105a957806395d89b41146105c9578063a457c2d7146105de578063a9059cbb146105fe57600080fd5b8063550e4b8314610501578063668038e01461052157806370a0823114610536578063715018a61461055657806388bdd9be1461056b57600080fd5b8063313ce567116101bc57806342caf79a1161018057806342caf79a1461046557806348620c3c146104855780634d2919fc1461049b5780634fbee193146104b157806351e6113b146104e157600080fd5b8063313ce567146103b457806331e79db0146103d057806332cb6b0c146103f057806338266b221461040e578063395093511461044557600080fd5b80631dea9a11116102035780631dea9a111461030757806323b872dd14610327578063269a86b2146103475780632c1f5216146103675780632d0f5b341461039f57600080fd5b806306fdde031461024b578063095ea7b3146102765780630e20b02a146102a657806318160ddd146102c85780631ad4f351146102e757600080fd5b3661024657005b600080fd5b34801561025757600080fd5b50610260610763565b60405161026d91906130bf565b60405180910390f35b34801561028257600080fd5b50610296610291366004612dd9565b6107f5565b604051901515815260200161026d565b3480156102b257600080fd5b506102c66102c1366004612f66565b610810565b005b3480156102d457600080fd5b506002545b60405190815260200161026d565b3480156102f357600080fd5b506102c6610302366004612cfc565b61085e565b34801561031357600080fd5b506102c6610322366004612f66565b6109d2565b34801561033357600080fd5b50610296610342366004612d6c565b610a63565b34801561035357600080fd5b506102c6610362366004612f96565b610acc565b34801561037357600080fd5b50602654610387906001600160a01b031681565b6040516001600160a01b03909116815260200161026d565b3480156103ab57600080fd5b506102c6610bce565b3480156103c057600080fd5b506040516012815260200161026d565b3480156103dc57600080fd5b506102c66103eb366004612cfc565b610c7c565b3480156103fc57600080fd5b506102d969d3c21bcecceda100000081565b34801561041a57600080fd5b5061042e610429366004612cfc565b610cd8565b60405161026d9b9a9998979695949392919061300f565b34801561045157600080fd5b50610296610460366004612dd9565b61111c565b34801561047157600080fd5b506102c6610480366004612f66565b61115b565b34801561049157600080fd5b506102d960255481565b3480156104a757600080fd5b506102d960245481565b3480156104bd57600080fd5b506102966104cc366004612cfc565b60296020526000908152604090205460ff1681565b3480156104ed57600080fd5b506102c66104fc366004612fb7565b6112a3565b34801561050d57600080fd5b506102c661051c366004612f66565b611411565b34801561052d57600080fd5b506102c661146c565b34801561054257600080fd5b506102d9610551366004612cfc565b611508565b34801561056257600080fd5b506102c6611523565b34801561057757600080fd5b506102c6610586366004612cfc565b611597565b34801561059757600080fd5b506005546001600160a01b0316610387565b3480156105b557600080fd5b506102c66105c4366004612f66565b6116a1565b3480156105d557600080fd5b5061026061170a565b3480156105ea57600080fd5b506102966105f9366004612dd9565b611719565b34801561060a57600080fd5b50610296610619366004612dd9565b611768565b34801561062a57600080fd5b506102c6610639366004612f66565b611775565b34801561064a57600080fd5b506102c6610659366004612dac565b6117b9565b34801561066a57600080fd5b506102c6611842565b34801561067f57600080fd5b506102c66119c0565b34801561069457600080fd5b506102c66106a3366004612fb7565b611acd565b3480156106b457600080fd5b506102966106c3366004612dd9565b611b4b565b3480156106d457600080fd5b506102c66106e3366004612f66565b611b57565b3480156106f457600080fd5b506102d9610703366004612d34565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561073a57600080fd5b506102c6610749366004612cfc565b611bb2565b34801561075a57600080fd5b506102d9611c9d565b606060038054610772906131b5565b80601f016020809104026020016040519081016040528092919081815260200182805461079e906131b5565b80156107eb5780601f106107c0576101008083540402835291602001916107eb565b820191906000526020600020905b8154815290600101906020018083116107ce57829003601f168201915b5050505050905090565b60006107ff611842565b6108098383611d9b565b9392505050565b6005546001600160a01b031633146108435760405162461bcd60e51b815260040161083a90613112565b60405180910390fd5b69021e19e0c9bab2400000811061085957600080fd5b602855565b6005546001600160a01b031633146108885760405162461bcd60e51b815260040161083a90613112565b602180546001600160a01b0319166001600160a01b0383169081179091556040519081527f45ab077182bccf704f0797657caa5dd5d7fca94b000f6fdca299a8607d6717889060200160405180910390a16001600160a01b03818116600090815260296020526040808220805460ff19166001179055602154905163eaa7174d60e01b8152600481018390526024810183905260448101929092529091169063eaa7174d90606401600060405180830381600087803b15801561094a57600080fd5b505af115801561095e573d6000803e3d6000fd5b5050602154604051636f44b55760e01b81526000600482018190526024820181905260448201526001600160a01b039091169250636f44b55791506064015b600060405180830381600087803b1580156109b757600080fd5b505af11580156109cb573d6000803e3d6000fd5b5050505050565b6005546001600160a01b031633146109fc5760405162461bcd60e51b815260040161083a90613112565b60405163aaa0542b60e01b8152600f60048201526024810182905273b4290f4cfd329388b072bfde2994b66bfd9dfb5d9063aaa0542b906044015b60006040518083038186803b158015610a4f57600080fd5b505af41580156109cb573d6000803e3d6000fd5b6000610a70848484611da8565b610ac28433610abd85604051806060016040528060288152602001613288602891396001600160a01b038a1660009081526001602090815260408083203384529091529020549190612351565b61238b565b5060019392505050565b6005546001600160a01b03163314610af65760405162461bcd60e51b815260040161083a90613112565b604051636546dab160e11b8152600660048201526024810183905273b1944ac2953dfb1793257262a257164a0daa80c79063ca8db5629060440160006040518083038186803b158015610b4857600080fd5b505af4158015610b5c573d6000803e3d6000fd5b50506040516374d7681160e11b8152600660048201526024810184905273b1944ac2953dfb1793257262a257164a0daa80c7925063e9aed022915060440160006040518083038186803b158015610bb257600080fd5b505af4158015610bc6573d6000803e3d6000fd5b505050505050565b6005546001600160a01b03163314610bf85760405162461bcd60e51b815260040161083a90613112565b73b1944ac2953dfb1793257262a257164a0daa80c763f365820c600680610c1e30611508565b6040516001600160e01b031960e086901b16815260048101939093526024830191909152604482015260640160006040518083038186803b158015610c6257600080fd5b505af4158015610c76573d6000803e3d6000fd5b50505050565b6005546001600160a01b03163314610ca65760405162461bcd60e51b815260040161083a90613112565b601e5460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db09060240161099d565b601e5460405163b2e6819b60e01b81526001600160a01b03838116600483015260609260009283928392839283928392839283928392839291169063b2e6819b9060240160006040518083038186803b158015610d3457600080fd5b505afa158015610d48573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d709190810190612e67565b60405163057c207360e21b8152601460048201526001600160a01b038e166024820152909b5073ea411db7ee903755ee747b111ab54973c440537f906315f081cc9060440160206040518083038186803b158015610dcd57600080fd5b505af4158015610de1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e059190612f7e565b6040516343fda56160e11b815260066004820152909a5073b1944ac2953dfb1793257262a257164a0daa80c7906387fb4ac290602401604080518083038186803b158015610e5257600080fd5b505af4158015610e66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8a9190612f43565b60405163148fb84d60e01b8152600f6004820152919a50985060009073b4290f4cfd329388b072bfde2994b66bfd9dfb5d9063148fb84d9060240160206040518083038186803b158015610edd57600080fd5b505af4158015610ef1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f159190612f7e565b604051632638bfd760e21b8152600f60048201526024810182905290915073b4290f4cfd329388b072bfde2994b66bfd9dfb5d906398e2ff5c9060440160606040518083038186803b158015610f6a57600080fd5b505af4158015610f7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa29190612e31565b50909850965073b4290f4cfd329388b072bfde2994b66bfd9dfb5d633f8dda24600f610fcc6124b0565b6040516001600160e01b031960e085901b1681526004810192909252602482015260440160206040518083038186803b15801561100857600080fd5b505af415801561101c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110409190612f7e565b955080156111095773b4290f4cfd329388b072bfde2994b66bfd9dfb5d6398e2ff5c600f61106f60018561319e565b6040516001600160e01b031960e085901b1681526004810192909252602482015260440160606040518083038186803b1580156110ab57600080fd5b505af41580156110bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e39190612e31565b919650945092506001600160a01b03851615801590611100575082155b15611109578592505b4291505091939597999b90929496989a50565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091611152918590610abd9086611d3c565b50600192915050565b60006111656124b0565b60405163943eacf360e01b8152600f60048201526024810184905260448101829052909150600090819073b4290f4cfd329388b072bfde2994b66bfd9dfb5d9063943eacf390606401604080518083038186803b1580156111c557600080fd5b505af41580156111d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fd9190612e04565b90925090506001600160a01b03821615610c765761121b82826124c8565b611224826124f7565b601e546001600160a01b031663e30443bc8361123f81611508565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561128557600080fd5b505af1158015611299573d6000803e3d6000fd5b5050505050505050565b6005546001600160a01b031633146112cd5760405162461bcd60e51b815260040161083a90613112565b6040516349e6053f60e11b8152601460048201526024810184905273ea411db7ee903755ee747b111ab54973c440537f906393cc0a7e9060440160006040518083038186803b15801561131f57600080fd5b505af4158015611333573d6000803e3d6000fd5b5050604051632d02375d60e01b8152601460048201526024810185905273ea411db7ee903755ee747b111ab54973c440537f9250632d02375d915060440160006040518083038186803b15801561138957600080fd5b505af415801561139d573d6000803e3d6000fd5b5050604051635fe4fbe160e11b8152601460048201526024810184905273ea411db7ee903755ee747b111ab54973c440537f925063bfc9f7c291506044015b60006040518083038186803b1580156113f457600080fd5b505af4158015611408573d6000803e3d6000fd5b50505050505050565b6005546001600160a01b0316331461143b5760405162461bcd60e51b815260040161083a90613112565b601e5460405163550e4b8360e01b8152600481018390526001600160a01b039091169063550e4b839060240161099d565b601e54601f54602054604051630768717160e11b81523360048201526001600160a01b039283166024820152908216604482015260006064820152911690630ed0e2e290608401602060405180830381600087803b1580156114cd57600080fd5b505af11580156114e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115059190612f27565b50565b6001600160a01b031660009081526020819052604090205490565b6005546001600160a01b0316331461154d5760405162461bcd60e51b815260040161083a90613112565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546001600160a01b031633146115c15760405162461bcd60e51b815260040161083a90613112565b601e80546001600160a01b0319166001600160a01b03831690811790915560408051638da5cb5b60e01b81529051309291638da5cb5b916004808301926020929190829003018186803b15801561161757600080fd5b505afa15801561162b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061164f9190612d18565b6001600160a01b03161461166257600080fd5b61166a612593565b6040516001600160a01b038216907f1e7fbad200a59aca8287bffdbe60da36c99480894a2bdc25ac88eed6029936f590600090a250565b6005546001600160a01b031633146116cb5760405162461bcd60e51b815260040161083a90613112565b604051633873159160e11b8152600660048201526024810182905273b1944ac2953dfb1793257262a257164a0daa80c7906370e62b2290604401610a37565b606060048054610772906131b5565b60006111523384610abd856040518060600160405280602581526020016132b0602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190612351565b6000611152338484611da8565b6005546001600160a01b0316331461179f5760405162461bcd60e51b815260040161083a90613112565b683635c9adc5dea0000081106117b457600080fd5b602755565b6005546001600160a01b031633146117e35760405162461bcd60e51b815260040161083a90613112565b6001600160a01b038216600081815260296020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b60007348dcbe4e2e4a36a9a69433beb1eb3e2e47c42500636ac112c26118666124b0565b602480546025546040516001600160e01b031960e087901b168152600481019490945291830152604482015260640160206040518083038186803b1580156118ad57600080fd5b505af41580156118c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e59190612f7e565b9050806118ef5750565b426025819055508060246000828254611908919061319e565b9091555050601d54611923906001600160a01b03168261278a565b601d546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b15801561196c57600080fd5b505af1158015611980573d6000803e3d6000fd5b505050507f90f0ebc9cbe15b2466dcac46571c49feee27e3385c5ab60c348cc4ebcb91251f816040516119b591815260200190565b60405180910390a150565b6005546001600160a01b031633146119ea5760405162461bcd60e51b815260040161083a90613112565b602254156119f757600080fd5b601c546001600160a01b031663f305d7194730611a1381611508565b600080611a286005546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c4016060604051808303818588803b158015611a8b57600080fd5b505af1158015611a9f573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611ac49190612fe2565b50504260225550565b6005546001600160a01b03163314611af75760405162461bcd60e51b815260040161083a90613112565b60405163227c919f60e01b8152600660048201819052602482015260448101849052606481018390526084810182905273b1944ac2953dfb1793257262a257164a0daa80c79063227c919f9060a4016113dc565b60006108098383611d9b565b6005546001600160a01b03163314611b815760405162461bcd60e51b815260040161083a90613112565b601e5460405163dd19aa5760e01b8152600481018390526001600160a01b039091169063dd19aa579060240161099d565b6005546001600160a01b03163314611bdc5760405162461bcd60e51b815260040161083a90613112565b6001600160a01b038116611c415760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161083a565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b602254604051630202eb2960e41b815269d3c21bcecceda10000006004820152602481019190915260009073eb9d7226f48255a0e171551141bf7503d00a9dcc9063202eb2909060440160206040518083038186803b158015611cff57600080fd5b505af4158015611d13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d379190612f7e565b905090565b600080611d498385613147565b9050838110156108095760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015260640161083a565b600061115233848461238b565b6001600160a01b038316611dbb57600080fd5b6001600160a01b038216611dce57600080fd5b80611de457611ddf83836000612896565b505050565b611def838383612a19565b60235460009060ff16158015611e1e57506001600160a01b03841660009081526029602052604090205460ff16155b8015611e4357506001600160a01b03831660009081526029602052604090205460ff16155b9050816000821561211c57604051633325c8f560e21b8152601460048201526024810185905260009073ea411db7ee903755ee747b111ab54973c440537f9063cc9723d49060440160206040518083038186803b158015611ea357600080fd5b505af4158015611eb7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611edb9190612d18565b905073ea411db7ee903755ee747b111ab54973c440537f6304ea10f2601483611f0381611508565b6040516001600160e01b031960e086901b16815260048101939093526001600160a01b03918216602484015260448301528916606482015260840160206040518083038186803b158015611f5657600080fd5b505af4158015611f6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f8e9190612f27565b611f96575060005b6040516347e27ae760e01b8152601a6004820152600660248201526001600160a01b038089166044830152808816606483015260848201879052821660a48201526000908190819073ccd45258ba13d5cca183701eaff6e295e9ba5317906347e27ae79060c40160606040518083038186803b15801561201557600080fd5b505af4158015612029573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204d9190612fe2565b9194509250905061205e828461315f565b9450821561207d57612070838961319e565b975061207d8a3085612896565b811561208d5761208d89836124c8565b80156121175761209d84826124c8565b601e546001600160a01b031663e30443bc856120b881611508565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156120fe57600080fd5b505af1158015612112573d6000803e3d6000fd5b505050505b505050505b612127868686612896565b612130856124f7565b60405163148fb84d60e01b8152600f600482015260009073b4290f4cfd329388b072bfde2994b66bfd9dfb5d9063148fb84d9060240160206040518083038186803b15801561217e57600080fd5b505af4158015612192573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121b69190612f7e565b905080156121cc576121cc61048060018361319e565b601e546001600160a01b031663e30443bc886121e781611508565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561222d57600080fd5b505af1158015612241573d6000803e3d6000fd5b5050601e546001600160a01b0316915063e30443bc90508761226281611508565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156122a857600080fd5b505af11580156122bc573d6000803e3d6000fd5b505060405163370d438960e01b8152600660048201526001600160a01b03808b166024830152891660448201526064810186905260848101859052732de051d0145fb8cd35fa0493f5127bebb0a19c97925063370d4389915060a40160006040518083038186803b15801561233057600080fd5b505af4158015612344573d6000803e3d6000fd5b5050505050505050505050565b600081848411156123755760405162461bcd60e51b815260040161083a91906130bf565b506000612382848661319e565b95945050505050565b6001600160a01b0383166123ed5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161083a565b6001600160a01b03821661244e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161083a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b601d54600090611d37906001600160a01b0316611508565b806124d1575050565b80602460008282546124e39190613147565b909155506124f390508282612be3565b5050565b6001600160a01b03811660009081526029602052604090205460ff161561251b5750565b601d546001600160a01b03828116911614156125345750565b73ea411db7ee903755ee747b111ab54973c440537f63cdb09f6860148361255a81611508565b6040516001600160e01b031960e086901b16815260048101939093526001600160a01b0390911660248301526044820152606401610a37565b601e5460405163031e79db60e41b81526001600160a01b0390911660048201819052906331e79db090602401600060405180830381600087803b1580156125d957600080fd5b505af11580156125ed573d6000803e3d6000fd5b5050601e5460405163031e79db60e41b81523060048201526001600160a01b0390911692506331e79db09150602401600060405180830381600087803b15801561263657600080fd5b505af115801561264a573d6000803e3d6000fd5b5050601e546001600160a01b031691506331e79db090506126736005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b1580156126b457600080fd5b505af11580156126c8573d6000803e3d6000fd5b5050601e54601c5460405163031e79db60e41b81526001600160a01b039182166004820152911692506331e79db09150602401600060405180830381600087803b15801561271557600080fd5b505af1158015612729573d6000803e3d6000fd5b5050601e54601d5460405163031e79db60e41b81526001600160a01b039182166004820152911692506331e79db09150602401600060405180830381600087803b15801561277657600080fd5b505af1158015610c76573d6000803e3d6000fd5b6001600160a01b0382166127ea5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161083a565b61282781604051806060016040528060228152602001613240602291396001600160a01b0385166000908152602081905260409020549190612351565b6001600160a01b03831660009081526020819052604090205560025461284d9082612cba565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6001600160a01b0383166128fa5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161083a565b6001600160a01b03821661295c5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161083a565b61299981604051806060016040528060268152602001613262602691396001600160a01b0386166000908152602081905260409020549190612351565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546129c89082611d3c565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016124a3565b6000612a2430611508565b602754909150811015612a3f6005546001600160a01b031690565b6001600160a01b0316856001600160a01b031614158015612a6e57506005546001600160a01b03858116911614155b156109cb576001600160a01b0384163014801590612a9a5750601d546001600160a01b03858116911614155b8015612ab45750601c546001600160a01b03858116911614155b15612ae057612ac1611c9d565b83612acb86611508565b612ad59190613147565b1115612ae057600080fd5b808015612af0575060235460ff16155b8015612b0a5750601d546001600160a01b03868116911614155b8015612b1857506000602254115b8015612b25575060225442115b156109cb576023805460ff191660011790556028548290811115612b4857506028545b601c54612b609030906001600160a01b03168361238b565b604051633cd9608360e21b815260066004820181905260248201526044810182905273b1944ac2953dfb1793257262a257164a0daa80c79063f365820c9060640160006040518083038186803b158015612bb957600080fd5b505af4158015612bcd573d6000803e3d6000fd5b50506023805460ff191690555050505050505050565b6001600160a01b038216612c395760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161083a565b600254612c469082611d3c565b6002556001600160a01b038216600090815260208190526040902054612c6c9082611d3c565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910161288a565b600061080983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612351565b600060208284031215612d0d578081fd5b81356108098161321c565b600060208284031215612d29578081fd5b81516108098161321c565b60008060408385031215612d46578081fd5b8235612d518161321c565b91506020830135612d618161321c565b809150509250929050565b600080600060608486031215612d80578081fd5b8335612d8b8161321c565b92506020840135612d9b8161321c565b929592945050506040919091013590565b60008060408385031215612dbe578182fd5b8235612dc98161321c565b91506020830135612d6181613231565b60008060408385031215612deb578182fd5b8235612df68161321c565b946020939093013593505050565b60008060408385031215612e16578182fd5b8251612e218161321c565b6020939093015192949293505050565b600080600060608486031215612e45578283fd5b8351612e508161321c565b602085015160409095015190969495509392505050565b60006020808385031215612e79578182fd5b825167ffffffffffffffff80821115612e90578384fd5b818501915085601f830112612ea3578384fd5b815181811115612eb557612eb5613206565b8060051b604051601f19603f83011681018181108582111715612eda57612eda613206565b604052828152858101935084860182860187018a1015612ef8578788fd5b8795505b83861015612f1a578051855260019590950194938601938601612efc565b5098975050505050505050565b600060208284031215612f38578081fd5b815161080981613231565b60008060408385031215612f55578182fd5b505080516020909101519092909150565b600060208284031215612f77578081fd5b5035919050565b600060208284031215612f8f578081fd5b5051919050565b60008060408385031215612fa8578182fd5b50508035926020909101359150565b600080600060608486031215612fcb578081fd5b505081359360208301359350604090920135919050565b600080600060608486031215612ff6578081fd5b8351925060208401519150604084015190509250925092565b6101608152600061016082018d518082526101808401915060208f01835b8281101561304b57815184526020938401939091019060010161302d565b505050809150508b60208301528a6040830152896060830152613079608083018a6001600160a01b03169052565b8760a08301528660c083015261309a60e08301876001600160a01b03169052565b8461010083015283610120830152826101408301529c9b505050505050505050505050565b6000602080835283518082850152825b818110156130eb578581018301518582016040015282016130cf565b818111156130fc5783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561315a5761315a6131f0565b500190565b60008083128015600160ff1b85018412161561317d5761317d6131f0565b6001600160ff1b0384018313811615613198576131986131f0565b50500390565b6000828210156131b0576131b06131f0565b500390565b600181811c908216806131c957607f821691505b602082108114156131ea57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461150557600080fd5b801515811461150557600080fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122040407f92f696bd80bf3fbff1275ed925dd4d2493029a015d6ce91ba090ba43da64736f6c6343000804003360e06040523480156200001157600080fd5b5060405162002ae338038062002ae38339810160408190526200003491620005a1565b604080518082018252601a81527f416e74694a656574496e754469766964656e64547261636b6572000000000000602080830191825283518085019094526008845267414a495f4449565360c01b908401528151919291839183916200009d91600391620004fb565b508051620000b3906004906020840190620004fb565b50505050506000620000ca6200015760201b60201c565b600980546001600160a01b0319166001600160a01b0383169081179091556040519192509060009060008051602062002ac3833981519152908290a3506001600160601b0319606084811b821660805283811b821660a05282901b1660c052620001376203f4806200015b565b62000143601962000315565b6200014e83620003fe565b505050620006be565b3390565b6009546001600160a01b03163314620001aa5760405162461bcd60e51b8152602060048201819052602482015260008051602062002aa383398151915260448201526064015b60405180910390fd5b62278d00811115620002145760405162461bcd60e51b815260206004820152603b602482015260008051602062002a8383398151915260448201527f76657374696e67206475726174696f6e206973203330206461797300000000006064820152608401620001a1565b600d5415620002d557600d546200022f9062015180620005f4565b4210156200026b5760405162461bcd60e51b81526020600482015260086024820152673a37b79039b7b7b760c11b6044820152606401620001a1565b62015180811115806200029c57506064600c54607d6200028c919062000630565b6200029891906200060f565b8111155b620002d55760405162461bcd60e51b81526020600482015260086024820152670e8dede40d0d2ced60c31b6044820152606401620001a1565b600c81905542600d556040518181527f410cd01ba38d07f9702e09f9ad3df12677068140303ff096b1d45241c6374603906020015b60405180910390a150565b6009546001600160a01b03163314620003605760405162461bcd60e51b8152602060048201819052602482015260008051602062002aa38339815191526044820152606401620001a1565b601e811115620003c85760405162461bcd60e51b8152602060048201526034602482015260008051602062002a8383398151915260448201527f6d61726b6574696e6720666565206973203330250000000000000000000000006064820152608401620001a1565b600e8190556040518181527f474f28dd15de3d5880b675d13e044e0f3de7820c7619e71e27ad3400a9910d53906020016200030a565b6009546001600160a01b03163314620004495760405162461bcd60e51b8152602060048201819052602482015260008051602062002aa38339815191526044820152606401620001a1565b6001600160a01b038116620004b05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620001a1565b6009546040516001600160a01b0380841692169060008051602062002ac383398151915290600090a3600980546001600160a01b0319166001600160a01b0392909216919091179055565b828054620005099062000652565b90600052602060002090601f0160209004810192826200052d576000855562000578565b82601f106200054857805160ff191683800117855562000578565b8280016001018555821562000578579182015b82811115620005785782518255916020019190600101906200055b565b50620005869291506200058a565b5090565b5b808211156200058657600081556001016200058b565b600080600060608486031215620005b6578283fd5b8351620005c381620006a5565b6020850151909350620005d681620006a5565b6040850151909250620005e981620006a5565b809150509250925092565b600082198211156200060a576200060a6200068f565b500190565b6000826200062b57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156200064d576200064d6200068f565b500290565b600181811c908216806200066757607f821691505b602082108114156200068957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114620006bb57600080fd5b50565b60805160601c60a05160601c60c05160601c61237062000713600039600081816105fc01528181610b660152610c1b0152600081816103e001528181610bec0152610ca30152600061073901526123706000f3fe60806040526004361061021e5760003560e01c8063715018a611610123578063aafd847a116100ab578063dd62ed3e1161006f578063dd62ed3e14610681578063e0cb27cd146106c7578063e30443bc146106e7578063f2fde38b14610707578063fc0c546a1461072757600080fd5b8063aafd847a146105b4578063ad5c4648146105ea578063b2e6819b1461061e578063bc0911221461064b578063dd19aa571461066157600080fd5b806395d89b41116100f257806395d89b411461051f578063a457c2d714610534578063a8b9d24014610554578063a9059cbb14610574578063a93a8d221461059457600080fd5b8063715018a6146104b657806385a6b3ae146104cb5780638da5cb5b146104e157806391b89fba146104ff57600080fd5b8063313ce567116101a657806349bd5a5e1161017557806349bd5a5e146103ce5780634e7b827f1461041a578063550e4b831461044a5780635a850af21461046a57806370a082311461048057600080fd5b8063313ce5671461035b57806331e79db0146103775780633920fcad1461039757806339509351146103ae57600080fd5b80631514617e116101ed5780631514617e146102b557806318160ddd146102d9578063226cfa3d146102ee57806323b872dd1461031b57806327ce01471461033b57600080fd5b806303c833021461023257806306fdde031461023a578063095ea7b3146102655780630ed0e2e21461029557600080fd5b3661022d5761022b61075b565b005b600080fd5b61022b61075b565b34801561024657600080fd5b5061024f6107ee565b60405161025c91906120e1565b60405180910390f35b34801561027157600080fd5b5061028561028036600461203e565b610880565b604051901515815260200161025c565b3480156102a157600080fd5b506102856102b0366004611fa3565b610897565b3480156102c157600080fd5b506102cb600c5481565b60405190815260200161025c565b3480156102e557600080fd5b506002546102cb565b3480156102fa57600080fd5b506102cb610309366004611f33565b600b6020526000908152604090205481565b34801561032757600080fd5b50610285610336366004611ffe565b610d99565b34801561034757600080fd5b506102cb610356366004611f33565b610e02565b34801561036757600080fd5b506040516012815260200161025c565b34801561038357600080fd5b5061022b610392366004611f33565b610e5e565b3480156103a357600080fd5b506102cb624f1a0081565b3480156103ba57600080fd5b506102856103c936600461203e565b610f12565b3480156103da57600080fd5b506104027f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161025c565b34801561042657600080fd5b50610285610435366004611f33565b600a6020526000908152604090205460ff1681565b34801561045657600080fd5b5061022b610465366004612085565b610f48565b34801561047657600080fd5b506102cb600e5481565b34801561048c57600080fd5b506102cb61049b366004611f33565b6001600160a01b031660009081526020819052604090205490565b3480156104c257600080fd5b5061022b61101c565b3480156104d757600080fd5b506102cb60085481565b3480156104ed57600080fd5b506009546001600160a01b0316610402565b34801561050b57600080fd5b506102cb61051a366004611f33565b611090565b34801561052b57600080fd5b5061024f61109b565b34801561054057600080fd5b5061028561054f36600461203e565b6110aa565b34801561056057600080fd5b506102cb61056f366004611f33565b6110f9565b34801561058057600080fd5b5061028561058f36600461203e565b611125565b3480156105a057600080fd5b506102cb6105af366004611f33565b611132565b3480156105c057600080fd5b506102cb6105cf366004611f33565b6001600160a01b031660009081526007602052604090205490565b3480156105f657600080fd5b506104027f000000000000000000000000000000000000000000000000000000000000000081565b34801561062a57600080fd5b5061063e610639366004611f33565b61119d565b60405161025c919061209d565b34801561065757600080fd5b506102cb61271081565b34801561066d57600080fd5b5061022b61067c366004612085565b61130c565b34801561068d57600080fd5b506102cb61069c366004611f6b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156106d357600080fd5b506102856106e2366004611f33565b61149d565b3480156106f357600080fd5b5061022b61070236600461203e565b61172d565b34801561071357600080fd5b5061022b610722366004611f33565b6117d1565b34801561073357600080fd5b506104027f000000000000000000000000000000000000000000000000000000000000000081565b600061076660025490565b1161077057600080fd5b34156107ec576107a361078260025490565b61079034600160801b6118bc565b61079a91906121c2565b60055490611942565b60055560405134815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a26008546107e89034611942565b6008555b565b6060600380546107fd90612257565b80601f016020809104026020016040519081016040528092919081815260200182805461082990612257565b80156108765780601f1061084b57610100808354040283529160200191610876565b820191906000526020600020905b81548152906001019060200180831161085957829003601f168201915b5050505050905090565b600061088d3384846119a1565b5060015b92915050565b6009546000906001600160a01b031633146108cd5760405162461bcd60e51b81526004016108c490612134565b60405180910390fd5b60006108d8866110f9565b9050806108e9576000915050610d91565b60006108f487611132565b6001600160a01b03881660009081526007602052604090205490915061091a9083611942565b6001600160a01b038816600081815260076020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d906109699085815260200190565b60405180910390a2600061271061098083856121e2565b61098a91906121c2565b905060006109988285612240565b90506000896001600160a01b03168360405160006040518083038185875af1925050503d80600081146109e7576040519150601f19603f3d011682016040523d82523d6000602084013e6109ec565b606091505b50508091505080610a3a5760405162461bcd60e51b8152602060048201526018602482015277436f756c64206e6f742073656e64206469766964656e647360401b60448201526064016108c4565b6000808315610d18576064600e5485610a5391906121e2565b610a5d91906121c2565b9050610a698185612240565b91506000610a786002836121c2565b90506000610a868284612240565b90508215610b64576040516001600160a01b038e16906113889084906000818181858888f193505050503d8060008114610adc576040519150601f19603f3d011682016040523d82523d6000602084013e610ae1565b606091505b50508095505084610af957610af682856121aa565b93505b6040516001600160a01b038d16906113889083906000818181858888f193505050503d8060008114610b47576040519150601f19603f3d011682016040523d82523d6000602084013e610b4c565b606091505b50508095505084610b6457610b6181856121aa565b93505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b158015610bbf57600080fd5b505af1158015610bd3573d6000803e3d6000fd5b505060405163a9059cbb60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018990527f000000000000000000000000000000000000000000000000000000000000000016935063a9059cbb92506044019050602060405180830381600087803b158015610c6357600080fd5b505af1158015610c77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9b9190612069565b508a610d15577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610cfc57600080fd5b505af1158015610d10573d6000803e3d6000fd5b505050505b50505b6001600160a01b038c166000818152600b602090815260409182902042905581518c1515815290810189905290810187905260608101849052608081018390527fb01368222a6927e5d4dc9b810f9bd6e7dc43d0d9208ee87b9c4b0e8f0f0d69009060a00160405180910390a260019750505050505050505b949350505050565b6000610da6848484611ac5565b610df88433610df3856040518060600160405280602881526020016122ee602891396001600160a01b038a1660009081526001602090815260408083203384529091529020549190611b38565b6119a1565b5060019392505050565b6001600160a01b03811660009081526006602090815260408083205491839052822054600554600160801b92610e5492610e4f92610e4991610e4491906118bc565b611b69565b90611b79565b611bb7565b61089191906121c2565b6009546001600160a01b03163314610e885760405162461bcd60e51b81526004016108c490612134565b6001600160a01b0381166000908152600a602052604090205460ff1615610eac5750565b6001600160a01b0381166000908152600a60205260408120805460ff19166001179055610eda908290611bca565b6040516001600160a01b038216907fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b2590600090a25b50565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161088d918590610df39086611942565b6009546001600160a01b03163314610f725760405162461bcd60e51b81526004016108c490612134565b601e811115610fe05760405162461bcd60e51b815260206004820152603460248201527f416e74694a656574496e754469766964656e64547261636b65723a206d6178206044820152736d61726b6574696e67206665652069732033302560601b60648201526084016108c4565b600e8190556040518181527f474f28dd15de3d5880b675d13e044e0f3de7820c7619e71e27ad3400a9910d53906020015b60405180910390a150565b6009546001600160a01b031633146110465760405162461bcd60e51b81526004016108c490612134565b6009546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600980546001600160a01b0319169055565b6000610891826110f9565b6060600480546107fd90612257565b600061088d3384610df385604051806060016040528060258152602001612316602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190611b38565b6001600160a01b0381166000908152600760205260408120546108919061111f84610e02565b90611c29565b600061088d338484611ac5565b6001600160a01b0381166000908152600b6020526040812054806111595750600092915050565b60006111658242612240565b90506000600c54821061117b5750612710610d91565b600c5461118a836127106121e2565b61119491906121c2565b95945050505050565b606060006111aa836110f9565b905060006111b784610e02565b905060006111c485611132565b6001600160a01b0386166000908152600b6020526040812054919250816111ec5760006111f9565b600c546111f990836121aa565b60408051600580825260c082019092529192506020820160a080368337019050509550848660008151811061123e57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050838660018151811061126c57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050828660028151811061129a57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505081866003815181106112c857634e487b7160e01b600052603260045260246000fd5b60200260200101818152505080866004815181106112f657634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505050505050919050565b6009546001600160a01b031633146113365760405162461bcd60e51b81526004016108c490612134565b62278d008111156113af5760405162461bcd60e51b815260206004820152603b60248201527f416e74694a656574496e754469766964656e64547261636b65723a206d61782060448201527f76657374696e67206475726174696f6e2069732033302064617973000000000060648201526084016108c4565b600d541561146457600d546113c790620151806121aa565b4210156114015760405162461bcd60e51b81526020600482015260086024820152673a37b79039b7b7b760c11b60448201526064016108c4565b620151808111158061142d57506064600c54607d61141f91906121e2565b61142991906121c2565b8111155b6114645760405162461bcd60e51b81526020600482015260086024820152670e8dede40d0d2ced60c31b60448201526064016108c4565b600c81905542600d556040518181527f410cd01ba38d07f9702e09f9ad3df12677068140303ff096b1d45241c637460390602001611011565b60095460009033906001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156114e657600080fd5b505afa1580156114fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151e9190611f4f565b6001600160a01b0316146115745760405162461bcd60e51b815260206004820152601f60248201527f63616c6c6572206973206e6f7420746865206f776e65722773206f776e65720060448201526064016108c4565b600061157f836110f9565b90506000811161158e57600080fd5b6001600160a01b0383166000908152600b6020526040902054624f1a00906115b69042612240565b10156115c157600080fd5b6001600160a01b0383166000908152600760205260409020546115e49082611942565b6001600160a01b038416600081815260076020526040908190209290925590517fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d906116339084815260200190565b60405180910390a2604051600090339083908381818185875af1925050503d806000811461167d576040519150601f19603f3d011682016040523d82523d6000602084013e611682565b606091505b50509050806116ce5760405162461bcd60e51b8152602060048201526018602482015277436f756c64206e6f742073656e64206469766964656e647360401b60448201526064016108c4565b6001600160a01b0384166000818152600b602052604090819020429055517f0cbc2f8d2e05e2894f7dafb7995ed3301dffb94126f3a8239eb31a41e0ddd6289061171b9085815260200190565b60405180910390a25060019392505050565b6009546001600160a01b031633146117575760405162461bcd60e51b81526004016108c490612134565b6001600160a01b0382166000908152600a602052604090205460ff161561177c575050565b6117868282611bca565b6000811180156117ac57506001600160a01b0382166000908152600b6020526040902054155b156117cd576001600160a01b0382166000908152600b602052604090204290555b5050565b6009546001600160a01b031633146117fb5760405162461bcd60e51b81526004016108c490612134565b6001600160a01b0381166118605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108c4565b6009546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600980546001600160a01b0319166001600160a01b0392909216919091179055565b6000826118cb57506000610891565b60006118d783856121e2565b9050826118e485836121c2565b1461193b5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016108c4565b9392505050565b60008061194f83856121aa565b90508381101561193b5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016108c4565b6001600160a01b038316611a035760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108c4565b6001600160a01b038216611a645760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108c4565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600f805460ff1916600117905560405162461bcd60e51b815260206004820152603060248201527f416e74694a656574496e754469766964656e64547261636b65723a204e6f207460448201526f1c985b9cd9995c9cc8185b1b1bddd95960821b60648201526084016108c4565b505050565b60008184841115611b5c5760405162461bcd60e51b81526004016108c491906120e1565b5060006111948486612240565b6000818181121561089157600080fd5b600080611b868385612169565b905060008312158015611b995750838112155b80611bae5750600083128015611bae57508381125b61193b57600080fd5b600080821215611bc657600080fd5b5090565b6001600160a01b03821660009081526020819052604090205480821115611c09576000611bf78383611c29565b9050611c038482611c6b565b50505050565b80821015611b33576000611c1d8284611c29565b9050611c038482611ccf565b600061193b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611b38565b611c758282611d13565b611caf611c90610e44836005546118bc90919063ffffffff16565b6001600160a01b03841660009081526006602052604090205490611df2565b6001600160a01b0390921660009081526006602052604090209190915550565b611cd98282611e2f565b611caf611cf4610e44836005546118bc90919063ffffffff16565b6001600160a01b03841660009081526006602052604090205490611b79565b6001600160a01b038216611d695760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016108c4565b600254611d769082611942565b6002556001600160a01b038216600090815260208190526040902054611d9c9082611942565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b600080611dff8385612201565b905060008312158015611e125750838113155b80611bae5750600083128015611bae575083811361193b57600080fd5b6001600160a01b038216611e8f5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016108c4565b611ecc816040518060600160405280602281526020016122cc602291396001600160a01b0385166000908152602081905260409020549190611b38565b6001600160a01b038316600090815260208190526040902055600254611ef29082611c29565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611de6565b600060208284031215611f44578081fd5b813561193b816122a8565b600060208284031215611f60578081fd5b815161193b816122a8565b60008060408385031215611f7d578081fd5b8235611f88816122a8565b91506020830135611f98816122a8565b809150509250929050565b60008060008060808587031215611fb8578182fd5b8435611fc3816122a8565b93506020850135611fd3816122a8565b92506040850135611fe3816122a8565b91506060850135611ff3816122bd565b939692955090935050565b600080600060608486031215612012578283fd5b833561201d816122a8565b9250602084013561202d816122a8565b929592945050506040919091013590565b60008060408385031215612050578182fd5b823561205b816122a8565b946020939093013593505050565b60006020828403121561207a578081fd5b815161193b816122bd565b600060208284031215612096578081fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b818110156120d5578351835292840192918401916001016120b9565b50909695505050505050565b6000602080835283518082850152825b8181101561210d578581018301518582016040015282016120f1565b8181111561211e5783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600080821280156001600160ff1b038490038513161561218b5761218b612292565b600160ff1b83900384128116156121a4576121a4612292565b50500190565b600082198211156121bd576121bd612292565b500190565b6000826121dd57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156121fc576121fc612292565b500290565b60008083128015600160ff1b85018412161561221f5761221f612292565b6001600160ff1b038401831381161561223a5761223a612292565b50500390565b60008282101561225257612252612292565b500390565b600181811c9082168061226b57607f821691505b6020821081141561228c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610f0f57600080fd5b8015158114610f0f57600080fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220a26d9e65679d99a99b378554c3075a364affa0f2f2963a39ceee1e51d36fe66264736f6c63430008040033416e74694a656574496e754469766964656e64547261636b65723a206d6178204f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0

Deployed Bytecode

0x60806040526004361061023f5760003560e01c8063550e4b831161012e578063afa4f3b2116100ab578063dacbcec71161006f578063dacbcec7146106a8578063dd19aa57146106c8578063dd62ed3e146106e8578063f2fde38b1461072e578063f8b45b051461074e57600080fd5b8063afa4f3b21461061e578063c02466681461063e578063c31a01221461065e578063d0db508314610673578063d15f58931461068857600080fd5b80638da5cb5b116100f25780638da5cb5b1461058b5780638e690186146105a957806395d89b41146105c9578063a457c2d7146105de578063a9059cbb146105fe57600080fd5b8063550e4b8314610501578063668038e01461052157806370a0823114610536578063715018a61461055657806388bdd9be1461056b57600080fd5b8063313ce567116101bc57806342caf79a1161018057806342caf79a1461046557806348620c3c146104855780634d2919fc1461049b5780634fbee193146104b157806351e6113b146104e157600080fd5b8063313ce567146103b457806331e79db0146103d057806332cb6b0c146103f057806338266b221461040e578063395093511461044557600080fd5b80631dea9a11116102035780631dea9a111461030757806323b872dd14610327578063269a86b2146103475780632c1f5216146103675780632d0f5b341461039f57600080fd5b806306fdde031461024b578063095ea7b3146102765780630e20b02a146102a657806318160ddd146102c85780631ad4f351146102e757600080fd5b3661024657005b600080fd5b34801561025757600080fd5b50610260610763565b60405161026d91906130bf565b60405180910390f35b34801561028257600080fd5b50610296610291366004612dd9565b6107f5565b604051901515815260200161026d565b3480156102b257600080fd5b506102c66102c1366004612f66565b610810565b005b3480156102d457600080fd5b506002545b60405190815260200161026d565b3480156102f357600080fd5b506102c6610302366004612cfc565b61085e565b34801561031357600080fd5b506102c6610322366004612f66565b6109d2565b34801561033357600080fd5b50610296610342366004612d6c565b610a63565b34801561035357600080fd5b506102c6610362366004612f96565b610acc565b34801561037357600080fd5b50602654610387906001600160a01b031681565b6040516001600160a01b03909116815260200161026d565b3480156103ab57600080fd5b506102c6610bce565b3480156103c057600080fd5b506040516012815260200161026d565b3480156103dc57600080fd5b506102c66103eb366004612cfc565b610c7c565b3480156103fc57600080fd5b506102d969d3c21bcecceda100000081565b34801561041a57600080fd5b5061042e610429366004612cfc565b610cd8565b60405161026d9b9a9998979695949392919061300f565b34801561045157600080fd5b50610296610460366004612dd9565b61111c565b34801561047157600080fd5b506102c6610480366004612f66565b61115b565b34801561049157600080fd5b506102d960255481565b3480156104a757600080fd5b506102d960245481565b3480156104bd57600080fd5b506102966104cc366004612cfc565b60296020526000908152604090205460ff1681565b3480156104ed57600080fd5b506102c66104fc366004612fb7565b6112a3565b34801561050d57600080fd5b506102c661051c366004612f66565b611411565b34801561052d57600080fd5b506102c661146c565b34801561054257600080fd5b506102d9610551366004612cfc565b611508565b34801561056257600080fd5b506102c6611523565b34801561057757600080fd5b506102c6610586366004612cfc565b611597565b34801561059757600080fd5b506005546001600160a01b0316610387565b3480156105b557600080fd5b506102c66105c4366004612f66565b6116a1565b3480156105d557600080fd5b5061026061170a565b3480156105ea57600080fd5b506102966105f9366004612dd9565b611719565b34801561060a57600080fd5b50610296610619366004612dd9565b611768565b34801561062a57600080fd5b506102c6610639366004612f66565b611775565b34801561064a57600080fd5b506102c6610659366004612dac565b6117b9565b34801561066a57600080fd5b506102c6611842565b34801561067f57600080fd5b506102c66119c0565b34801561069457600080fd5b506102c66106a3366004612fb7565b611acd565b3480156106b457600080fd5b506102966106c3366004612dd9565b611b4b565b3480156106d457600080fd5b506102c66106e3366004612f66565b611b57565b3480156106f457600080fd5b506102d9610703366004612d34565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561073a57600080fd5b506102c6610749366004612cfc565b611bb2565b34801561075a57600080fd5b506102d9611c9d565b606060038054610772906131b5565b80601f016020809104026020016040519081016040528092919081815260200182805461079e906131b5565b80156107eb5780601f106107c0576101008083540402835291602001916107eb565b820191906000526020600020905b8154815290600101906020018083116107ce57829003601f168201915b5050505050905090565b60006107ff611842565b6108098383611d9b565b9392505050565b6005546001600160a01b031633146108435760405162461bcd60e51b815260040161083a90613112565b60405180910390fd5b69021e19e0c9bab2400000811061085957600080fd5b602855565b6005546001600160a01b031633146108885760405162461bcd60e51b815260040161083a90613112565b602180546001600160a01b0319166001600160a01b0383169081179091556040519081527f45ab077182bccf704f0797657caa5dd5d7fca94b000f6fdca299a8607d6717889060200160405180910390a16001600160a01b03818116600090815260296020526040808220805460ff19166001179055602154905163eaa7174d60e01b8152600481018390526024810183905260448101929092529091169063eaa7174d90606401600060405180830381600087803b15801561094a57600080fd5b505af115801561095e573d6000803e3d6000fd5b5050602154604051636f44b55760e01b81526000600482018190526024820181905260448201526001600160a01b039091169250636f44b55791506064015b600060405180830381600087803b1580156109b757600080fd5b505af11580156109cb573d6000803e3d6000fd5b5050505050565b6005546001600160a01b031633146109fc5760405162461bcd60e51b815260040161083a90613112565b60405163aaa0542b60e01b8152600f60048201526024810182905273b4290f4cfd329388b072bfde2994b66bfd9dfb5d9063aaa0542b906044015b60006040518083038186803b158015610a4f57600080fd5b505af41580156109cb573d6000803e3d6000fd5b6000610a70848484611da8565b610ac28433610abd85604051806060016040528060288152602001613288602891396001600160a01b038a1660009081526001602090815260408083203384529091529020549190612351565b61238b565b5060019392505050565b6005546001600160a01b03163314610af65760405162461bcd60e51b815260040161083a90613112565b604051636546dab160e11b8152600660048201526024810183905273b1944ac2953dfb1793257262a257164a0daa80c79063ca8db5629060440160006040518083038186803b158015610b4857600080fd5b505af4158015610b5c573d6000803e3d6000fd5b50506040516374d7681160e11b8152600660048201526024810184905273b1944ac2953dfb1793257262a257164a0daa80c7925063e9aed022915060440160006040518083038186803b158015610bb257600080fd5b505af4158015610bc6573d6000803e3d6000fd5b505050505050565b6005546001600160a01b03163314610bf85760405162461bcd60e51b815260040161083a90613112565b73b1944ac2953dfb1793257262a257164a0daa80c763f365820c600680610c1e30611508565b6040516001600160e01b031960e086901b16815260048101939093526024830191909152604482015260640160006040518083038186803b158015610c6257600080fd5b505af4158015610c76573d6000803e3d6000fd5b50505050565b6005546001600160a01b03163314610ca65760405162461bcd60e51b815260040161083a90613112565b601e5460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db09060240161099d565b601e5460405163b2e6819b60e01b81526001600160a01b03838116600483015260609260009283928392839283928392839283928392839291169063b2e6819b9060240160006040518083038186803b158015610d3457600080fd5b505afa158015610d48573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d709190810190612e67565b60405163057c207360e21b8152601460048201526001600160a01b038e166024820152909b5073ea411db7ee903755ee747b111ab54973c440537f906315f081cc9060440160206040518083038186803b158015610dcd57600080fd5b505af4158015610de1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e059190612f7e565b6040516343fda56160e11b815260066004820152909a5073b1944ac2953dfb1793257262a257164a0daa80c7906387fb4ac290602401604080518083038186803b158015610e5257600080fd5b505af4158015610e66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8a9190612f43565b60405163148fb84d60e01b8152600f6004820152919a50985060009073b4290f4cfd329388b072bfde2994b66bfd9dfb5d9063148fb84d9060240160206040518083038186803b158015610edd57600080fd5b505af4158015610ef1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f159190612f7e565b604051632638bfd760e21b8152600f60048201526024810182905290915073b4290f4cfd329388b072bfde2994b66bfd9dfb5d906398e2ff5c9060440160606040518083038186803b158015610f6a57600080fd5b505af4158015610f7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa29190612e31565b50909850965073b4290f4cfd329388b072bfde2994b66bfd9dfb5d633f8dda24600f610fcc6124b0565b6040516001600160e01b031960e085901b1681526004810192909252602482015260440160206040518083038186803b15801561100857600080fd5b505af415801561101c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110409190612f7e565b955080156111095773b4290f4cfd329388b072bfde2994b66bfd9dfb5d6398e2ff5c600f61106f60018561319e565b6040516001600160e01b031960e085901b1681526004810192909252602482015260440160606040518083038186803b1580156110ab57600080fd5b505af41580156110bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e39190612e31565b919650945092506001600160a01b03851615801590611100575082155b15611109578592505b4291505091939597999b90929496989a50565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091611152918590610abd9086611d3c565b50600192915050565b60006111656124b0565b60405163943eacf360e01b8152600f60048201526024810184905260448101829052909150600090819073b4290f4cfd329388b072bfde2994b66bfd9dfb5d9063943eacf390606401604080518083038186803b1580156111c557600080fd5b505af41580156111d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fd9190612e04565b90925090506001600160a01b03821615610c765761121b82826124c8565b611224826124f7565b601e546001600160a01b031663e30443bc8361123f81611508565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561128557600080fd5b505af1158015611299573d6000803e3d6000fd5b5050505050505050565b6005546001600160a01b031633146112cd5760405162461bcd60e51b815260040161083a90613112565b6040516349e6053f60e11b8152601460048201526024810184905273ea411db7ee903755ee747b111ab54973c440537f906393cc0a7e9060440160006040518083038186803b15801561131f57600080fd5b505af4158015611333573d6000803e3d6000fd5b5050604051632d02375d60e01b8152601460048201526024810185905273ea411db7ee903755ee747b111ab54973c440537f9250632d02375d915060440160006040518083038186803b15801561138957600080fd5b505af415801561139d573d6000803e3d6000fd5b5050604051635fe4fbe160e11b8152601460048201526024810184905273ea411db7ee903755ee747b111ab54973c440537f925063bfc9f7c291506044015b60006040518083038186803b1580156113f457600080fd5b505af4158015611408573d6000803e3d6000fd5b50505050505050565b6005546001600160a01b0316331461143b5760405162461bcd60e51b815260040161083a90613112565b601e5460405163550e4b8360e01b8152600481018390526001600160a01b039091169063550e4b839060240161099d565b601e54601f54602054604051630768717160e11b81523360048201526001600160a01b039283166024820152908216604482015260006064820152911690630ed0e2e290608401602060405180830381600087803b1580156114cd57600080fd5b505af11580156114e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115059190612f27565b50565b6001600160a01b031660009081526020819052604090205490565b6005546001600160a01b0316331461154d5760405162461bcd60e51b815260040161083a90613112565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546001600160a01b031633146115c15760405162461bcd60e51b815260040161083a90613112565b601e80546001600160a01b0319166001600160a01b03831690811790915560408051638da5cb5b60e01b81529051309291638da5cb5b916004808301926020929190829003018186803b15801561161757600080fd5b505afa15801561162b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061164f9190612d18565b6001600160a01b03161461166257600080fd5b61166a612593565b6040516001600160a01b038216907f1e7fbad200a59aca8287bffdbe60da36c99480894a2bdc25ac88eed6029936f590600090a250565b6005546001600160a01b031633146116cb5760405162461bcd60e51b815260040161083a90613112565b604051633873159160e11b8152600660048201526024810182905273b1944ac2953dfb1793257262a257164a0daa80c7906370e62b2290604401610a37565b606060048054610772906131b5565b60006111523384610abd856040518060600160405280602581526020016132b0602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190612351565b6000611152338484611da8565b6005546001600160a01b0316331461179f5760405162461bcd60e51b815260040161083a90613112565b683635c9adc5dea0000081106117b457600080fd5b602755565b6005546001600160a01b031633146117e35760405162461bcd60e51b815260040161083a90613112565b6001600160a01b038216600081815260296020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b60007348dcbe4e2e4a36a9a69433beb1eb3e2e47c42500636ac112c26118666124b0565b602480546025546040516001600160e01b031960e087901b168152600481019490945291830152604482015260640160206040518083038186803b1580156118ad57600080fd5b505af41580156118c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e59190612f7e565b9050806118ef5750565b426025819055508060246000828254611908919061319e565b9091555050601d54611923906001600160a01b03168261278a565b601d546040805160016209351760e01b0319815290516001600160a01b039092169163fff6cae99160048082019260009290919082900301818387803b15801561196c57600080fd5b505af1158015611980573d6000803e3d6000fd5b505050507f90f0ebc9cbe15b2466dcac46571c49feee27e3385c5ab60c348cc4ebcb91251f816040516119b591815260200190565b60405180910390a150565b6005546001600160a01b031633146119ea5760405162461bcd60e51b815260040161083a90613112565b602254156119f757600080fd5b601c546001600160a01b031663f305d7194730611a1381611508565b600080611a286005546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c4016060604051808303818588803b158015611a8b57600080fd5b505af1158015611a9f573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611ac49190612fe2565b50504260225550565b6005546001600160a01b03163314611af75760405162461bcd60e51b815260040161083a90613112565b60405163227c919f60e01b8152600660048201819052602482015260448101849052606481018390526084810182905273b1944ac2953dfb1793257262a257164a0daa80c79063227c919f9060a4016113dc565b60006108098383611d9b565b6005546001600160a01b03163314611b815760405162461bcd60e51b815260040161083a90613112565b601e5460405163dd19aa5760e01b8152600481018390526001600160a01b039091169063dd19aa579060240161099d565b6005546001600160a01b03163314611bdc5760405162461bcd60e51b815260040161083a90613112565b6001600160a01b038116611c415760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161083a565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b602254604051630202eb2960e41b815269d3c21bcecceda10000006004820152602481019190915260009073eb9d7226f48255a0e171551141bf7503d00a9dcc9063202eb2909060440160206040518083038186803b158015611cff57600080fd5b505af4158015611d13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d379190612f7e565b905090565b600080611d498385613147565b9050838110156108095760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015260640161083a565b600061115233848461238b565b6001600160a01b038316611dbb57600080fd5b6001600160a01b038216611dce57600080fd5b80611de457611ddf83836000612896565b505050565b611def838383612a19565b60235460009060ff16158015611e1e57506001600160a01b03841660009081526029602052604090205460ff16155b8015611e4357506001600160a01b03831660009081526029602052604090205460ff16155b9050816000821561211c57604051633325c8f560e21b8152601460048201526024810185905260009073ea411db7ee903755ee747b111ab54973c440537f9063cc9723d49060440160206040518083038186803b158015611ea357600080fd5b505af4158015611eb7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611edb9190612d18565b905073ea411db7ee903755ee747b111ab54973c440537f6304ea10f2601483611f0381611508565b6040516001600160e01b031960e086901b16815260048101939093526001600160a01b03918216602484015260448301528916606482015260840160206040518083038186803b158015611f5657600080fd5b505af4158015611f6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f8e9190612f27565b611f96575060005b6040516347e27ae760e01b8152601a6004820152600660248201526001600160a01b038089166044830152808816606483015260848201879052821660a48201526000908190819073ccd45258ba13d5cca183701eaff6e295e9ba5317906347e27ae79060c40160606040518083038186803b15801561201557600080fd5b505af4158015612029573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204d9190612fe2565b9194509250905061205e828461315f565b9450821561207d57612070838961319e565b975061207d8a3085612896565b811561208d5761208d89836124c8565b80156121175761209d84826124c8565b601e546001600160a01b031663e30443bc856120b881611508565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156120fe57600080fd5b505af1158015612112573d6000803e3d6000fd5b505050505b505050505b612127868686612896565b612130856124f7565b60405163148fb84d60e01b8152600f600482015260009073b4290f4cfd329388b072bfde2994b66bfd9dfb5d9063148fb84d9060240160206040518083038186803b15801561217e57600080fd5b505af4158015612192573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121b69190612f7e565b905080156121cc576121cc61048060018361319e565b601e546001600160a01b031663e30443bc886121e781611508565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561222d57600080fd5b505af1158015612241573d6000803e3d6000fd5b5050601e546001600160a01b0316915063e30443bc90508761226281611508565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156122a857600080fd5b505af11580156122bc573d6000803e3d6000fd5b505060405163370d438960e01b8152600660048201526001600160a01b03808b166024830152891660448201526064810186905260848101859052732de051d0145fb8cd35fa0493f5127bebb0a19c97925063370d4389915060a40160006040518083038186803b15801561233057600080fd5b505af4158015612344573d6000803e3d6000fd5b5050505050505050505050565b600081848411156123755760405162461bcd60e51b815260040161083a91906130bf565b506000612382848661319e565b95945050505050565b6001600160a01b0383166123ed5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161083a565b6001600160a01b03821661244e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161083a565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b601d54600090611d37906001600160a01b0316611508565b806124d1575050565b80602460008282546124e39190613147565b909155506124f390508282612be3565b5050565b6001600160a01b03811660009081526029602052604090205460ff161561251b5750565b601d546001600160a01b03828116911614156125345750565b73ea411db7ee903755ee747b111ab54973c440537f63cdb09f6860148361255a81611508565b6040516001600160e01b031960e086901b16815260048101939093526001600160a01b0390911660248301526044820152606401610a37565b601e5460405163031e79db60e41b81526001600160a01b0390911660048201819052906331e79db090602401600060405180830381600087803b1580156125d957600080fd5b505af11580156125ed573d6000803e3d6000fd5b5050601e5460405163031e79db60e41b81523060048201526001600160a01b0390911692506331e79db09150602401600060405180830381600087803b15801561263657600080fd5b505af115801561264a573d6000803e3d6000fd5b5050601e546001600160a01b031691506331e79db090506126736005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b1580156126b457600080fd5b505af11580156126c8573d6000803e3d6000fd5b5050601e54601c5460405163031e79db60e41b81526001600160a01b039182166004820152911692506331e79db09150602401600060405180830381600087803b15801561271557600080fd5b505af1158015612729573d6000803e3d6000fd5b5050601e54601d5460405163031e79db60e41b81526001600160a01b039182166004820152911692506331e79db09150602401600060405180830381600087803b15801561277657600080fd5b505af1158015610c76573d6000803e3d6000fd5b6001600160a01b0382166127ea5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161083a565b61282781604051806060016040528060228152602001613240602291396001600160a01b0385166000908152602081905260409020549190612351565b6001600160a01b03831660009081526020819052604090205560025461284d9082612cba565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6001600160a01b0383166128fa5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161083a565b6001600160a01b03821661295c5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161083a565b61299981604051806060016040528060268152602001613262602691396001600160a01b0386166000908152602081905260409020549190612351565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546129c89082611d3c565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016124a3565b6000612a2430611508565b602754909150811015612a3f6005546001600160a01b031690565b6001600160a01b0316856001600160a01b031614158015612a6e57506005546001600160a01b03858116911614155b156109cb576001600160a01b0384163014801590612a9a5750601d546001600160a01b03858116911614155b8015612ab45750601c546001600160a01b03858116911614155b15612ae057612ac1611c9d565b83612acb86611508565b612ad59190613147565b1115612ae057600080fd5b808015612af0575060235460ff16155b8015612b0a5750601d546001600160a01b03868116911614155b8015612b1857506000602254115b8015612b25575060225442115b156109cb576023805460ff191660011790556028548290811115612b4857506028545b601c54612b609030906001600160a01b03168361238b565b604051633cd9608360e21b815260066004820181905260248201526044810182905273b1944ac2953dfb1793257262a257164a0daa80c79063f365820c9060640160006040518083038186803b158015612bb957600080fd5b505af4158015612bcd573d6000803e3d6000fd5b50506023805460ff191690555050505050505050565b6001600160a01b038216612c395760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161083a565b600254612c469082611d3c565b6002556001600160a01b038216600090815260208190526040902054612c6c9082611d3c565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910161288a565b600061080983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612351565b600060208284031215612d0d578081fd5b81356108098161321c565b600060208284031215612d29578081fd5b81516108098161321c565b60008060408385031215612d46578081fd5b8235612d518161321c565b91506020830135612d618161321c565b809150509250929050565b600080600060608486031215612d80578081fd5b8335612d8b8161321c565b92506020840135612d9b8161321c565b929592945050506040919091013590565b60008060408385031215612dbe578182fd5b8235612dc98161321c565b91506020830135612d6181613231565b60008060408385031215612deb578182fd5b8235612df68161321c565b946020939093013593505050565b60008060408385031215612e16578182fd5b8251612e218161321c565b6020939093015192949293505050565b600080600060608486031215612e45578283fd5b8351612e508161321c565b602085015160409095015190969495509392505050565b60006020808385031215612e79578182fd5b825167ffffffffffffffff80821115612e90578384fd5b818501915085601f830112612ea3578384fd5b815181811115612eb557612eb5613206565b8060051b604051601f19603f83011681018181108582111715612eda57612eda613206565b604052828152858101935084860182860187018a1015612ef8578788fd5b8795505b83861015612f1a578051855260019590950194938601938601612efc565b5098975050505050505050565b600060208284031215612f38578081fd5b815161080981613231565b60008060408385031215612f55578182fd5b505080516020909101519092909150565b600060208284031215612f77578081fd5b5035919050565b600060208284031215612f8f578081fd5b5051919050565b60008060408385031215612fa8578182fd5b50508035926020909101359150565b600080600060608486031215612fcb578081fd5b505081359360208301359350604090920135919050565b600080600060608486031215612ff6578081fd5b8351925060208401519150604084015190509250925092565b6101608152600061016082018d518082526101808401915060208f01835b8281101561304b57815184526020938401939091019060010161302d565b505050809150508b60208301528a6040830152896060830152613079608083018a6001600160a01b03169052565b8760a08301528660c083015261309a60e08301876001600160a01b03169052565b8461010083015283610120830152826101408301529c9b505050505050505050505050565b6000602080835283518082850152825b818110156130eb578581018301518582016040015282016130cf565b818111156130fc5783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561315a5761315a6131f0565b500190565b60008083128015600160ff1b85018412161561317d5761317d6131f0565b6001600160ff1b0384018313811615613198576131986131f0565b50500390565b6000828210156131b0576131b06131f0565b500390565b600181811c908216806131c957607f821691505b602082108114156131ea57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461150557600080fd5b801515811461150557600080fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122040407f92f696bd80bf3fbff1275ed925dd4d2493029a015d6ce91ba090ba43da64736f6c63430008040033

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.