ETH Price: $3,374.01 (-8.04%)

Token

Ouroboros (ORO)
 

Overview

Max Total Supply

995,322,424.170551959360233053 ORO

Holders

145

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
136,443.765610369102511909 ORO

Value
$0.00
0x9b113976B6E43932993Cf9fb70e5Fd70c63D5A43
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:
Ouroboros

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : Ouroboros.sol
/*
Website: https://oroerc.io
Twitter: https://twitter.com/OROerc
Telegram: https://t.me/ouroborosportal
Medium: https://medium.com/@oroerc

                 ----=====--==                 
            -==*%%@@@@@@@@@@@%%#***            
         ==#%@@@#%@@%+::=#@@@@@@@@%###         
       =*%@@@#-+@@%::=+#@@@*-:-+*%@@@%%%       
     +*%@@@@-=+%%--**++-:::::::*@@@@@@@%%      
   ++%@@@@@:=+:::+*=--=++++++=---==++#%@@%%    
   *%@@@@@==+-::#=+-***#**#%#####*+=+%@@@@%%   
 **%@@@@@*::+*#*+#+++++#@%*+=-==+*###*+#@@@%%  
 *%@@@@@+::=****#*=*+----=%@#**+==++###*#@@@%% 
*#@@@@@@%-+*++%@%-+++++++==*@#**++++**#%#%@@@%%
*%@@@@@+-*+%@@@@@=***%%@@@@@%%++-+=-=*##%#@@@%%
#%@@@%:+*=%@@@#@++**#@@@@@@@@%+#=+++#+=##@@@@@%
*@@#@@#-+*#@@*%*+#@@@@@@@@@@@#@#====*%%*#%@@@@%
#@@=%@@@@@@@*%*+@@@@@@@@@@@@@@%-====*##%#%@@@@@
*%@*-@@@@@@*+=*%@@@@@@@@@@@@%=--====###%#%@@@@@
*%@%:-%@@@@@@@@@@@@@@@@@@@#::=++++**=##%%@@@@@%
 #@@#::*@@@@@@@@@@@@@@@%%%%****+=*#%+*#@@@@@@% 
 *#@@@::-+%@@@@@%@@%%#*=:::----+*##%**@@@@@@%  
  *#@@@=::-=++#%@#+-::::::=#=:****#%*@@@@@@%   
   *#@@@@+::-===++*#%%%%%##%*-***%%#@@@@@@%%   
     *#@@@@@*=-==+*#***#####-+*%@@@@@@@@%%     
      **%@@@@@%%%%%%%%%%%#+*%@@@@@@@@@%%       
         +#@@@@@@@@@@@@%@@@@@@@@@@@@##         
           =++#@@@@@@@@@@@@@@@@%##*#           
               =--=**#####*++=+          
                                                     
*/

pragma solidity 0.8.13;


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 IUniswapV2Factory {
    function createPair(address tokenA, address tokenB) external returns (address pair);
}

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 {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

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

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

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

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);
    }

    function _createInitialSupply(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");
        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);
    }

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

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, address _rewardToken) 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, address _rewardToken) 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, address _rewardToken) external view returns(uint256);
}

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, address _rewardToken) external view returns(uint256);

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

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
    
    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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

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


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

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

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

  mapping(address => uint256) internal magnifiedDividendPerShare;
  address[] public rewardTokens;
  address public nextRewardToken;
  uint256 public rewardTokenCounter;
  
  IUniswapV2Router02 public immutable uniswapV2Router;
  
  
  // 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 => mapping(address => int256)) internal magnifiedDividendCorrections;
  mapping(address => mapping(address => uint256)) internal withdrawnDividends;
  
  mapping (address => uint256) public holderBalance;
  uint256 public totalBalance;

  mapping(address => uint256) public totalDividendsDistributed;
  
  constructor(){
      IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); // router 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
      uniswapV2Router = _uniswapV2Router; 
  }

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

  function addRewardToken(address rewardTokenToAdd) external onlyOwner {
    require(rewardTokens.length < 1, "Only one reward token.");
    rewardTokens.push(rewardTokenToAdd);
    nextRewardToken = rewardTokens[0];
  }


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

      totalDividendsDistributed[nextRewardToken] = totalDividendsDistributed[nextRewardToken].add(newBalance);
    }
    rewardTokenCounter = rewardTokenCounter == rewardTokens.length - 1 ? 0 : rewardTokenCounter + 1;
    nextRewardToken = rewardTokens[rewardTokenCounter];
  }

  
  // useful for buybacks or to reclaim any BNB on the contract in a way that helps holders.
    function buyTokens(uint256 bnbAmountInWei, address rewardToken) internal {
        // generate the uniswap pair path of weth -> eth
        address[] memory path = new address[](2);
        path[0] = uniswapV2Router.WETH();
        path[1] = rewardToken;

        // make the swap
        uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmountInWei}(
            0, // accept any amount of Ethereum
            path,
            address(this),
            block.timestamp
        );
    }
  
  /// @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(address _rewardToken) external virtual override {
    _withdrawDividendOfUser(payable(msg.sender), _rewardToken);
  }

  /// @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, address _rewardToken) internal returns (uint256) {
    uint256 _withdrawableDividend = withdrawableDividendOf(user, _rewardToken);
    if (_withdrawableDividend > 0) {
      withdrawnDividends[user][_rewardToken] = withdrawnDividends[user][_rewardToken].add(_withdrawableDividend);
      emit DividendWithdrawn(user, _withdrawableDividend);
      IERC20(_rewardToken).transfer(user, _withdrawableDividend);
      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, address _rewardToken) external view override returns(uint256) {
    return withdrawableDividendOf(_owner, _rewardToken);
  }

  /// @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, address _rewardToken) public view override returns(uint256) {
    return accumulativeDividendOf(_owner,_rewardToken).sub(withdrawnDividends[_owner][_rewardToken]);
  }

  /// @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, address _rewardToken) external view override returns(uint256) {
    return withdrawnDividends[_owner][_rewardToken];
  }


  /// @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, address _rewardToken) public view override returns(uint256) {
    return magnifiedDividendPerShare[_rewardToken].mul(holderBalance[_owner]).toInt256Safe()
      .add(magnifiedDividendCorrections[_rewardToken][_owner]).toUint256Safe() / magnitude;
  }

  /// @dev Internal function that increases 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 _increase(address account, uint256 value) internal {
    for (uint256 i; i < rewardTokens.length; i++){
        magnifiedDividendCorrections[rewardTokens[i]][account] = magnifiedDividendCorrections[rewardTokens[i]][account]
          .sub((magnifiedDividendPerShare[rewardTokens[i]].mul(value)).toInt256Safe());
    }
  }

  /// @dev Internal function that reduces 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 _reduce(address account, uint256 value) internal {
      for (uint256 i; i < rewardTokens.length; i++){
        magnifiedDividendCorrections[rewardTokens[i]][account] = magnifiedDividendCorrections[rewardTokens[i]][account]
          .add( (magnifiedDividendPerShare[rewardTokens[i]].mul(value)).toInt256Safe() );
      }
  }

  function _setBalance(address account, uint256 newBalance) internal {
    uint256 currentBalance = holderBalance[account];
    holderBalance[account] = newBalance;
    if(newBalance > currentBalance) {
      uint256 increaseAmount = newBalance.sub(currentBalance);
      _increase(account, increaseAmount);
      totalBalance += increaseAmount;
    } else if(newBalance < currentBalance) {
      uint256 reduceAmount = currentBalance.sub(newBalance);
      _reduce(account, reduceAmount);
      totalBalance -= reduceAmount;
    }
  }
}

