ETH Price: $3,060.31 (+2.68%)
Gas: 1 Gwei

Token

MixQuity.finance (MIXQ)
 

Overview

Max Total Supply

53,600,231.794060705 MIXQ

Holders

208

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 9 Decimals)

Balance
28,132.212441204 MIXQ

Value
$0.00
0x8B73666eE97c105FA923fb30391e35028203D8aF
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:
MixQuity

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 2 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

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

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

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

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

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

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 7 of 11 : DividendPayingToken.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.10;
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "./SafeMath.sol";
import "./interfaces/IDividendPayingToken.sol";

interface IPair {
    function getReserves()
        external
        view
        returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);

    function token0() external view returns (address);

    function sync() external;
}

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

    function getPair(
        address tokenA,
        address tokenB
    ) external view returns (address pair);
}

interface IUniswapRouter {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    )
        external
        payable
        returns (uint amountToken, uint amountETH, uint liquidity);

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

    function swapExactETHForTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable returns (uint[] memory amounts);

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

contract DividendPayingToken is ERC20, DividendPayingTokenInterface, Ownable {
    using SafeMath for uint256;
    using SafeMathUint for uint256;
    using SafeMathInt for int256;

    address public rewardToken;

    // 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 internal constant 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;
    uint256 public totalDividendsWithdrawn;

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

    function distributeRewardTokenDividends(uint256 amount) public onlyOwner {
        require(totalSupply() > 0);

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

            totalDividendsDistributed = totalDividendsDistributed.add(amount);
        }
    }

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

    /// @notice Withdraws the ether distributed to the sender.
    /// @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
    function _withdrawDividendOfUser(
        address payable user
    ) internal returns (uint256) {
        uint256 _withdrawableDividend = withdrawableDividendOf(user);
        if (_withdrawableDividend > 0) {
            withdrawnDividends[user] = withdrawnDividends[user].add(
                _withdrawableDividend
            );
            totalDividendsWithdrawn += _withdrawableDividend;
            emit DividendWithdrawn(user, _withdrawableDividend);
            bool success = IERC20(rewardToken).transfer(
                user,
                _withdrawableDividend
            );

            if (!success) {
                withdrawnDividends[user] = withdrawnDividends[user].sub(
                    _withdrawableDividend
                );
                totalDividendsWithdrawn -= _withdrawableDividend;
                return 0;
            }

            return _withdrawableDividend;
        }

        return 0;
    }

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

File 8 of 11 : IDividendPayingToken.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.6;

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 Withdraws the ether distributed to the sender.
    /// @dev SHOULD transfer `dividendOf(msg.sender)` wei to `msg.sender`, and `dividendOf(msg.sender)` SHOULD be 0 after the transfer.
    ///  MUST emit a `DividendWithdrawn` event if the amount of ether transferred is greater than 0.
    function withdrawDividend() external;

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

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

File 9 of 11 : Mixquity.sol
pragma solidity 0.8.21;

abstract contract ERC20Detailed is IERC20 {
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    constructor(
        string memory _tokenName,
        string memory _tokenSymbol,
        uint8 _tokenDecimals
    ) {
        _name = _tokenName;
        _symbol = _tokenSymbol;
        _decimals = _tokenDecimals;
    }

    function name() public view returns (string memory) {
        return _name;
    }

    function symbol() public view returns (string memory) {
        return _symbol;
    }

    function decimals() public view returns (uint8) {
        return _decimals;
    }
}

import "./Tracker.sol";

// Website  : https://mixquity.finance/
// X        : https://twitter.com/Mixquity
// Telegram : https://t.me/mixquity
// Linktree : https://linktr.ee/mixquity
// Medium   : https://medium.com/@mixquity

///////////////////////////////////////////////////////////
//    _____  .__       ________        .__  __           //
//   /     \ |__|__  __\_____  \  __ __|__|/  |_ ___.__. //
//  /  \ /  \|  \  \/  //  / \  \|  |  \  \   __<   |  | //
// /    Y    \  |>    </   \_/.  \  |  /  ||  |  \___  | //
// \____|__  /__/__/\_ \_____\ \_/____/|__||__|  / ____| //
//         \/         \/      \__>               \/      //
///////////////////////////////////////////////////////////

