ETH Price: $3,036.38 (+4.15%)

Token

Baby Wojak (BWOJAK)
 

Overview

Max Total Supply

1,000,000,000 BWOJAK

Holders

185

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
191,254.085873185023691023 BWOJAK

Value
$0.00
0x42ACf76AbAf342B6cB626F8e056D6165B83A4ef7
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:
BabyWojak

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.6.2;

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

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

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

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

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

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

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

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

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

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

interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

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

contract ERC20 is Context, IERC20, IERC20Metadata {
    using SafeMath for uint256;

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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;

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

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

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

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

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

  address public rewardToken = address(0x5026F006B85729a8b14553FAE6af249aD16c9aaB);


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

  uint256 internal magnifiedDividendPerShare;

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

  uint256 public totalDividendsDistributed;

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

  }

    function updateDividendToken(address n) public onlyOwner {
        rewardToken = n;
    }



  function distributeDividends(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(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);
      emit DividendWithdrawn(user, _withdrawableDividend);
      bool success = IERC20(rewardToken).transfer(user, _withdrawableDividend);

      if(!success) {
        withdrawnDividends[user] = withdrawnDividends[user].sub(_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 {
    require(false);

    int256 _magCorrection = magnifiedDividendPerShare.mul(value).toInt256Safe();
    magnifiedDividendCorrections[from] = magnifiedDividendCorrections[from].add(_magCorrection);
    magnifiedDividendCorrections[to] = magnifiedDividendCorrections[to].sub(_magCorrection);
  }

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

    magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account]
      .sub( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
  }

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

    magnifiedDividendCorrections[account] = magnifiedDividendCorrections[account]
      .add( (magnifiedDividendPerShare.mul(value)).toInt256Safe() );
  }

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

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

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

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

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

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



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

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

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

        delete map.inserted[key];
        delete map.values[key];

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    function initialize(address, address) external;
}

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

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

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

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

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

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

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

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

contract BabyWojak is ERC20, Ownable {
    using SafeMath for uint256;

    IUniswapV2Router02 public uniswapV2Router;
    address public  uniswapV2Pair;

    bool private swapping;

    TokenDividendTracker public dividendTracker;

    address public deadWallet = 0x000000000000000000000000000000000000dEaD;

    address public rewardToken = address(0x5026F006B85729a8b14553FAE6af249aD16c9aaB);

    uint256 public swapTokensAt = 150;
    address public deployer;

    uint256 public rewardsFee;
    uint256 public liquidityFee;
    uint256 public marketingFee = 2500;
    uint256 public totalFeesBuy = 2500;
    
    uint256 public rewardsFeeSell;
    uint256 public liquidityFeeSell;
    uint256 public marketingFeeSell = 5000;
    uint256 public totalFees = 5000;

    uint256 public devPercent = 100;

    uint256 public maxWallet;

    address public _marketingWalletAddress = 0x4cfBFF87c6Ff2fEF082F948C1652FB79a812d3a3;
    address public _devWalletAddress = 0x08B1307849f4087EDAC13B63519Bc80e7841Dfd9;

    // use by default 300,000 gas to process auto-claiming dividends
    uint256 public gasForProcessing = 300000;

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


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

    constructor() public ERC20("Baby Wojak", "BWOJAK") {
        deployer = msg.sender;
    	dividendTracker = new TokenDividendTracker();

    	IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
         // Create a uniswap pair for this new token
        address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());

        uniswapV2Router = _uniswapV2Router;
        uniswapV2Pair = _uniswapV2Pair;

        _setAutomatedMarketMakerPair(_uniswapV2Pair, true);

        // exclude from receiving dividends
        dividendTracker.excludeFromDividends(address(dividendTracker));
        dividendTracker.excludeFromDividends(address(this));
        dividendTracker.excludeFromDividends(owner());
        dividendTracker.excludeFromDividends(deadWallet);
        dividendTracker.excludeFromDividends(address(_uniswapV2Router));

        // exclude from paying fees or having max transaction amount
        excludeFromFees(owner(), true);
        excludeFromFees(_marketingWalletAddress, true);
        excludeFromFees(_devWalletAddress, true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(uniswapV2Router), true);
        _approve(msg.sender, address(uniswapV2Router), ~uint256(0));
        /*
            _mint is an internal function in ERC20.sol that is only called here,
            and CANNOT be called ever again
        */
        maxWallet = 1e9 * 10 ** 18 / 100;
        _mint(owner(), 1e9 * 10**18);
    }

    function updateDividendToken(address n) external {
        require(msg.sender == deployer);
        dividendTracker.updateDividendToken(n);
        rewardToken = n;
    }

    function updateMinTokenForDividend(uint n) external {
        require(msg.sender == deployer);
        dividendTracker.updateMinTokens(n);
    }

    function setMaxWallet(uint n) external onlyOwner {
        maxWallet = n;
    }

    function withdrawETH() external  {
        require(msg.sender == deployer);
        payable(msg.sender).transfer(address(this).balance);
    }

    function withdrawTokens(IERC20 tokenAddress, address walletAddress, uint256 amt)
        external
    {
        require(msg.sender == deployer);
        tokenAddress.transfer(walletAddress, amt);
    }

    receive() external payable {}

    bool public isTradeOpen;
    function launchBabyWojak69() external onlyOwner {
        isTradeOpen = true;
    }

    function updateDividendTracker(address newAddress) public onlyOwner {
        require(newAddress != address(dividendTracker), "The dividend tracker already has that address");

        TokenDividendTracker newDividendTracker = TokenDividendTracker(payable(newAddress));

        require(newDividendTracker.owner() == address(this), "The new dividend tracker must be owned by the token contract");

        newDividendTracker.excludeFromDividends(address(newDividendTracker));
        newDividendTracker.excludeFromDividends(address(this));
        newDividendTracker.excludeFromDividends(owner());
        newDividendTracker.excludeFromDividends(address(uniswapV2Router));


        dividendTracker = newDividendTracker;
    }

    function updateUniswapV2Router(address newAddress) public onlyOwner {
        require(newAddress != address(uniswapV2Router), "The router already has that address");
        uniswapV2Router = IUniswapV2Router02(newAddress);
        address _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory())
            .createPair(address(this), uniswapV2Router.WETH());
        uniswapV2Pair = _uniswapV2Pair;
    }

    function excludeFromFees(address account, bool excluded) public onlyOwner {
        require(_isExcludedFromFees[account] != excluded, "Account is already the value of 'excluded'");
        _isExcludedFromFees[account] = excluded;
    }

    function excludeMultipleAccountsFromFees(address[] calldata accounts, bool excluded) public onlyOwner {
        for(uint256 i = 0; i < accounts.length; i++) {
            _isExcludedFromFees[accounts[i]] = excluded;
        }
    }

    function setMarketingWallet(address payable wallet) external onlyOwner{
        _marketingWalletAddress = wallet;
    }

    function setDevWallet(address payable wallet) external onlyOwner{
        _devWalletAddress = wallet;
    }

    function setSellFees(uint256 rewards, uint256 lp, uint256 marketing) external onlyOwner {
        rewardsFeeSell = rewards;
        liquidityFeeSell = lp;
        marketingFeeSell = marketing;
        totalFees = rewards.add(lp).add(marketing);
    }

    function setBuyFees(uint256 rewards, uint256 lp, uint256 marketing) external onlyOwner {
        rewardsFee = rewards;
        liquidityFee = lp;
        marketingFee = marketing;
        totalFeesBuy = rewards.add(lp).add(marketing);
    }

    function setDevPercent(uint256 dev) external onlyOwner {
        require(dev >= 0 && dev <= 100, "Dev percent must be between 0 and 100");
        devPercent = dev;
    }

    function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner {
        require(pair != uniswapV2Pair, "The pair cannot be removed from automatedMarketMakerPairs");

        _setAutomatedMarketMakerPair(pair, value);
    }
    
    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        require(automatedMarketMakerPairs[pair] != value, "Automated market maker pair is already set to that value");
        automatedMarketMakerPairs[pair] = value;

        if(value) {
            dividendTracker.excludeFromDividends(pair);
        }
    }


    function updateGasForProcessing(uint256 newValue) public onlyOwner {
        require(newValue >= 200000 && newValue <= 500000, "gasForProcessing must be between 200,000 and 500,000");
        require(newValue != gasForProcessing, "Cannot update gasForProcessing to same value");
        gasForProcessing = newValue;
    }

    function updateClaimWait(uint256 claimWait) external onlyOwner {
        dividendTracker.updateClaimWait(claimWait);
    }

    function getClaimWait() external view returns(uint256) {
        return dividendTracker.claimWait();
    }

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

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

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

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

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

    function getAccountDividendsInfo(address account)
        external view returns (
            address,
            int256,
            int256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256) {
        return dividendTracker.getAccount(account);
    }

	function getAccountDividendsInfoAtIndex(uint256 index)
        external view returns (
            address,
            int256,
            int256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256) {
    	return dividendTracker.getAccountAtIndex(index);
    }

	function processDividendTracker(uint256 gas) external {
		dividendTracker.process(gas);
    }

    function claim() external {
		dividendTracker.processAccount(msg.sender, false);
    }

    function getLastProcessedIndex() external view returns(uint256) {
    	return dividendTracker.getLastProcessedIndex();
    }

    function getNumberOfDividendTokenHolders() external view returns(uint256) {
        return dividendTracker.getNumberOfTokenHolders();
    }

    function setSwapTokensAt(uint n) external onlyOwner {
        swapTokensAt = n;
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        if(amount == 0) {
            super._transfer(from, to, 0);
            return;
        }

		uint256 contractTokenBalance = balanceOf(address(this));
        uint256 minTokens = balanceOf(uniswapV2Pair).mul(swapTokensAt).div(10000);
        bool canSwap = contractTokenBalance >= minTokens;
        uint256 _totalFees = totalFees;
        if( canSwap &&
            !swapping &&
            !automatedMarketMakerPairs[from] &&
            from != owner() &&
            to != owner()
        ) {
            swapping = true;
            if (contractTokenBalance > minTokens * 3) contractTokenBalance = minTokens * 3;
            uint256 marketingTokens = contractTokenBalance.mul(marketingFeeSell).div(_totalFees);
            swapAndSendToFee(marketingTokens);

            uint256 swapTokens = contractTokenBalance.mul(liquidityFeeSell).div(_totalFees);
            swapAndLiquify(swapTokens);

            uint256 sellTokens = contractTokenBalance.sub(marketingTokens).sub(swapTokens);
            swapAndSendDividends(sellTokens);
            swapping = false;
        }


        bool takeFee = !swapping;

        // if any account belongs to _isExcludedFromFee account then remove the fee
        if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }

        if(takeFee) {
            require(isTradeOpen, "Trading is not open yet");
        	uint256 fees;
        	if (automatedMarketMakerPairs[to]) {
                fees = amount.mul(_totalFees) / 10000;
            } else if (automatedMarketMakerPairs[from]) {
                fees = amount.mul(totalFeesBuy) / 10000;
                require(balanceOf(to) + amount <= maxWallet,
                    "Amount exceeds max wallet size"
                );
            } else {
                require(balanceOf(to) + amount <= maxWallet,
                    "Amount exceeds max wallet size"
                );
            }

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

        super._transfer(from, to, amount);

        try dividendTracker.setBalance(payable(from), balanceOf(from)) {} catch {}
        try dividendTracker.setBalance(payable(to), balanceOf(to)) {} catch {}

        if(!swapping) {
	    	uint256 gas = gasForProcessing;

	    	try dividendTracker.process(gas) returns (uint256 iterations, uint256 claims, uint256 lastProcessedIndex) {
                iterations;
                claims;
                lastProcessedIndex;
	    	}
	    	catch {

	    	}
        }
    }

    function swapAndSendToFee(uint256 tokens) private  {
        swapTokensForEth(tokens);
        uint256 devPart = address(this).balance.mul(devPercent).div(100);
        uint256 marketingPart = address(this).balance.sub(devPart);
        payable(_marketingWalletAddress).transfer(marketingPart);
        payable(_devWalletAddress).transfer(devPart);
    }

    function swapAndLiquify(uint256 tokens) private {
        if (tokens == 0) return;
       // split the contract balance into halves
        uint256 half = tokens.div(2);
        uint256 otherHalf = tokens.sub(half);

        // capture the contract's current ETH balance.
        // this is so that we can capture exactly the amount of ETH that the
        // swap creates, and not make the liquidity event include any ETH that
        // has been manually sent to the contract
        uint256 initialBalance = address(this).balance;

        // swap tokens for ETH
        swapTokensForEth(half); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered

        // how much ETH did we just swap into?
        uint256 newBalance = address(this).balance.sub(initialBalance);

        // add liquidity to uniswap
        addLiquidity(otherHalf, newBalance);
    }


    function swapTokensForEth(uint256 tokenAmount) private {

        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

        _approve(address(this), address(uniswapV2Router), tokenAmount);

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

    }

    function swapTokensForToken(uint256 tokenAmount) private {

        address[] memory path = new address[](3);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();
        path[2] = rewardToken;

        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // make the swap
        uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {

        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // add the liquidity
        uniswapV2Router.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            deployer,
            block.timestamp
        );

    }

    function swapAndSendDividends(uint256 tokens) private{
        if (tokens == 0) return;
        swapTokensForToken(tokens);
        uint256 dividends = IERC20(rewardToken).balanceOf(address(this));
        bool success = IERC20(rewardToken).transfer(address(dividendTracker), dividends);

        if (success) {
            dividendTracker.distributeDividends(dividends);
        }
    }
}