contract DividendTracker is DividendPayingToken {
    using SafeMath for uint256;
    using SafeMathInt for int256;

    struct Map {
        address[] keys;
        mapping(address => uint) values;
        mapping(address => uint) indexOf;
        mapping(address => bool) inserted;
    }

    function get(address key) private view returns (uint) {
        return tokenHoldersMap.values[key];
    }

    function getIndexOfKey(address key) private view returns (int) {
        if(!tokenHoldersMap.inserted[key]) {
            return -1;
        }
        return int(tokenHoldersMap.indexOf[key]);
    }

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



    function size() private view returns (uint) {
        return tokenHoldersMap.keys.length;
    }

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

    function remove(address key) private {
        if (!tokenHoldersMap.inserted[key]) {
            return;
        }

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

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

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

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

    Map private tokenHoldersMap;
    uint256 public lastProcessedIndex;

    mapping (address => bool) public excludedFromDividends;

    mapping (address => uint256) public lastClaimTimes;

    uint256 public claimWait;
    uint256 public immutable minimumTokenBalanceForDividends;

    event ExcludeFromDividends(address indexed account);
    event IncludeInDividends(address indexed account);
    event ClaimWaitUpdated(uint256 indexed newValue, uint256 indexed oldValue);

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

    constructor(){
      
    	claimWait = 1200;
        minimumTokenBalanceForDividends = 1000 * (10**18);

       
        
    }

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

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

    	emit ExcludeFromDividends(account);
    }
    
    function includeInDividends(address account) external onlyOwner {
    	require(excludedFromDividends[account]);
    	excludedFromDividends[account] = false;

    	emit IncludeInDividends(account);
    }

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

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

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

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

        index = 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, _rewardToken);
        totalDividends = accumulativeDividendOf(account, _rewardToken);

        lastClaimTime = lastClaimTimes[account];

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

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

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

        address account = getKeyAtIndex(index);

        return getAccount(account, _rewardToken);
    }

    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);
    		set(account, newBalance);
    	}
    	else {
            _setBalance(account, 0);
    		remove(account);
    	}

    	processAccount(account, true);
    }
    
    function process(uint256 gas) external 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) {
        uint256 amount;
        bool paid;
        for (uint256 i; i < rewardTokens.length; i++){
            amount = _withdrawDividendOfUser(account, rewardTokens[i]);
            if(amount > 0) {
        		lastClaimTimes[account] = block.timestamp;
                emit Claim(account, amount, automatic);
                paid = true;
    	    }
        }
        return paid;
    }
}

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

    IUniswapV2Router02 public immutable uniswapV2Router;
    address public uniswapV2Pair;

    bool private swapping;

    DividendTracker public dividendTracker;

    address public operationsWallet;
    
    uint256 public swapTokensAtAmount;
    uint256 public maxTxn;
    
    uint256 public liquidityActiveBlock = 0; // 0 means liquidity is not active yet
    uint256 public tradingActiveBlock = 0; // 0 means trading is not active
    uint256 public earlyBuyPenaltyEnd; // determines when snipers/bots can sell without extra penalty
    
    bool public limitsInEffect = true;
    bool public tradingActive = false;
    bool public swapEnabled = false;
    
     // Anti-bot and anti-whale mappings and variables
    mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch
    bool public transferDelayEnabled = true;
    
    uint256 public constant feeDivisor = 1000;

    uint256 public initialBurnFee = 0;
    uint256 public initialRewardsFee = 0;
    uint256 public initialOperationsFee = 200;
    uint256 public initialTotalFee = 200;

    uint256 public reduceTaxAt = 29;
    uint256 public preventSwapBefore = 23;
    uint256 public buyCount = 0;

    uint256 public ethDistributionThreshold;

    uint256 public totalSellFees;
    uint256 public burnSellFee;
    uint256 public rewardsSellFee;
    uint256 public operationsSellFee;
   
    
    uint256 public totalBuyFees;
    uint256 public burnBuyFee;
    uint256 public rewardsBuyFee;
    uint256 public operationsBuyFee;
    
    
    uint256 public tokensForRewards;
    uint256 public tokensForBurn;
    uint256 public tokensForOperations;
    

    uint256 public ethForRewards = 0;
    
    uint256 public gasForProcessing = 0;

    /******************/

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

    mapping (address => bool) public _isExcludedMaxTransactionAmount;

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

    event ExcludeFromFees(address indexed account, bool isExcluded);
    event ExcludedMaxTransactionAmount(address indexed account, bool isExcluded);

    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);

    event GasForProcessingUpdated(uint256 indexed newValue, uint256 indexed oldValue);
    
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiqudity
    );

    event SendDividends(
    	uint256 tokensSwapped,
    	uint256 amount
    );

    event ProcessedDividendTracker(
    	uint256 iterations,
    	uint256 claims,
        uint256 lastProcessedIndex,
    	bool indexed automatic,
    	uint256 gas,
    	address indexed processor
    );

    constructor(address _dividendTrackerAddress) ERC20("Ouroboros", "ORO") {

      uint256 totalSupply = 1 * 1e9 * 1e18;
        
      swapTokensAtAmount = totalSupply * 2 / 1000; // 0.2% swap tokens amount
      maxTxn = totalSupply * 15 / 1000; // 1.5% Max wallet


      ethDistributionThreshold = 10 ** 14;

      rewardsBuyFee = 20;
      burnBuyFee = 5;
      operationsBuyFee = 10;
      totalBuyFees = rewardsBuyFee + operationsBuyFee + burnBuyFee;
        
      rewardsSellFee = 20;
      burnSellFee = 5;
      operationsSellFee = 10;
      totalSellFees = rewardsSellFee + operationsSellFee + burnSellFee;

    	dividendTracker = DividendTracker(payable(_dividendTrackerAddress));
    	
    	operationsWallet = address(0xDf35F5Eb3c5812cFEC71910E9768E013EA29eE95); // set as operations wallet

    	IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);//0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
  
      uniswapV2Router = _uniswapV2Router;
        

        


        
        // exclude from paying fees or having max transaction amount
        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);
        excludeFromFees(address(0), true);
        excludeFromFees(address(operationsWallet), true);
        excludeFromFees(address(dividendTracker), true);
        excludeFromMaxTransaction(owner(), true);
        excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(dividendTracker), true);
        excludeFromMaxTransaction(address(_uniswapV2Router), true);
        excludeFromMaxTransaction(address(operationsWallet), true);
        excludeFromMaxTransaction(address(0xdead), true);
        excludeFromMaxTransaction(address(0), true);

        _createInitialSupply(address(owner()), totalSupply);
    }

    receive() external payable {

  	}

    function initializeDividendTracker() external onlyOwner {
        // exclude from receiving dividends
        dividendTracker.excludeFromDividends(address(dividendTracker));
        dividendTracker.excludeFromDividends(address(this));
        dividendTracker.excludeFromDividends(owner());
        dividendTracker.excludeFromDividends(address(uniswapV2Router));
        dividendTracker.excludeFromDividends(address(0xdead));
        dividendTracker.excludeFromDividends(address(0));
        dividendTracker.excludeFromDividends(address(operationsWallet));

        dividendTracker.addRewardToken(address(this));
    }


    // excludes wallets and contracts from dividends (such as CEX hotwallets, etc.)
    function excludeFromDividends(address account) external onlyOwner {
        dividendTracker.excludeFromDividends(account);
    }

    // removes exclusion on wallets and contracts from dividends (such as CEX hotwallets, etc.)
    function includeInDividends(address account) external onlyOwner {
        dividendTracker.includeInDividends(account);
    }

    function openTrading() external onlyOwner{
      require(!tradingActive, "Trading already active.");
      _approve(address(this), address(uniswapV2Router), balanceOf(address(this)));
      // Create a uniswap pair for this new token
      uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory())
        .createPair(address(this), uniswapV2Router.WETH());   
      _setAutomatedMarketMakerPair(uniswapV2Pair, true);
      uniswapV2Router.addLiquidityETH{value: address(this).balance}(
        address(this),
        balanceOf(address(this)),
        0,
        0,
        owner(),
        block.timestamp
      );
      IERC20(uniswapV2Pair).approve(address(uniswapV2Router), type(uint).max);
      tradingActive = true;
      swapEnabled = true;
      tradingActiveBlock = block.number;
    }
    

    function setEthDistributionThreshold(uint256 newThreshold) external onlyOwner {
      require( newThreshold > (10 ** 15) && newThreshold <= (10 ** 18)); // ensures new ethDistributionThreshold is lower than 1ETH and higher than .001;
      ethDistributionThreshold = newThreshold;
    }


    function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
        emit ExcludedMaxTransactionAmount(updAds, isEx);
    }

    function excludeFromFees(address account, bool excluded) public onlyOwner {
        _isExcludedFromFees[account] = excluded;

        emit ExcludeFromFees(account, excluded);
    }

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

        _setAutomatedMarketMakerPair(pair, value);
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        automatedMarketMakerPairs[pair] = value;

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

        emit SetAutomatedMarketMakerPair(pair, value);
    }

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

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

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

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

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

    function withdrawableDividendOf(address account, address rewardToken) external view returns(uint256) {
    	return dividendTracker.withdrawableDividendOf(account, rewardToken);
  	}

	function dividendTokenBalanceOf(address account) external view returns (uint256) {
		return dividendTracker.holderBalance(account);
	}

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

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

	function processDividendTracker(uint256 gas) external {
		(uint256 iterations, uint256 claims, uint256 lastProcessedIndex) = dividendTracker.process(gas);
		emit ProcessedDividendTracker(iterations, claims, lastProcessedIndex, false, gas, tx.origin);
    }

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

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

    

    function getNumberOfDividendTokenHolders() external view returns(uint256) {
        return dividendTracker.getNumberOfTokenHolders();
    }
    
    function getNumberOfDividends() external view returns(uint256) {
        return dividendTracker.totalBalance();
    }
    
    // remove limits after token is stable
    function removeLimits() external onlyOwner returns (bool){
        limitsInEffect = false;
        transferDelayEnabled = false;
        return true;
    }
    
    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;
        }
        
        if(!tradingActive){
            require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active yet.");
        }
        
        if(limitsInEffect){
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0xdead) &&
                !swapping
            ){

                // at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.  
                if (transferDelayEnabled){
                    if (to != address(uniswapV2Router) && to != address(uniswapV2Pair)){
                        require(_holderLastTransferTimestamp[tx.origin] < block.number, "_transfer:: Transfer Delay enabled.  Only one purchase per block allowed.");
                        _holderLastTransferTimestamp[tx.origin] = block.number;
                    }
                }
                
                //when buy
                if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
                    require(amount + balanceOf(to) <= maxTxn, "Unable to exceed Max Wallet");
                } 
                //when sell
                else if(!_isExcludedMaxTransactionAmount[to]) {
                    require(amount + balanceOf(to) <= maxTxn, "Unable to exceed Max Wallet");
                }
            }
        }

		uint256 contractTokenBalance = balanceOf(address(this));
        
        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

        if( 
            canSwap &&
            swapEnabled &&
            buyCount >= preventSwapBefore &&
            !swapping &&
            !automatedMarketMakerPairs[from] &&
            !_isExcludedFromFees[from] &&
            !_isExcludedFromFees[to]
        ) {
            swapping = true;
            swapBack();
            swapping = false;
        }

        bool takeFee = !swapping;

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

        if(from == address(this) && to == uniswapV2Pair && buyCount == 0){
          takeFee = true;
        }
        
        uint256 fees = 0;
        
        // no taxes on transfers (non buys/sells)
        if(takeFee && buyCount >= reduceTaxAt){
            // on sell
            if (automatedMarketMakerPairs[to] && totalSellFees > 0){
                fees = amount.mul(totalSellFees).div(feeDivisor);
                tokensForRewards += fees * rewardsSellFee / totalSellFees;
                tokensForOperations += fees * operationsSellFee / totalSellFees;
                tokensForBurn += fees * burnSellFee / totalSellFees;
            }
            
            // on buy
            else if(automatedMarketMakerPairs[from] && totalBuyFees > 0) {
        	    fees = amount.mul(totalBuyFees).div(feeDivisor);
        	    tokensForRewards += fees * rewardsBuyFee / totalBuyFees;
                tokensForOperations += fees * operationsBuyFee / totalBuyFees;
                tokensForBurn += fees * burnBuyFee / totalBuyFees;
            }

            if(fees > 0){    
                super._transfer(from, address(this), fees);
            }
        	
        	amount -= fees;
        } else if(takeFee && buyCount < reduceTaxAt){
            // on sell
            if (automatedMarketMakerPairs[to] && initialTotalFee > 0){
                fees = amount.mul(initialTotalFee).div(feeDivisor);
                tokensForRewards += fees * initialRewardsFee / initialTotalFee;
                tokensForOperations += fees * initialOperationsFee / initialTotalFee;
                tokensForBurn += fees * initialBurnFee / initialTotalFee;
            }
            
            // on buy
            else if(automatedMarketMakerPairs[from] && initialTotalFee > 0) {
        	      fees = amount.mul(initialTotalFee).div(feeDivisor);
                tokensForRewards += fees * initialRewardsFee / initialTotalFee;
                tokensForOperations += fees * initialOperationsFee / initialTotalFee;
                tokensForBurn += fees * initialBurnFee / initialTotalFee;
                buyCount++;
            }



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

        super._transfer(from, to, amount);

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

        if(!swapping && gasForProcessing > 0) {
	    	uint256 gas = gasForProcessing;

	    	try dividendTracker.process(gas) returns (uint256 iterations, uint256 claims, uint256 lastProcessedIndex) {
	    		emit ProcessedDividendTracker(iterations, claims, lastProcessedIndex, true, gas, tx.origin);
	    	}
	    	catch {}
        }
    }
    
    function swapTokensForEth(uint256 tokenAmount) private {

        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

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

        // make the swap
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
        
    }
    
    
    
    function swapBack() private {

        if(tokensForBurn > 0){
          super._burn(address(this), tokensForBurn);
          tokensForBurn = 0;
        }
        bool success;

        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokensToSwap = tokensForOperations + tokensForRewards;
        
        

        if(contractBalance == 0 || totalTokensToSwap == 0) {return;}
        
        if(contractBalance > swapTokensAtAmount * 2){
          contractBalance = swapTokensAtAmount * 2;
        }

        
        uint256 amountForRewards = tokensForRewards.mul(contractBalance).div(totalTokensToSwap);
        uint256 amountForOperations = tokensForOperations.mul(contractBalance).div(totalTokensToSwap);
        uint256 initialETHBalance = address(this).balance;

        swapTokensForEth(contractBalance); 
      
        uint256 ethBalance = address(this).balance.sub(initialETHBalance);
        uint256 ethForOperations = ethBalance.mul(tokensForOperations).div(totalTokensToSwap);
        ethForRewards += ethBalance.mul(tokensForRewards).div(totalTokensToSwap);

        tokensForOperations -= amountForOperations;
        tokensForRewards -= amountForRewards;
        
        if(ethForRewards >= ethDistributionThreshold){
          (success,) = address(dividendTracker).call{value: ethForRewards}("");
          ethForRewards = 0;
        }
        

        

        (success,) = address(operationsWallet).call{value: ethForOperations}("");
    }

    function withdrawStuckEth() external onlyOwner {
        (bool success,) = address(msg.sender).call{value: address(this).balance}("");
        ethForRewards = 0;
        require(success, "failed to withdraw");
    }

}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_dividendTrackerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludedMaxTransactionAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"oldValue","type":"uint256"}],"name":"GasForProcessingUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"iterations","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claims","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastProcessedIndex","type":"uint256"},{"indexed":true,"internalType":"bool","name":"automatic","type":"bool"},{"indexed":false,"internalType":"uint256","name":"gas","type":"uint256"},{"indexed":true,"internalType":"address","name":"processor","type":"address"}],"name":"ProcessedDividendTracker","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SendDividends","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiqudity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isExcludedMaxTransactionAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"burnBuyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnSellFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"dividendTokenBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dividendTracker","outputs":[{"internalType":"contract DividendTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"earlyBuyPenaltyEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethDistributionThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethForRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"updAds","type":"address"},{"internalType":"bool","name":"isEx","type":"bool"}],"name":"excludeFromMaxTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeDivisor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gasForProcessing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"rewardToken","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"},{"internalType":"address","name":"rewardToken","type":"address"}],"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":"getNumberOfDividends","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"rewardToken","type":"address"}],"name":"getTotalDividendsDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialBurnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialOperationsFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialRewardsFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialTotalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initializeDividendTracker","outputs":[],"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":"limitsInEffect","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityActiveBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTxn","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":"openTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"operationsBuyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operationsSellFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operationsWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preventSwapBefore","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gas","type":"uint256"}],"name":"processDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reduceTaxAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardsBuyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsSellFee","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":"newThreshold","type":"uint256"}],"name":"setEthDistributionThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForBurn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForOperations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBuyFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSellFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingActiveBlock","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":[],"name":"transferDelayEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"uint256","name":"newValue","type":"uint256"}],"name":"updateGasForProcessing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawStuckEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"rewardToken","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040526000600b819055600c819055600e805462ffffff191660019081179091556010805460ff191690911790556011819055601281905560c86013819055601455601d6015556017601681905581905560248190556025553480156200006757600080fd5b506040516200441b3803806200441b8339810160408190526200008a9162000673565b604051806040016040528060098152602001684f75726f626f726f7360b81b815250604051806040016040528060038152602001624f524f60e81b8152508160039080519060200190620000e0929190620005cd565b508051620000f6906004906020840190620005cd565b50505060006200010b6200039160201b60201c565b600580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506b033b2e3c9fd0803ce80000006103e862000176826002620006bb565b620001829190620006dd565b6009556103e86200019582600f620006bb565b620001a19190620006dd565b600a908155655af3107a40006018556014601f8190556005601e819055602083905591620001cf9162000700565b620001db919062000700565b601d556014601b8190556005601a819055600a601c819055909162000201919062000700565b6200020d919062000700565b601955600780546001600160a01b0384166001600160a01b0319918216179091556008805490911673df35f5eb3c5812cfec71910e9768e013ea29ee95179055737a250d5630b4cf539739df2c5dacb4c659f2488d6080819052620002866200027e6005546001600160a01b031690565b600162000395565b6200029330600162000395565b620002a261dead600162000395565b620002b06000600162000395565b600854620002c9906001600160a01b0316600162000395565b600754620002e2906001600160a01b0316600162000395565b62000301620002f96005546001600160a01b031690565b600162000444565b6200030e30600162000444565b60075462000327906001600160a01b0316600162000444565b6200033481600162000444565b6008546200034d906001600160a01b0316600162000444565b6200035c61dead600162000444565b6200036a6000600162000444565b62000388620003816005546001600160a01b031690565b83620004e8565b50505062000757565b3390565b6005546001600160a01b03163314620003e45760405162461bcd60e51b81526020600482018190526024820152600080516020620043fb83398151915260448201526064015b60405180910390fd5b6001600160a01b038216600081815260266020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df791015b60405180910390a25050565b6005546001600160a01b031633146200048f5760405162461bcd60e51b81526020600482018190526024820152600080516020620043fb8339815191526044820152606401620003db565b6001600160a01b038216600081815260276020908152604091829020805460ff191685151590811790915591519182527f575f9d01836c9206322151b9e9ec3f2b77b87e71176933b9b44d2d732f768d95910162000438565b6001600160a01b038216620005405760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620003db565b806002600082825462000554919062000700565b90915550506001600160a01b038216600090815260208190526040812080548392906200058390849062000700565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620005db906200071b565b90600052602060002090601f016020900481019282620005ff57600085556200064a565b82601f106200061a57805160ff19168380011785556200064a565b828001600101855582156200064a579182015b828111156200064a5782518255916020019190600101906200062d565b50620006589291506200065c565b5090565b5b808211156200065857600081556001016200065d565b6000602082840312156200068657600080fd5b81516001600160a01b03811681146200069e57600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615620006d857620006d8620006a5565b500290565b600082620006fb57634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115620007165762000716620006a5565b500190565b600181811c908216806200073057607f821691505b6020821081036200075157634e487b7160e01b600052602260045260246000fd5b50919050565b608051613c42620007b960003960008181610523015281816118eb01528181611d7b01528181611da501528181611e3601528181611f53015281816120490152818161251e0152818161354a01528181613603015261363f0152613c426000f3fe6080604052600436106104405760003560e01c8063871c128d11610234578063c33073ce1161012e578063e7841ec0116100b6578063f2fde38b1161007a578063f2fde38b14610c80578063f54afa7814610ca0578063f98ffcfb14610cb6578063fb002c9714610ccc578063fd72e22a14610ce257600080fd5b8063e7841ec014610c09578063e8792c1a14610c1e578063e98030c714610c34578063ee40166e14610c54578063efcc1b2f14610c6a57600080fd5b8063ccd146b2116100fd578063ccd146b214610b6b578063d0a3981414610b81578063dd62ed3e14610b97578063e28a939414610bdd578063e2f4560514610bf357600080fd5b8063c33073ce14610b10578063c876d0b914610b26578063c9567bf914610b40578063ca70307514610b5557600080fd5b8063a26579ad116101bc578063b94cb5c411610180578063b94cb5c414610a7b578063b9e9370014610a9b578063bbc0c74214610ab1578063c024666814610ad0578063c0f306ef14610af057600080fd5b8063a26579ad146109e0578063a457c2d7146109f5578063a9059cbb14610a15578063b62496f514610a35578063b732224b14610a6557600080fd5b80639a36f932116102035780639a36f932146109695780639a7a23d61461097f5780639c1b8af51461099f578063a04db79e146109b5578063a0bf7a51146109ca57600080fd5b8063871c128d146108f65780638da5cb5b1461091657806392b596261461093457806395d89b411461095457600080fd5b80634a62bb6511610345578063700bb191116102cd578063751039fc11610291578063751039fc146108805780637571336a146108955780637ae3ff47146108b55780637e761377146108cb5780637fa787ba146108e157600080fd5b8063700bb1911461080057806370a0823114610820578063715018a61461084057806371778e7d146108555780637506cbd81461086a57600080fd5b80635645cd86116103145780635645cd8614610726578063632459f01461074657806364b0f653146107ab5780636843cd84146107c05780636ddd1713146107e057600080fd5b80634a62bb65146106a85780634af6f7ee146106c25780634e71d92d146106d85780634fbee193146106ed57600080fd5b8063204f11a8116103c8578063313ce56711610397578063313ce5671461061457806331e79db0146106305780633950935114610652578063486a0f5a1461067257806349bd5a5e1461068857600080fd5b8063204f11a81461059e57806320a325c4146105be57806323b872dd146105d45780632c1f5216146105f457600080fd5b806310d5de531161040f57806310d5de53146104e15780631694505e1461051157806318160ddd1461055d5780631d777856146105725780631fc851bd1461058857600080fd5b806306fdde031461044c578063086e794114610477578063095ea7b31461049b5780630f4432e3146104cb57600080fd5b3661044757005b600080fd5b34801561045857600080fd5b50610461610d02565b60405161046e919061375d565b60405180910390f35b34801561048357600080fd5b5061048d60125481565b60405190815260200161046e565b3480156104a757600080fd5b506104bb6104b63660046137c7565b610d94565b604051901515815260200161046e565b3480156104d757600080fd5b5061048d600b5481565b3480156104ed57600080fd5b506104bb6104fc3660046137f3565b60276020526000908152604090205460ff1681565b34801561051d57600080fd5b506105457f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161046e565b34801561056957600080fd5b5060025461048d565b34801561057e57600080fd5b5061048d60225481565b34801561059457600080fd5b5061048d600d5481565b3480156105aa57600080fd5b5061048d6105b9366004613810565b610dab565b3480156105ca57600080fd5b5061048d60245481565b3480156105e057600080fd5b506104bb6105ef366004613849565b610e29565b34801561060057600080fd5b50600754610545906001600160a01b031681565b34801561062057600080fd5b506040516012815260200161046e565b34801561063c57600080fd5b5061065061064b3660046137f3565b610ed8565b005b34801561065e57600080fd5b506104bb61066d3660046137c7565b610f65565b34801561067e57600080fd5b5061048d60145481565b34801561069457600080fd5b50600654610545906001600160a01b031681565b3480156106b457600080fd5b50600e546104bb9060ff1681565b3480156106ce57600080fd5b5061048d601f5481565b3480156106e457600080fd5b50610650610fa1565b3480156106f957600080fd5b506104bb6107083660046137f3565b6001600160a01b031660009081526026602052604090205460ff1690565b34801561073257600080fd5b5061048d6107413660046137f3565b611019565b34801561075257600080fd5b5061076661076136600461388a565b611089565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e08201526101000161046e565b3480156107b757600080fd5b5061048d61112d565b3480156107cc57600080fd5b5061048d6107db3660046137f3565b6111a0565b3480156107ec57600080fd5b50600e546104bb9062010000900460ff1681565b34801561080c57600080fd5b5061065061081b3660046138af565b6111d3565b34801561082c57600080fd5b5061048d61083b3660046137f3565b6112a6565b34801561084c57600080fd5b506106506112c1565b34801561086157600080fd5b5061048d611335565b34801561087657600080fd5b5061048d601c5481565b34801561088c57600080fd5b506104bb61137f565b3480156108a157600080fd5b506106506108b03660046138d6565b6113c8565b3480156108c157600080fd5b5061048d601e5481565b3480156108d757600080fd5b5061048d601a5481565b3480156108ed57600080fd5b50610650611452565b34801561090257600080fd5b506106506109113660046138af565b61150e565b34801561092257600080fd5b506005546001600160a01b0316610545565b34801561094057600080fd5b5061076661094f366004613810565b611651565b34801561096057600080fd5b5061046161169b565b34801561097557600080fd5b5061048d6103e881565b34801561098b57600080fd5b5061065061099a3660046138d6565b6116aa565b3480156109ab57600080fd5b5061048d60255481565b3480156109c157600080fd5b50610650611770565b3480156109d657600080fd5b5061048d60185481565b3480156109ec57600080fd5b5061048d611acf565b348015610a0157600080fd5b506104bb610a103660046137c7565b611b19565b348015610a2157600080fd5b506104bb610a303660046137c7565b611bb2565b348015610a4157600080fd5b506104bb610a503660046137f3565b60286020526000908152604090205460ff1681565b348015610a7157600080fd5b5061048d60155481565b348015610a8757600080fd5b50610650610a963660046138af565b611bbf565b348015610aa757600080fd5b5061048d601d5481565b348015610abd57600080fd5b50600e546104bb90610100900460ff1681565b348015610adc57600080fd5b50610650610aeb3660046138d6565b611c15565b348015610afc57600080fd5b50610650610b0b3660046137f3565b611c97565b348015610b1c57600080fd5b5061048d60115481565b348015610b3257600080fd5b506010546104bb9060ff1681565b348015610b4c57600080fd5b50610650611cf3565b348015610b6157600080fd5b5061048d60175481565b348015610b7757600080fd5b5061048d601b5481565b348015610b8d57600080fd5b5061048d60195481565b348015610ba357600080fd5b5061048d610bb2366004613810565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610be957600080fd5b5061048d60165481565b348015610bff57600080fd5b5061048d60095481565b348015610c1557600080fd5b5061048d6120e0565b348015610c2a57600080fd5b5061048d600a5481565b348015610c4057600080fd5b50610650610c4f3660046138af565b61212a565b348015610c6057600080fd5b5061048d600c5481565b348015610c7657600080fd5b5061048d60205481565b348015610c8c57600080fd5b50610650610c9b3660046137f3565b612185565b348015610cac57600080fd5b5061048d60215481565b348015610cc257600080fd5b5061048d60135481565b348015610cd857600080fd5b5061048d60235481565b348015610cee57600080fd5b50600854610545906001600160a01b031681565b606060038054610d1190613904565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3d90613904565b8015610d8a5780601f10610d5f57610100808354040283529160200191610d8a565b820191906000526020600020905b815481529060010190602001808311610d6d57829003601f168201915b5050505050905090565b6000610da1338484612270565b5060015b92915050565b600754604051630409e23560e31b81526001600160a01b0384811660048301528381166024830152600092169063204f11a890604401602060405180830381865afa158015610dfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e22919061393e565b9392505050565b6000610e36848484612395565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610ec05760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610ecd8533858403612270565b506001949350505050565b6005546001600160a01b03163314610f025760405162461bcd60e51b8152600401610eb790613957565b60075460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db0906024015b600060405180830381600087803b158015610f4a57600080fd5b505af1158015610f5e573d6000803e3d6000fd5b5050505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610da1918590610f9c9086906139a2565b612270565b60075460405163bc4c4b3760e01b8152336004820152600060248201526001600160a01b039091169063bc4c4b37906044016020604051808303816000875af1158015610ff2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101691906139ba565b50565b6007546040516326b72f0160e11b81526001600160a01b0383811660048301526000921690634d6e5e02906024015b602060405180830381865afa158015611065573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da5919061393e565b600754604051638c503bf560e01b8152600481018490526001600160a01b0383811660248301526000928392839283928392839283928392911690638c503bf5906044015b61010060405180830381865afa1580156110ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061111091906139d7565b975097509750975097509750975097509295985092959890939650565b600754604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde9160048083019260209291908290030181865afa158015611177573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119b919061393e565b905090565b60075460405163156dbbf560e31b81526001600160a01b038381166004830152600092169063ab6ddfa890602401611048565b6007546040516001624d3b8760e01b0319815260048101839052600091829182916001600160a01b03169063ffb2c479906024016060604051808303816000875af1158015611226573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124a9190613a41565b604080518481526020810184905290810182905260608101889052929550909350915032906000907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a98906080015b60405180910390a350505050565b6001600160a01b031660009081526020819052604090205490565b6005546001600160a01b031633146112eb5760405162461bcd60e51b8152600401610eb790613957565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6007546040805163ad7a672f60e01b815290516000926001600160a01b03169163ad7a672f9160048083019260209291908290030181865afa158015611177573d6000803e3d6000fd5b6005546000906001600160a01b031633146113ac5760405162461bcd60e51b8152600401610eb790613957565b50600e805460ff19908116909155601080549091169055600190565b6005546001600160a01b031633146113f25760405162461bcd60e51b8152600401610eb790613957565b6001600160a01b038216600081815260276020908152604091829020805460ff191685151590811790915591519182527f575f9d01836c9206322151b9e9ec3f2b77b87e71176933b9b44d2d732f768d9591015b60405180910390a25050565b6005546001600160a01b0316331461147c5760405162461bcd60e51b8152600401610eb790613957565b604051600090339047908381818185875af1925050503d80600081146114be576040519150601f19603f3d011682016040523d82523d6000602084013e6114c3565b606091505b505060006024559050806110165760405162461bcd60e51b81526020600482015260126024820152716661696c656420746f20776974686472617760701b6044820152606401610eb7565b6005546001600160a01b031633146115385760405162461bcd60e51b8152600401610eb790613957565b62030d40811015801561154e57506207a1208111155b6115b85760405162461bcd60e51b815260206004820152603560248201527f20676173466f7250726f63657373696e67206d7573742062652062657477656560448201527406e203230302c30303020616e64203530302c30303605c1b6064820152608401610eb7565b602554810361161e5760405162461bcd60e51b815260206004820152602c60248201527f43616e6e6f742075706461746520676173466f7250726f63657373696e67207460448201526b6f2073616d652076616c756560a01b6064820152608401610eb7565b60255460405182907f40d7e40e79af4e8e5a9b3c57030d8ea93f13d669c06d448c4d631d4ae7d23db790600090a3602555565b60075460405163fd59084760e01b81526001600160a01b0384811660048301528381166024830152600092839283928392839283928392839291169063fd590847906044016110ce565b606060048054610d1190613904565b6005546001600160a01b031633146116d45760405162461bcd60e51b8152600401610eb790613957565b6006546001600160a01b03908116908316036117625760405162461bcd60e51b815260206004820152604160248201527f54686520556e697377617020706169722063616e6e6f742062652072656d6f7660448201527f65642066726f6d206175746f6d617465644d61726b65744d616b6572506169726064820152607360f81b608482015260a401610eb7565b61176c8282612ec4565b5050565b6005546001600160a01b0316331461179a5760405162461bcd60e51b8152600401610eb790613957565b60075460405163031e79db60e41b81526001600160a01b0390911660048201819052906331e79db090602401600060405180830381600087803b1580156117e057600080fd5b505af11580156117f4573d6000803e3d6000fd5b505060075460405163031e79db60e41b81523060048201526001600160a01b0390911692506331e79db09150602401600060405180830381600087803b15801561183d57600080fd5b505af1158015611851573d6000803e3d6000fd5b50506007546001600160a01b031691506331e79db0905061187a6005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b1580156118bb57600080fd5b505af11580156118cf573d6000803e3d6000fd5b505060075460405163031e79db60e41b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015290911692506331e79db09150602401600060405180830381600087803b15801561193a57600080fd5b505af115801561194e573d6000803e3d6000fd5b505060075460405163031e79db60e41b815261dead60048201526001600160a01b0390911692506331e79db09150602401600060405180830381600087803b15801561199957600080fd5b505af11580156119ad573d6000803e3d6000fd5b505060075460405163031e79db60e41b8152600060048201526001600160a01b0390911692506331e79db09150602401600060405180830381600087803b1580156119f757600080fd5b505af1158015611a0b573d6000803e3d6000fd5b505060075460085460405163031e79db60e41b81526001600160a01b039182166004820152911692506331e79db09150602401600060405180830381600087803b158015611a5857600080fd5b505af1158015611a6c573d6000803e3d6000fd5b5050600754604051630700f9b360e21b81523060048201526001600160a01b039091169250631c03e6cc9150602401600060405180830381600087803b158015611ab557600080fd5b505af1158015611ac9573d6000803e3d6000fd5b50505050565b60075460408051631bc9e27b60e21b815290516000926001600160a01b031691636f2789ec9160048083019260209291908290030181865afa158015611177573d6000803e3d6000fd5b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015611b9b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610eb7565b611ba83385858403612270565b5060019392505050565b6000610da1338484612395565b6005546001600160a01b03163314611be95760405162461bcd60e51b8152600401610eb790613957565b66038d7ea4c6800081118015611c075750670de0b6b3a76400008111155b611c1057600080fd5b601855565b6005546001600160a01b03163314611c3f5760405162461bcd60e51b8152600401610eb790613957565b6001600160a01b038216600081815260266020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df79101611446565b6005546001600160a01b03163314611cc15760405162461bcd60e51b8152600401610eb790613957565b60075460405163c0f306ef60e01b81526001600160a01b0383811660048301529091169063c0f306ef90602401610f30565b6005546001600160a01b03163314611d1d5760405162461bcd60e51b8152600401610eb790613957565b600e54610100900460ff1615611d755760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720616c7265616479206163746976652e0000000000000000006044820152606401610eb7565b611da3307f0000000000000000000000000000000000000000000000000000000000000000610f9c306112a6565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e259190613a6f565b6001600160a01b031663c9c65396307f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb69190613a6f565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015611f03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f279190613a6f565b600680546001600160a01b0319166001600160a01b03929092169182179055611f51906001612ec4565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f305d7194730611f8b306112a6565b600080611fa06005546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015612008573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061202d9190613a41565b505060065460405163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526000196024830152909116915063095ea7b3906044016020604051808303816000875af11580156120a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120c891906139ba565b50600e805462ffff0019166201010017905543600c55565b6007546040805163039e107b60e61b815290516000926001600160a01b03169163e7841ec09160048083019260209291908290030181865afa158015611177573d6000803e3d6000fd5b6005546001600160a01b031633146121545760405162461bcd60e51b8152600401610eb790613957565b60075460405163e98030c760e01b8152600481018390526001600160a01b039091169063e98030c790602401610f30565b6005546001600160a01b031633146121af5760405162461bcd60e51b8152600401610eb790613957565b6001600160a01b0381166122145760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610eb7565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166122d25760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610eb7565b6001600160a01b0382166123335760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610eb7565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166123bb5760405162461bcd60e51b8152600401610eb790613a8c565b6001600160a01b0382166123e15760405162461bcd60e51b8152600401610eb790613ad1565b806000036123fa576123f583836000612f94565b505050565b600e54610100900460ff16612494576001600160a01b03831660009081526026602052604090205460ff168061244857506001600160a01b03821660009081526026602052604090205460ff165b6124945760405162461bcd60e51b815260206004820152601a60248201527f54726164696e67206973206e6f7420616374697665207965742e0000000000006044820152606401610eb7565b600e5460ff161561274d576005546001600160a01b038481169116148015906124cb57506005546001600160a01b03838116911614155b80156124df57506001600160a01b03821615155b80156124f657506001600160a01b03821661dead14155b801561250c5750600654600160a01b900460ff16155b1561274d5760105460ff161561261a577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415801561256c57506006546001600160a01b03838116911614155b1561261a57326000908152600f602052604090205443116126075760405162461bcd60e51b815260206004820152604960248201527f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60448201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b6064820152681030b63637bbb2b21760b91b608482015260a401610eb7565b326000908152600f602052604090204390555b6001600160a01b03831660009081526028602052604090205460ff16801561265b57506001600160a01b03821660009081526027602052604090205460ff16155b156126c957600a5461266c836112a6565b61267690836139a2565b11156126c45760405162461bcd60e51b815260206004820152601b60248201527f556e61626c6520746f20657863656564204d61782057616c6c657400000000006044820152606401610eb7565b61274d565b6001600160a01b03821660009081526027602052604090205460ff1661274d57600a546126f5836112a6565b6126ff90836139a2565b111561274d5760405162461bcd60e51b815260206004820152601b60248201527f556e61626c6520746f20657863656564204d61782057616c6c657400000000006044820152606401610eb7565b6000612758306112a6565b600954909150811080159081906127775750600e5462010000900460ff165b8015612787575060165460175410155b801561279d5750600654600160a01b900460ff16155b80156127c257506001600160a01b03851660009081526028602052604090205460ff16155b80156127e757506001600160a01b03851660009081526026602052604090205460ff16155b801561280c57506001600160a01b03841660009081526026602052604090205460ff16155b1561283a576006805460ff60a01b1916600160a01b17905561282c6130db565b6006805460ff60a01b191690555b6006546001600160a01b03861660009081526026602052604090205460ff600160a01b90920482161591168061288857506001600160a01b03851660009081526026602052604090205460ff165b15612891575060005b6001600160a01b038616301480156128b657506006546001600160a01b038681169116145b80156128c25750601754155b156128cb575060015b60008180156128de575060155460175410155b15612acc576001600160a01b03861660009081526028602052604090205460ff16801561290d57506000601954115b156129cc576129336103e861292d601954886132e990919063ffffffff16565b9061336b565b9050601954601b54826129469190613b14565b6129509190613b33565b6021600082825461296191906139a2565b9091555050601954601c546129769083613b14565b6129809190613b33565b6023600082825461299191906139a2565b9091555050601954601a546129a69083613b14565b6129b09190613b33565b602260008282546129c191906139a2565b90915550612aaa9050565b6001600160a01b03871660009081526028602052604090205460ff1680156129f657506000601d54115b15612aaa57612a166103e861292d601d54886132e990919063ffffffff16565b9050601d54601f5482612a299190613b14565b612a339190613b33565b60216000828254612a4491906139a2565b9091555050601d54602054612a599083613b14565b612a639190613b33565b60236000828254612a7491906139a2565b9091555050601d54601e54612a899083613b14565b612a939190613b33565b60226000828254612aa491906139a2565b90915550505b8015612abb57612abb873083612f94565b612ac58186613b55565b9450612cd5565b818015612adc5750601554601754105b15612cd5576001600160a01b03861660009081526028602052604090205460ff168015612b0b57506000601454115b15612bc457612b2b6103e861292d601454886132e990919063ffffffff16565b905060145460125482612b3e9190613b14565b612b489190613b33565b60216000828254612b5991906139a2565b9091555050601454601354612b6e9083613b14565b612b789190613b33565b60236000828254612b8991906139a2565b9091555050601454601154612b9e9083613b14565b612ba89190613b33565b60226000828254612bb991906139a2565b90915550612cb79050565b6001600160a01b03871660009081526028602052604090205460ff168015612bee57506000601454115b15612cb757612c0e6103e861292d601454886132e990919063ffffffff16565b905060145460125482612c219190613b14565b612c2b9190613b33565b60216000828254612c3c91906139a2565b9091555050601454601354612c519083613b14565b612c5b9190613b33565b60236000828254612c6c91906139a2565b9091555050601454601154612c819083613b14565b612c8b9190613b33565b60226000828254612c9c91906139a2565b909155505060178054906000612cb183613b6c565b91905055505b8015612cc857612cc8873083612f94565b612cd28186613b55565b94505b612ce0878787612f94565b6007546001600160a01b031663e30443bc88612cfb816112a6565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015612d4157600080fd5b505af1158015612d55573d6000803e3d6000fd5b50506007546001600160a01b0316915063e30443bc905087612d76816112a6565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015612dbc57600080fd5b505af1158015612dd0573d6000803e3d6000fd5b5050600654600160a01b900460ff16159150508015612df157506000602554115b15612ebb576025546007546040516001624d3b8760e01b03198152600481018390526001600160a01b039091169063ffb2c479906024016060604051808303816000875af1925050508015612e63575060408051601f3d908101601f19168201909252612e6091810190613a41565b60015b15612eb95760408051848152602081018490529081018290526060810185905232906001907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a35050505b505b50505050505050565b6001600160a01b0382166000908152602860205260409020805460ff1916821515179055612ef282826113c8565b8015612f585760075460405163031e79db60e41b81526001600160a01b038481166004830152909116906331e79db090602401600060405180830381600087803b158015612f3f57600080fd5b505af1158015612f53573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b038316612fba5760405162461bcd60e51b8152600401610eb790613a8c565b6001600160a01b038216612fe05760405162461bcd60e51b8152600401610eb790613ad1565b6001600160a01b038316600090815260208190526040902054818110156130585760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610eb7565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061308f9084906139a2565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161129891815260200190565b602254156130f5576130ef306022546133ad565b60006022555b600080613101306112a6565b9050600060215460235461311591906139a2565b9050811580613122575080155b1561312c57505050565b60095461313a906002613b14565b8211156131525760095461314f906002613b14565b91505b600061316d8261292d856021546132e990919063ffffffff16565b9050600061318a8361292d866023546132e990919063ffffffff16565b905047613196856134f3565b60006131a247836136b3565b905060006131bf8661292d602354856132e990919063ffffffff16565b90506131da8661292d602154856132e990919063ffffffff16565b602460008282546131eb91906139a2565b9250508190555083602360008282546132049190613b55565b92505081905550846021600082825461321d9190613b55565b90915550506018546024541061328a576007546024546040516001600160a01b0390921691600081818185875af1925050503d806000811461327b576040519150601f19603f3d011682016040523d82523d6000602084013e613280565b606091505b5050600060245597505b6008546040516001600160a01b03909116908290600081818185875af1925050503d80600081146132d7576040519150601f19603f3d011682016040523d82523d6000602084013e6132dc565b606091505b5050505050505050505050565b6000826000036132fb57506000610da5565b60006133078385613b14565b9050826133148583613b33565b14610e225760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610eb7565b6000610e2283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506136f5565b6001600160a01b03821661340d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610eb7565b6001600160a01b038216600090815260208190526040902054818110156134815760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610eb7565b6001600160a01b03831660009081526020819052604081208383039055600280548492906134b0908490613b55565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001612388565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061352857613528613b85565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156135a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135ca9190613a6f565b816001815181106135dd576135dd613b85565b60200260200101906001600160a01b031690816001600160a01b031681525050613628307f000000000000000000000000000000000000000000000000000000000000000084612270565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac9479061367d908590600090869030904290600401613b9b565b600060405180830381600087803b15801561369757600080fd5b505af11580156136ab573d6000803e3d6000fd5b505050505050565b6000610e2283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061372c565b600081836137165760405162461bcd60e51b8152600401610eb7919061375d565b5060006137238486613b33565b95945050505050565b600081848411156137505760405162461bcd60e51b8152600401610eb7919061375d565b5060006137238486613b55565b600060208083528351808285015260005b8181101561378a5785810183015185820160400152820161376e565b8181111561379c576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461101657600080fd5b600080604083850312156137da57600080fd5b82356137e5816137b2565b946020939093013593505050565b60006020828403121561380557600080fd5b8135610e22816137b2565b6000806040838503121561382357600080fd5b823561382e816137b2565b9150602083013561383e816137b2565b809150509250929050565b60008060006060848603121561385e57600080fd5b8335613869816137b2565b92506020840135613879816137b2565b929592945050506040919091013590565b6000806040838503121561389d57600080fd5b82359150602083013561383e816137b2565b6000602082840312156138c157600080fd5b5035919050565b801515811461101657600080fd5b600080604083850312156138e957600080fd5b82356138f4816137b2565b9150602083013561383e816138c8565b600181811c9082168061391857607f821691505b60208210810361393857634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561395057600080fd5b5051919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156139b5576139b561398c565b500190565b6000602082840312156139cc57600080fd5b8151610e22816138c8565b600080600080600080600080610100898b0312156139f457600080fd5b88516139ff816137b2565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b600080600060608486031215613a5657600080fd5b8351925060208401519150604084015190509250925092565b600060208284031215613a8157600080fd5b8151610e22816137b2565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6000816000190483118215151615613b2e57613b2e61398c565b500290565b600082613b5057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015613b6757613b6761398c565b500390565b600060018201613b7e57613b7e61398c565b5060010190565b634e487b7160e01b600052603260045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015613beb5784516001600160a01b031683529383019391830191600101613bc6565b50506001600160a01b0396909616606085015250505060800152939250505056fea264697066735822122045f8411ebce1ae14aca898bac5a4aa84b4c12b773bab69a256f1c1f4c34e6e8064736f6c634300080d00334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572000000000000000000000000eb134e5738fb06a3d6bdb51cfd574135790a0f56