contract MixQuity is ERC20Detailed, Ownable {
    struct Taxes {
        uint256 marketing;
        uint256 lpReward;
    }

    uint8 private constant DECIMALS = 9;
    uint256 private constant INITIAL_TOKENS_SUPPLY =
        10_000_000 * 10 ** DECIMALS;

    uint256 private constant TOTAL_PARTS =
        type(uint256).max - (type(uint256).max % INITIAL_TOKENS_SUPPLY);

    Tracker public tracker;
    uint256 public compoundFrequency = 1800; // Auto-rebase every 30 minutes
    uint256 public nextCompound;
    uint256 public lastCompound;
    uint256 public compoundEnd;
    uint256 public finalEpoch = 960; // Rebase complete after 20 days
    uint256 public currentEpoch;
    uint256 public compoundPercentage = 480857656; // The Rebase Rate is set at 0.480857656%
    bool public autoCompound;

    address public marketingWallet;

    Taxes public phase1 = Taxes(300, 300); // Day [1 - 20]: Buy Tax = Sell Tax = 6%
    Taxes public phase2 = Taxes(100, 300); // Day [20 - ∞]: Buy Tax = Sell Tax = 4%

    Taxes public curFee = phase1;
    uint256 public curTotalTax = phase1.marketing + phase1.lpReward;
    uint256 public antiBotFee = 9000; // Sniper-bot transactions will be charged 90% tax

    uint256 antiBotTime;
    uint256 antiBuySellBotTime;
    uint256 blockBotTime;
    uint256 antiBotDuration = 24; // Bots will be automatically blocked in this duration
    uint256 blockBotDuration = 300; // Bots will be manually blocked in this duration
    uint256 antiBotBuySellDuration = 600;
    uint256 maxBuyAntiBotAmount = 300_000 * 10 ** DECIMALS;

    event SendDividends(uint256 tokensSwapped, uint256 amount);
    event ExcludeFromFees(address indexed account, bool isExcluded);
    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
    event Compound(uint256 indexed time, uint256 totalSupply);

    IUniswapRouter public router;
    address public pair;

    bool public tradingEnable = false;

    uint256 private _totalSupply;
    uint256 private _partsPerToken;

    uint256 private swapTokenAtAmount = INITIAL_TOKENS_SUPPLY / 200; // Users will get LP rewards when tax hits 0.5% initial supply

    mapping(address => uint256) private _partBalances;
    mapping(address => mapping(address => uint256)) private _allowedTokens;
    mapping(address => bool) public isExcludedFromFees;
    mapping(address => mapping(uint256 => bool)) public isTransferSpent;
    mapping(address => bool) public blockedBot;

    bool inSwap;

    modifier swapping() {
        inSwap = true;
        _;
        inSwap = false;
    }

    constructor(
        address _router,
        address _marketing
    ) ERC20Detailed("MixQuity.finance", "MIXQ", DECIMALS) {
        tracker = new Tracker();

        marketingWallet = _marketing;
        router = IUniswapRouter(_router);

        _totalSupply = INITIAL_TOKENS_SUPPLY;
        _partBalances[msg.sender] = TOTAL_PARTS;
        _partsPerToken = TOTAL_PARTS / (_totalSupply);

        pair = IFactory(router.factory()).createPair(
            address(this),
            router.WETH()
        );

        excludedFromFees(address(this), true);
        excludedFromFees(address(router), true);
        excludedFromFees(msg.sender, true);
        excludedFromFees(_marketing, true);

        tracker.updateRewardToken(address(pair));

        tracker.excludeFromDividends(address(tracker), true);
        tracker.excludeFromDividends(address(this), true);
        tracker.excludeFromDividends(msg.sender, true);
        tracker.excludeFromDividends(address(0), true);
        tracker.excludeFromDividends(_marketing, true);
        tracker.excludeFromDividends(_router, true);
        tracker.excludeFromDividends(address(pair), true);

        _allowedTokens[address(this)][address(router)] = type(uint256).max;
        _allowedTokens[address(msg.sender)][address(router)] = type(uint256)
            .max;

        emit Transfer(
            address(0),
            address(msg.sender),
            balanceOf(address(this))
        );
    }

    function claim() external {
        tracker.processAccount(payable(msg.sender));
    }

    function trackerRescueETH20Tokens(address tokenAddress) external onlyOwner {
        tracker.trackerRescueETH20Tokens(msg.sender, tokenAddress);
    }

    function excludeFromDividends(
        address account,
        bool value
    ) public onlyOwner {
        tracker.excludeFromDividends(account, value);
    }

    function getTotalDividendsDistributed() external view returns (uint256) {
        return tracker.totalDividendsDistributed();
    }

    function withdrawableDividendOf(
        address account
    ) public view returns (uint256) {
        return tracker.withdrawableDividendOf(account);
    }

    function dividendTokenBalanceOf(
        address account
    ) public view returns (uint256) {
        return tracker.balanceOf(account);
    }

    function getAccountInfo(
        address account
    ) external view returns (address, uint256, uint256, uint256, uint256) {
        return tracker.getAccount(account);
    }

    function manualLiquidityDistribution(uint256 amount) public onlyOwner {
        bool success = IERC20(pair).transferFrom(
            msg.sender,
            address(tracker),
            amount
        );
        if (success) {
            tracker.distributeRewardTokenDividends(amount);
        }
    }

    function forceSend() external onlyOwner {
        uint256 ETHbalance = address(this).balance;
        (bool success, ) = payable(owner()).call{value: ETHbalance}("");
        require(success);
    }

    function totalSupply() external view override returns (uint256) {
        return _totalSupply;
    }

    function allowance(
        address owner_,
        address spender
    ) external view override returns (uint256) {
        return _allowedTokens[owner_][spender];
    }

    function balanceOf(address who) public view override returns (uint256) {
        return _partBalances[who] / (_partsPerToken);
    }

    function shouldCompound() public view returns (bool) {
        return
            currentEpoch < finalEpoch &&
            nextCompound > 0 &&
            nextCompound <= block.timestamp &&
            autoCompound;
    }

    function lpSync() internal {
        IPair _pair = IPair(pair);
        _pair.sync();
    }

    function transfer(
        address to,
        uint256 value
    ) external override returns (bool) {
        _transfer(msg.sender, to, value);
        return true;
    }

    function excludedFromFees(address _address, bool _value) public onlyOwner {
        isExcludedFromFees[_address] = _value;
        emit ExcludeFromFees(_address, _value);
    }

    function blockBot(address[] calldata _addresses) external onlyOwner {
        require(
            block.timestamp <= blockBotTime || !tradingEnable,
            "Can only block bot in the first 5 minutes"
        );
        for (uint256 i = 0; i < _addresses.length; i++) {
            blockedBot[_addresses[i]] = true;
        }
    }

    function unblockBot(address[] calldata _addresses) external onlyOwner {
        for (uint256 i = 0; i < _addresses.length; i++) {
            blockedBot[_addresses[i]] = false;
        }
    }

    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal returns (bool) {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");
        require(!blockedBot[sender] && !blockedBot[recipient], "You are bot");

        address pairAddress = pair;

        // prevent bot sandwich
        if (tx.origin == sender || tx.origin == recipient) {
            require(!isTransferSpent[tx.origin][block.number], "You are bot!");
            isTransferSpent[tx.origin][block.number] = true;
            if (antiBuySellBotTime > block.timestamp) {
                isTransferSpent[tx.origin][block.number + 1] = true;
            }
        }

        if (
            !inSwap &&
            !isExcludedFromFees[sender] &&
            !isExcludedFromFees[recipient]
        ) {
            uint256 totalFeePercentage;
            if (sender == pairAddress || recipient == pairAddress) {
                totalFeePercentage = curTotalTax;
            }

            require(tradingEnable, "Trading not live");
            if (antiBotTime >= block.timestamp) {
                if (sender == pairAddress) {
                    if (amount >= maxBuyAntiBotAmount) {
                        totalFeePercentage = antiBotFee;
                    }
                }
            }

            if (recipient == pairAddress) {
                if (balanceOf(address(this)) >= swapTokenAtAmount) {
                    swapAndLiquify(swapTokenAtAmount);
                }
            }

            if (shouldCompound() && sender != pairAddress) {
                _compound();
            }

            uint256 taxAmount;
            taxAmount = (amount * totalFeePercentage) / 10000;

            if (taxAmount > 0) {
                _partBalances[sender] -= (taxAmount * _partsPerToken);
                _partBalances[address(this)] += (taxAmount * _partsPerToken);

                emit Transfer(sender, address(this), taxAmount);
                amount -= taxAmount;
            }
        }

        _partBalances[sender] -= (amount * _partsPerToken);
        _partBalances[recipient] += (amount * _partsPerToken);

        try
            tracker.setBalance(sender, _partBalances[sender] / 10 ** 53)
        {} catch {}
        try
            tracker.setBalance(recipient, _partBalances[recipient] / 10 ** 53)
        {} catch {}

        emit Transfer(sender, recipient, amount);

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external override returns (bool) {
        if (_allowedTokens[from][msg.sender] != type(uint256).max) {
            require(
                _allowedTokens[from][msg.sender] >= value,
                "Insufficient Allowance"
            );
            _allowedTokens[from][msg.sender] =
                _allowedTokens[from][msg.sender] -
                (value);
        }
        _transfer(from, to, value);
        return true;
    }

    function decreaseAllowance(
        address spender,
        uint256 subtractedValue
    ) external returns (bool) {
        uint256 oldValue = _allowedTokens[msg.sender][spender];
        if (subtractedValue >= oldValue) {
            _allowedTokens[msg.sender][spender] = 0;
        } else {
            _allowedTokens[msg.sender][spender] = oldValue - (subtractedValue);
        }
        emit Approval(msg.sender, spender, _allowedTokens[msg.sender][spender]);
        return true;
    }

    function increaseAllowance(
        address spender,
        uint256 addedValue
    ) external returns (bool) {
        _allowedTokens[msg.sender][spender] =
            _allowedTokens[msg.sender][spender] +
            (addedValue);
        emit Approval(msg.sender, spender, _allowedTokens[msg.sender][spender]);
        return true;
    }

    function approve(
        address spender,
        uint256 value
    ) public override returns (bool) {
        _allowedTokens[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;
    }

    function _compound() internal returns (uint256) {
        uint256 cacheLastCompound = lastCompound;
        uint256 cacheCompoundFrequency = compoundFrequency;
        uint256 cacheFinalEpoch = finalEpoch;
        uint256 cacheCompoundEnd = compoundEnd;
        uint256 cacheTotalSupply = _totalSupply;
        uint256 cacheCompoundPercentage = compoundPercentage;
        uint256 compoundTime = block.timestamp;
        if (compoundTime > cacheCompoundEnd) {
            compoundTime = cacheCompoundEnd;
        }

        uint256 times = (compoundTime - cacheLastCompound) /
            cacheCompoundFrequency;

        lastCompound = cacheLastCompound + times * cacheCompoundFrequency;
        nextCompound = cacheLastCompound + cacheCompoundFrequency * (times + 1);

        if (times + currentEpoch > cacheFinalEpoch) {
            times = cacheFinalEpoch - currentEpoch;
        }

        currentEpoch += times;

        for (uint256 i = 0; i < times; i++) {
            cacheTotalSupply =
                (cacheTotalSupply * (10 ** 11 + cacheCompoundPercentage)) /
                10 ** 11;
        }

        if (cacheTotalSupply == _totalSupply) {
            emit Compound(compoundTime, cacheTotalSupply);
            return cacheTotalSupply;
        }

        _totalSupply = cacheTotalSupply;

        _partsPerToken = TOTAL_PARTS / (cacheTotalSupply);

        if (currentEpoch >= cacheFinalEpoch) {
            autoCompound = false;
            nextCompound = 0;
            curFee = phase2;
            curTotalTax = phase2.marketing + phase2.lpReward;
        }

        lpSync();

        emit Compound(compoundTime, cacheTotalSupply);

        return cacheTotalSupply;
    }

    function manualCompound() external {
        require(shouldCompound(), "Not time yet");
        _compound();
    }

    function enableTrading() external onlyOwner {
        require(!tradingEnable, "Trading Live Already");
        _startCompound();
        tradingEnable = true;
        antiBotTime = block.timestamp + antiBotDuration;
        antiBuySellBotTime = block.timestamp + antiBotBuySellDuration;
        blockBotTime = block.timestamp + blockBotDuration;
    }

    function _startCompound() internal {
        require(currentEpoch == 0 && !autoCompound, "already started");
        autoCompound = true;
        nextCompound = block.timestamp + compoundFrequency;
        lastCompound = block.timestamp;
        compoundEnd = block.timestamp + finalEpoch * compoundFrequency;
    }

    function swapAndLiquify(uint256 tokens) private swapping {
        Taxes memory tempCurFee = curFee;
        uint256 tempCurTotalTax = curTotalTax;
        uint256 amountToSwap = (tokens * tempCurFee.marketing) /
            tempCurTotalTax;
        uint256 amountToLpReward = (tokens * tempCurFee.lpReward) /
            tempCurTotalTax;

        _swapAndAddliquidity(amountToLpReward);

        _swapTokensForETH(amountToSwap);

        uint256 ethTomarketing = address(this).balance;

        if (ethTomarketing > 0) {
            (bool success, ) = payable(marketingWallet).call{
                value: ethTomarketing
            }("");
            require(success, "Failed to send ETH to marketing wallet");
        }

        uint256 lpBalance = IERC20(pair).balanceOf(address(this));
        if (lpBalance > 0) {
            bool success = IERC20(pair).transfer(address(tracker), lpBalance);
            if (success) {
                tracker.distributeRewardTokenDividends(lpBalance);
                emit SendDividends(tokens, lpBalance);
            }
        }
    }

    function _swapTokensForETH(uint256 tokenAmount) internal {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = router.WETH();

        router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    function _swapAndAddliquidity(uint256 amount) internal {
        if (amount > 0) {
            uint256 half = amount / 2;
            uint256 otherHalf = amount - half;

            uint256 initialBalance = address(this).balance;

            _swapTokensForETH(half);

            uint256 newBalance = address(this).balance - (initialBalance);

            router.addLiquidityETH{value: newBalance}(
                address(this),
                otherHalf,
                0,
                0,
                address(this),
                block.timestamp
            );
        }
    }

    function setSwapAtAmount(uint256 _amount) external onlyOwner {
        swapTokenAtAmount = _amount;
    }

    function fetchBalances(address[] memory wallets) external {
        address wallet;
        for (uint256 i = 0; i < wallets.length; i++) {
            wallet = wallets[i];
            emit Transfer(wallet, wallet, 0);
        }
    }

    receive() external payable {}
}

File 10 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.6;

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

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

File 11 of 11 : Tracker.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.10;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "./DividendPayingToken.sol";

contract Tracker is Ownable, DividendPayingToken {
    struct AccountInfo {
        address account;
        uint256 withdrawableDividends;
        uint256 totalDividends;
        uint256 lastClaimTime;
    }

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

    event ExcludeFromDividends(address indexed account, bool value);
    event Claim(address indexed account, uint256 amount);

    constructor()
        DividendPayingToken("MIXQ_Dividend_Tracker", "MIXQ_Dividend_Tracker")
    {}

    function trackerRescueETH20Tokens(
        address recipient,
        address tokenAddress
    ) external onlyOwner {
        IERC20(tokenAddress).transfer(
            recipient,
            IERC20(tokenAddress).balanceOf(address(this))
        );
    }

    function updateRewardToken(address _rewardToken) external onlyOwner {
        rewardToken = _rewardToken;
    }

    function _transfer(address, address, uint256) internal pure override {
        require(false, "MIXQ_Dividend_Tracker: Transfer not allowed");
    }

    function excludeFromDividends(
        address account,
        bool value
    ) external onlyOwner {
        require(excludedFromDividends[account] != value);
        excludedFromDividends[account] = value;
        if (value == true) {
            _setBalance(account, 0);
        } else {
            _setBalance(account, balanceOf(account));
        }
        emit ExcludeFromDividends(account, value);
    }

    function getAccount(
        address account
    ) public view returns (address, uint256, uint256, uint256, uint256) {
        AccountInfo memory info;
        info.account = account;
        info.withdrawableDividends = withdrawableDividendOf(account);
        info.totalDividends = accumulativeDividendOf(account);
        info.lastClaimTime = lastClaimTimes[account];
        return (
            info.account,
            info.withdrawableDividends,
            info.totalDividends,
            info.lastClaimTime,
            totalDividendsWithdrawn
        );
    }

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

    function processAccount(
        address payable account
    ) external onlyOwner returns (bool) {
        uint256 amount = _withdrawDividendOfUser(account);

        if (amount > 0) {
            lastClaimTimes[account] = block.timestamp;
            emit Claim(account, amount);
            return true;
        }
        return false;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_marketing","type":"address"}],"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":"uint256","name":"time","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"Compound","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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SendDividends","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"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":[],"name":"antiBotFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"autoCompound","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"blockBot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blockedBot","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"compoundEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"compoundFrequency","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"compoundPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curFee","outputs":[{"internalType":"uint256","name":"marketing","type":"uint256"},{"internalType":"uint256","name":"lpReward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curTotalTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"dividendTokenBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"excludeFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"excludedFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wallets","type":"address[]"}],"name":"fetchBalances","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"forceSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalDividendsDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"isTransferSpent","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastCompound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manualCompound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"manualLiquidityDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"marketingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextCompound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase1","outputs":[{"internalType":"uint256","name":"marketing","type":"uint256"},{"internalType":"uint256","name":"lpReward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase2","outputs":[{"internalType":"uint256","name":"marketing","type":"uint256"},{"internalType":"uint256","name":"lpReward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setSwapAtAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shouldCompound","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tracker","outputs":[{"internalType":"contract Tracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"trackerRescueETH20Tokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tradingEnable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","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":"address[]","name":"_addresses","type":"address[]"}],"name":"unblockBot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6107086004556103c0600855631ca94e38600a5561012c608081905260a0819052600c819055600d819055610100604052606460c081905260e0829052600e55600f819055601081905560118190556200005a9080620009c3565b601255612328601355601860175561012c6018556102586019556009600a62000084919062000ad6565b6200009390620493e062000aee565b601a55601c805460ff60a01b1916905560c8620000b36009600a62000ad6565b620000c2906298968062000aee565b620000ce919062000b1e565b601f55348015620000de57600080fd5b506040516200523738038062005237833981016040819052620001019162000b52565b6040518060400160405280601081526020016f4d697851756974792e66696e616e636560801b815250604051806040016040528060048152602001634d49585160e01b815250600982600090816200015a919062000c2f565b50600162000169838262000c2f565b506002805460ff191660ff92909216919091179055506200019390506200018d3390565b62000847565b604051620001a1906200099f565b604051809103906000f080158015620001be573d6000803e3d6000fd5b50600380546001600160a01b03199081166001600160a01b0393841617909155600b8054610100600160a81b03191661010085851602179055601b8054909116918416919091179055620002156009600a62000ad6565b62000224906298968062000aee565b601d55620002356009600a62000ad6565b62000244906298968062000aee565b620002529060001962000cfb565b620002609060001962000d12565b336000908152602080526040902055601d54620002806009600a62000ad6565b6200028f906298968062000aee565b6200029d9060001962000cfb565b620002ab9060001962000d12565b620002b7919062000b1e565b601e55601b546040805163c45a015560e01b815290516001600160a01b039092169163c45a0155916004808201926020929091908290030181865afa15801562000305573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200032b919062000d28565b6001600160a01b031663c9c6539630601b60009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200038e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003b4919062000d28565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801562000402573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000428919062000d28565b601c80546001600160a01b0319166001600160a01b039290921691909117905562000455306001620008a1565b601b546200046e906001600160a01b03166001620008a1565b6200047b336001620008a1565b62000488816001620008a1565b600354601c5460405163f8cf31cb60e01b81526001600160a01b03918216600482015291169063f8cf31cb90602401600060405180830381600087803b158015620004d257600080fd5b505af1158015620004e7573d6000803e3d6000fd5b505060035460405162241fbd60e51b81526001600160a01b0390911660048201819052600160248301529250630483f7a09150604401600060405180830381600087803b1580156200053857600080fd5b505af11580156200054d573d6000803e3d6000fd5b505060035460405162241fbd60e51b8152306004820152600160248201526001600160a01b039091169250630483f7a09150604401600060405180830381600087803b1580156200059d57600080fd5b505af1158015620005b2573d6000803e3d6000fd5b505060035460405162241fbd60e51b8152336004820152600160248201526001600160a01b039091169250630483f7a09150604401600060405180830381600087803b1580156200060257600080fd5b505af115801562000617573d6000803e3d6000fd5b505060035460405162241fbd60e51b815260006004820152600160248201526001600160a01b039091169250630483f7a09150604401600060405180830381600087803b1580156200066857600080fd5b505af11580156200067d573d6000803e3d6000fd5b505060035460405162241fbd60e51b81526001600160a01b038581166004830152600160248301529091169250630483f7a09150604401600060405180830381600087803b158015620006cf57600080fd5b505af1158015620006e4573d6000803e3d6000fd5b505060035460405162241fbd60e51b81526001600160a01b038681166004830152600160248301529091169250630483f7a09150604401600060405180830381600087803b1580156200073657600080fd5b505af11580156200074b573d6000803e3d6000fd5b5050600354601c5460405162241fbd60e51b81526001600160a01b0391821660048201526001602482015291169250630483f7a09150604401600060405180830381600087803b1580156200079f57600080fd5b505af1158015620007b4573d6000803e3d6000fd5b5050306000818152602160208181526040808420601b80546001600160a01b039081168752918452828620600019908190553380885295855283872091549092168652909252832055935091507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906200082e906200090a565b60405190815260200160405180910390a3505062000d46565b600280546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620008ab62000938565b6001600160a01b038216600081815260226020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b601e546001600160a01b03821660009081526020805260408120549091620009329162000b1e565b92915050565b6002546001600160a01b036101009091041633146200099d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b6119fb806200383c83390190565b634e487b7160e01b600052601160045260246000fd5b80820180821115620009325762000932620009ad565b600181815b8085111562000a1a578160001904821115620009fe57620009fe620009ad565b8085161562000a0c57918102915b93841c9390800290620009de565b509250929050565b60008262000a335750600162000932565b8162000a425750600062000932565b816001811462000a5b576002811462000a665762000a86565b600191505062000932565b60ff84111562000a7a5762000a7a620009ad565b50506001821b62000932565b5060208310610133831016604e8410600b841016171562000aab575081810a62000932565b62000ab78383620009d9565b806000190482111562000ace5762000ace620009ad565b029392505050565b600062000ae760ff84168362000a22565b9392505050565b8082028115828204841417620009325762000932620009ad565b634e487b7160e01b600052601260045260246000fd5b60008262000b305762000b3062000b08565b500490565b80516001600160a01b038116811462000b4d57600080fd5b919050565b6000806040838503121562000b6657600080fd5b62000b718362000b35565b915062000b816020840162000b35565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168062000bb557607f821691505b60208210810362000bd657634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000c2a57600081815260208120601f850160051c8101602086101562000c055750805b601f850160051c820191505b8181101562000c265782815560010162000c11565b5050505b505050565b81516001600160401b0381111562000c4b5762000c4b62000b8a565b62000c638162000c5c845462000ba0565b8462000bdc565b602080601f83116001811462000c9b576000841562000c825750858301515b600019600386901b1c1916600185901b17855562000c26565b600085815260208120601f198616915b8281101562000ccc5788860151825594840194600190910190840162000cab565b508582101562000ceb5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008262000d0d5762000d0d62000b08565b500690565b81810381811115620009325762000932620009ad565b60006020828403121562000d3b57600080fd5b62000ae78262000b35565b612ae68062000d566000396000f3fe6080604052600436106103035760003560e01c80637effbf6911610190578063a8b9d240116100dc578063d4deb3b611610095578063e7fb8e5a1161006f578063e7fb8e5a14610939578063f2fde38b1461094f578063f52bccad1461096f578063f887ea401461098f57600080fd5b8063d4deb3b6146108bd578063dd62ed3e146108d8578063e7c562291461091e57600080fd5b8063a8b9d24014610801578063a9059cbb14610821578063b6cd668b14610841578063bbfe5d7f14610857578063bf64c7aa1461086d578063c43f32e21461088d57600080fd5b806395d89b4111610149578063a250ca8011610123578063a250ca801461077c578063a457c2d7146107ac578063a7347a84146107cc578063a8aa1b31146107e157600080fd5b806395d89b4114610731578063999dbeca146107465780639a50a9e61461075c57600080fd5b80637effbf6914610693578063821c0576146106a9578063872f5969146106c35780638a8c523c146106d95780638c9684f9146106ee5780638da5cb5b1461070e57600080fd5b80633a98d88e1161024f5780636402511e11610208578063715018a6116101e2578063715018a6146105d957806375f0a874146105ee578063766718081461062b5780637b510fe81461064157600080fd5b80636402511e146105795780636843cd841461059957806370a08231146105b957600080fd5b80633a98d88e146104d35780633d47b41c146104e957806345fe0fc9146104ff5780634e71d92d146105145780634fbee19314610529578063516e74091461055957600080fd5b806318160ddd116102bc57806326c94c0e1161029657806326c94c0e1461044157806330bb4cff1461047c578063313ce5671461049157806339509351146104b357600080fd5b806318160ddd146103e25780631ffe1e3b1461040157806323b872dd1461042157600080fd5b80630483f7a01461030f57806306fdde0314610331578063095ea7b31461035c57806312b77e8a1461038c57806316697fc5146103a15780631693e8d4146103c157600080fd5b3661030a57005b600080fd5b34801561031b57600080fd5b5061032f61032a3660046124d9565b6109af565b005b34801561033d57600080fd5b50610346610a22565b6040516103539190612512565b60405180910390f35b34801561036857600080fd5b5061037c610377366004612560565b610ab4565b6040519015158152602001610353565b34801561039857600080fd5b5061032f610b21565b3480156103ad57600080fd5b5061032f6103bc3660046124d9565b610ba5565b3480156103cd57600080fd5b50601c5461037c90600160a01b900460ff1681565b3480156103ee57600080fd5b50601d545b604051908152602001610353565b34801561040d57600080fd5b5061032f61041c36600461258c565b610c0c565b34801561042d57600080fd5b5061037c61043c366004612601565b610d09565b34801561044d57600080fd5b5061037c61045c366004612560565b602360209081526000928352604080842090915290825290205460ff1681565b34801561048857600080fd5b506103f3610e0b565b34801561049d57600080fd5b5060025460405160ff9091168152602001610353565b3480156104bf57600080fd5b5061037c6104ce366004612560565b610e7e565b3480156104df57600080fd5b506103f360085481565b3480156104f557600080fd5b506103f3600a5481565b34801561050b57600080fd5b5061037c610f04565b34801561052057600080fd5b5061032f610f3a565b34801561053557600080fd5b5061037c610544366004612642565b60226020526000908152604090205460ff1681565b34801561056557600080fd5b5061032f61057436600461258c565b610fab565b34801561058557600080fd5b5061032f610594366004612666565b611025565b3480156105a557600080fd5b506103f36105b4366004612642565b611032565b3480156105c557600080fd5b506103f36105d4366004612642565b6110a2565b3480156105e557600080fd5b5061032f6110c8565b3480156105fa57600080fd5b50600b546106139061010090046001600160a01b031681565b6040516001600160a01b039091168152602001610353565b34801561063757600080fd5b506103f360095481565b34801561064d57600080fd5b5061066161065c366004612642565b6110dc565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a001610353565b34801561069f57600080fd5b506103f360125481565b3480156106b557600080fd5b50600b5461037c9060ff1681565b3480156106cf57600080fd5b506103f360135481565b3480156106e557600080fd5b5061032f611166565b3480156106fa57600080fd5b5061032f610709366004612642565b61120c565b34801561071a57600080fd5b5060025461010090046001600160a01b0316610613565b34801561073d57600080fd5b5061034661127c565b34801561075257600080fd5b506103f360055481565b34801561076857600080fd5b5061032f610777366004612666565b61128b565b34801561078857600080fd5b5061037c610797366004612642565b60246020526000908152604090205460ff1681565b3480156107b857600080fd5b5061037c6107c7366004612560565b611350565b3480156107d857600080fd5b5061032f611437565b3480156107ed57600080fd5b50601c54610613906001600160a01b031681565b34801561080d57600080fd5b506103f361081c366004612642565b611482565b34801561082d57600080fd5b5061037c61083c366004612560565b6114b5565b34801561084d57600080fd5b506103f360065481565b34801561086357600080fd5b506103f360045481565b34801561087957600080fd5b5061032f610888366004612695565b6114cc565b34801561089957600080fd5b506010546011546108a8919082565b60408051928352602083019190915201610353565b3480156108c957600080fd5b50600e54600f546108a8919082565b3480156108e457600080fd5b506103f36108f336600461275a565b6001600160a01b03918216600090815260216020908152604080832093909416825291909152205490565b34801561092a57600080fd5b50600c54600d546108a8919082565b34801561094557600080fd5b506103f360075481565b34801561095b57600080fd5b5061032f61096a366004612642565b611555565b34801561097b57600080fd5b50600354610613906001600160a01b031681565b34801561099b57600080fd5b50601b54610613906001600160a01b031681565b6109b76115cb565b60035460405162241fbd60e51b81526001600160a01b038481166004830152831515602483015290911690630483f7a0906044015b600060405180830381600087803b158015610a0657600080fd5b505af1158015610a1a573d6000803e3d6000fd5b505050505050565b606060008054610a3190612788565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5d90612788565b8015610aaa5780601f10610a7f57610100808354040283529160200191610aaa565b820191906000526020600020905b815481529060010190602001808311610a8d57829003601f168201915b5050505050905090565b3360008181526021602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610b0f9086815260200190565b60405180910390a35060015b92915050565b610b296115cb565b476000610b446002546001600160a01b036101009091041690565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114610b8e576040519150601f19603f3d011682016040523d82523d6000602084013e610b93565b606091505b5050905080610ba157600080fd5b5050565b610bad6115cb565b6001600160a01b038216600081815260226020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b610c146115cb565b60165442111580610c2f5750601c54600160a01b900460ff16155b610c925760405162461bcd60e51b815260206004820152602960248201527f43616e206f6e6c7920626c6f636b20626f7420696e207468652066697273742060448201526835206d696e7574657360b81b60648201526084015b60405180910390fd5b60005b81811015610d0457600160246000858585818110610cb557610cb56127c2565b9050602002016020810190610cca9190612642565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610cfc816127ee565b915050610c95565b505050565b6001600160a01b038316600090815260216020908152604080832033845290915281205460001914610df5576001600160a01b0384166000908152602160209081526040808320338452909152902054821115610da15760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420416c6c6f77616e636560501b6044820152606401610c89565b6001600160a01b0384166000908152602160209081526040808320338452909152902054610dd0908390612807565b6001600160a01b03851660009081526021602090815260408083203384529091529020555b610e0084848461162b565b506001949350505050565b600354604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae9160048083019260209291908290030181865afa158015610e55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e79919061281a565b905090565b3360009081526021602090815260408083206001600160a01b0386168452909152812054610ead908390612833565b3360008181526021602090815260408083206001600160a01b038916808552908352928190208590555193845290927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101610b0f565b6000600854600954108015610f1b57506000600554115b8015610f2957504260055411155b8015610e79575050600b5460ff1690565b60035460405163807ab4f760e01b81523360048201526001600160a01b039091169063807ab4f7906024016020604051808303816000875af1158015610f84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa89190612846565b50565b610fb36115cb565b60005b81811015610d0457600060246000858585818110610fd657610fd66127c2565b9050602002016020810190610feb9190612642565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061101d816127ee565b915050610fb6565b61102d6115cb565b601f55565b6003546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a08231906024015b602060405180830381865afa15801561107e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1b919061281a565b601e546001600160a01b03821660009081526020805260408120549091610b1b91612879565b6110d06115cb565b6110da6000611cb6565b565b60035460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839283928392839291169063fbcbc0f19060240160a060405180830381865afa158015611130573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611154919061288d565b939a9299509097509550909350915050565b61116e6115cb565b601c54600160a01b900460ff16156111bf5760405162461bcd60e51b815260206004820152601460248201527354726164696e67204c69766520416c726561647960601b6044820152606401610c89565b6111c7611d10565b601c805460ff60a01b1916600160a01b1790556017546111e79042612833565b6014556019546111f79042612833565b6015556018546112079042612833565b601655565b6112146115cb565b60035460405163497ec82360e01b81523360048201526001600160a01b0383811660248301529091169063497ec82390604401600060405180830381600087803b15801561126157600080fd5b505af1158015611275573d6000803e3d6000fd5b5050505050565b606060018054610a3190612788565b6112936115cb565b601c546003546040516323b872dd60e01b81523360048201526001600160a01b0391821660248201526044810184905260009291909116906323b872dd906064016020604051808303816000875af11580156112f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113179190612846565b90508015610ba1576003546040516301d4c84960e31b8152600481018490526001600160a01b0390911690630ea64248906024016109ec565b3360009081526021602090815260408083206001600160a01b03861684529091528120548083106113a4573360009081526021602090815260408083206001600160a01b03881684529091528120556113d3565b6113ae8382612807565b3360009081526021602090815260408083206001600160a01b03891684529091529020555b3360008181526021602090815260408083206001600160a01b038916808552908352928190205490519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060019392505050565b61143f610f04565b61147a5760405162461bcd60e51b815260206004820152600c60248201526b139bdd081d1a5b59481e595d60a21b6044820152606401610c89565b610fa8611da1565b6003546040516302a2e74960e61b81526001600160a01b038381166004830152600092169063a8b9d24090602401611061565b60006114c233848461162b565b5060019392505050565b6000805b8251811015610d04578281815181106114eb576114eb6127c2565b60200260200101519150816001600160a01b0316826001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600060405161153b91815260200190565b60405180910390a38061154d816127ee565b9150506114d0565b61155d6115cb565b6001600160a01b0381166115c25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c89565b610fa881611cb6565b6002546001600160a01b036101009091041633146110da5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c89565b60006001600160a01b0384166116915760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610c89565b6001600160a01b0383166116f35760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610c89565b6001600160a01b03841660009081526024602052604090205460ff1615801561173557506001600160a01b03831660009081526024602052604090205460ff16155b61176f5760405162461bcd60e51b815260206004820152600b60248201526a165bdd48185c9948189bdd60aa1b6044820152606401610c89565b601c546001600160a01b039081169085163214806117955750326001600160a01b038516145b1561185f5732600090815260236020908152604080832043845290915290205460ff16156117f45760405162461bcd60e51b815260206004820152600c60248201526b596f752061726520626f742160a01b6044820152606401610c89565b3260009081526023602090815260408083204384529091529020805460ff1916600117905560155442101561185f5732600090815260236020526040812060019161183f4384612833565b81526020810191909152604001600020805460ff19169115159190911790555b60255460ff1615801561188b57506001600160a01b03851660009081526022602052604090205460ff16155b80156118b057506001600160a01b03841660009081526022602052604090205460ff16155b15611ab2576000816001600160a01b0316866001600160a01b031614806118e85750816001600160a01b0316856001600160a01b0316145b156118f257506012545b601c54600160a01b900460ff1661193e5760405162461bcd60e51b815260206004820152601060248201526f54726164696e67206e6f74206c69766560801b6044820152606401610c89565b426014541061196e57816001600160a01b0316866001600160a01b03160361196e57601a54841061196e57506013545b816001600160a01b0316856001600160a01b0316036119a357601f54611993306110a2565b106119a3576119a3601f54611f9d565b6119ab610f04565b80156119c95750816001600160a01b0316866001600160a01b031614155b156119d8576119d6611da1565b505b60006127106119e783876128d6565b6119f19190612879565b90508015611aaf57601e54611a0690826128d6565b6001600160a01b038816600090815260208052604081208054909190611a2d908490612807565b9091555050601e54611a3f90826128d6565b30600090815260208052604081208054909190611a5d908490612833565b909155505060405181815230906001600160a01b038916907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3611aac8186612807565b94505b50505b601e54611abf90846128d6565b6001600160a01b038616600090815260208052604081208054909190611ae6908490612807565b9091555050601e54611af890846128d6565b6001600160a01b038516600090815260208052604081208054909190611b1f908490612833565b90915550506003546001600160a01b03868116600090815260208052604090205491169063e30443bc908790611b69906f085a36366eb71f04147a6da2b7f8647560351b90612879565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611baf57600080fd5b505af1925050508015611bc0575060015b506003546001600160a01b03858116600090815260208052604090205491169063e30443bc908690611c06906f085a36366eb71f04147a6da2b7f8647560351b90612879565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611c4c57600080fd5b505af1925050508015611c5d575060015b50836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef85604051611ca391815260200190565b60405180910390a3506001949350505050565b600280546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600954158015611d235750600b5460ff16155b611d615760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e481cdd185c9d1959608a1b6044820152606401610c89565b600b805460ff19166001179055600454611d7b9042612833565b60055542600655600454600854611d9291906128d6565b611d9c9042612833565b600755565b600654600454600854600754601d54600a5460009594939291904283811115611dc75750825b600086611dd48984612807565b611dde9190612879565b9050611dea87826128d6565b611df49089612833565b600655611e02816001612833565b611e0c90886128d6565b611e169089612833565b6005556009548690611e289083612833565b1115611e3e57600954611e3b9087612807565b90505b8060096000828254611e509190612833565b90915550600090505b81811015611e995764174876e800611e718582612833565b611e7b90876128d6565b611e859190612879565b945080611e91816127ee565b915050611e59565b50601d548403611eea57817fe3c48e43a3cc80f4a0c194845bdd6091fa19b9bb7d22e515c21e9f177e2e22ae85604051611ed591815260200190565b60405180910390a25091979650505050505050565b601d84905583611efc6009600a6129d1565b611f0990629896806128d6565b611f15906000196129e0565b611f2190600019612807565b611f2b9190612879565b601e556009548611611f6357600b805460ff191690556000600555600e546010819055600f546011819055611f5f91612833565b6012555b611f6b61227b565b817fe3c48e43a3cc80f4a0c194845bdd6091fa19b9bb7d22e515c21e9f177e2e22ae85604051611ed591815260200190565b6025805460ff19166001179055604080518082019091526010548082526011546020830152601254906000908290611fd590866128d6565b611fdf9190612879565b9050600082846020015186611ff491906128d6565b611ffe9190612879565b9050612009816122c5565b6120128261239b565b4780156120d257600b5460405160009161010090046001600160a01b03169083908381818185875af1925050503d806000811461206b576040519150601f19603f3d011682016040523d82523d6000602084013e612070565b606091505b50509050806120d05760405162461bcd60e51b815260206004820152602660248201527f4661696c656420746f2073656e642045544820746f206d61726b6574696e67206044820152651dd85b1b195d60d21b6064820152608401610c89565b505b601c546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561211b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061213f919061281a565b9050801561226857601c5460035460405163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052600092919091169063a9059cbb906044016020604051808303816000875af11580156121a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121c59190612846565b90508015612266576003546040516301d4c84960e31b8152600481018490526001600160a01b0390911690630ea6424890602401600060405180830381600087803b15801561221357600080fd5b505af1158015612227573d6000803e3d6000fd5b5050604080518b8152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3935001905060405180910390a15b505b50506025805460ff191690555050505050565b601c546040805160016209351760e01b0319815290516001600160a01b0390921691829163fff6cae991600480830192600092919082900301818387803b15801561126157600080fd5b8015610fa85760006122d8600283612879565b905060006122e68284612807565b9050476122f28361239b565b60006122fe8247612807565b601b5460405163f305d71960e01b8152306004820181905260248201879052600060448301819052606483015260848201524260a48201529192506001600160a01b03169063f305d71990839060c40160606040518083038185885af115801561236c573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061239191906129f4565b5050505050505050565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106123d0576123d06127c2565b6001600160a01b03928316602091820292909201810191909152601b54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612429573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061244d9190612a22565b81600181518110612460576124606127c2565b6001600160a01b039283166020918202929092010152601b5460405163791ac94760e01b815291169063791ac947906109ec908590600090869030904290600401612a3f565b6001600160a01b0381168114610fa857600080fd5b80356124c6816124a6565b919050565b8015158114610fa857600080fd5b600080604083850312156124ec57600080fd5b82356124f7816124a6565b91506020830135612507816124cb565b809150509250929050565b600060208083528351808285015260005b8181101561253f57858101830151858201604001528201612523565b506000604082860101526040601f19601f8301168501019250505092915050565b6000806040838503121561257357600080fd5b823561257e816124a6565b946020939093013593505050565b6000806020838503121561259f57600080fd5b823567ffffffffffffffff808211156125b757600080fd5b818501915085601f8301126125cb57600080fd5b8135818111156125da57600080fd5b8660208260051b85010111156125ef57600080fd5b60209290920196919550909350505050565b60008060006060848603121561261657600080fd5b8335612621816124a6565b92506020840135612631816124a6565b929592945050506040919091013590565b60006020828403121561265457600080fd5b813561265f816124a6565b9392505050565b60006020828403121561267857600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156126a857600080fd5b823567ffffffffffffffff808211156126c057600080fd5b818501915085601f8301126126d457600080fd5b8135818111156126e6576126e661267f565b8060051b604051601f19603f8301168101818110858211171561270b5761270b61267f565b60405291825284820192508381018501918883111561272957600080fd5b938501935b8285101561274e5761273f856124bb565b8452938501939285019261272e565b98975050505050505050565b6000806040838503121561276d57600080fd5b8235612778816124a6565b91506020830135612507816124a6565b600181811c9082168061279c57607f821691505b6020821081036127bc57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612800576128006127d8565b5060010190565b81810381811115610b1b57610b1b6127d8565b60006020828403121561282c57600080fd5b5051919050565b80820180821115610b1b57610b1b6127d8565b60006020828403121561285857600080fd5b815161265f816124cb565b634e487b7160e01b600052601260045260246000fd5b60008261288857612888612863565b500490565b600080600080600060a086880312156128a557600080fd5b85516128b0816124a6565b602087015160408801516060890151608090990151929a91995097965090945092505050565b8082028115828204841417610b1b57610b1b6127d8565b600181815b8085111561292857816000190482111561290e5761290e6127d8565b8085161561291b57918102915b93841c93908002906128f2565b509250929050565b60008261293f57506001610b1b565b8161294c57506000610b1b565b8160018114612962576002811461296c57612988565b6001915050610b1b565b60ff84111561297d5761297d6127d8565b50506001821b610b1b565b5060208310610133831016604e8410600b84101617156129ab575081810a610b1b565b6129b583836128ed565b80600019048211156129c9576129c96127d8565b029392505050565b600061265f60ff841683612930565b6000826129ef576129ef612863565b500690565b600080600060608486031215612a0957600080fd5b8351925060208401519150604084015190509250925092565b600060208284031215612a3457600080fd5b815161265f816124a6565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612a8f5784516001600160a01b031683529383019391830191600101612a6a565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212205d292b79c2d9eb5a03a2e1562eec75da2d54e4623aa1b4def758704a28d8d27064736f6c6343000815003360806040523480156200001157600080fd5b5060408051808201825260158082527f4d4958515f4469766964656e645f547261636b657200000000000000000000006020808401829052845180860190955291845290830152908181600362000069838262000198565b50600462000078828262000198565b505050620000956200008f6200009d60201b60201c565b620000a1565b505062000264565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200011e57607f821691505b6020821081036200013f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200019357600081815260208120601f850160051c810160208610156200016e5750805b601f850160051c820191505b818110156200018f578281556001016200017a565b5050505b505050565b81516001600160401b03811115620001b457620001b4620000f3565b620001cc81620001c5845462000109565b8462000145565b602080601f831160018114620002045760008415620001eb5750858301515b600019600386901b1c1916600185901b1785556200018f565b600085815260208120601f198616915b82811015620002355788860151825594840194600190910190840162000214565b5085821015620002545787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61178780620002746000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c8063807ab4f71161010f578063a9059cbb116100a2578063f2fde38b11610071578063f2fde38b14610429578063f7c618c11461043c578063f8cf31cb1461044f578063fbcbc0f11461046257600080fd5b8063a9059cbb146103c7578063aafd847a146103da578063dd62ed3e14610403578063e30443bc1461041657600080fd5b806395d89b41116100de57806395d89b41146103905780639e1e066114610398578063a457c2d7146103a1578063a8b9d240146103b457600080fd5b8063807ab4f71461033c57806385a6b3ae1461034f5780638da5cb5b1461035857806391b89fba1461037d57600080fd5b806327ce0147116101875780634e7b827f116101565780634e7b827f146102e05780636a4740021461030357806370a082311461030b578063715018a61461033457600080fd5b806327ce014714610298578063313ce567146102ab57806339509351146102ba578063497ec823146102cd57600080fd5b80630ea64248116101c35780630ea642481461024057806318160ddd14610253578063226cfa3d1461026557806323b872dd1461028557600080fd5b80630483f7a0146101ea57806306fdde03146101ff578063095ea7b31461021d575b600080fd5b6101fd6101f83660046114cc565b6104a7565b005b61020761058b565b6040516102149190611505565b60405180910390f35b61023061022b366004611553565b61061d565b6040519015158152602001610214565b6101fd61024e36600461157f565b610637565b6002545b604051908152602001610214565b610257610273366004611598565b600d6020526000908152604090205481565b6102306102933660046115b5565b6106d3565b6102576102a6366004611598565b6106f7565b60405160128152602001610214565b6102306102c8366004611553565b610753565b6101fd6102db3660046115f6565b610775565b6102306102ee366004611598565b600c6020526000908152604090205460ff1681565b6101fd610863565b610257610319366004611598565b6001600160a01b031660009081526020819052604090205490565b6101fd61086c565b61023061034a366004611598565b610880565b610257600a5481565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610214565b61025761038b366004611598565b610904565b61020761090f565b610257600b5481565b6102306103af366004611553565b61091e565b6102576103c2366004611598565b61099e565b6102306103d5366004611553565b6109ca565b6102576103e8366004611598565b6001600160a01b031660009081526009602052604090205490565b6102576104113660046115f6565b6109d8565b6101fd610424366004611553565b610a03565b6101fd610437366004611598565b610a39565b600654610365906001600160a01b031681565b6101fd61045d366004611598565b610aaf565b610475610470366004611598565b610ad9565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a001610214565b6104af610b81565b6001600160a01b0382166000908152600c602052604090205481151560ff9091161515036104dc57600080fd5b6001600160a01b0382166000908152600c60205260409020805460ff191682151590811790915560010361051a57610515826000610bdb565b610542565b6105428261053d846001600160a01b031660009081526020819052604090205490565b610bdb565b816001600160a01b03167fa3c7c11b2e12c4144b09a7813f3393ba646392788638998c97be8da908cf04be8260405161057f911515815260200190565b60405180910390a25050565b60606003805461059a90611624565b80601f01602080910402602001604051908101604052809291908181526020018280546105c690611624565b80156106135780601f106105e857610100808354040283529160200191610613565b820191906000526020600020905b8154815290600101906020018083116105f657829003601f168201915b5050505050905090565b60003361062b818585610c3a565b60019150505b92915050565b61063f610b81565b600061064a60025490565b1161065457600080fd5b80156106d05761068761066660025490565b61067483600160801b610d5e565b61067e9190611674565b60075490610de7565b60075560405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a2600a546106cc9082610de7565b600a555b50565b6000336106e1858285610e46565b6106ec858585610eba565b506001949350505050565b6001600160a01b03811660009081526008602090815260408083205491839052822054600754600160801b92610749926107449261073e916107399190610d5e565b610f16565b90610f26565b610f64565b6106319190611674565b60003361062b81858561076683836109d8565b6107709190611696565b610c3a565b61077d610b81565b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb90849083906370a0823190602401602060405180830381865afa1580156107cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ef91906116a9565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801561083a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085e91906116c2565b505050565b6106d033610f77565b610874610b81565b61087e6000611105565b565b600061088a610b81565b600061089583610f77565b905080156108fb576001600160a01b0383166000818152600d602052604090819020429055517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4906108ea9084815260200190565b60405180910390a250600192915050565b50600092915050565b60006106318261099e565b60606004805461059a90611624565b6000338161092c82866109d8565b9050838110156109915760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6106ec8286868403610c3a565b6001600160a01b038116600090815260096020526040812054610631906109c4846106f7565b90611157565b60003361062b818585610eba565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610a0b610b81565b6001600160a01b0382166000908152600c602052604090205460ff16610a3557610a358282610bdb565b5050565b610a41610b81565b6001600160a01b038116610aa65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610988565b6106d081611105565b610ab7610b81565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6000806000806000610b15604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b6001600160a01b0387168152610b2a8761099e565b6020820152610b38876106f7565b60408281019182526001600160a01b03989098166000908152600d60209081529890205460608301819052825198909201519051600b5498999198909750919550909350915050565b6005546001600160a01b0316331461087e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610988565b6001600160a01b03821660009081526020819052604090205480821115610c1a576000610c088383611157565b9050610c148482611199565b50505050565b8082101561085e576000610c2e8284611157565b9050610c1484826111fd565b6001600160a01b038316610c9c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610988565b6001600160a01b038216610cfd5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610988565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600082600003610d7057506000610631565b6000610d7c83856116df565b905082610d898583611674565b14610de05760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610988565b9392505050565b600080610df48385611696565b905083811015610de05760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610988565b6000610e5284846109d8565b90506000198114610c145781811015610ead5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610988565b610c148484848403610c3a565b60405162461bcd60e51b815260206004820152602b60248201527f4d4958515f4469766964656e645f547261636b65723a205472616e736665722060448201526a1b9bdd08185b1b1bddd95960aa1b6064820152608401610988565b6000818181121561063157600080fd5b600080610f3383856116f6565b905060008312158015610f465750838112155b80610f5b5750600083128015610f5b57508381125b610de057600080fd5b600080821215610f7357600080fd5b5090565b600080610f838361099e565b905080156108fb576001600160a01b038316600090815260096020526040902054610fae9082610de7565b6001600160a01b038416600090815260096020526040812091909155600b8054839290610fdc908490611696565b90915550506040518181526001600160a01b038416907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a260065460405163a9059cbb60e01b81526001600160a01b03858116600483015260248201849052600092169063a9059cbb906044016020604051808303816000875af1158015611073573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109791906116c2565b9050806110fe576001600160a01b0384166000908152600960205260409020546110c19083611157565b6001600160a01b038516600090815260096020526040812091909155600b80548492906110ef90849061171e565b90915550600095945050505050565b5092915050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610de083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611241565b6111a3828261127b565b6111dd6111be61073983600754610d5e90919063ffffffff16565b6001600160a01b0384166000908152600860205260409020549061133a565b6001600160a01b0390921660009081526008602052604090209190915550565b6112078282611377565b6111dd61122261073983600754610d5e90919063ffffffff16565b6001600160a01b03841660009081526008602052604090205490610f26565b600081848411156112655760405162461bcd60e51b81526004016109889190611505565b506000611272848661171e565b95945050505050565b6001600160a01b0382166112d15760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610988565b80600260008282546112e39190611696565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000806113478385611731565b90506000831215801561135a5750838113155b80610f5b5750600083128015610f5b5750838113610de057600080fd5b6001600160a01b0382166113d75760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610988565b6001600160a01b0382166000908152602081905260409020548181101561144b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610988565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001600160a01b03811681146106d057600080fd5b80151581146106d057600080fd5b600080604083850312156114df57600080fd5b82356114ea816114a9565b915060208301356114fa816114be565b809150509250929050565b600060208083528351808285015260005b8181101561153257858101830151858201604001528201611516565b506000604082860101526040601f19601f8301168501019250505092915050565b6000806040838503121561156657600080fd5b8235611571816114a9565b946020939093013593505050565b60006020828403121561159157600080fd5b5035919050565b6000602082840312156115aa57600080fd5b8135610de0816114a9565b6000806000606084860312156115ca57600080fd5b83356115d5816114a9565b925060208401356115e5816114a9565b929592945050506040919091013590565b6000806040838503121561160957600080fd5b8235611614816114a9565b915060208301356114fa816114a9565b600181811c9082168061163857607f821691505b60208210810361165857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008261169157634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156106315761063161165e565b6000602082840312156116bb57600080fd5b5051919050565b6000602082840312156116d457600080fd5b8151610de0816114be565b80820281158282048414176106315761063161165e565b80820182811260008312801582168215821617156117165761171661165e565b505092915050565b818103818111156106315761063161165e565b81810360008312801583831316838312821617156110fe576110fe61165e56fea264697066735822122047b316ed34cd899033a3dd8832f45dbaa32d28cbe73a512826d8de19b9ce004464736f6c634300081500330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000000fd3586317007a55bd79444dd4992e9735bfea8e

Deployed Bytecode

0x6080604052600436106103035760003560e01c80637effbf6911610190578063a8b9d240116100dc578063d4deb3b611610095578063e7fb8e5a1161006f578063e7fb8e5a14610939578063f2fde38b1461094f578063f52bccad1461096f578063f887ea401461098f57600080fd5b8063d4deb3b6146108bd578063dd62ed3e146108d8578063e7c562291461091e57600080fd5b8063a8b9d24014610801578063a9059cbb14610821578063b6cd668b14610841578063bbfe5d7f14610857578063bf64c7aa1461086d578063c43f32e21461088d57600080fd5b806395d89b4111610149578063a250ca8011610123578063a250ca801461077c578063a457c2d7146107ac578063a7347a84146107cc578063a8aa1b31146107e157600080fd5b806395d89b4114610731578063999dbeca146107465780639a50a9e61461075c57600080fd5b80637effbf6914610693578063821c0576146106a9578063872f5969146106c35780638a8c523c146106d95780638c9684f9146106ee5780638da5cb5b1461070e57600080fd5b80633a98d88e1161024f5780636402511e11610208578063715018a6116101e2578063715018a6146105d957806375f0a874146105ee578063766718081461062b5780637b510fe81461064157600080fd5b80636402511e146105795780636843cd841461059957806370a08231146105b957600080fd5b80633a98d88e146104d35780633d47b41c146104e957806345fe0fc9146104ff5780634e71d92d146105145780634fbee19314610529578063516e74091461055957600080fd5b806318160ddd116102bc57806326c94c0e1161029657806326c94c0e1461044157806330bb4cff1461047c578063313ce5671461049157806339509351146104b357600080fd5b806318160ddd146103e25780631ffe1e3b1461040157806323b872dd1461042157600080fd5b80630483f7a01461030f57806306fdde0314610331578063095ea7b31461035c57806312b77e8a1461038c57806316697fc5146103a15780631693e8d4146103c157600080fd5b3661030a57005b600080fd5b34801561031b57600080fd5b5061032f61032a3660046124d9565b6109af565b005b34801561033d57600080fd5b50610346610a22565b6040516103539190612512565b60405180910390f35b34801561036857600080fd5b5061037c610377366004612560565b610ab4565b6040519015158152602001610353565b34801561039857600080fd5b5061032f610b21565b3480156103ad57600080fd5b5061032f6103bc3660046124d9565b610ba5565b3480156103cd57600080fd5b50601c5461037c90600160a01b900460ff1681565b3480156103ee57600080fd5b50601d545b604051908152602001610353565b34801561040d57600080fd5b5061032f61041c36600461258c565b610c0c565b34801561042d57600080fd5b5061037c61043c366004612601565b610d09565b34801561044d57600080fd5b5061037c61045c366004612560565b602360209081526000928352604080842090915290825290205460ff1681565b34801561048857600080fd5b506103f3610e0b565b34801561049d57600080fd5b5060025460405160ff9091168152602001610353565b3480156104bf57600080fd5b5061037c6104ce366004612560565b610e7e565b3480156104df57600080fd5b506103f360085481565b3480156104f557600080fd5b506103f3600a5481565b34801561050b57600080fd5b5061037c610f04565b34801561052057600080fd5b5061032f610f3a565b34801561053557600080fd5b5061037c610544366004612642565b60226020526000908152604090205460ff1681565b34801561056557600080fd5b5061032f61057436600461258c565b610fab565b34801561058557600080fd5b5061032f610594366004612666565b611025565b3480156105a557600080fd5b506103f36105b4366004612642565b611032565b3480156105c557600080fd5b506103f36105d4366004612642565b6110a2565b3480156105e557600080fd5b5061032f6110c8565b3480156105fa57600080fd5b50600b546106139061010090046001600160a01b031681565b6040516001600160a01b039091168152602001610353565b34801561063757600080fd5b506103f360095481565b34801561064d57600080fd5b5061066161065c366004612642565b6110dc565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a001610353565b34801561069f57600080fd5b506103f360125481565b3480156106b557600080fd5b50600b5461037c9060ff1681565b3480156106cf57600080fd5b506103f360135481565b3480156106e557600080fd5b5061032f611166565b3480156106fa57600080fd5b5061032f610709366004612642565b61120c565b34801561071a57600080fd5b5060025461010090046001600160a01b0316610613565b34801561073d57600080fd5b5061034661127c565b34801561075257600080fd5b506103f360055481565b34801561076857600080fd5b5061032f610777366004612666565b61128b565b34801561078857600080fd5b5061037c610797366004612642565b60246020526000908152604090205460ff1681565b3480156107b857600080fd5b5061037c6107c7366004612560565b611350565b3480156107d857600080fd5b5061032f611437565b3480156107ed57600080fd5b50601c54610613906001600160a01b031681565b34801561080d57600080fd5b506103f361081c366004612642565b611482565b34801561082d57600080fd5b5061037c61083c366004612560565b6114b5565b34801561084d57600080fd5b506103f360065481565b34801561086357600080fd5b506103f360045481565b34801561087957600080fd5b5061032f610888366004612695565b6114cc565b34801561089957600080fd5b506010546011546108a8919082565b60408051928352602083019190915201610353565b3480156108c957600080fd5b50600e54600f546108a8919082565b3480156108e457600080fd5b506103f36108f336600461275a565b6001600160a01b03918216600090815260216020908152604080832093909416825291909152205490565b34801561092a57600080fd5b50600c54600d546108a8919082565b34801561094557600080fd5b506103f360075481565b34801561095b57600080fd5b5061032f61096a366004612642565b611555565b34801561097b57600080fd5b50600354610613906001600160a01b031681565b34801561099b57600080fd5b50601b54610613906001600160a01b031681565b6109b76115cb565b60035460405162241fbd60e51b81526001600160a01b038481166004830152831515602483015290911690630483f7a0906044015b600060405180830381600087803b158015610a0657600080fd5b505af1158015610a1a573d6000803e3d6000fd5b505050505050565b606060008054610a3190612788565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5d90612788565b8015610aaa5780601f10610a7f57610100808354040283529160200191610aaa565b820191906000526020600020905b815481529060010190602001808311610a8d57829003601f168201915b5050505050905090565b3360008181526021602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610b0f9086815260200190565b60405180910390a35060015b92915050565b610b296115cb565b476000610b446002546001600160a01b036101009091041690565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114610b8e576040519150601f19603f3d011682016040523d82523d6000602084013e610b93565b606091505b5050905080610ba157600080fd5b5050565b610bad6115cb565b6001600160a01b038216600081815260226020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b610c146115cb565b60165442111580610c2f5750601c54600160a01b900460ff16155b610c925760405162461bcd60e51b815260206004820152602960248201527f43616e206f6e6c7920626c6f636b20626f7420696e207468652066697273742060448201526835206d696e7574657360b81b60648201526084015b60405180910390fd5b60005b81811015610d0457600160246000858585818110610cb557610cb56127c2565b9050602002016020810190610cca9190612642565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610cfc816127ee565b915050610c95565b505050565b6001600160a01b038316600090815260216020908152604080832033845290915281205460001914610df5576001600160a01b0384166000908152602160209081526040808320338452909152902054821115610da15760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420416c6c6f77616e636560501b6044820152606401610c89565b6001600160a01b0384166000908152602160209081526040808320338452909152902054610dd0908390612807565b6001600160a01b03851660009081526021602090815260408083203384529091529020555b610e0084848461162b565b506001949350505050565b600354604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae9160048083019260209291908290030181865afa158015610e55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e79919061281a565b905090565b3360009081526021602090815260408083206001600160a01b0386168452909152812054610ead908390612833565b3360008181526021602090815260408083206001600160a01b038916808552908352928190208590555193845290927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101610b0f565b6000600854600954108015610f1b57506000600554115b8015610f2957504260055411155b8015610e79575050600b5460ff1690565b60035460405163807ab4f760e01b81523360048201526001600160a01b039091169063807ab4f7906024016020604051808303816000875af1158015610f84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa89190612846565b50565b610fb36115cb565b60005b81811015610d0457600060246000858585818110610fd657610fd66127c2565b9050602002016020810190610feb9190612642565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061101d816127ee565b915050610fb6565b61102d6115cb565b601f55565b6003546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a08231906024015b602060405180830381865afa15801561107e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1b919061281a565b601e546001600160a01b03821660009081526020805260408120549091610b1b91612879565b6110d06115cb565b6110da6000611cb6565b565b60035460405163fbcbc0f160e01b81526001600160a01b038381166004830152600092839283928392839291169063fbcbc0f19060240160a060405180830381865afa158015611130573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611154919061288d565b939a9299509097509550909350915050565b61116e6115cb565b601c54600160a01b900460ff16156111bf5760405162461bcd60e51b815260206004820152601460248201527354726164696e67204c69766520416c726561647960601b6044820152606401610c89565b6111c7611d10565b601c805460ff60a01b1916600160a01b1790556017546111e79042612833565b6014556019546111f79042612833565b6015556018546112079042612833565b601655565b6112146115cb565b60035460405163497ec82360e01b81523360048201526001600160a01b0383811660248301529091169063497ec82390604401600060405180830381600087803b15801561126157600080fd5b505af1158015611275573d6000803e3d6000fd5b5050505050565b606060018054610a3190612788565b6112936115cb565b601c546003546040516323b872dd60e01b81523360048201526001600160a01b0391821660248201526044810184905260009291909116906323b872dd906064016020604051808303816000875af11580156112f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113179190612846565b90508015610ba1576003546040516301d4c84960e31b8152600481018490526001600160a01b0390911690630ea64248906024016109ec565b3360009081526021602090815260408083206001600160a01b03861684529091528120548083106113a4573360009081526021602090815260408083206001600160a01b03881684529091528120556113d3565b6113ae8382612807565b3360009081526021602090815260408083206001600160a01b03891684529091529020555b3360008181526021602090815260408083206001600160a01b038916808552908352928190205490519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060019392505050565b61143f610f04565b61147a5760405162461bcd60e51b815260206004820152600c60248201526b139bdd081d1a5b59481e595d60a21b6044820152606401610c89565b610fa8611da1565b6003546040516302a2e74960e61b81526001600160a01b038381166004830152600092169063a8b9d24090602401611061565b60006114c233848461162b565b5060019392505050565b6000805b8251811015610d04578281815181106114eb576114eb6127c2565b60200260200101519150816001600160a01b0316826001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600060405161153b91815260200190565b60405180910390a38061154d816127ee565b9150506114d0565b61155d6115cb565b6001600160a01b0381166115c25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c89565b610fa881611cb6565b6002546001600160a01b036101009091041633146110da5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c89565b60006001600160a01b0384166116915760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610c89565b6001600160a01b0383166116f35760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610c89565b6001600160a01b03841660009081526024602052604090205460ff1615801561173557506001600160a01b03831660009081526024602052604090205460ff16155b61176f5760405162461bcd60e51b815260206004820152600b60248201526a165bdd48185c9948189bdd60aa1b6044820152606401610c89565b601c546001600160a01b039081169085163214806117955750326001600160a01b038516145b1561185f5732600090815260236020908152604080832043845290915290205460ff16156117f45760405162461bcd60e51b815260206004820152600c60248201526b596f752061726520626f742160a01b6044820152606401610c89565b3260009081526023602090815260408083204384529091529020805460ff1916600117905560155442101561185f5732600090815260236020526040812060019161183f4384612833565b81526020810191909152604001600020805460ff19169115159190911790555b60255460ff1615801561188b57506001600160a01b03851660009081526022602052604090205460ff16155b80156118b057506001600160a01b03841660009081526022602052604090205460ff16155b15611ab2576000816001600160a01b0316866001600160a01b031614806118e85750816001600160a01b0316856001600160a01b0316145b156118f257506012545b601c54600160a01b900460ff1661193e5760405162461bcd60e51b815260206004820152601060248201526f54726164696e67206e6f74206c69766560801b6044820152606401610c89565b426014541061196e57816001600160a01b0316866001600160a01b03160361196e57601a54841061196e57506013545b816001600160a01b0316856001600160a01b0316036119a357601f54611993306110a2565b106119a3576119a3601f54611f9d565b6119ab610f04565b80156119c95750816001600160a01b0316866001600160a01b031614155b156119d8576119d6611da1565b505b60006127106119e783876128d6565b6119f19190612879565b90508015611aaf57601e54611a0690826128d6565b6001600160a01b038816600090815260208052604081208054909190611a2d908490612807565b9091555050601e54611a3f90826128d6565b30600090815260208052604081208054909190611a5d908490612833565b909155505060405181815230906001600160a01b038916907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3611aac8186612807565b94505b50505b601e54611abf90846128d6565b6001600160a01b038616600090815260208052604081208054909190611ae6908490612807565b9091555050601e54611af890846128d6565b6001600160a01b038516600090815260208052604081208054909190611b1f908490612833565b90915550506003546001600160a01b03868116600090815260208052604090205491169063e30443bc908790611b69906f085a36366eb71f04147a6da2b7f8647560351b90612879565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611baf57600080fd5b505af1925050508015611bc0575060015b506003546001600160a01b03858116600090815260208052604090205491169063e30443bc908690611c06906f085a36366eb71f04147a6da2b7f8647560351b90612879565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611c4c57600080fd5b505af1925050508015611c5d575060015b50836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef85604051611ca391815260200190565b60405180910390a3506001949350505050565b600280546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600954158015611d235750600b5460ff16155b611d615760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e481cdd185c9d1959608a1b6044820152606401610c89565b600b805460ff19166001179055600454611d7b9042612833565b60055542600655600454600854611d9291906128d6565b611d9c9042612833565b600755565b600654600454600854600754601d54600a5460009594939291904283811115611dc75750825b600086611dd48984612807565b611dde9190612879565b9050611dea87826128d6565b611df49089612833565b600655611e02816001612833565b611e0c90886128d6565b611e169089612833565b6005556009548690611e289083612833565b1115611e3e57600954611e3b9087612807565b90505b8060096000828254611e509190612833565b90915550600090505b81811015611e995764174876e800611e718582612833565b611e7b90876128d6565b611e859190612879565b945080611e91816127ee565b915050611e59565b50601d548403611eea57817fe3c48e43a3cc80f4a0c194845bdd6091fa19b9bb7d22e515c21e9f177e2e22ae85604051611ed591815260200190565b60405180910390a25091979650505050505050565b601d84905583611efc6009600a6129d1565b611f0990629896806128d6565b611f15906000196129e0565b611f2190600019612807565b611f2b9190612879565b601e556009548611611f6357600b805460ff191690556000600555600e546010819055600f546011819055611f5f91612833565b6012555b611f6b61227b565b817fe3c48e43a3cc80f4a0c194845bdd6091fa19b9bb7d22e515c21e9f177e2e22ae85604051611ed591815260200190565b6025805460ff19166001179055604080518082019091526010548082526011546020830152601254906000908290611fd590866128d6565b611fdf9190612879565b9050600082846020015186611ff491906128d6565b611ffe9190612879565b9050612009816122c5565b6120128261239b565b4780156120d257600b5460405160009161010090046001600160a01b03169083908381818185875af1925050503d806000811461206b576040519150601f19603f3d011682016040523d82523d6000602084013e612070565b606091505b50509050806120d05760405162461bcd60e51b815260206004820152602660248201527f4661696c656420746f2073656e642045544820746f206d61726b6574696e67206044820152651dd85b1b195d60d21b6064820152608401610c89565b505b601c546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561211b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061213f919061281a565b9050801561226857601c5460035460405163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052600092919091169063a9059cbb906044016020604051808303816000875af11580156121a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121c59190612846565b90508015612266576003546040516301d4c84960e31b8152600481018490526001600160a01b0390911690630ea6424890602401600060405180830381600087803b15801561221357600080fd5b505af1158015612227573d6000803e3d6000fd5b5050604080518b8152602081018690527f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc3935001905060405180910390a15b505b50506025805460ff191690555050505050565b601c546040805160016209351760e01b0319815290516001600160a01b0390921691829163fff6cae991600480830192600092919082900301818387803b15801561126157600080fd5b8015610fa85760006122d8600283612879565b905060006122e68284612807565b9050476122f28361239b565b60006122fe8247612807565b601b5460405163f305d71960e01b8152306004820181905260248201879052600060448301819052606483015260848201524260a48201529192506001600160a01b03169063f305d71990839060c40160606040518083038185885af115801561236c573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061239191906129f4565b5050505050505050565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106123d0576123d06127c2565b6001600160a01b03928316602091820292909201810191909152601b54604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015612429573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061244d9190612a22565b81600181518110612460576124606127c2565b6001600160a01b039283166020918202929092010152601b5460405163791ac94760e01b815291169063791ac947906109ec908590600090869030904290600401612a3f565b6001600160a01b0381168114610fa857600080fd5b80356124c6816124a6565b919050565b8015158114610fa857600080fd5b600080604083850312156124ec57600080fd5b82356124f7816124a6565b91506020830135612507816124cb565b809150509250929050565b600060208083528351808285015260005b8181101561253f57858101830151858201604001528201612523565b506000604082860101526040601f19601f8301168501019250505092915050565b6000806040838503121561257357600080fd5b823561257e816124a6565b946020939093013593505050565b6000806020838503121561259f57600080fd5b823567ffffffffffffffff808211156125b757600080fd5b818501915085601f8301126125cb57600080fd5b8135818111156125da57600080fd5b8660208260051b85010111156125ef57600080fd5b60209290920196919550909350505050565b60008060006060848603121561261657600080fd5b8335612621816124a6565b92506020840135612631816124a6565b929592945050506040919091013590565b60006020828403121561265457600080fd5b813561265f816124a6565b9392505050565b60006020828403121561267857600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156126a857600080fd5b823567ffffffffffffffff808211156126c057600080fd5b818501915085601f8301126126d457600080fd5b8135818111156126e6576126e661267f565b8060051b604051601f19603f8301168101818110858211171561270b5761270b61267f565b60405291825284820192508381018501918883111561272957600080fd5b938501935b8285101561274e5761273f856124bb565b8452938501939285019261272e565b98975050505050505050565b6000806040838503121561276d57600080fd5b8235612778816124a6565b91506020830135612507816124a6565b600181811c9082168061279c57607f821691505b6020821081036127bc57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612800576128006127d8565b5060010190565b81810381811115610b1b57610b1b6127d8565b60006020828403121561282c57600080fd5b5051919050565b80820180821115610b1b57610b1b6127d8565b60006020828403121561285857600080fd5b815161265f816124cb565b634e487b7160e01b600052601260045260246000fd5b60008261288857612888612863565b500490565b600080600080600060a086880312156128a557600080fd5b85516128b0816124a6565b602087015160408801516060890151608090990151929a91995097965090945092505050565b8082028115828204841417610b1b57610b1b6127d8565b600181815b8085111561292857816000190482111561290e5761290e6127d8565b8085161561291b57918102915b93841c93908002906128f2565b509250929050565b60008261293f57506001610b1b565b8161294c57506000610b1b565b8160018114612962576002811461296c57612988565b6001915050610b1b565b60ff84111561297d5761297d6127d8565b50506001821b610b1b565b5060208310610133831016604e8410600b84101617156129ab575081810a610b1b565b6129b583836128ed565b80600019048211156129c9576129c96127d8565b029392505050565b600061265f60ff841683612930565b6000826129ef576129ef612863565b500690565b600080600060608486031215612a0957600080fd5b8351925060208401519150604084015190509250925092565b600060208284031215612a3457600080fd5b815161265f816124a6565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612a8f5784516001600160a01b031683529383019391830191600101612a6a565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212205d292b79c2d9eb5a03a2e1562eec75da2d54e4623aa1b4def758704a28d8d27064736f6c63430008150033

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

0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d0000000000000000000000000fd3586317007a55bd79444dd4992e9735bfea8e

-----Decoded View---------------
Arg [0] : _router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [1] : _marketing (address): 0x0Fd3586317007A55bD79444Dd4992e9735bfea8e

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : 0000000000000000000000000fd3586317007a55bd79444dd4992e9735bfea8e


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.