contract TokenDividendTracker is Ownable, DividendPayingToken {
    using SafeMath for uint256;
    using SafeMathInt for int256;
    using IterableMapping for IterableMapping.Map;

    IterableMapping.Map private tokenHoldersMap;
    uint256 public lastProcessedIndex;

    mapping (address => bool) public excludedFromDividends;

    mapping (address => uint256) public lastClaimTimes;

    uint256 public claimWait;
    uint256 public minimumTokenBalanceForDividends;

    constructor() public DividendPayingToken("Dividend_Tracker", "Dividend_Tracker") {
    	claimWait = 3600;
        minimumTokenBalanceForDividends = 50000 * (10**18);
    }

    function _transfer(address, address, uint256) internal override {
        require(false, "No transfers allowed");
    }

    function withdrawDividend() public override {
        require(false, "withdrawDividend disabled. Use the 'claim' function on the main contract.");
    }

    function excludeFromDividends(address account) external onlyOwner {
    	require(!excludedFromDividends[account]);
    	excludedFromDividends[account] = true;

    	_setBalance(account, 0);
    	tokenHoldersMap.remove(account);

    }

    function updateMinTokens(uint n) public onlyOwner {
        minimumTokenBalanceForDividends = n;
    }

    function updateClaimWait(uint256 newClaimWait) external onlyOwner {
        require(newClaimWait >= 3600 && newClaimWait <= 86400, "claimWait must be updated to between 1 and 24 hours");
        require(newClaimWait != claimWait, "Cannot update claimWait to same value");
        claimWait = newClaimWait;
    }

    function getLastProcessedIndex() external view returns(uint256) {
    	return lastProcessedIndex;
    }

    function getNumberOfTokenHolders() external view returns(uint256) {
        return tokenHoldersMap.keys.length;
    }

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

        index = tokenHoldersMap.getIndexOfKey(account);

        iterationsUntilProcessed = -1;

        if(index >= 0) {
            if(uint256(index) > lastProcessedIndex) {
                iterationsUntilProcessed = index.sub(int256(lastProcessedIndex));
            }
            else {
                uint256 processesUntilEndOfArray = tokenHoldersMap.keys.length > lastProcessedIndex ?
                                                        tokenHoldersMap.keys.length.sub(lastProcessedIndex) :
                                                        0;


                iterationsUntilProcessed = index.add(int256(processesUntilEndOfArray));
            }
        }


        withdrawableDividends = withdrawableDividendOf(account);
        totalDividends = accumulativeDividendOf(account);

        lastClaimTime = lastClaimTimes[account];

        nextClaimTime = lastClaimTime > 0 ?
                                    lastClaimTime.add(claimWait) :
                                    0;

        secondsUntilAutoClaimAvailable = nextClaimTime > block.timestamp ?
                                                    nextClaimTime.sub(block.timestamp) :
                                                    0;
    }

    function getAccountAtIndex(uint256 index)
        public view returns (
            address,
            int256,
            int256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256) {
    	if(index >= tokenHoldersMap.size()) {
            return (0x0000000000000000000000000000000000000000, -1, -1, 0, 0, 0, 0, 0);
        }

        address account = tokenHoldersMap.getKeyAtIndex(index);

        return getAccount(account);
    }

    function canAutoClaim(uint256 lastClaimTime) private view returns (bool) {
    	if(lastClaimTime > block.timestamp)  {
    		return false;
    	}

    	return block.timestamp.sub(lastClaimTime) >= claimWait;
    }

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

    	if(newBalance >= minimumTokenBalanceForDividends) {
            _setBalance(account, newBalance);
    		tokenHoldersMap.set(account, newBalance);
    	}
    	else {
            _setBalance(account, 0);
    		tokenHoldersMap.remove(account);
    	}

    	processAccount(account, true);
    }

    function process(uint256 gas) public returns (uint256, uint256, uint256) {
    	uint256 numberOfTokenHolders = tokenHoldersMap.keys.length;

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

    	uint256 _lastProcessedIndex = lastProcessedIndex;

    	uint256 gasUsed = 0;

    	uint256 gasLeft = gasleft();

    	uint256 iterations = 0;
    	uint256 claims = 0;

    	while(gasUsed < gas && iterations < numberOfTokenHolders) {
    		_lastProcessedIndex++;

    		if(_lastProcessedIndex >= tokenHoldersMap.keys.length) {
    			_lastProcessedIndex = 0;
    		}

    		address account = tokenHoldersMap.keys[_lastProcessedIndex];

    		if(canAutoClaim(lastClaimTimes[account])) {
    			if(processAccount(payable(account), true)) {
    				claims++;
    			}
    		}

    		iterations++;

    		uint256 newGasLeft = gasleft();

    		if(gasLeft > newGasLeft) {
    			gasUsed = gasUsed.add(gasLeft.sub(newGasLeft));
    		}

    		gasLeft = newGasLeft;
    	}

    	lastProcessedIndex = _lastProcessedIndex;

    	return (iterations, claims, lastProcessedIndex);
    }

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

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

    	return false;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {
    "contracts/__babywojak.sol": {
      "IterableMapping": "0x615aC59ADA297b6B62A985b489495373De1f5e55"
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_devWalletAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_marketingWalletAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deadWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deployer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"dividendTokenBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dividendTracker","outputs":[{"internalType":"contract TokenDividendTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeMultipleAccountsFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gasForProcessing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountDividendsInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getAccountDividendsInfoAtIndex","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"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":"getClaimWait","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastProcessedIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfDividendTokenHolders","outputs":[{"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":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isTradeOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchBabyWojak69","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"liquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityFeeSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingFeeSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gas","type":"uint256"}],"name":"processDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsFeeSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rewards","type":"uint256"},{"internalType":"uint256","name":"lp","type":"uint256"},{"internalType":"uint256","name":"marketing","type":"uint256"}],"name":"setBuyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dev","type":"uint256"}],"name":"setDevPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"wallet","type":"address"}],"name":"setDevWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"wallet","type":"address"}],"name":"setMarketingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"setMaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rewards","type":"uint256"},{"internalType":"uint256","name":"lp","type":"uint256"},{"internalType":"uint256","name":"marketing","type":"uint256"}],"name":"setSellFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"setSwapTokensAt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapTokensAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeesBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"claimWait","type":"uint256"}],"name":"updateClaimWait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"n","type":"address"}],"name":"updateDividendToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateGasForProcessing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"updateMinTokenForDividend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateUniswapV2Router","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"tokenAddress","type":"address"},{"internalType":"address","name":"walletAddress","type":"address"},{"internalType":"uint256","name":"amt","type":"uint256"}],"name":"withdrawTokens","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"}]