Deployed Bytecode

0x6080604052600436106104405760003560e01c8063871c128d11610234578063c33073ce1161012e578063e7841ec0116100b6578063f2fde38b1161007a578063f2fde38b14610c80578063f54afa7814610ca0578063f98ffcfb14610cb6578063fb002c9714610ccc578063fd72e22a14610ce257600080fd5b8063e7841ec014610c09578063e8792c1a14610c1e578063e98030c714610c34578063ee40166e14610c54578063efcc1b2f14610c6a57600080fd5b8063ccd146b2116100fd578063ccd146b214610b6b578063d0a3981414610b81578063dd62ed3e14610b97578063e28a939414610bdd578063e2f4560514610bf357600080fd5b8063c33073ce14610b10578063c876d0b914610b26578063c9567bf914610b40578063ca70307514610b5557600080fd5b8063a26579ad116101bc578063b94cb5c411610180578063b94cb5c414610a7b578063b9e9370014610a9b578063bbc0c74214610ab1578063c024666814610ad0578063c0f306ef14610af057600080fd5b8063a26579ad146109e0578063a457c2d7146109f5578063a9059cbb14610a15578063b62496f514610a35578063b732224b14610a6557600080fd5b80639a36f932116102035780639a36f932146109695780639a7a23d61461097f5780639c1b8af51461099f578063a04db79e146109b5578063a0bf7a51146109ca57600080fd5b8063871c128d146108f65780638da5cb5b1461091657806392b596261461093457806395d89b411461095457600080fd5b80634a62bb6511610345578063700bb191116102cd578063751039fc11610291578063751039fc146108805780637571336a146108955780637ae3ff47146108b55780637e761377146108cb5780637fa787ba146108e157600080fd5b8063700bb1911461080057806370a0823114610820578063715018a61461084057806371778e7d146108555780637506cbd81461086a57600080fd5b80635645cd86116103145780635645cd8614610726578063632459f01461074657806364b0f653146107ab5780636843cd84146107c05780636ddd1713146107e057600080fd5b80634a62bb65146106a85780634af6f7ee146106c25780634e71d92d146106d85780634fbee193146106ed57600080fd5b8063204f11a8116103c8578063313ce56711610397578063313ce5671461061457806331e79db0146106305780633950935114610652578063486a0f5a1461067257806349bd5a5e1461068857600080fd5b8063204f11a81461059e57806320a325c4146105be57806323b872dd146105d45780632c1f5216146105f457600080fd5b806310d5de531161040f57806310d5de53146104e15780631694505e1461051157806318160ddd1461055d5780631d777856146105725780631fc851bd1461058857600080fd5b806306fdde031461044c578063086e794114610477578063095ea7b31461049b5780630f4432e3146104cb57600080fd5b3661044757005b600080fd5b34801561045857600080fd5b50610461610d02565b60405161046e919061375d565b60405180910390f35b34801561048357600080fd5b5061048d60125481565b60405190815260200161046e565b3480156104a757600080fd5b506104bb6104b63660046137c7565b610d94565b604051901515815260200161046e565b3480156104d757600080fd5b5061048d600b5481565b3480156104ed57600080fd5b506104bb6104fc3660046137f3565b60276020526000908152604090205460ff1681565b34801561051d57600080fd5b506105457f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b03909116815260200161046e565b34801561056957600080fd5b5060025461048d565b34801561057e57600080fd5b5061048d60225481565b34801561059457600080fd5b5061048d600d5481565b3480156105aa57600080fd5b5061048d6105b9366004613810565b610dab565b3480156105ca57600080fd5b5061048d60245481565b3480156105e057600080fd5b506104bb6105ef366004613849565b610e29565b34801561060057600080fd5b50600754610545906001600160a01b031681565b34801561062057600080fd5b506040516012815260200161046e565b34801561063c57600080fd5b5061065061064b3660046137f3565b610ed8565b005b34801561065e57600080fd5b506104bb61066d3660046137c7565b610f65565b34801561067e57600080fd5b5061048d60145481565b34801561069457600080fd5b50600654610545906001600160a01b031681565b3480156106b457600080fd5b50600e546104bb9060ff1681565b3480156106ce57600080fd5b5061048d601f5481565b3480156106e457600080fd5b50610650610fa1565b3480156106f957600080fd5b506104bb6107083660046137f3565b6001600160a01b031660009081526026602052604090205460ff1690565b34801561073257600080fd5b5061048d6107413660046137f3565b611019565b34801561075257600080fd5b5061076661076136600461388a565b611089565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c083015260e08201526101000161046e565b3480156107b757600080fd5b5061048d61112d565b3480156107cc57600080fd5b5061048d6107db3660046137f3565b6111a0565b3480156107ec57600080fd5b50600e546104bb9062010000900460ff1681565b34801561080c57600080fd5b5061065061081b3660046138af565b6111d3565b34801561082c57600080fd5b5061048d61083b3660046137f3565b6112a6565b34801561084c57600080fd5b506106506112c1565b34801561086157600080fd5b5061048d611335565b34801561087657600080fd5b5061048d601c5481565b34801561088c57600080fd5b506104bb61137f565b3480156108a157600080fd5b506106506108b03660046138d6565b6113c8565b3480156108c157600080fd5b5061048d601e5481565b3480156108d757600080fd5b5061048d601a5481565b3480156108ed57600080fd5b50610650611452565b34801561090257600080fd5b506106506109113660046138af565b61150e565b34801561092257600080fd5b506005546001600160a01b0316610545565b34801561094057600080fd5b5061076661094f366004613810565b611651565b34801561096057600080fd5b5061046161169b565b34801561097557600080fd5b5061048d6103e881565b34801561098b57600080fd5b5061065061099a3660046138d6565b6116aa565b3480156109ab57600080fd5b5061048d60255481565b3480156109c157600080fd5b50610650611770565b3480156109d657600080fd5b5061048d60185481565b3480156109ec57600080fd5b5061048d611acf565b348015610a0157600080fd5b506104bb610a103660046137c7565b611b19565b348015610a2157600080fd5b506104bb610a303660046137c7565b611bb2565b348015610a4157600080fd5b506104bb610a503660046137f3565b60286020526000908152604090205460ff1681565b348015610a7157600080fd5b5061048d60155481565b348015610a8757600080fd5b50610650610a963660046138af565b611bbf565b348015610aa757600080fd5b5061048d601d5481565b348015610abd57600080fd5b50600e546104bb90610100900460ff1681565b348015610adc57600080fd5b50610650610aeb3660046138d6565b611c15565b348015610afc57600080fd5b50610650610b0b3660046137f3565b611c97565b348015610b1c57600080fd5b5061048d60115481565b348015610b3257600080fd5b506010546104bb9060ff1681565b348015610b4c57600080fd5b50610650611cf3565b348015610b6157600080fd5b5061048d60175481565b348015610b7757600080fd5b5061048d601b5481565b348015610b8d57600080fd5b5061048d60195481565b348015610ba357600080fd5b5061048d610bb2366004613810565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610be957600080fd5b5061048d60165481565b348015610bff57600080fd5b5061048d60095481565b348015610c1557600080fd5b5061048d6120e0565b348015610c2a57600080fd5b5061048d600a5481565b348015610c4057600080fd5b50610650610c4f3660046138af565b61212a565b348015610c6057600080fd5b5061048d600c5481565b348015610c7657600080fd5b5061048d60205481565b348015610c8c57600080fd5b50610650610c9b3660046137f3565b612185565b348015610cac57600080fd5b5061048d60215481565b348015610cc257600080fd5b5061048d60135481565b348015610cd857600080fd5b5061048d60235481565b348015610cee57600080fd5b50600854610545906001600160a01b031681565b606060038054610d1190613904565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3d90613904565b8015610d8a5780601f10610d5f57610100808354040283529160200191610d8a565b820191906000526020600020905b815481529060010190602001808311610d6d57829003601f168201915b5050505050905090565b6000610da1338484612270565b5060015b92915050565b600754604051630409e23560e31b81526001600160a01b0384811660048301528381166024830152600092169063204f11a890604401602060405180830381865afa158015610dfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e22919061393e565b9392505050565b6000610e36848484612395565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610ec05760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610ecd8533858403612270565b506001949350505050565b6005546001600160a01b03163314610f025760405162461bcd60e51b8152600401610eb790613957565b60075460405163031e79db60e41b81526001600160a01b038381166004830152909116906331e79db0906024015b600060405180830381600087803b158015610f4a57600080fd5b505af1158015610f5e573d6000803e3d6000fd5b5050505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610da1918590610f9c9086906139a2565b612270565b60075460405163bc4c4b3760e01b8152336004820152600060248201526001600160a01b039091169063bc4c4b37906044016020604051808303816000875af1158015610ff2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101691906139ba565b50565b6007546040516326b72f0160e11b81526001600160a01b0383811660048301526000921690634d6e5e02906024015b602060405180830381865afa158015611065573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da5919061393e565b600754604051638c503bf560e01b8152600481018490526001600160a01b0383811660248301526000928392839283928392839283928392911690638c503bf5906044015b61010060405180830381865afa1580156110ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061111091906139d7565b975097509750975097509750975097509295985092959890939650565b600754604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde9160048083019260209291908290030181865afa158015611177573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119b919061393e565b905090565b60075460405163156dbbf560e31b81526001600160a01b038381166004830152600092169063ab6ddfa890602401611048565b6007546040516001624d3b8760e01b0319815260048101839052600091829182916001600160a01b03169063ffb2c479906024016060604051808303816000875af1158015611226573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124a9190613a41565b604080518481526020810184905290810182905260608101889052929550909350915032906000907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a98906080015b60405180910390a350505050565b6001600160a01b031660009081526020819052604090205490565b6005546001600160a01b031633146112eb5760405162461bcd60e51b8152600401610eb790613957565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6007546040805163ad7a672f60e01b815290516000926001600160a01b03169163ad7a672f9160048083019260209291908290030181865afa158015611177573d6000803e3d6000fd5b6005546000906001600160a01b031633146113ac5760405162461bcd60e51b8152600401610eb790613957565b50600e805460ff19908116909155601080549091169055600190565b6005546001600160a01b031633146113f25760405162461bcd60e51b8152600401610eb790613957565b6001600160a01b038216600081815260276020908152604091829020805460ff191685151590811790915591519182527f575f9d01836c9206322151b9e9ec3f2b77b87e71176933b9b44d2d732f768d9591015b60405180910390a25050565b6005546001600160a01b0316331461147c5760405162461bcd60e51b8152600401610eb790613957565b604051600090339047908381818185875af1925050503d80600081146114be576040519150601f19603f3d011682016040523d82523d6000602084013e6114c3565b606091505b505060006024559050806110165760405162461bcd60e51b81526020600482015260126024820152716661696c656420746f20776974686472617760701b6044820152606401610eb7565b6005546001600160a01b031633146115385760405162461bcd60e51b8152600401610eb790613957565b62030d40811015801561154e57506207a1208111155b6115b85760405162461bcd60e51b815260206004820152603560248201527f20676173466f7250726f63657373696e67206d7573742062652062657477656560448201527406e203230302c30303020616e64203530302c30303605c1b6064820152608401610eb7565b602554810361161e5760405162461bcd60e51b815260206004820152602c60248201527f43616e6e6f742075706461746520676173466f7250726f63657373696e67207460448201526b6f2073616d652076616c756560a01b6064820152608401610eb7565b60255460405182907f40d7e40e79af4e8e5a9b3c57030d8ea93f13d669c06d448c4d631d4ae7d23db790600090a3602555565b60075460405163fd59084760e01b81526001600160a01b0384811660048301528381166024830152600092839283928392839283928392839291169063fd590847906044016110ce565b606060048054610d1190613904565b6005546001600160a01b031633146116d45760405162461bcd60e51b8152600401610eb790613957565b6006546001600160a01b03908116908316036117625760405162461bcd60e51b815260206004820152604160248201527f54686520556e697377617020706169722063616e6e6f742062652072656d6f7660448201527f65642066726f6d206175746f6d617465644d61726b65744d616b6572506169726064820152607360f81b608482015260a401610eb7565b61176c8282612ec4565b5050565b6005546001600160a01b0316331461179a5760405162461bcd60e51b8152600401610eb790613957565b60075460405163031e79db60e41b81526001600160a01b0390911660048201819052906331e79db090602401600060405180830381600087803b1580156117e057600080fd5b505af11580156117f4573d6000803e3d6000fd5b505060075460405163031e79db60e41b81523060048201526001600160a01b0390911692506331e79db09150602401600060405180830381600087803b15801561183d57600080fd5b505af1158015611851573d6000803e3d6000fd5b50506007546001600160a01b031691506331e79db0905061187a6005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b1580156118bb57600080fd5b505af11580156118cf573d6000803e3d6000fd5b505060075460405163031e79db60e41b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8116600483015290911692506331e79db09150602401600060405180830381600087803b15801561193a57600080fd5b505af115801561194e573d6000803e3d6000fd5b505060075460405163031e79db60e41b815261dead60048201526001600160a01b0390911692506331e79db09150602401600060405180830381600087803b15801561199957600080fd5b505af11580156119ad573d6000803e3d6000fd5b505060075460405163031e79db60e41b8152600060048201526001600160a01b0390911692506331e79db09150602401600060405180830381600087803b1580156119f757600080fd5b505af1158015611a0b573d6000803e3d6000fd5b505060075460085460405163031e79db60e41b81526001600160a01b039182166004820152911692506331e79db09150602401600060405180830381600087803b158015611a5857600080fd5b505af1158015611a6c573d6000803e3d6000fd5b5050600754604051630700f9b360e21b81523060048201526001600160a01b039091169250631c03e6cc9150602401600060405180830381600087803b158015611ab557600080fd5b505af1158015611ac9573d6000803e3d6000fd5b50505050565b60075460408051631bc9e27b60e21b815290516000926001600160a01b031691636f2789ec9160048083019260209291908290030181865afa158015611177573d6000803e3d6000fd5b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015611b9b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610eb7565b611ba83385858403612270565b5060019392505050565b6000610da1338484612395565b6005546001600160a01b03163314611be95760405162461bcd60e51b8152600401610eb790613957565b66038d7ea4c6800081118015611c075750670de0b6b3a76400008111155b611c1057600080fd5b601855565b6005546001600160a01b03163314611c3f5760405162461bcd60e51b8152600401610eb790613957565b6001600160a01b038216600081815260266020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df79101611446565b6005546001600160a01b03163314611cc15760405162461bcd60e51b8152600401610eb790613957565b60075460405163c0f306ef60e01b81526001600160a01b0383811660048301529091169063c0f306ef90602401610f30565b6005546001600160a01b03163314611d1d5760405162461bcd60e51b8152600401610eb790613957565b600e54610100900460ff1615611d755760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720616c7265616479206163746976652e0000000000000000006044820152606401610eb7565b611da3307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d610f9c306112a6565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e259190613a6f565b6001600160a01b031663c9c65396307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb69190613a6f565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015611f03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f279190613a6f565b600680546001600160a01b0319166001600160a01b03929092169182179055611f51906001612ec4565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663f305d7194730611f8b306112a6565b600080611fa06005546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015612008573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061202d9190613a41565b505060065460405163095ea7b360e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d811660048301526000196024830152909116915063095ea7b3906044016020604051808303816000875af11580156120a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120c891906139ba565b50600e805462ffff0019166201010017905543600c55565b6007546040805163039e107b60e61b815290516000926001600160a01b03169163e7841ec09160048083019260209291908290030181865afa158015611177573d6000803e3d6000fd5b6005546001600160a01b031633146121545760405162461bcd60e51b8152600401610eb790613957565b60075460405163e98030c760e01b8152600481018390526001600160a01b039091169063e98030c790602401610f30565b6005546001600160a01b031633146121af5760405162461bcd60e51b8152600401610eb790613957565b6001600160a01b0381166122145760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610eb7565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166122d25760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610eb7565b6001600160a01b0382166123335760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610eb7565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166123bb5760405162461bcd60e51b8152600401610eb790613a8c565b6001600160a01b0382166123e15760405162461bcd60e51b8152600401610eb790613ad1565b806000036123fa576123f583836000612f94565b505050565b600e54610100900460ff16612494576001600160a01b03831660009081526026602052604090205460ff168061244857506001600160a01b03821660009081526026602052604090205460ff165b6124945760405162461bcd60e51b815260206004820152601a60248201527f54726164696e67206973206e6f7420616374697665207965742e0000000000006044820152606401610eb7565b600e5460ff161561274d576005546001600160a01b038481169116148015906124cb57506005546001600160a01b03838116911614155b80156124df57506001600160a01b03821615155b80156124f657506001600160a01b03821661dead14155b801561250c5750600654600160a01b900460ff16155b1561274d5760105460ff161561261a577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316826001600160a01b03161415801561256c57506006546001600160a01b03838116911614155b1561261a57326000908152600f602052604090205443116126075760405162461bcd60e51b815260206004820152604960248201527f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60448201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b6064820152681030b63637bbb2b21760b91b608482015260a401610eb7565b326000908152600f602052604090204390555b6001600160a01b03831660009081526028602052604090205460ff16801561265b57506001600160a01b03821660009081526027602052604090205460ff16155b156126c957600a5461266c836112a6565b61267690836139a2565b11156126c45760405162461bcd60e51b815260206004820152601b60248201527f556e61626c6520746f20657863656564204d61782057616c6c657400000000006044820152606401610eb7565b61274d565b6001600160a01b03821660009081526027602052604090205460ff1661274d57600a546126f5836112a6565b6126ff90836139a2565b111561274d5760405162461bcd60e51b815260206004820152601b60248201527f556e61626c6520746f20657863656564204d61782057616c6c657400000000006044820152606401610eb7565b6000612758306112a6565b600954909150811080159081906127775750600e5462010000900460ff165b8015612787575060165460175410155b801561279d5750600654600160a01b900460ff16155b80156127c257506001600160a01b03851660009081526028602052604090205460ff16155b80156127e757506001600160a01b03851660009081526026602052604090205460ff16155b801561280c57506001600160a01b03841660009081526026602052604090205460ff16155b1561283a576006805460ff60a01b1916600160a01b17905561282c6130db565b6006805460ff60a01b191690555b6006546001600160a01b03861660009081526026602052604090205460ff600160a01b90920482161591168061288857506001600160a01b03851660009081526026602052604090205460ff165b15612891575060005b6001600160a01b038616301480156128b657506006546001600160a01b038681169116145b80156128c25750601754155b156128cb575060015b60008180156128de575060155460175410155b15612acc576001600160a01b03861660009081526028602052604090205460ff16801561290d57506000601954115b156129cc576129336103e861292d601954886132e990919063ffffffff16565b9061336b565b9050601954601b54826129469190613b14565b6129509190613b33565b6021600082825461296191906139a2565b9091555050601954601c546129769083613b14565b6129809190613b33565b6023600082825461299191906139a2565b9091555050601954601a546129a69083613b14565b6129b09190613b33565b602260008282546129c191906139a2565b90915550612aaa9050565b6001600160a01b03871660009081526028602052604090205460ff1680156129f657506000601d54115b15612aaa57612a166103e861292d601d54886132e990919063ffffffff16565b9050601d54601f5482612a299190613b14565b612a339190613b33565b60216000828254612a4491906139a2565b9091555050601d54602054612a599083613b14565b612a639190613b33565b60236000828254612a7491906139a2565b9091555050601d54601e54612a899083613b14565b612a939190613b33565b60226000828254612aa491906139a2565b90915550505b8015612abb57612abb873083612f94565b612ac58186613b55565b9450612cd5565b818015612adc5750601554601754105b15612cd5576001600160a01b03861660009081526028602052604090205460ff168015612b0b57506000601454115b15612bc457612b2b6103e861292d601454886132e990919063ffffffff16565b905060145460125482612b3e9190613b14565b612b489190613b33565b60216000828254612b5991906139a2565b9091555050601454601354612b6e9083613b14565b612b789190613b33565b60236000828254612b8991906139a2565b9091555050601454601154612b9e9083613b14565b612ba89190613b33565b60226000828254612bb991906139a2565b90915550612cb79050565b6001600160a01b03871660009081526028602052604090205460ff168015612bee57506000601454115b15612cb757612c0e6103e861292d601454886132e990919063ffffffff16565b905060145460125482612c219190613b14565b612c2b9190613b33565b60216000828254612c3c91906139a2565b9091555050601454601354612c519083613b14565b612c5b9190613b33565b60236000828254612c6c91906139a2565b9091555050601454601154612c819083613b14565b612c8b9190613b33565b60226000828254612c9c91906139a2565b909155505060178054906000612cb183613b6c565b91905055505b8015612cc857612cc8873083612f94565b612cd28186613b55565b94505b612ce0878787612f94565b6007546001600160a01b031663e30443bc88612cfb816112a6565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015612d4157600080fd5b505af1158015612d55573d6000803e3d6000fd5b50506007546001600160a01b0316915063e30443bc905087612d76816112a6565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015612dbc57600080fd5b505af1158015612dd0573d6000803e3d6000fd5b5050600654600160a01b900460ff16159150508015612df157506000602554115b15612ebb576025546007546040516001624d3b8760e01b03198152600481018390526001600160a01b039091169063ffb2c479906024016060604051808303816000875af1925050508015612e63575060408051601f3d908101601f19168201909252612e6091810190613a41565b60015b15612eb95760408051848152602081018490529081018290526060810185905232906001907fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989060800160405180910390a35050505b505b50505050505050565b6001600160a01b0382166000908152602860205260409020805460ff1916821515179055612ef282826113c8565b8015612f585760075460405163031e79db60e41b81526001600160a01b038481166004830152909116906331e79db090602401600060405180830381600087803b158015612f3f57600080fd5b505af1158015612f53573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b038316612fba5760405162461bcd60e51b8152600401610eb790613a8c565b6001600160a01b038216612fe05760405162461bcd60e51b8152600401610eb790613ad1565b6001600160a01b038316600090815260208190526040902054818110156130585760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610eb7565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061308f9084906139a2565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161129891815260200190565b602254156130f5576130ef306022546133ad565b60006022555b600080613101306112a6565b9050600060215460235461311591906139a2565b9050811580613122575080155b1561312c57505050565b60095461313a906002613b14565b8211156131525760095461314f906002613b14565b91505b600061316d8261292d856021546132e990919063ffffffff16565b9050600061318a8361292d866023546132e990919063ffffffff16565b905047613196856134f3565b60006131a247836136b3565b905060006131bf8661292d602354856132e990919063ffffffff16565b90506131da8661292d602154856132e990919063ffffffff16565b602460008282546131eb91906139a2565b9250508190555083602360008282546132049190613b55565b92505081905550846021600082825461321d9190613b55565b90915550506018546024541061328a576007546024546040516001600160a01b0390921691600081818185875af1925050503d806000811461327b576040519150601f19603f3d011682016040523d82523d6000602084013e613280565b606091505b5050600060245597505b6008546040516001600160a01b03909116908290600081818185875af1925050503d80600081146132d7576040519150601f19603f3d011682016040523d82523d6000602084013e6132dc565b606091505b5050505050505050505050565b6000826000036132fb57506000610da5565b60006133078385613b14565b9050826133148583613b33565b14610e225760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610eb7565b6000610e2283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506136f5565b6001600160a01b03821661340d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610eb7565b6001600160a01b038216600090815260208190526040902054818110156134815760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610eb7565b6001600160a01b03831660009081526020819052604081208383039055600280548492906134b0908490613b55565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001612388565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061352857613528613b85565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156135a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135ca9190613a6f565b816001815181106135dd576135dd613b85565b60200260200101906001600160a01b031690816001600160a01b031681525050613628307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612270565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac9479061367d908590600090869030904290600401613b9b565b600060405180830381600087803b15801561369757600080fd5b505af11580156136ab573d6000803e3d6000fd5b505050505050565b6000610e2283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061372c565b600081836137165760405162461bcd60e51b8152600401610eb7919061375d565b5060006137238486613b33565b95945050505050565b600081848411156137505760405162461bcd60e51b8152600401610eb7919061375d565b5060006137238486613b55565b600060208083528351808285015260005b8181101561378a5785810183015185820160400152820161376e565b8181111561379c576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461101657600080fd5b600080604083850312156137da57600080fd5b82356137e5816137b2565b946020939093013593505050565b60006020828403121561380557600080fd5b8135610e22816137b2565b6000806040838503121561382357600080fd5b823561382e816137b2565b9150602083013561383e816137b2565b809150509250929050565b60008060006060848603121561385e57600080fd5b8335613869816137b2565b92506020840135613879816137b2565b929592945050506040919091013590565b6000806040838503121561389d57600080fd5b82359150602083013561383e816137b2565b6000602082840312156138c157600080fd5b5035919050565b801515811461101657600080fd5b600080604083850312156138e957600080fd5b82356138f4816137b2565b9150602083013561383e816138c8565b600181811c9082168061391857607f821691505b60208210810361393857634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561395057600080fd5b5051919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156139b5576139b561398c565b500190565b6000602082840312156139cc57600080fd5b8151610e22816138c8565b600080600080600080600080610100898b0312156139f457600080fd5b88516139ff816137b2565b809850506020890151965060408901519550606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b600080600060608486031215613a5657600080fd5b8351925060208401519150604084015190509250925092565b600060208284031215613a8157600080fd5b8151610e22816137b2565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6000816000190483118215151615613b2e57613b2e61398c565b500290565b600082613b5057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015613b6757613b6761398c565b500390565b600060018201613b7e57613b7e61398c565b5060010190565b634e487b7160e01b600052603260045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015613beb5784516001600160a01b031683529383019391830191600101613bc6565b50506001600160a01b0396909616606085015250505060800152939250505056fea264697066735822122045f8411ebce1ae14aca898bac5a4aa84b4c12b773bab69a256f1c1f4c34e6e8064736f6c634300080d0033

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

000000000000000000000000eb134e5738fb06a3d6bdb51cfd574135790a0f56

-----Decoded View---------------
Arg [0] : _dividendTrackerAddress (address): 0xEB134E5738FB06a3d6BdB51cfD574135790a0f56

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000eb134e5738fb06a3d6bdb51cfd574135790a0f56


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.