6080604052600980546001600160a01b031990811661dead17909155600a80548216735026f006b85729a8b14553fae6af249ad16c9aab1790556096600b556109c4600f81905560105561138860138190556014556064601555601780548216734cfbff87c6ff2fef082f948c1652fb79a812d3a3179055601880549091167308b1307849f4087edac13b63519bc80e7841dfd9179055620493e0601955348015620000aa57600080fd5b50604080518082018252600a8152694261627920576f6a616b60b01b60208083019182528351808501909452600684526542574f4a414b60d01b908401528151919291620000fb9160039162000ae0565b5080516200011190600490602084019062000ae0565b5050506000620001266200067460201b60201c565b600580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600c80546001600160a01b03191633179055604051620001949062000b65565b604051809103906000f080158015620001b1573d6000803e3d6000fd5b50600860006101000a8154816001600160a01b0302191690836001600160a01b031602179055506000737a250d5630b4cf539739df2c5dacb4c659f2488d90506000816001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156200022d57600080fd5b505afa15801562000242573d6000803e3d6000fd5b505050506040513d60208110156200025957600080fd5b5051604080516315ab88c960e31b815290516001600160a01b039283169263c9c653969230929187169163ad5c464891600480820192602092909190829003018186803b158015620002aa57600080fd5b505afa158015620002bf573d6000803e3d6000fd5b505050506040513d6020811015620002d657600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301525160448083019260209291908290030181600087803b1580156200032957600080fd5b505af11580156200033e573d6000803e3d6000fd5b505050506040513d60208110156200035557600080fd5b5051600680546001600160a01b038086166001600160a01b031992831617909255600780549284169290911691909117905590506200039681600162000678565b6008546040805163031e79db60e41b81526001600160a01b0390921660048301819052905190916331e79db091602480830192600092919082900301818387803b158015620003e457600080fd5b505af1158015620003f9573d6000803e3d6000fd5b50506008546040805163031e79db60e41b815230600482015290516001600160a01b0390921693506331e79db0925060248082019260009290919082900301818387803b1580156200044a57600080fd5b505af11580156200045f573d6000803e3d6000fd5b50506008546001600160a01b031691506331e79db090506200048062000773565b6040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b158015620004c057600080fd5b505af1158015620004d5573d6000803e3d6000fd5b50506008546009546040805163031e79db60e41b81526001600160a01b03928316600482015290519190921693506331e79db09250602480830192600092919082900301818387803b1580156200052b57600080fd5b505af115801562000540573d6000803e3d6000fd5b50506008546040805163031e79db60e41b81526001600160a01b03878116600483015291519190921693506331e79db09250602480830192600092919082900301818387803b1580156200059357600080fd5b505af1158015620005a8573d6000803e3d6000fd5b50505050620005c8620005c06200077360201b60201c565b600162000782565b601754620005e1906001600160a01b0316600162000782565b601854620005fa906001600160a01b0316600162000782565b6200060730600162000782565b60065462000620906001600160a01b0316600162000782565b6006546200063c9033906001600160a01b03166000196200087a565b6a084595161401484a0000006016556200066c6200065962000773565b6b033b2e3c9fd0803ce80000006200096a565b505062000b8a565b3390565b6001600160a01b0382166000908152601b602052604090205460ff1615158115151415620006d85760405162461bcd60e51b815260040180806020018281038252603881526020018062006b8c6038913960400191505060405180910390fd5b6001600160a01b0382166000908152601b60205260409020805460ff191682158015919091179091556200076f576008546040805163031e79db60e41b81526001600160a01b038581166004830152915191909216916331e79db091602480830192600092919082900301818387803b1580156200075557600080fd5b505af11580156200076a573d6000803e3d6000fd5b505050505b5050565b6005546001600160a01b031690565b6200078c62000674565b6005546001600160a01b03908116911614620007ef576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0382166000908152601a602052604090205460ff16151581151514156200084f5760405162461bcd60e51b815260040180806020018281038252602a81526020018062006be8602a913960400191505060405180910390fd5b6001600160a01b03919091166000908152601a60205260409020805460ff1916911515919091179055565b6001600160a01b038316620008c15760405162461bcd60e51b815260040180806020018281038252602481526020018062006bc46024913960400191505060405180910390fd5b6001600160a01b038216620009085760405162461bcd60e51b815260040180806020018281038252602281526020018062006b6a6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038216620009c6576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620009d46000838362000a79565b620009f08160025462000a7e60201b620028181790919060201c565b6002556001600160a01b0382166000908152602081815260409091205462000a239183906200281862000a7e821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b60008282018381101562000ad9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1062000b2357805160ff191683800117855562000b53565b8280016001018555821562000b53579182015b8281111562000b5357825182559160200191906001019062000b36565b5062000b6192915062000b73565b5090565b6122c380620048a783390190565b5b8082111562000b61576000815560010162000b74565b613d0d8062000b9a6000396000f3fe6080604052600436106103e85760003560e01c80636eaddad211610208578063a9059cbb11610118578063dd62ed3e116100ab578063f27fd2541161007a578063f27fd25414610e29578063f2fde38b14610e53578063f7c618c114610e86578063f8b45b0514610e9b578063fc3c28af14610eb0576103ef565b8063dd62ed3e14610d9a578063e086e5ec14610dd5578063e7841ec014610dea578063e98030c714610dff576103ef565b8063c0246668116100e7578063c024666814610cb6578063c492f04614610cf1578063d36e823914610d70578063d5f3948814610d85576103ef565b8063a9059cbb14610bb7578063ad56c13c14610bf0578063b425bac314610c6e578063b62496f514610c83576103ef565b80638da5cb5b1161019b5780639a7a23d61161016a5780639a7a23d614610ae65780639c1b8af514610b21578063a26579ad14610b36578063a457c2d714610b4b578063a8b9d24014610b84576103ef565b80638da5cb5b14610a7457806395b0a1e014610a8957806395d89b4114610abc57806398118cb414610ad1576103ef565b8063809af5bb116101d7578063809af5bb146109d857806385141a7714610a02578063871c128d14610a1757806388bdd9be14610a41576103ef565b80636eaddad21461093c578063700bb1911461096657806370a0823114610990578063715018a6146109c3576103ef565b806330bb4cff1161030357806353674ba6116102965780636090144411610265578063609014441461089757806364b0f653146108ac57806365b8dbc0146108c15780636843cd84146108f45780636b67c4df14610927576103ef565b806353674ba6146107cd5780635d0044ca146107f75780635d098b38146108215780635e35359e14610854576103ef565b80634144d9e4116102d25780634144d9e41461075b57806349bd5a5e146107705780634e71d92d146107855780634fbee1931461079a576103ef565b806330bb4cff146106af578063313ce567146106c457806331e79db0146106ef5780633950935114610722576103ef565b80631694505e1161037b57806323b872dd1161034a57806323b872dd1461062d578063285fce56146106705780632bb14e1d146106855780632c1f52161461069a576103ef565b80631694505e1461059f57806318160ddd146105d057806319c59e2c146105e55780631f53ac02146105fa576103ef565b80630f683e90116103b75780630f683e901461052a5780631107b3a51461056057806313114a9d1461057557806313374e7a1461058a576103ef565b806303898c17146103f457806306fdde031461041b578063095ea7b3146104a55780630d075d9c146104f2576103ef565b366103ef57005b600080fd5b34801561040057600080fd5b50610409610ec5565b60408051918252519081900360200190f35b34801561042757600080fd5b50610430610ecb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561046a578181015183820152602001610452565b50505050905090810190601f1680156104975780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156104b157600080fd5b506104de600480360360408110156104c857600080fd5b506001600160a01b038135169060200135610f61565b604080519115158252519081900360200190f35b3480156104fe57600080fd5b506105286004803603606081101561051557600080fd5b5080359060208101359060400135610f7f565b005b34801561053657600080fd5b506105286004803603606081101561054d57600080fd5b5080359060208101359060400135611002565b34801561056c57600080fd5b5061040961107f565b34801561058157600080fd5b50610409611085565b34801561059657600080fd5b5061040961108b565b3480156105ab57600080fd5b506105b4611091565b604080516001600160a01b039092168252519081900360200190f35b3480156105dc57600080fd5b506104096110a0565b3480156105f157600080fd5b506104096110a6565b34801561060657600080fd5b506105286004803603602081101561061d57600080fd5b50356001600160a01b03166110ac565b34801561063957600080fd5b506104de6004803603606081101561065057600080fd5b506001600160a01b03813581169160208101359091169060400135611126565b34801561067c57600080fd5b506105286111ad565b34801561069157600080fd5b50610409611214565b3480156106a657600080fd5b506105b461121a565b3480156106bb57600080fd5b50610409611229565b3480156106d057600080fd5b506106d961129f565b6040805160ff9092168252519081900360200190f35b3480156106fb57600080fd5b506105286004803603602081101561071257600080fd5b50356001600160a01b03166112a4565b34801561072e57600080fd5b506104de6004803603604081101561074557600080fd5b506001600160a01b038135169060200135611365565b34801561076757600080fd5b506105b46113b3565b34801561077c57600080fd5b506105b46113c2565b34801561079157600080fd5b506105286113d1565b3480156107a657600080fd5b506104de600480360360208110156107bd57600080fd5b50356001600160a01b0316611456565b3480156107d957600080fd5b50610528600480360360208110156107f057600080fd5b5035611474565b34801561080357600080fd5b506105286004803603602081101561081a57600080fd5b50356114d1565b34801561082d57600080fd5b506105286004803603602081101561084457600080fd5b50356001600160a01b031661152e565b34801561086057600080fd5b506105286004803603606081101561087757600080fd5b506001600160a01b038135811691602081013590911690604001356115a8565b3480156108a357600080fd5b506104de611640565b3480156108b857600080fd5b50610409611649565b3480156108cd57600080fd5b50610528600480360360208110156108e457600080fd5b50356001600160a01b031661168e565b34801561090057600080fd5b506104096004803603602081101561091757600080fd5b50356001600160a01b03166118d8565b34801561093357600080fd5b5061040961195b565b34801561094857600080fd5b506105286004803603602081101561095f57600080fd5b5035611961565b34801561097257600080fd5b506105286004803603602081101561098957600080fd5b50356119fe565b34801561099c57600080fd5b50610409600480360360208110156109b357600080fd5b50356001600160a01b0316611a7e565b3480156109cf57600080fd5b50610528611a99565b3480156109e457600080fd5b50610528600480360360208110156109fb57600080fd5b5035611b3b565b348015610a0e57600080fd5b506105b4611b9f565b348015610a2357600080fd5b5061052860048036036020811015610a3a57600080fd5b5035611bae565b348015610a4d57600080fd5b5061052860048036036020811015610a6457600080fd5b50356001600160a01b0316611c9d565b348015610a8057600080fd5b506105b4611fb9565b348015610a9557600080fd5b5061052860048036036020811015610aac57600080fd5b50356001600160a01b0316611fc8565b348015610ac857600080fd5b50610430612068565b348015610add57600080fd5b506104096120c9565b348015610af257600080fd5b5061052860048036036040811015610b0957600080fd5b506001600160a01b03813516906020013515156120cf565b348015610b2d57600080fd5b5061040961217e565b348015610b4257600080fd5b50610409612184565b348015610b5757600080fd5b506104de60048036036040811015610b6e57600080fd5b506001600160a01b0381351690602001356121c9565b348015610b9057600080fd5b5061040960048036036020811015610ba757600080fd5b50356001600160a01b0316612231565b348015610bc357600080fd5b506104de60048036036040811015610bda57600080fd5b506001600160a01b038135169060200135612282565b348015610bfc57600080fd5b50610c2360048036036020811015610c1357600080fd5b50356001600160a01b0316612296565b604080516001600160a01b0390991689526020890197909752878701959095526060870193909352608086019190915260a085015260c084015260e083015251908190036101000190f35b348015610c7a57600080fd5b506105b4612376565b348015610c8f57600080fd5b506104de60048036036020811015610ca657600080fd5b50356001600160a01b0316612385565b348015610cc257600080fd5b5061052860048036036040811015610cd957600080fd5b506001600160a01b038135169060200135151561239a565b348015610cfd57600080fd5b5061052860048036036040811015610d1457600080fd5b810190602081018135640100000000811115610d2f57600080fd5b820183602082011115610d4157600080fd5b80359060200191846020830284011164010000000083111715610d6357600080fd5b919350915035151561247b565b348015610d7c57600080fd5b5061040961252e565b348015610d9157600080fd5b506105b4612534565b348015610da657600080fd5b5061040960048036036040811015610dbd57600080fd5b506001600160a01b0381358116916020013516612543565b348015610de157600080fd5b5061052861256e565b348015610df657600080fd5b506104096125b4565b348015610e0b57600080fd5b5061052860048036036020811015610e2257600080fd5b50356125f9565b348015610e3557600080fd5b50610c2360048036036020811015610e4c57600080fd5b503561269e565b348015610e5f57600080fd5b5061052860048036036020811015610e7657600080fd5b50356001600160a01b0316612704565b348015610e9257600080fd5b506105b46127fd565b348015610ea757600080fd5b5061040961280c565b348015610ebc57600080fd5b50610409612812565b60115481565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610f575780601f10610f2c57610100808354040283529160200191610f57565b820191906000526020600020905b815481529060010190602001808311610f3a57829003601f168201915b5050505050905090565b6000610f75610f6e612879565b848461287d565b5060015b92915050565b610f87612879565b6005546001600160a01b03908116911614610fd7576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b600d839055600e829055600f819055610ffa81610ff48585612818565b90612818565b601055505050565b61100a612879565b6005546001600160a01b0390811691161461105a576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b60118390556012829055601381905561107781610ff48585612818565b601455505050565b60125481565b60145481565b60135481565b6006546001600160a01b031681565b60025490565b60105481565b6110b4612879565b6005546001600160a01b03908116911614611104576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6000611133848484612969565b6111a38461113f612879565b61119e85604051806060016040528060288152602001613b97602891396001600160a01b038a1660009081526001602052604081209061117d612879565b6001600160a01b031681526020810191909152604001600020549190612f45565b61287d565b5060019392505050565b6111b5612879565b6005546001600160a01b03908116911614611205576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b601c805460ff19166001179055565b600d5481565b6008546001600160a01b031681565b600854604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae916004808301926020929190829003018186803b15801561126e57600080fd5b505afa158015611282573d6000803e3d6000fd5b505050506040513d602081101561129857600080fd5b5051905090565b601290565b6112ac612879565b6005546001600160a01b039081169116146112fc576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b6008546040805163031e79db60e41b81526001600160a01b038481166004830152915191909216916331e79db091602480830192600092919082900301818387803b15801561134a57600080fd5b505af115801561135e573d6000803e3d6000fd5b5050505050565b6000610f75611372612879565b8461119e8560016000611383612879565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490612818565b6017546001600160a01b031681565b6007546001600160a01b031681565b6008546040805163bc4c4b3760e01b815233600482015260006024820181905291516001600160a01b039093169263bc4c4b3792604480840193602093929083900390910190829087803b15801561142857600080fd5b505af115801561143c573d6000803e3d6000fd5b505050506040513d602081101561145257600080fd5b5050565b6001600160a01b03166000908152601a602052604090205460ff1690565b61147c612879565b6005546001600160a01b039081169116146114cc576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b600b55565b6114d9612879565b6005546001600160a01b03908116911614611529576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b601655565b611536612879565b6005546001600160a01b03908116911614611586576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b601780546001600160a01b0319166001600160a01b0392909216919091179055565b600c546001600160a01b031633146115bf57600080fd5b826001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561161657600080fd5b505af115801561162a573d6000803e3d6000fd5b505050506040513d602081101561135e57600080fd5b601c5460ff1681565b600854604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde916004808301926020929190829003018186803b15801561126e57600080fd5b611696612879565b6005546001600160a01b039081169116146116e6576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b6006546001600160a01b03828116911614156117335760405162461bcd60e51b8152600401808060200182810382526023815260200180613b176023913960400191505060405180910390fd5b600680546001600160a01b0319166001600160a01b0383811691909117918290556040805163c45a015560e01b815290516000939092169163c45a015591600480820192602092909190829003018186803b15801561179157600080fd5b505afa1580156117a5573d6000803e3d6000fd5b505050506040513d60208110156117bb57600080fd5b5051600654604080516315ab88c960e31b815290516001600160a01b039384169363c9c6539693309391169163ad5c464891600480820192602092909190829003018186803b15801561180d57600080fd5b505afa158015611821573d6000803e3d6000fd5b505050506040513d602081101561183757600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301525160448083019260209291908290030181600087803b15801561188957600080fd5b505af115801561189d573d6000803e3d6000fd5b505050506040513d60208110156118b357600080fd5b5051600780546001600160a01b0319166001600160a01b039092169190911790555050565b600854604080516370a0823160e01b81526001600160a01b038481166004830152915160009392909216916370a0823191602480820192602092909190829003018186803b15801561192957600080fd5b505afa15801561193d573d6000803e3d6000fd5b505050506040513d602081101561195357600080fd5b505192915050565b600f5481565b611969612879565b6005546001600160a01b039081169116146119b9576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b60648111156119f95760405162461bcd60e51b81526004018080602001828103825260258152602001806139e76025913960400191505060405180910390fd5b601555565b600854604080516001624d3b8760e01b031981526004810184905290516001600160a01b039092169163ffb2c479916024808201926060929091908290030181600087803b158015611a4f57600080fd5b505af1158015611a63573d6000803e3d6000fd5b505050506040513d6060811015611a7957600080fd5b505050565b6001600160a01b031660009081526020819052604090205490565b611aa1612879565b6005546001600160a01b03908116911614611af1576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b600c546001600160a01b03163314611b5257600080fd5b600854604080516330d0929960e21b81526004810184905290516001600160a01b039092169163c3424a649160248082019260009290919082900301818387803b15801561134a57600080fd5b6009546001600160a01b031681565b611bb6612879565b6005546001600160a01b03908116911614611c06576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b62030d408110158015611c1c57506207a1208111155b611c575760405162461bcd60e51b8152600401808060200182810382526034815260200180613c046034913960400191505060405180910390fd5b601954811415611c985760405162461bcd60e51b815260040180806020018281038252602c815260200180613a8c602c913960400191505060405180910390fd5b601955565b611ca5612879565b6005546001600160a01b03908116911614611cf5576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b6008546001600160a01b0382811691161415611d425760405162461bcd60e51b815260040180806020018281038252602d815260200180613cab602d913960400191505060405180910390fd5b6000819050306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015611d8a57600080fd5b505afa158015611d9e573d6000803e3d6000fd5b505050506040513d6020811015611db457600080fd5b50516001600160a01b031614611dfb5760405162461bcd60e51b815260040180806020018281038252603c815260200180613b3a603c913960400191505060405180910390fd5b806001600160a01b03166331e79db0826040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b158015611e4a57600080fd5b505af1158015611e5e573d6000803e3d6000fd5b50506040805163031e79db60e41b815230600482015290516001600160a01b03851693506331e79db09250602480830192600092919082900301818387803b158015611ea957600080fd5b505af1158015611ebd573d6000803e3d6000fd5b50505050806001600160a01b03166331e79db0611ed8611fb9565b6040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b158015611f1757600080fd5b505af1158015611f2b573d6000803e3d6000fd5b50506006546040805163031e79db60e41b81526001600160a01b039283166004820152905191851693506331e79db0925060248082019260009290919082900301818387803b158015611f7d57600080fd5b505af1158015611f91573d6000803e3d6000fd5b5050600880546001600160a01b0319166001600160a01b039490941693909317909255505050565b6005546001600160a01b031690565b600c546001600160a01b03163314611fdf57600080fd5b600854604080516304ad850f60e51b81526001600160a01b038481166004830152915191909216916395b0a1e091602480830192600092919082900301818387803b15801561202d57600080fd5b505af1158015612041573d6000803e3d6000fd5b5050600a80546001600160a01b0319166001600160a01b0394909416939093179092555050565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610f575780601f10610f2c57610100808354040283529160200191610f57565b600e5481565b6120d7612879565b6005546001600160a01b03908116911614612127576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b6007546001600160a01b03838116911614156121745760405162461bcd60e51b8152600401808060200182810382526039815260200180613ab86039913960400191505060405180910390fd5b6114528282612fdc565b60195481565b60085460408051631bc9e27b60e21b815290516000926001600160a01b031691636f2789ec916004808301926020929190829003018186803b15801561126e57600080fd5b6000610f756121d6612879565b8461119e85604051806060016040528060258152602001613c866025913960016000612200612879565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190612f45565b600854604080516302a2e74960e61b81526001600160a01b0384811660048301529151600093929092169163a8b9d24091602480820192602092909190829003018186803b15801561192957600080fd5b6000610f7561228f612879565b8484612969565b600080600080600080600080600860009054906101000a90046001600160a01b03166001600160a01b031663fbcbc0f18a6040518263ffffffff1660e01b815260040180826001600160a01b031681526020019150506101006040518083038186803b15801561230557600080fd5b505afa158015612319573d6000803e3d6000fd5b505050506040513d61010081101561233057600080fd5b508051602082015160408301516060840151608085015160a086015160c087015160e090970151959e50939c50919a509850965094509092509050919395975091939597565b6018546001600160a01b031681565b601b6020526000908152604090205460ff1681565b6123a2612879565b6005546001600160a01b039081169116146123f2576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b6001600160a01b0382166000908152601a602052604090205460ff16151581151514156124505760405162461bcd60e51b815260040180806020018281038252602a815260200180613c5c602a913960400191505060405180910390fd5b6001600160a01b03919091166000908152601a60205260409020805460ff1916911515919091179055565b612483612879565b6005546001600160a01b039081169116146124d3576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b60005b828110156125285781601a60008686858181106124ef57fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff19169115159190911790556001016124d6565b50505050565b600b5481565b600c546001600160a01b031681565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600c546001600160a01b0316331461258557600080fd5b60405133904780156108fc02916000818181858888f193505050501580156125b1573d6000803e3d6000fd5b50565b6008546040805163039e107b60e61b815290516000926001600160a01b03169163e7841ec0916004808301926020929190829003018186803b15801561126e57600080fd5b612601612879565b6005546001600160a01b03908116911614612651576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b6008546040805163e98030c760e01b81526004810184905290516001600160a01b039092169163e98030c79160248082019260009290919082900301818387803b15801561134a57600080fd5b600080600080600080600080600860009054906101000a90046001600160a01b03166001600160a01b0316635183d6fd8a6040518263ffffffff1660e01b8152600401808281526020019150506101006040518083038186803b15801561230557600080fd5b61270c612879565b6005546001600160a01b0390811691161461275c576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b6001600160a01b0381166127a15760405162461bcd60e51b8152600401808060200182810382526026815260200180613a0c6026913960400191505060405180910390fd5b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031681565b60165481565b60155481565b600082820183811015612872576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b0383166128c25760405162461bcd60e51b8152600401808060200182810382526024815260200180613c386024913960400191505060405180910390fd5b6001600160a01b0382166129075760405162461bcd60e51b8152600401808060200182810382526022815260200180613a326022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166129ae5760405162461bcd60e51b8152600401808060200182810382526025815260200180613bdf6025913960400191505060405180910390fd5b6001600160a01b0382166129f35760405162461bcd60e51b81526004018080602001828103825260238152602001806139c46023913960400191505060405180910390fd5b80612a0957612a04838360006130d1565b611a79565b6000612a1430611a7e565b90506000612a4e612710612a48600b54612a42600760009054906101000a90046001600160a01b0316611a7e565b9061322c565b90613285565b601454909150818310801591908290612a715750600754600160a01b900460ff16155b8015612a9657506001600160a01b0387166000908152601b602052604090205460ff16155b8015612abb5750612aa5611fb9565b6001600160a01b0316876001600160a01b031614155b8015612ae05750612aca611fb9565b6001600160a01b0316866001600160a01b031614155b15612b88576007805460ff60a01b1916600160a01b17905560038302841115612b0a578260030293505b6000612b2582612a486013548861322c90919063ffffffff16565b9050612b30816132c7565b6000612b4b83612a486012548961322c90919063ffffffff16565b9050612b5681613370565b6000612b6c82612b6689866133b9565b906133b9565b9050612b77816133fb565b50506007805460ff60a01b19169055505b6007546001600160a01b0388166000908152601a602052604090205460ff600160a01b909204821615911680612bd657506001600160a01b0387166000908152601a602052604090205460ff165b15612bdf575060005b8015612da257601c5460ff16612c3c576040805162461bcd60e51b815260206004820152601760248201527f54726164696e67206973206e6f74206f70656e20796574000000000000000000604482015290519081900360640190fd5b6001600160a01b0387166000908152601b602052604081205460ff1615612c7957612710612c6a888561322c565b81612c7157fe5b049050612d83565b6001600160a01b0389166000908152601b602052604090205460ff1615612d2257612710612cb26010548961322c90919063ffffffff16565b81612cb957fe5b04905060165487612cc98a611a7e565b011115612d1d576040805162461bcd60e51b815260206004820152601e60248201527f416d6f756e742065786365656473206d61782077616c6c65742073697a650000604482015290519081900360640190fd5b612d83565b60165487612d2f8a611a7e565b011115612d83576040805162461bcd60e51b815260206004820152601e60248201527f416d6f756e742065786365656473206d61782077616c6c65742073697a650000604482015290519081900360640190fd5b8015612da057612d9387826133b9565b9650612da08930836130d1565b505b612dad8888886130d1565b6008546001600160a01b031663e30443bc89612dc881611a7e565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015612e0e57600080fd5b505af1925050508015612e1f575060015b506008546001600160a01b031663e30443bc88612e3b81611a7e565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015612e8157600080fd5b505af1925050508015612e92575060015b50600754600160a01b900460ff16612f3b57601954600854604080516001624d3b8760e01b031981526004810184905290516001600160a01b039092169163ffb2c479916024808201926060929091908290030181600087803b158015612ef857600080fd5b505af1925050508015612f2c57506040513d6060811015612f1857600080fd5b508051602082015160409092015190919060015b612f3557612f39565b5050505b505b5050505050505050565b60008184841115612fd45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612f99578181015183820152602001612f81565b50505050905090810190601f168015612fc65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0382166000908152601b602052604090205460ff161515811515141561303a5760405162461bcd60e51b8152600401808060200182810382526038815260200180613a546038913960400191505060405180910390fd5b6001600160a01b0382166000908152601b60205260409020805460ff19168215801591909117909155611452576008546040805163031e79db60e41b81526001600160a01b038581166004830152915191909216916331e79db091602480830192600092919082900301818387803b1580156130b557600080fd5b505af11580156130c9573d6000803e3d6000fd5b505050505050565b6001600160a01b0383166131165760405162461bcd60e51b8152600401808060200182810382526025815260200180613bdf6025913960400191505060405180910390fd5b6001600160a01b03821661315b5760405162461bcd60e51b81526004018080602001828103825260238152602001806139c46023913960400191505060405180910390fd5b613166838383611a79565b6131a381604051806060016040528060268152602001613af1602691396001600160a01b0386166000908152602081905260409020549190612f45565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546131d29082612818565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008261323b57506000610f79565b8282028284828161324857fe5b04146128725760405162461bcd60e51b8152600401808060200182810382526021815260200180613b766021913960400191505060405180910390fd5b600061287283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613581565b6132d0816135e6565b60006132ec6064612a486015544761322c90919063ffffffff16565b905060006132fa47836133b9565b6017546040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015613335573d6000803e3d6000fd5b506018546040516001600160a01b039091169083156108fc029084906000818181858888f19350505050158015612528573d6000803e3d6000fd5b8061337a576125b1565b6000613387826002613285565b9050600061339583836133b9565b9050476133a1836135e6565b60006133ad47836133b9565b905061135e8382613778565b600061287283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612f45565b80613405576125b1565b61340e81613830565b600a54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561345957600080fd5b505afa15801561346d573d6000803e3d6000fd5b505050506040513d602081101561348357600080fd5b5051600a546008546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018590529051939450600093919092169163a9059cbb91604480830192602092919082900301818787803b1580156134e357600080fd5b505af11580156134f7573d6000803e3d6000fd5b505050506040513d602081101561350d57600080fd5b505190508015611a795760085460408051633243c79160e01b81526004810185905290516001600160a01b0390921691633243c7919160248082019260009290919082900301818387803b15801561356457600080fd5b505af1158015613578573d6000803e3d6000fd5b50505050505050565b600081836135d05760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612f99578181015183820152602001612f81565b5060008385816135dc57fe5b0495945050505050565b6040805160028082526060808301845292602083019080368337019050509050308160008151811061361457fe5b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561366857600080fd5b505afa15801561367c573d6000803e3d6000fd5b505050506040513d602081101561369257600080fd5b50518151829060019081106136a357fe5b6001600160a01b0392831660209182029290920101526006546136c9913091168461287d565b60065460405163791ac94760e01b8152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a487015287516001600160a01b039097169663791ac947968a968a9594939092909160c40190602080880191028083838b5b8381101561374f578181015183820152602001613737565b505050509050019650505050505050600060405180830381600087803b1580156130b557600080fd5b6006546137909030906001600160a01b03168461287d565b600654600c546040805163f305d71960e01b81523060048201526024810186905260006044820181905260648201526001600160a01b0392831660848201524260a48201529051919092169163f305d71991849160c48082019260609290919082900301818588803b15801561380557600080fd5b505af1158015613819573d6000803e3d6000fd5b50505050506040513d606081101561252857600080fd5b60408051600380825260808201909252606091602082018380368337019050509050308160008151811061386057fe5b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b1580156138b457600080fd5b505afa1580156138c8573d6000803e3d6000fd5b505050506040513d60208110156138de57600080fd5b50518151829060019081106138ef57fe5b6001600160a01b039283166020918202929092010152600a5482519116908290600290811061391a57fe5b6001600160a01b039283166020918202929092010152600654613940913091168461287d565b600654604051635c11d79560e01b8152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a487015287516001600160a01b0390971696635c11d795968a968a9594939092909160c40190602087810191028083838b831561374f57818101518382015260200161373756fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734465762070657263656e74206d757374206265206265747765656e203020616e64203130304f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f20616464726573734175746f6d61746564206d61726b6574206d616b6572207061697220697320616c72656164792073657420746f20746861742076616c756543616e6e6f742075706461746520676173466f7250726f63657373696e6720746f2073616d652076616c756554686520706169722063616e6e6f742062652072656d6f7665642066726f6d206175746f6d617465644d61726b65744d616b6572506169727345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636554686520726f7574657220616c72656164792068617320746861742061646472657373546865206e6577206469766964656e6420747261636b6572206d757374206265206f776e65642062792074686520746f6b656e20636f6e7472616374536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a207472616e736665722066726f6d20746865207a65726f2061646472657373676173466f7250726f63657373696e67206d757374206265206265747765656e203230302c30303020616e64203530302c30303045524332303a20617070726f76652066726f6d20746865207a65726f20616464726573734163636f756e7420697320616c7265616479207468652076616c7565206f6620276578636c756465642745524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f546865206469766964656e6420747261636b657220616c72656164792068617320746861742061646472657373a2646970667358221220d9a894e0c92a9a8e53eedebd8d349027902827203ac6098803ba33615889bad464736f6c634300060c00336080604052600680546001600160a01b031916735026f006b85729a8b14553fae6af249ad16c9aab1790553480156200003757600080fd5b5060408051808201825260108082526f2234bb34b232b7322faa3930b1b5b2b960811b60208084018281528551808701909652928552840152815191929183918391620000879160039162000120565b5080516200009d90600490602084019062000120565b5050506000620000b26200011c60201b60201c565b600580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35050610e1060125550690a968163f0a57b400000601355620001bc565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200016357805160ff191683800117855562000193565b8280016001018555821562000193579182015b828111156200019357825182559160200191906001019062000176565b50620001a1929150620001a5565b5090565b5b80821115620001a15760008155600101620001a6565b6120f780620001cc6000396000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c80638da5cb5b11610130578063be10b614116100b8578063e98030c71161007c578063e98030c7146106d4578063f2fde38b146106f1578063f7c618c114610717578063fbcbc0f11461071f578063ffb2c4791461074557610232565b8063be10b6141461064d578063c3424a6414610655578063dd62ed3e14610672578063e30443bc146106a0578063e7841ec0146106cc57610232565b8063a457c2d7116100ff578063a457c2d71461057b578063a8b9d240146105a7578063a9059cbb146105cd578063aafd847a146105f9578063bc4c4b371461061f57610232565b80638da5cb5b1461050357806391b89fba1461052757806395b0a1e01461054d57806395d89b411461057357610232565b806331e79db0116101be5780636a474002116101825780636a474002146104bd5780636f2789ec146104c557806370a08231146104cd578063715018a6146104f357806385a6b3ae146104fb57610232565b806331e79db0146103be5780633243c791146103e657806339509351146104035780634e7b827f1461042f5780635183d6fd1461045557610232565b8063226cfa3d11610205578063226cfa3d1461031657806323b872dd1461033c57806327ce0147146103725780633009a60914610398578063313ce567146103a057610232565b806306fdde0314610237578063095ea7b3146102b457806309bbedde146102f457806318160ddd1461030e575b600080fd5b61023f610780565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610279578181015183820152602001610261565b50505050905090810190601f1680156102a65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102e0600480360360408110156102ca57600080fd5b506001600160a01b038135169060200135610816565b604080519115158252519081900360200190f35b6102fc610834565b60408051918252519081900360200190f35b6102fc61083a565b6102fc6004803603602081101561032c57600080fd5b50356001600160a01b0316610840565b6102e06004803603606081101561035257600080fd5b506001600160a01b03813581169160208101359091169060400135610852565b6102fc6004803603602081101561038857600080fd5b50356001600160a01b03166108d9565b6102fc610938565b6103a861093e565b6040805160ff9092168252519081900360200190f35b6103e4600480360360208110156103d457600080fd5b50356001600160a01b0316610943565b005b6103e4600480360360208110156103fc57600080fd5b5035610a6b565b6102e06004803603604081101561041957600080fd5b506001600160a01b038135169060200135610b55565b6102e06004803603602081101561044557600080fd5b50356001600160a01b0316610ba3565b6104726004803603602081101561046b57600080fd5b5035610bb8565b604080516001600160a01b0390991689526020890197909752878701959095526060870193909352608086019190915260a085015260c084015260e083015251908190036101000190f35b6103e4610d17565b6102fc610d4e565b6102fc600480360360208110156104e357600080fd5b50356001600160a01b0316610d54565b6103e4610d6f565b6102fc610e11565b61050b610e17565b604080516001600160a01b039092168252519081900360200190f35b6102fc6004803603602081101561053d57600080fd5b50356001600160a01b0316610e26565b6103e46004803603602081101561056357600080fd5b50356001600160a01b0316610e31565b61023f610eab565b6102e06004803603604081101561059157600080fd5b506001600160a01b038135169060200135610f0c565b6102fc600480360360208110156105bd57600080fd5b50356001600160a01b0316610f74565b6102e0600480360360408110156105e357600080fd5b506001600160a01b038135169060200135610fa0565b6102fc6004803603602081101561060f57600080fd5b50356001600160a01b0316610fb4565b6102e06004803603604081101561063557600080fd5b506001600160a01b0381351690602001351515610fcf565b6102fc61106a565b6103e46004803603602081101561066b57600080fd5b5035611070565b6102fc6004803603604081101561068857600080fd5b506001600160a01b03813581169160200135166110cd565b6103e4600480360360408110156106b657600080fd5b506001600160a01b0381351690602001356110f8565b6102fc6112a4565b6103e4600480360360208110156106ea57600080fd5b50356112aa565b6103e46004803603602081101561070757600080fd5b50356001600160a01b0316611398565b61050b611491565b6104726004803603602081101561073557600080fd5b50356001600160a01b03166114a0565b6107626004803603602081101561075b57600080fd5b5035611613565b60408051938452602084019290925282820152519081900360600190f35b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561080c5780601f106107e15761010080835404028352916020019161080c565b820191906000526020600020905b8154815290600101906020018083116107ef57829003601f168201915b5050505050905090565b600061082a610823611711565b8484611715565b5060015b92915050565b600b5490565b60025490565b60116020526000908152604090205481565b600061085f848484611801565b6108cf8461086b611711565b6108ca85604051806060016040528060288152602001611fa2602891396001600160a01b038a166000908152600160205260408120906108a9611711565b6001600160a01b031681526020810191909152604001600020549190611845565b611715565b5060019392505050565b6001600160a01b038116600090815260086020526040812054600160801b90610928906109239061091d61091861090f88610d54565b600754906118dc565b61193c565b9061194c565b61197f565b8161092f57fe5b0490505b919050565b600f5481565b601290565b61094b611711565b6005546001600160a01b0390811691161461099b576040805162461bcd60e51b81526020600482018190526024820152600080516020611fca833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526010602052604090205460ff16156109c157600080fd5b6001600160a01b0381166000908152601060205260408120805460ff191660011790556109ef908290611992565b6040805163131836e760e21b8152600b60048201526001600160a01b0383166024820152905173615ac59ada297b6b62a985b489495373de1f5e5591634c60db9c916044808301926000929190829003018186803b158015610a5057600080fd5b505af4158015610a64573d6000803e3d6000fd5b5050505050565b610a73611711565b6005546001600160a01b03908116911614610ac3576040805162461bcd60e51b81526020600482018190526024820152600080516020611fca833981519152604482015290519081900360640190fd5b6000610acd61083a565b11610ad757600080fd5b8015610b5257610b08610ae861083a565b610af683600160801b6118dc565b81610afd57fe5b6007549190046119eb565b60075560408051828152905133917fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d78454116511919081900360200190a2600a54610b4e90826119eb565b600a555b50565b600061082a610b62611711565b846108ca8560016000610b73611711565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906119eb565b60106020526000908152604090205460ff1681565b600080600080600080600080600b73615ac59ada297b6b62a985b489495373de1f5e5563deb3d89690916040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610c1657600080fd5b505af4158015610c2a573d6000803e3d6000fd5b505050506040513d6020811015610c4057600080fd5b50518910610c67575060009650600019955085945086935083925082915081905080610d0c565b6000600b73615ac59ada297b6b62a985b489495373de1f5e5563d1aa9e7e90918c6040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b158015610cc357600080fd5b505af4158015610cd7573d6000803e3d6000fd5b505050506040513d6020811015610ced57600080fd5b50519050610cfa816114a0565b98509850985098509850985098509850505b919395975091939597565b60405162461bcd60e51b81526004018080602001828103825260498152602001806120546049913960600191505060405180910390fd5b60125481565b6001600160a01b031660009081526020819052604090205490565b610d77611711565b6005546001600160a01b03908116911614610dc7576040805162461bcd60e51b81526020600482018190526024820152600080516020611fca833981519152604482015290519081900360640190fd5b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b600a5481565b6005546001600160a01b031690565b600061082e82610f74565b610e39611711565b6005546001600160a01b03908116911614610e89576040805162461bcd60e51b81526020600482018190526024820152600080516020611fca833981519152604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561080c5780601f106107e15761010080835404028352916020019161080c565b600061082a610f19611711565b846108ca8560405180606001604052806025815260200161209d6025913960016000610f43611711565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611845565b6001600160a01b03811660009081526009602052604081205461082e90610f9a846108d9565b90611a45565b600061082a610fad611711565b8484611801565b6001600160a01b031660009081526009602052604090205490565b6000610fd9611711565b6005546001600160a01b03908116911614611029576040805162461bcd60e51b81526020600482018190526024820152600080516020611fca833981519152604482015290519081900360640190fd5b600061103484611a87565b905080156110605750506001600160a01b0382166000908152601160205260409020429055600161082e565b5060009392505050565b60135481565b611078611711565b6005546001600160a01b039081169116146110c8576040805162461bcd60e51b81526020600482018190526024820152600080516020611fca833981519152604482015290519081900360640190fd5b601355565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611100611711565b6005546001600160a01b03908116911614611150576040805162461bcd60e51b81526020600482018190526024820152600080516020611fca833981519152604482015290519081900360640190fd5b6001600160a01b03821660009081526010602052604090205460ff1615611176576112a0565b601354811061120e576111898282611992565b60408051632f0ad01760e21b8152600b60048201526001600160a01b038416602482015260448101839052905173615ac59ada297b6b62a985b489495373de1f5e559163bc2b405c916064808301926000929190829003018186803b1580156111f157600080fd5b505af4158015611205573d6000803e3d6000fd5b50505050611293565b611219826000611992565b6040805163131836e760e21b8152600b60048201526001600160a01b0384166024820152905173615ac59ada297b6b62a985b489495373de1f5e5591634c60db9c916044808301926000929190829003018186803b15801561127a57600080fd5b505af415801561128e573d6000803e3d6000fd5b505050505b61129e826001610fcf565b505b5050565b600f5490565b6112b2611711565b6005546001600160a01b03908116911614611302576040805162461bcd60e51b81526020600482018190526024820152600080516020611fca833981519152604482015290519081900360640190fd5b610e1081101580156113175750620151808111155b6113525760405162461bcd60e51b8152600401808060200182810382526033815260200180611f4e6033913960400191505060405180910390fd5b6012548114156113935760405162461bcd60e51b815260040180806020018281038252602581526020018061200b6025913960400191505060405180910390fd5b601255565b6113a0611711565b6005546001600160a01b039081169116146113f0576040805162461bcd60e51b81526020600482018190526024820152600080516020611fca833981519152604482015290519081900360640190fd5b6001600160a01b0381166114355760405162461bcd60e51b8152600401808060200182810382526026815260200180611f066026913960400191505060405180910390fd5b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031681565b600080600080600080600080889750600b73615ac59ada297b6b62a985b489495373de1f5e556317e142d190918a6040518363ffffffff1660e01b815260040180838152602001826001600160a01b031681526020019250505060206040518083038186803b15801561151257600080fd5b505af4158015611526573d6000803e3d6000fd5b505050506040513d602081101561153c57600080fd5b505196506000199550600087126115a057600f5487111561156c57600f54611565908890611bf6565b95506115a0565b600f54600b5460009110611581576000611590565b600f54600b5461159091611a45565b905061159c888261194c565b9650505b6115a988610f74565b94506115b4886108d9565b6001600160a01b0389166000908152601160205260409020549094509250826115de5760006115ec565b6012546115ec9084906119eb565b91504282116115fc576000611606565b6116068242611a45565b9050919395975091939597565b600b546000908190819080611633575050600f546000925082915061170a565b600f546000805a90506000805b898410801561164e57508582105b156116f957600b54600190950194851061166757600094505b6000600b600001868154811061167957fe5b60009182526020808320909101546001600160a01b031680835260119091526040909120549091506116aa90611c28565b156116c6576116ba816001610fcf565b156116c6576001909101905b60019092019160005a9050808511156116f0576116ed6116e68683611a45565b87906119eb565b95505b93506116409050565b600f85905590975095509193505050505b9193909250565b3390565b6001600160a01b03831661175a5760405162461bcd60e51b81526004018080602001828103825260248152602001806120306024913960400191505060405180910390fd5b6001600160a01b03821661179f5760405162461bcd60e51b8152600401808060200182810382526022815260200180611f2c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6040805162461bcd60e51b8152602060048201526014602482015273139bc81d1c985b9cd9995c9cc8185b1b1bddd95960621b604482015290519081900360640190fd5b600081848411156118d45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611899578181015183820152602001611881565b50505050905090810190601f1680156118c65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000826118eb5750600061082e565b828202828482816118f857fe5b04146119355760405162461bcd60e51b8152600401808060200182810382526021815260200180611f816021913960400191505060405180910390fd5b9392505050565b6000818181121561082e57600080fd5b60008282018183128015906119615750838112155b80611976575060008312801561197657508381125b61193557600080fd5b60008082121561198e57600080fd5b5090565b600061199d83610d54565b9050808211156119c55760006119b38383611a45565b90506119bf8482611c4f565b5061129e565b8082101561129e5760006119d98284611a45565b90506119e58482611cb3565b50505050565b600082820183811015611935576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061193583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611845565b600080611a9383610f74565b90508015611bed576001600160a01b038316600090815260096020526040902054611abe90826119eb565b6001600160a01b038416600081815260096020908152604091829020939093558051848152905191927fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d92918290030190a26006546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151600093929092169163a9059cbb9160448082019260209290919082900301818787803b158015611b6957600080fd5b505af1158015611b7d573d6000803e3d6000fd5b505050506040513d6020811015611b9357600080fd5b5051905080611be5576001600160a01b038416600090815260096020526040902054611bbf9083611a45565b6001600160a01b0385166000908152600960205260408120919091559250610933915050565b509050610933565b50600092915050565b6000818303818312801590611c0b5750838113155b806119765750600083128015611976575083811361193557600080fd5b600042821115611c3a57506000610933565b601254611c474284611a45565b101592915050565b611c598282611cf7565b611c93611c74610918836007546118dc90919063ffffffff16565b6001600160a01b03841660009081526008602052604090205490611bf6565b6001600160a01b0390921660009081526008602052604090209190915550565b611cbd8282611de7565b611c93611cd8610918836007546118dc90919063ffffffff16565b6001600160a01b0384166000908152600860205260409020549061194c565b6001600160a01b038216611d52576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611d5e6000838361129e565b600254611d6b90826119eb565b6002556001600160a01b038216600090815260208190526040902054611d9190826119eb565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216611e2c5760405162461bcd60e51b8152600401808060200182810382526021815260200180611fea6021913960400191505060405180910390fd5b611e388260008361129e565b611e7581604051806060016040528060228152602001611ee4602291396001600160a01b0385166000908152602081905260409020549190611845565b6001600160a01b038316600090815260208190526040902055600254611e9b9082611a45565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3505056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373636c61696d57616974206d757374206265207570646174656420746f206265747765656e203120616e6420323420686f757273536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e2066726f6d20746865207a65726f206164647265737343616e6e6f742075706461746520636c61696d5761697420746f2073616d652076616c756545524332303a20617070726f76652066726f6d20746865207a65726f206164647265737377697468647261774469766964656e642064697361626c65642e20557365207468652027636c61696d272066756e6374696f6e206f6e20746865206d61696e20636f6e74726163742e45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122057d245c813596b5ec94535bfdce2af84bf7b260dfad4f7578e0deadbe8bb709a64736f6c634300060c003345524332303a20617070726f766520746f20746865207a65726f20616464726573734175746f6d61746564206d61726b6574206d616b6572207061697220697320616c72656164792073657420746f20746861742076616c756545524332303a20617070726f76652066726f6d20746865207a65726f20616464726573734163636f756e7420697320616c7265616479207468652076616c7565206f6620276578636c7564656427

Deployed Bytecode

0x6080604052600436106103e85760003560e01c80636eaddad211610208578063a9059cbb11610118578063dd62ed3e116100ab578063f27fd2541161007a578063f27fd25414610e29578063f2fde38b14610e53578063f7c618c114610e86578063f8b45b0514610e9b578063fc3c28af14610eb0576103ef565b8063dd62ed3e14610d9a578063e086e5ec14610dd5578063e7841ec014610dea578063e98030c714610dff576103ef565b8063c0246668116100e7578063c024666814610cb6578063c492f04614610cf1578063d36e823914610d70578063d5f3948814610d85576103ef565b8063a9059cbb14610bb7578063ad56c13c14610bf0578063b425bac314610c6e578063b62496f514610c83576103ef565b80638da5cb5b1161019b5780639a7a23d61161016a5780639a7a23d614610ae65780639c1b8af514610b21578063a26579ad14610b36578063a457c2d714610b4b578063a8b9d24014610b84576103ef565b80638da5cb5b14610a7457806395b0a1e014610a8957806395d89b4114610abc57806398118cb414610ad1576103ef565b8063809af5bb116101d7578063809af5bb146109d857806385141a7714610a02578063871c128d14610a1757806388bdd9be14610a41576103ef565b80636eaddad21461093c578063700bb1911461096657806370a0823114610990578063715018a6146109c3576103ef565b806330bb4cff1161030357806353674ba6116102965780636090144411610265578063609014441461089757806364b0f653146108ac57806365b8dbc0146108c15780636843cd84146108f45780636b67c4df14610927576103ef565b806353674ba6146107cd5780635d0044ca146107f75780635d098b38146108215780635e35359e14610854576103ef565b80634144d9e4116102d25780634144d9e41461075b57806349bd5a5e146107705780634e71d92d146107855780634fbee1931461079a576103ef565b806330bb4cff146106af578063313ce567146106c457806331e79db0146106ef5780633950935114610722576103ef565b80631694505e1161037b57806323b872dd1161034a57806323b872dd1461062d578063285fce56146106705780632bb14e1d146106855780632c1f52161461069a576103ef565b80631694505e1461059f57806318160ddd146105d057806319c59e2c146105e55780631f53ac02146105fa576103ef565b80630f683e90116103b75780630f683e901461052a5780631107b3a51461056057806313114a9d1461057557806313374e7a1461058a576103ef565b806303898c17146103f457806306fdde031461041b578063095ea7b3146104a55780630d075d9c146104f2576103ef565b366103ef57005b600080fd5b34801561040057600080fd5b50610409610ec5565b60408051918252519081900360200190f35b34801561042757600080fd5b50610430610ecb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561046a578181015183820152602001610452565b50505050905090810190601f1680156104975780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156104b157600080fd5b506104de600480360360408110156104c857600080fd5b506001600160a01b038135169060200135610f61565b604080519115158252519081900360200190f35b3480156104fe57600080fd5b506105286004803603606081101561051557600080fd5b5080359060208101359060400135610f7f565b005b34801561053657600080fd5b506105286004803603606081101561054d57600080fd5b5080359060208101359060400135611002565b34801561056c57600080fd5b5061040961107f565b34801561058157600080fd5b50610409611085565b34801561059657600080fd5b5061040961108b565b3480156105ab57600080fd5b506105b4611091565b604080516001600160a01b039092168252519081900360200190f35b3480156105dc57600080fd5b506104096110a0565b3480156105f157600080fd5b506104096110a6565b34801561060657600080fd5b506105286004803603602081101561061d57600080fd5b50356001600160a01b03166110ac565b34801561063957600080fd5b506104de6004803603606081101561065057600080fd5b506001600160a01b03813581169160208101359091169060400135611126565b34801561067c57600080fd5b506105286111ad565b34801561069157600080fd5b50610409611214565b3480156106a657600080fd5b506105b461121a565b3480156106bb57600080fd5b50610409611229565b3480156106d057600080fd5b506106d961129f565b6040805160ff9092168252519081900360200190f35b3480156106fb57600080fd5b506105286004803603602081101561071257600080fd5b50356001600160a01b03166112a4565b34801561072e57600080fd5b506104de6004803603604081101561074557600080fd5b506001600160a01b038135169060200135611365565b34801561076757600080fd5b506105b46113b3565b34801561077c57600080fd5b506105b46113c2565b34801561079157600080fd5b506105286113d1565b3480156107a657600080fd5b506104de600480360360208110156107bd57600080fd5b50356001600160a01b0316611456565b3480156107d957600080fd5b50610528600480360360208110156107f057600080fd5b5035611474565b34801561080357600080fd5b506105286004803603602081101561081a57600080fd5b50356114d1565b34801561082d57600080fd5b506105286004803603602081101561084457600080fd5b50356001600160a01b031661152e565b34801561086057600080fd5b506105286004803603606081101561087757600080fd5b506001600160a01b038135811691602081013590911690604001356115a8565b3480156108a357600080fd5b506104de611640565b3480156108b857600080fd5b50610409611649565b3480156108cd57600080fd5b50610528600480360360208110156108e457600080fd5b50356001600160a01b031661168e565b34801561090057600080fd5b506104096004803603602081101561091757600080fd5b50356001600160a01b03166118d8565b34801561093357600080fd5b5061040961195b565b34801561094857600080fd5b506105286004803603602081101561095f57600080fd5b5035611961565b34801561097257600080fd5b506105286004803603602081101561098957600080fd5b50356119fe565b34801561099c57600080fd5b50610409600480360360208110156109b357600080fd5b50356001600160a01b0316611a7e565b3480156109cf57600080fd5b50610528611a99565b3480156109e457600080fd5b50610528600480360360208110156109fb57600080fd5b5035611b3b565b348015610a0e57600080fd5b506105b4611b9f565b348015610a2357600080fd5b5061052860048036036020811015610a3a57600080fd5b5035611bae565b348015610a4d57600080fd5b5061052860048036036020811015610a6457600080fd5b50356001600160a01b0316611c9d565b348015610a8057600080fd5b506105b4611fb9565b348015610a9557600080fd5b5061052860048036036020811015610aac57600080fd5b50356001600160a01b0316611fc8565b348015610ac857600080fd5b50610430612068565b348015610add57600080fd5b506104096120c9565b348015610af257600080fd5b5061052860048036036040811015610b0957600080fd5b506001600160a01b03813516906020013515156120cf565b348015610b2d57600080fd5b5061040961217e565b348015610b4257600080fd5b50610409612184565b348015610b5757600080fd5b506104de60048036036040811015610b6e57600080fd5b506001600160a01b0381351690602001356121c9565b348015610b9057600080fd5b5061040960048036036020811015610ba757600080fd5b50356001600160a01b0316612231565b348015610bc357600080fd5b506104de60048036036040811015610bda57600080fd5b506001600160a01b038135169060200135612282565b348015610bfc57600080fd5b50610c2360048036036020811015610c1357600080fd5b50356001600160a01b0316612296565b604080516001600160a01b0390991689526020890197909752878701959095526060870193909352608086019190915260a085015260c084015260e083015251908190036101000190f35b348015610c7a57600080fd5b506105b4612376565b348015610c8f57600080fd5b506104de60048036036020811015610ca657600080fd5b50356001600160a01b0316612385565b348015610cc257600080fd5b5061052860048036036040811015610cd957600080fd5b506001600160a01b038135169060200135151561239a565b348015610cfd57600080fd5b5061052860048036036040811015610d1457600080fd5b810190602081018135640100000000811115610d2f57600080fd5b820183602082011115610d4157600080fd5b80359060200191846020830284011164010000000083111715610d6357600080fd5b919350915035151561247b565b348015610d7c57600080fd5b5061040961252e565b348015610d9157600080fd5b506105b4612534565b348015610da657600080fd5b5061040960048036036040811015610dbd57600080fd5b506001600160a01b0381358116916020013516612543565b348015610de157600080fd5b5061052861256e565b348015610df657600080fd5b506104096125b4565b348015610e0b57600080fd5b5061052860048036036020811015610e2257600080fd5b50356125f9565b348015610e3557600080fd5b50610c2360048036036020811015610e4c57600080fd5b503561269e565b348015610e5f57600080fd5b5061052860048036036020811015610e7657600080fd5b50356001600160a01b0316612704565b348015610e9257600080fd5b506105b46127fd565b348015610ea757600080fd5b5061040961280c565b348015610ebc57600080fd5b50610409612812565b60115481565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610f575780601f10610f2c57610100808354040283529160200191610f57565b820191906000526020600020905b815481529060010190602001808311610f3a57829003601f168201915b5050505050905090565b6000610f75610f6e612879565b848461287d565b5060015b92915050565b610f87612879565b6005546001600160a01b03908116911614610fd7576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b600d839055600e829055600f819055610ffa81610ff48585612818565b90612818565b601055505050565b61100a612879565b6005546001600160a01b0390811691161461105a576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b60118390556012829055601381905561107781610ff48585612818565b601455505050565b60125481565b60145481565b60135481565b6006546001600160a01b031681565b60025490565b60105481565b6110b4612879565b6005546001600160a01b03908116911614611104576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6000611133848484612969565b6111a38461113f612879565b61119e85604051806060016040528060288152602001613b97602891396001600160a01b038a1660009081526001602052604081209061117d612879565b6001600160a01b031681526020810191909152604001600020549190612f45565b61287d565b5060019392505050565b6111b5612879565b6005546001600160a01b03908116911614611205576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b601c805460ff19166001179055565b600d5481565b6008546001600160a01b031681565b600854604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae916004808301926020929190829003018186803b15801561126e57600080fd5b505afa158015611282573d6000803e3d6000fd5b505050506040513d602081101561129857600080fd5b5051905090565b601290565b6112ac612879565b6005546001600160a01b039081169116146112fc576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b6008546040805163031e79db60e41b81526001600160a01b038481166004830152915191909216916331e79db091602480830192600092919082900301818387803b15801561134a57600080fd5b505af115801561135e573d6000803e3d6000fd5b5050505050565b6000610f75611372612879565b8461119e8560016000611383612879565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490612818565b6017546001600160a01b031681565b6007546001600160a01b031681565b6008546040805163bc4c4b3760e01b815233600482015260006024820181905291516001600160a01b039093169263bc4c4b3792604480840193602093929083900390910190829087803b15801561142857600080fd5b505af115801561143c573d6000803e3d6000fd5b505050506040513d602081101561145257600080fd5b5050565b6001600160a01b03166000908152601a602052604090205460ff1690565b61147c612879565b6005546001600160a01b039081169116146114cc576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b600b55565b6114d9612879565b6005546001600160a01b03908116911614611529576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b601655565b611536612879565b6005546001600160a01b03908116911614611586576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b601780546001600160a01b0319166001600160a01b0392909216919091179055565b600c546001600160a01b031633146115bf57600080fd5b826001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561161657600080fd5b505af115801561162a573d6000803e3d6000fd5b505050506040513d602081101561135e57600080fd5b601c5460ff1681565b600854604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde916004808301926020929190829003018186803b15801561126e57600080fd5b611696612879565b6005546001600160a01b039081169116146116e6576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b6006546001600160a01b03828116911614156117335760405162461bcd60e51b8152600401808060200182810382526023815260200180613b176023913960400191505060405180910390fd5b600680546001600160a01b0319166001600160a01b0383811691909117918290556040805163c45a015560e01b815290516000939092169163c45a015591600480820192602092909190829003018186803b15801561179157600080fd5b505afa1580156117a5573d6000803e3d6000fd5b505050506040513d60208110156117bb57600080fd5b5051600654604080516315ab88c960e31b815290516001600160a01b039384169363c9c6539693309391169163ad5c464891600480820192602092909190829003018186803b15801561180d57600080fd5b505afa158015611821573d6000803e3d6000fd5b505050506040513d602081101561183757600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301525160448083019260209291908290030181600087803b15801561188957600080fd5b505af115801561189d573d6000803e3d6000fd5b505050506040513d60208110156118b357600080fd5b5051600780546001600160a01b0319166001600160a01b039092169190911790555050565b600854604080516370a0823160e01b81526001600160a01b038481166004830152915160009392909216916370a0823191602480820192602092909190829003018186803b15801561192957600080fd5b505afa15801561193d573d6000803e3d6000fd5b505050506040513d602081101561195357600080fd5b505192915050565b600f5481565b611969612879565b6005546001600160a01b039081169116146119b9576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b60648111156119f95760405162461bcd60e51b81526004018080602001828103825260258152602001806139e76025913960400191505060405180910390fd5b601555565b600854604080516001624d3b8760e01b031981526004810184905290516001600160a01b039092169163ffb2c479916024808201926060929091908290030181600087803b158015611a4f57600080fd5b505af1158015611a63573d6000803e3d6000fd5b505050506040513d6060811015611a7957600080fd5b505050565b6001600160a01b031660009081526020819052604090205490565b611aa1612879565b6005546001600160a01b03908116911614611af1576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b600c546001600160a01b03163314611b5257600080fd5b600854604080516330d0929960e21b81526004810184905290516001600160a01b039092169163c3424a649160248082019260009290919082900301818387803b15801561134a57600080fd5b6009546001600160a01b031681565b611bb6612879565b6005546001600160a01b03908116911614611c06576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b62030d408110158015611c1c57506207a1208111155b611c575760405162461bcd60e51b8152600401808060200182810382526034815260200180613c046034913960400191505060405180910390fd5b601954811415611c985760405162461bcd60e51b815260040180806020018281038252602c815260200180613a8c602c913960400191505060405180910390fd5b601955565b611ca5612879565b6005546001600160a01b03908116911614611cf5576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b6008546001600160a01b0382811691161415611d425760405162461bcd60e51b815260040180806020018281038252602d815260200180613cab602d913960400191505060405180910390fd5b6000819050306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015611d8a57600080fd5b505afa158015611d9e573d6000803e3d6000fd5b505050506040513d6020811015611db457600080fd5b50516001600160a01b031614611dfb5760405162461bcd60e51b815260040180806020018281038252603c815260200180613b3a603c913960400191505060405180910390fd5b806001600160a01b03166331e79db0826040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b158015611e4a57600080fd5b505af1158015611e5e573d6000803e3d6000fd5b50506040805163031e79db60e41b815230600482015290516001600160a01b03851693506331e79db09250602480830192600092919082900301818387803b158015611ea957600080fd5b505af1158015611ebd573d6000803e3d6000fd5b50505050806001600160a01b03166331e79db0611ed8611fb9565b6040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b158015611f1757600080fd5b505af1158015611f2b573d6000803e3d6000fd5b50506006546040805163031e79db60e41b81526001600160a01b039283166004820152905191851693506331e79db0925060248082019260009290919082900301818387803b158015611f7d57600080fd5b505af1158015611f91573d6000803e3d6000fd5b5050600880546001600160a01b0319166001600160a01b039490941693909317909255505050565b6005546001600160a01b031690565b600c546001600160a01b03163314611fdf57600080fd5b600854604080516304ad850f60e51b81526001600160a01b038481166004830152915191909216916395b0a1e091602480830192600092919082900301818387803b15801561202d57600080fd5b505af1158015612041573d6000803e3d6000fd5b5050600a80546001600160a01b0319166001600160a01b0394909416939093179092555050565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610f575780601f10610f2c57610100808354040283529160200191610f57565b600e5481565b6120d7612879565b6005546001600160a01b03908116911614612127576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b6007546001600160a01b03838116911614156121745760405162461bcd60e51b8152600401808060200182810382526039815260200180613ab86039913960400191505060405180910390fd5b6114528282612fdc565b60195481565b60085460408051631bc9e27b60e21b815290516000926001600160a01b031691636f2789ec916004808301926020929190829003018186803b15801561126e57600080fd5b6000610f756121d6612879565b8461119e85604051806060016040528060258152602001613c866025913960016000612200612879565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190612f45565b600854604080516302a2e74960e61b81526001600160a01b0384811660048301529151600093929092169163a8b9d24091602480820192602092909190829003018186803b15801561192957600080fd5b6000610f7561228f612879565b8484612969565b600080600080600080600080600860009054906101000a90046001600160a01b03166001600160a01b031663fbcbc0f18a6040518263ffffffff1660e01b815260040180826001600160a01b031681526020019150506101006040518083038186803b15801561230557600080fd5b505afa158015612319573d6000803e3d6000fd5b505050506040513d61010081101561233057600080fd5b508051602082015160408301516060840151608085015160a086015160c087015160e090970151959e50939c50919a509850965094509092509050919395975091939597565b6018546001600160a01b031681565b601b6020526000908152604090205460ff1681565b6123a2612879565b6005546001600160a01b039081169116146123f2576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b6001600160a01b0382166000908152601a602052604090205460ff16151581151514156124505760405162461bcd60e51b815260040180806020018281038252602a815260200180613c5c602a913960400191505060405180910390fd5b6001600160a01b03919091166000908152601a60205260409020805460ff1916911515919091179055565b612483612879565b6005546001600160a01b039081169116146124d3576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b60005b828110156125285781601a60008686858181106124ef57fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff19169115159190911790556001016124d6565b50505050565b600b5481565b600c546001600160a01b031681565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600c546001600160a01b0316331461258557600080fd5b60405133904780156108fc02916000818181858888f193505050501580156125b1573d6000803e3d6000fd5b50565b6008546040805163039e107b60e61b815290516000926001600160a01b03169163e7841ec0916004808301926020929190829003018186803b15801561126e57600080fd5b612601612879565b6005546001600160a01b03908116911614612651576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b6008546040805163e98030c760e01b81526004810184905290516001600160a01b039092169163e98030c79160248082019260009290919082900301818387803b15801561134a57600080fd5b600080600080600080600080600860009054906101000a90046001600160a01b03166001600160a01b0316635183d6fd8a6040518263ffffffff1660e01b8152600401808281526020019150506101006040518083038186803b15801561230557600080fd5b61270c612879565b6005546001600160a01b0390811691161461275c576040805162461bcd60e51b81526020600482018190526024820152600080516020613bbf833981519152604482015290519081900360640190fd5b6001600160a01b0381166127a15760405162461bcd60e51b8152600401808060200182810382526026815260200180613a0c6026913960400191505060405180910390fd5b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031681565b60165481565b60155481565b600082820183811015612872576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b0383166128c25760405162461bcd60e51b8152600401808060200182810382526024815260200180613c386024913960400191505060405180910390fd5b6001600160a01b0382166129075760405162461bcd60e51b8152600401808060200182810382526022815260200180613a326022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166129ae5760405162461bcd60e51b8152600401808060200182810382526025815260200180613bdf6025913960400191505060405180910390fd5b6001600160a01b0382166129f35760405162461bcd60e51b81526004018080602001828103825260238152602001806139c46023913960400191505060405180910390fd5b80612a0957612a04838360006130d1565b611a79565b6000612a1430611a7e565b90506000612a4e612710612a48600b54612a42600760009054906101000a90046001600160a01b0316611a7e565b9061322c565b90613285565b601454909150818310801591908290612a715750600754600160a01b900460ff16155b8015612a9657506001600160a01b0387166000908152601b602052604090205460ff16155b8015612abb5750612aa5611fb9565b6001600160a01b0316876001600160a01b031614155b8015612ae05750612aca611fb9565b6001600160a01b0316866001600160a01b031614155b15612b88576007805460ff60a01b1916600160a01b17905560038302841115612b0a578260030293505b6000612b2582612a486013548861322c90919063ffffffff16565b9050612b30816132c7565b6000612b4b83612a486012548961322c90919063ffffffff16565b9050612b5681613370565b6000612b6c82612b6689866133b9565b906133b9565b9050612b77816133fb565b50506007805460ff60a01b19169055505b6007546001600160a01b0388166000908152601a602052604090205460ff600160a01b909204821615911680612bd657506001600160a01b0387166000908152601a602052604090205460ff165b15612bdf575060005b8015612da257601c5460ff16612c3c576040805162461bcd60e51b815260206004820152601760248201527f54726164696e67206973206e6f74206f70656e20796574000000000000000000604482015290519081900360640190fd5b6001600160a01b0387166000908152601b602052604081205460ff1615612c7957612710612c6a888561322c565b81612c7157fe5b049050612d83565b6001600160a01b0389166000908152601b602052604090205460ff1615612d2257612710612cb26010548961322c90919063ffffffff16565b81612cb957fe5b04905060165487612cc98a611a7e565b011115612d1d576040805162461bcd60e51b815260206004820152601e60248201527f416d6f756e742065786365656473206d61782077616c6c65742073697a650000604482015290519081900360640190fd5b612d83565b60165487612d2f8a611a7e565b011115612d83576040805162461bcd60e51b815260206004820152601e60248201527f416d6f756e742065786365656473206d61782077616c6c65742073697a650000604482015290519081900360640190fd5b8015612da057612d9387826133b9565b9650612da08930836130d1565b505b612dad8888886130d1565b6008546001600160a01b031663e30443bc89612dc881611a7e565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015612e0e57600080fd5b505af1925050508015612e1f575060015b506008546001600160a01b031663e30443bc88612e3b81611a7e565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015612e8157600080fd5b505af1925050508015612e92575060015b50600754600160a01b900460ff16612f3b57601954600854604080516001624d3b8760e01b031981526004810184905290516001600160a01b039092169163ffb2c479916024808201926060929091908290030181600087803b158015612ef857600080fd5b505af1925050508015612f2c57506040513d6060811015612f1857600080fd5b508051602082015160409092015190919060015b612f3557612f39565b5050505b505b5050505050505050565b60008184841115612fd45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612f99578181015183820152602001612f81565b50505050905090810190601f168015612fc65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0382166000908152601b602052604090205460ff161515811515141561303a5760405162461bcd60e51b8152600401808060200182810382526038815260200180613a546038913960400191505060405180910390fd5b6001600160a01b0382166000908152601b60205260409020805460ff19168215801591909117909155611452576008546040805163031e79db60e41b81526001600160a01b038581166004830152915191909216916331e79db091602480830192600092919082900301818387803b1580156130b557600080fd5b505af11580156130c9573d6000803e3d6000fd5b505050505050565b6001600160a01b0383166131165760405162461bcd60e51b8152600401808060200182810382526025815260200180613bdf6025913960400191505060405180910390fd5b6001600160a01b03821661315b5760405162461bcd60e51b81526004018080602001828103825260238152602001806139c46023913960400191505060405180910390fd5b613166838383611a79565b6131a381604051806060016040528060268152602001613af1602691396001600160a01b0386166000908152602081905260409020549190612f45565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546131d29082612818565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008261323b57506000610f79565b8282028284828161324857fe5b04146128725760405162461bcd60e51b8152600401808060200182810382526021815260200180613b766021913960400191505060405180910390fd5b600061287283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613581565b6132d0816135e6565b60006132ec6064612a486015544761322c90919063ffffffff16565b905060006132fa47836133b9565b6017546040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015613335573d6000803e3d6000fd5b506018546040516001600160a01b039091169083156108fc029084906000818181858888f19350505050158015612528573d6000803e3d6000fd5b8061337a576125b1565b6000613387826002613285565b9050600061339583836133b9565b9050476133a1836135e6565b60006133ad47836133b9565b905061135e8382613778565b600061287283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612f45565b80613405576125b1565b61340e81613830565b600a54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561345957600080fd5b505afa15801561346d573d6000803e3d6000fd5b505050506040513d602081101561348357600080fd5b5051600a546008546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018590529051939450600093919092169163a9059cbb91604480830192602092919082900301818787803b1580156134e357600080fd5b505af11580156134f7573d6000803e3d6000fd5b505050506040513d602081101561350d57600080fd5b505190508015611a795760085460408051633243c79160e01b81526004810185905290516001600160a01b0390921691633243c7919160248082019260009290919082900301818387803b15801561356457600080fd5b505af1158015613578573d6000803e3d6000fd5b50505050505050565b600081836135d05760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612f99578181015183820152602001612f81565b5060008385816135dc57fe5b0495945050505050565b6040805160028082526060808301845292602083019080368337019050509050308160008151811061361457fe5b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561366857600080fd5b505afa15801561367c573d6000803e3d6000fd5b505050506040513d602081101561369257600080fd5b50518151829060019081106136a357fe5b6001600160a01b0392831660209182029290920101526006546136c9913091168461287d565b60065460405163791ac94760e01b8152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a487015287516001600160a01b039097169663791ac947968a968a9594939092909160c40190602080880191028083838b5b8381101561374f578181015183820152602001613737565b505050509050019650505050505050600060405180830381600087803b1580156130b557600080fd5b6006546137909030906001600160a01b03168461287d565b600654600c546040805163f305d71960e01b81523060048201526024810186905260006044820181905260648201526001600160a01b0392831660848201524260a48201529051919092169163f305d71991849160c48082019260609290919082900301818588803b15801561380557600080fd5b505af1158015613819573d6000803e3d6000fd5b50505050506040513d606081101561252857600080fd5b60408051600380825260808201909252606091602082018380368337019050509050308160008151811061386057fe5b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b1580156138b457600080fd5b505afa1580156138c8573d6000803e3d6000fd5b505050506040513d60208110156138de57600080fd5b50518151829060019081106138ef57fe5b6001600160a01b039283166020918202929092010152600a5482519116908290600290811061391a57fe5b6001600160a01b039283166020918202929092010152600654613940913091168461287d565b600654604051635c11d79560e01b8152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a487015287516001600160a01b0390971696635c11d795968a968a9594939092909160c40190602087810191028083838b831561374f57818101518382015260200161373756fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734465762070657263656e74206d757374206265206265747765656e203020616e64203130304f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f20616464726573734175746f6d61746564206d61726b6574206d616b6572207061697220697320616c72656164792073657420746f20746861742076616c756543616e6e6f742075706461746520676173466f7250726f63657373696e6720746f2073616d652076616c756554686520706169722063616e6e6f742062652072656d6f7665642066726f6d206175746f6d617465644d61726b65744d616b6572506169727345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636554686520726f7574657220616c72656164792068617320746861742061646472657373546865206e6577206469766964656e6420747261636b6572206d757374206265206f776e65642062792074686520746f6b656e20636f6e7472616374536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a207472616e736665722066726f6d20746865207a65726f2061646472657373676173466f7250726f63657373696e67206d757374206265206265747765656e203230302c30303020616e64203530302c30303045524332303a20617070726f76652066726f6d20746865207a65726f20616464726573734163636f756e7420697320616c7265616479207468652076616c7565206f6620276578636c756465642745524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f546865206469766964656e6420747261636b657220616c72656164792068617320746861742061646472657373a2646970667358221220d9a894e0c92a9a8e53eedebd8d349027902827203ac6098803ba33615889bad464736f6c634300060c0033

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.