ETH Price: $2,629.46 (+1.97%)

Contract

0xF82f107c676aa428c2199B35D3883Ed97AFd2aC0
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer175906002023-06-30 7:26:11419 days ago1688109971IN
0xF82f107c...97AFd2aC0
0 ETH0.0033950620.17774572
Approve175905152023-06-30 7:08:59419 days ago1688108939IN
0xF82f107c...97AFd2aC0
0 ETH0.0006665722.82637941
Set Swap Limit175903212023-06-30 6:29:35419 days ago1688106575IN
0xF82f107c...97AFd2aC0
0 ETH0.0006145821.33514498
Transfer175826122023-06-29 4:34:35420 days ago1688013275IN
0xF82f107c...97AFd2aC0
0 ETH0.0007065916.04230976
Transfer175826062023-06-29 4:33:23420 days ago1688013203IN
0xF82f107c...97AFd2aC0
0 ETH0.0040801315.72875162
Approve175775562023-06-28 11:35:35421 days ago1687952135IN
0xF82f107c...97AFd2aC0
0 ETH0.0008203317.71711856
Transfer175775092023-06-28 11:26:11421 days ago1687951571IN
0xF82f107c...97AFd2aC0
0 ETH0.0006566314.90803941
Transfer175774842023-06-28 11:21:11421 days ago1687951271IN
0xF82f107c...97AFd2aC0
0 ETH0.0021987914.73005469
Transfer175774632023-06-28 11:16:59421 days ago1687951019IN
0xF82f107c...97AFd2aC0
0 ETH0.0005817413.20770172
Transfer175774472023-06-28 11:13:47421 days ago1687950827IN
0xF82f107c...97AFd2aC0
0 ETH0.0006421414.57887601
Transfer175774432023-06-28 11:12:59421 days ago1687950779IN
0xF82f107c...97AFd2aC0
0 ETH0.0006253714.19820458
Approve175774092023-06-28 11:06:11421 days ago1687950371IN
0xF82f107c...97AFd2aC0
0 ETH0.0006124313.16222363
Approve175773462023-06-28 10:53:35421 days ago1687949615IN
0xF82f107c...97AFd2aC0
0 ETH0.0006129213.25120599
Approve175773282023-06-28 10:49:59421 days ago1687949399IN
0xF82f107c...97AFd2aC0
0 ETH0.0006957214.95214109
Transfer175773112023-06-28 10:46:35421 days ago1687949195IN
0xF82f107c...97AFd2aC0
0 ETH0.0024063616.64967047
Transfer175725102023-06-27 18:37:11421 days ago1687891031IN
0xF82f107c...97AFd2aC0
0 ETH0.0036020713.29994045
Approve175725022023-06-27 18:35:35421 days ago1687890935IN
0xF82f107c...97AFd2aC0
0 ETH0.0006141313.19878038
Transfer175724552023-06-27 18:26:11421 days ago1687890371IN
0xF82f107c...97AFd2aC0
0 ETH0.0036063715.10890422
0x60806040175724382023-06-27 18:22:47421 days ago1687890167IN
 Create: DTEST
0 ETH0.1313915515.05368248

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
175724382023-06-27 18:22:47421 days ago1687890167
0xF82f107c...97AFd2aC0
 Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DTEST

Compiler Version
v0.6.2+commit.bacdbe57

Optimization Enabled:
Yes with 200 runs

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


pragma solidity ^0.6.2;

import './ERC20.sol';
import './Ownable.sol';
import './SafeMath.sol';
import './IUniswapV2Router02.sol';
import './IUniswapV2Factory.sol';
import './DividendTrackerD.sol';




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

    IUniswapV2Router02 public uniswapV2Router; // Using current standard DEX Router Interface
    address public  uniswapV2Pair;

    bool private swapping;

    DTestDividendTracker public dividendTracker;

    address constant public deadWallet = 0x000000000000000000000000000000000000dEaD;

    address public  RewardToken = address(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); //RewardToken

    uint256 public swapTokensAtAmount;
    

    uint256 public RewardTokenFee = 3;
    uint256 public liquidityFee = 4;
    uint256 public burnFee = 3;
    uint256 public totalFees = RewardTokenFee.add(liquidityFee).add(burnFee);
    uint lastAddedTokens;
    uint lastAddedETH;
    uint lastAddedLiquidity;

    //address public _marketingWalletAddress = address(0);


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

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


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

    event UpdateDividendTracker(address indexed newAddress, address indexed oldAddress);

    event UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress);

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

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

    event LiquidityWalletUpdated(address indexed newLiquidityWallet, address indexed oldLiquidityWallet);

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

    event RewardTokenFeeUpdated(uint256 indexed newRewardTokenFee);

    event LiquidityFeeUpdated(uint256 indexed newLiquidityFee);

    event BurnFeeUpdated(uint256 indexed newBurnFee);

constructor() public ERC20("TEST TOKEN", "DTEST") {


    	dividendTracker = new DTestDividendTracker();

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

        uniswapV2Router = _uniswapV2Router;
        uniswapV2Pair = _uniswapV2Pair;

        _setAutomatedMarketMakerPair(_uniswapV2Pair, true);

        swapTokensAtAmount = 5 * 10**6 * (10**18);

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

        // exclude from paying fees or having max transaction amount
        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);
        
         /*
            _mint is an internal function in ERC20.sol that is only called here,
            and CANNOT be called ever again
        */
        _mint(owner(), (111111111111) * (10**18));

    }

    receive() external payable {

  	}



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

        DTestDividendTracker newDividendTracker = DTestDividendTracker(payable(newAddress));

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

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

        emit UpdateDividendTracker(newAddress, address(dividendTracker));

        dividendTracker = newDividendTracker;
    }

    function updateUniswapV2Router(address newAddress) public onlyOwner {
        require(newAddress != address(uniswapV2Router), "DTest: The router already has that address");
        emit UpdateUniswapV2Router(newAddress, address(uniswapV2Router));
        uniswapV2Router = IUniswapV2Router02(newAddress);
        address _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory())
            .createPair(address(this), uniswapV2Router.WETH());
        uniswapV2Pair = _uniswapV2Pair;
        _setAutomatedMarketMakerPair(uniswapV2Pair, true); //Not working in constructor
        dividendTracker.excludeFromDividends(address(uniswapV2Router)); //Not working in constructor
    }

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

        emit ExcludeFromFees(account, excluded);
    }

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

        emit ExcludeMultipleAccountsFromFees(accounts, excluded);
    }

    function setRewardTokenFee(uint256 value) external onlyOwner{
        require(value.add(liquidityFee).add(burnFee)<=8,"DTest: Maximum tax is 10%");
        RewardTokenFee = value;
        totalFees = RewardTokenFee.add(liquidityFee).add(burnFee);
        emit RewardTokenFeeUpdated(value);
    }

    function setLiquidityFee(uint256 value) external onlyOwner{
        require(RewardTokenFee.add(value).add(burnFee)<=8,"DTest: Maximum tax is 10%");
        liquidityFee = value;
        totalFees = RewardTokenFee.add(liquidityFee).add(burnFee);
        emit LiquidityFeeUpdated(value);
    }

    function setBurnFee(uint256 value) external onlyOwner{
        require(RewardTokenFee.add(liquidityFee).add(value)<=8,"DTest: Maximum tax is 10%");
        burnFee = value;
        totalFees = RewardTokenFee.add(liquidityFee).add(burnFee);
        emit BurnFeeUpdated(value);
    }

    function setSwapLimit(uint256 value) external onlyOwner{
        swapTokensAtAmount = value*(10**18);
    }
    
 
    // We are planning to change the reward token on community voting.

    function setRewardToken(address _rewardToken) external onlyOwner{
        RewardToken = _rewardToken;
        dividendTracker.updateRewardToken(_rewardToken);
    }


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

        _setAutomatedMarketMakerPair(pair, value);
    }

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

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

        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function updateGasForProcessing(uint256 newValue) public onlyOwner {
        require(newValue >= 200000 && newValue <= 500000, "DTest: gasForProcessing must be between 200,000 and 500,000");
        require(newValue != gasForProcessing, "DTest: 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() external view returns (uint256) {
        return dividendTracker.totalDividendsDistributed();
    }

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

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

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

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

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

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

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

    function claim() external {
		require(dividendTracker.processAccount(msg.sender, false),"No rewards to claim!");
    }

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

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

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

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

		uint256 contractTokenBalance = balanceOf(address(this));

        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

        if( canSwap &&
            !swapping &&
            !automatedMarketMakerPairs[from] &&
            from != owner() &&
            to != owner()
        ) {
            swapping = true;


            uint256 swapTokens = contractTokenBalance.mul(liquidityFee).div(totalFees);
            uint256 burnTokens = contractTokenBalance.mul(burnFee).div(totalFees);
            swapAndLiquify(swapTokens);
            IERC20(address(this)).transfer(deadWallet,burnTokens);

            uint256 sellTokens = balanceOf(address(this));
            swapAndSendDividends(sellTokens);

            swapping = false;
        }


        bool takeFee;


        if( automatedMarketMakerPairs[to]) {
            takeFee = true;
        }
        else{
            takeFee = false;
        }

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

        if(takeFee) {
        	uint256 fees = amount.mul(totalFees).div(100);
        	amount = amount.sub(fees);

            super._transfer(from, address(this), fees);
        }

        super._transfer(from, to, amount);

        try dividendTracker.setBalance(payable(from), balanceOf(from)) {} catch {
            // No action is implemented here because if the process failed then the token will be transferred and 
            // dividends will be processed at next transfer as the processing dividends is integrated into this function.
        }
        try dividendTracker.setBalance(payable(to), balanceOf(to)) {} catch {
            // No action is implemented here because if the process failed then the token will be transferred and 
            // dividends will be processed at next transfer as the processing dividends is integrated into this function.
        }

        if(!swapping) {
	    	uint256 gas = gasForProcessing;

	    	try dividendTracker.process(gas) returns (uint256 iterations, uint256 claims, uint256 lastProcessedIndex) {
	    		emit ProcessedDividendTracker(iterations, claims, lastProcessedIndex, true, gas, tx.origin);
	    	}
	    	catch {
                // No action is implemented here because if the process failed then the token will be transferred and 
                // dividends will be processed at next transfer.
	    	}
        }
    }

    function swapAndLiquify(uint256 tokens) private {
       // split the contract balance into halves
        uint256 half = tokens.div(2);
        uint256 otherHalf = tokens.sub(half);
        uint256 ethBalanceBefore = address(this).balance;


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

        uint256 ethBalanceAfter = address(this).balance;

        // how much ETH did we just swap into?
        uint256 newBalanceETH = ethBalanceAfter.sub(ethBalanceBefore);

        // add liquidity to uniswap
        addLiquidity(half, newBalanceETH);
        
        emit SwapAndLiquify(half, newBalanceETH, otherHalf);
    }

    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 sweep(uint256 ethAmount) external onlyOwner {

        (bool success,) = owner().call{value:ethAmount}(new bytes(0));
        require(success, 'ETH_TRANSFER_FAILED');

    }

    function swapTokensForRewardToken(uint256 tokenAmount) private {

        address[] memory path = new address[](3);
        path[0] = address(this);
        path[2] = RewardToken;

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

        // make the swap
        uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of Tokens
            path,
            address(this),
            block.timestamp
        );
    }

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {

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

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

    }


    function swapAndSendDividends(uint256 tokens) private{
        swapTokensForRewardToken(tokens);
        uint256 dividends = IERC20(RewardToken).balanceOf(address(this));
        bool success = IERC20(RewardToken).transfer(address(dividendTracker), dividends);

        if (success) {
            dividendTracker.distributeRewardTokenDividends(dividends);
            emit SendDividends(tokens, dividends);
        }
    }
}

File 2 of 16 : SafeMathUint.sol
pragma solidity >=0.6.0 <0.8.0;
/**
 * @title SafeMathUint
 * @dev Math operations with safety checks that revert on error
 */
library SafeMathUint {
  function toInt256Safe(uint256 a) internal pure returns (int256) {
    int256 b = int256(a);
    require(b >= 0);
    return b;
  }
}

File 3 of 16 : SafeMathInt.sol
pragma solidity >=0.6.0 <0.8.0;

/**
 * @title SafeMathInt
 * @dev Math operations with safety checks that revert on error
 * @dev SafeMath adapted for int256
 * Based on code of  https://github.com/RequestNetwork/requestNetwork/blob/master/packages/requestNetworkSmartContracts/contracts/base/math/SafeMathInt.sol
 */
library SafeMathInt {
  function mul(int256 a, int256 b) internal pure returns (int256) {
    // Prevent overflow when multiplying INT256_MIN with -1
    // https://github.com/RequestNetwork/requestNetwork/issues/43
    require(!(a == - 2**255 && b == -1) && !(b == - 2**255 && a == -1));

    int256 c = a * b;
    require((b == 0) || (c / b == a));
    return c;
  }

  function div(int256 a, int256 b) internal pure returns (int256) {
    // Prevent overflow when dividing INT256_MIN by -1
    // https://github.com/RequestNetwork/requestNetwork/issues/43
    require(!(a == - 2**255 && b == -1) && (b > 0));

    return a / b;
  }

  function sub(int256 a, int256 b) internal pure returns (int256) {
    require((b >= 0 && a - b <= a) || (b < 0 && a - b > a));

    return a - b;
  }

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

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

File 4 of 16 : SafeMath.sol
pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * 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);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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;
    }
}

File 5 of 16 : Ownable.sol
pragma solidity >=0.6.0 <0.8.0;

import "@openzeppelin/contracts/utils/Context.sol";

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

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

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

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual 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;
    }
}

File 6 of 16 : IterableMapping.sol
pragma solidity ^0.6.2;

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

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

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

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



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

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

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

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

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

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

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

File 7 of 16 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';
interface IUniswapV2Router02 is IUniswapV2Router01 {
    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        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;
}

File 8 of 16 : IUniswapV2Router01.sol
pragma solidity ^0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
}

File 9 of 16 : IUniswapV2Factory.sol
pragma solidity ^0.6.2;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);
    function createPair(address tokenA, address tokenB) external returns (address pair);
}

File 10 of 16 : IERC20.sol
pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

File 11 of 16 : ERC20.sol
pragma solidity >=0.6.0 <0.8.0;

import "@openzeppelin/contracts/utils/Context.sol";
import './IERC20.sol';
import './SafeMath.sol';


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

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

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

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

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

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

File 12 of 16 : DividendTrackerD.sol
pragma solidity >=0.6.0 <0.8.0;

import './Ownable.sol';
import './DividendPayingToken.sol';
import './SafeMath.sol';
import './SafeMathInt.sol';
import './IterableMapping.sol';

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

    IterableMapping.Map private tokenHoldersMap;
    uint256 public lastProcessedIndex;

    mapping (address => bool) public excludedFromDividends;

    mapping (address => uint256) public lastClaimTimes;

    uint256 public claimWait;
    uint256 public  minimumTokenBalanceForDividends;

    event ExcludeFromDividends(address indexed account);
    event ClaimWaitUpdated(uint256 indexed newValue, uint256 indexed oldValue);
    event Claim(address indexed account, uint256 amount, bool indexed automatic);

    constructor() public DividendPayingToken("DTest_Dividen_Tracker", "DTest_Dividend_Tracker") {
    	claimWait = 3600;
        minimumTokenBalanceForDividends = 100 * 10**6 * (10**18); //must hold 100M+ tokens
    }

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

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

    function excludeFromDividends(address account) external onlyOwner {
    	require(!excludedFromDividends[account],"Already excluded from dividends!");
    	excludedFromDividends[account] = true;

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

    	emit ExcludeFromDividends(account);
    }

    function updateClaimWait(uint256 newClaimWait) external onlyOwner {
        require(newClaimWait >= 3600 && newClaimWait <= 86400, "DTest_Dividend_Tracker: claimWait must be updated to between 1 and 24 hours");
        require(newClaimWait != claimWait, "DTest_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)
        public view returns (
            address account,
            int256 index,
            int256 iterationsUntilProcessed,
            uint256 withdrawableDividends,
            uint256 totalDividends,
            uint256 lastClaimTime,
            uint256 nextClaimTime,
            uint256 secondsUntilAutoClaimAvailable) {
        account = _account;

        index = tokenHoldersMap.getIndexOfKey(account);

        iterationsUntilProcessed = -1;

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


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


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

        lastClaimTime = lastClaimTimes[account];

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

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

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

        address account = tokenHoldersMap.getKeyAtIndex(index);

        return getAccount(account);
    }

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

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

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

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

    	processAccount(account, true);
    }

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

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

    	uint256 _lastProcessedIndex = lastProcessedIndex;

    	uint256 gasUsed = 0;

    	uint256 gasLeft = gasleft();

    	uint256 iterations = 0;
    	uint256 claims = 0;

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

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

    		address account = tokenHoldersMap.keys[_lastProcessedIndex];

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

    		iterations++;

    		uint256 newGasLeft = gasleft();

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

    		gasLeft = newGasLeft;
    	}

    	lastProcessedIndex = _lastProcessedIndex;

    	return (iterations, claims, lastProcessedIndex);
    }

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

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

    	return false;
    }
}

File 13 of 16 : DividendPayingTokenOptionalInterface.sol
pragma solidity ^0.6.2;


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

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

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

File 14 of 16 : DividendPayingTokenInterface.sol
pragma solidity ^0.6.2;


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


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

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

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

File 15 of 16 : DividendPayingToken.sol
pragma solidity ^0.6.2;

import './ERC20.sol';
import './Ownable.sol';
import './DividendPayingTokenInterface.sol';
import './DividendPayingTokenOptionalInterface.sol';
import './SafeMath.sol';
import './SafeMathUint.sol';
import './SafeMathInt.sol';

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

  address public  RewardToken = address(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); //RewardToken


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

  uint256 internal magnifiedDividendPerShare;

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

  uint256 public totalDividendsDistributed;

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

  }

  event RewardTokenUpdated(address indexed newToken, address indexed oldToken);

  function updateRewardToken(address newRewardToken) external onlyOwner {
        emit RewardTokenUpdated(newRewardToken, RewardToken);
        RewardToken = newRewardToken;
    }


  function distributeRewardTokenDividends(uint256 amount) public onlyOwner{
    require(totalSupply() > 0,"Total supply is less than 0!");

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

      totalDividendsDistributed = totalDividendsDistributed.add(amount);
    }
  }

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

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

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

      return _withdrawableDividend;
    }

    return 0;
  }


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

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

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


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

  /// @dev Internal function that transfer tokens from one address to another.
  /// Update magnifiedDividendCorrections to keep dividends unchanged.
  /// @param from The address to transfer from.
  /// @param to The address to transfer to.
  /// @param value The amount to be transferred.
  function _transfer(address from, address to, uint256 value) internal virtual override {
    require(false,"Transfer function for dividends paying token is externally disabled!");

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

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

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

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

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

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

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

File 16 of 16 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newBurnFee","type":"uint256"}],"name":"BurnFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"accounts","type":"address[]"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeMultipleAccountsFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"uint256","name":"newLiquidityFee","type":"uint256"}],"name":"LiquidityFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newLiquidityWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldLiquidityWallet","type":"address"}],"name":"LiquidityWalletUpdated","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":true,"internalType":"uint256","name":"newRewardTokenFee","type":"uint256"}],"name":"RewardTokenFeeUpdated","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateDividendTracker","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateUniswapV2Router","type":"event"},{"inputs":[],"name":"RewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RewardTokenFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","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":"burnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deadWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"dividendTokenBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dividendTracker","outputs":[{"internalType":"contract DTestDividendTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeMultipleAccountsFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gasForProcessing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountDividendsInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getAccountDividendsInfoAtIndex","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClaimWait","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastProcessedIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfDividendTokenHolders","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalDividendsDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gas","type":"uint256"}],"name":"processDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setBurnFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setLiquidityFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardToken","type":"address"}],"name":"setRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setRewardTokenFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setSwapLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ethAmount","type":"uint256"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"claimWait","type":"uint256"}],"name":"updateClaimWait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateGasForProcessing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateUniswapV2Router","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526009805473c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03199091161790556003600b8190556004600c819055600d8290556200007291906200005e90829062000692602090811b62002fd817901c565b6200069260201b62002fd81790919060201c565b600e55620493e06012553480156200008957600080fd5b50604080518082018252600a8152692a22a9aa102a27a5a2a760b11b60208083019182528351808501909452600584526411151154d560da1b908401528151919291620000d99160039162000aa8565b508051620000ef90600490602084019062000aa8565b50506005805460ff19166012179055506000620001146001600160e01b03620006f416565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350604051620001789062000b2d565b604051809103906000f08015801562000195573d6000803e3d6000fd5b50600860006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600073eff92a263d31888d860bd50809a8d171709b7b1c90506000816001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156200021157600080fd5b505afa15801562000226573d6000803e3d6000fd5b505050506040513d60208110156200023d57600080fd5b5051604080516315ab88c960e31b815290516001600160a01b039283169263c9c653969230929187169163ad5c464891600480820192602092909190829003018186803b1580156200028e57600080fd5b505afa158015620002a3573d6000803e3d6000fd5b505050506040513d6020811015620002ba57600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301525160448083019260209291908290030181600087803b1580156200030d57600080fd5b505af115801562000322573d6000803e3d6000fd5b505050506040513d60208110156200033957600080fd5b5051600680546001600160a01b038086166001600160a01b03199283161790925560078054928416929091169190911790559050620003838160016001600160e01b03620006f916565b6a0422ca8b0a00a425000000600a556008546040805163031e79db60e41b81526001600160a01b0390921660048301819052905190916331e79db091602480830192600092919082900301818387803b158015620003e057600080fd5b505af1158015620003f5573d6000803e3d6000fd5b50506008546040805163031e79db60e41b815230600482015290516001600160a01b0390921693506331e79db0925060248082019260009290919082900301818387803b1580156200044657600080fd5b505af11580156200045b573d6000803e3d6000fd5b50506008546001600160a01b031691506331e79db09050620004856001600160e01b036200082c16565b6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b158015620004ce57600080fd5b505af1158015620004e3573d6000803e3d6000fd5b50506008546040805163031e79db60e41b815261dead600482015290516001600160a01b0390921693506331e79db0925060248082019260009290919082900301818387803b1580156200053657600080fd5b505af11580156200054b573d6000803e3d6000fd5b50506008546040805163031e79db60e41b815260006004820181905291516001600160a01b0390931694506331e79db093506024808201939182900301818387803b1580156200059a57600080fd5b505af1158015620005af573d6000803e3d6000fd5b50506008546040805163031e79db60e41b81526001600160a01b03878116600483015291519190921693506331e79db09250602480830192600092919082900301818387803b1580156200060257600080fd5b505af115801562000617573d6000803e3d6000fd5b50505050620006406200062f6200082c60201b60201c565b60016001600160e01b036200084016565b620006563060016001600160e01b036200084016565b6200068a6200066d6001600160e01b036200082c16565b6c016704f4fab0f4062282bc00006001600160e01b036200098b16565b505062000b58565b600082820183811015620006ed576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b335b90565b6001600160a01b03821660009081526014602052604090205460ff1615158115151415620007595760405162461bcd60e51b815260040180806020018281038252603f81526020018062006e3c603f913960400191505060405180910390fd5b6001600160a01b0382166000908152601460205260409020805460ff19168215801591909117909155620007f0576008546040805163031e79db60e41b81526001600160a01b038581166004830152915191909216916331e79db091602480830192600092919082900301818387803b158015620007d657600080fd5b505af1158015620007eb573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b60055461010090046001600160a01b031690565b620008536001600160e01b03620006f416565b6001600160a01b03166200086f6001600160e01b036200082c16565b6001600160a01b031614620008cb576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03821660009081526013602052604090205460ff16151581151514156200092b5760405162461bcd60e51b815260040180806020018281038252603181526020018062006e0b6031913960400191505060405180910390fd5b6001600160a01b038216600081815260136020908152604091829020805460ff1916851515908117909155825190815291517f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df79281900390910190a25050565b6001600160a01b038216620009e7576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620009fe600083836001600160e01b0362000aa316565b62000a1a816002546200069260201b62002fd81790919060201c565b6002556001600160a01b0382166000908152602081815260409091205462000a4d91839062002fd862000692821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1062000aeb57805160ff191683800117855562000b1b565b8280016001018555821562000b1b579182015b8281111562000b1b57825182559160200191906001019062000afe565b5062000b2992915062000b3b565b5090565b612593806200487883390190565b620006f691905b8082111562000b29576000815560010162000b42565b613d108062000b686000396000f3fe6080604052600436106102e85760003560e01c8063871c128d11610190578063ad56c13c116100dc578063e7841ec011610095578063f1e9f1e51161006f578063f1e9f1e514610b8a578063f27fd25414610b9f578063f2fde38b14610bc9578063fce589d814610bfc576102ef565b8063e7841ec014610b36578063e98030c714610b4b578063e9c2801c14610b75576102ef565b8063ad56c13c14610948578063b62496f5146109c6578063c0246668146109f9578063c492f04614610a34578063dd62ed3e14610ae6578063e2f4560514610b21576102ef565b80639a7a23d611610149578063a457c2d711610123578063a457c2d714610879578063a8b9d240146108b2578063a9059cbb146108e5578063aa60e7331461091e576102ef565b80639a7a23d6146108145780639c1b8af51461084f578063a26579ad14610864576102ef565b8063871c128d1461074557806388bdd9be1461076f5780638aee8127146107a25780638da5cb5b146107d557806395d89b41146107ea57806398118cb4146107ff576102ef565b806349bd5a5e1161024f57806365b8dbc01161020857806370a08231116101e257806370a08231146106be578063715018a6146106f157806381c79ec21461070657806385141a7714610730576102ef565b806365b8dbc01461062e5780636843cd8414610661578063700bb19114610694576102ef565b806349bd5a5e146105685780634b46e3011461057d5780634bf2c7c9146105a75780634e71d92d146105d15780634fbee193146105e657806364b0f65314610619576102ef565b80632c1f5216116102a15780632c1f52161461047b57806330bb4cff14610490578063313ce567146104a557806331e79db0146104d0578063357bf15c14610505578063395093511461052f576102ef565b806306fdde03146102f4578063095ea7b31461037e57806313114a9d146103cb5780631694505e146103f257806318160ddd1461042357806323b872dd14610438576102ef565b366102ef57005b600080fd5b34801561030057600080fd5b50610309610c11565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561034357818101518382015260200161032b565b50505050905090810190601f1680156103705780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561038a57600080fd5b506103b7600480360360408110156103a157600080fd5b506001600160a01b038135169060200135610ca7565b604080519115158252519081900360200190f35b3480156103d757600080fd5b506103e0610cc5565b60408051918252519081900360200190f35b3480156103fe57600080fd5b50610407610ccb565b604080516001600160a01b039092168252519081900360200190f35b34801561042f57600080fd5b506103e0610cda565b34801561044457600080fd5b506103b76004803603606081101561045b57600080fd5b506001600160a01b03813581169160208101359091169060400135610ce0565b34801561048757600080fd5b50610407610d6d565b34801561049c57600080fd5b506103e0610d7c565b3480156104b157600080fd5b506104ba610df2565b6040805160ff9092168252519081900360200190f35b3480156104dc57600080fd5b50610503600480360360208110156104f357600080fd5b50356001600160a01b0316610dfb565b005b34801561051157600080fd5b506105036004803603602081101561052857600080fd5b5035610ec6565b34801561053b57600080fd5b506103b76004803603604081101561055257600080fd5b506001600160a01b038135169060200135610ff1565b34801561057457600080fd5b50610407611045565b34801561058957600080fd5b50610503600480360360208110156105a057600080fd5b5035611054565b3480156105b357600080fd5b50610503600480360360208110156105ca57600080fd5b50356110c5565b3480156105dd57600080fd5b506105036111e4565b3480156105f257600080fd5b506103b76004803603602081101561060957600080fd5b50356001600160a01b03166112b1565b34801561062557600080fd5b506103e06112cf565b34801561063a57600080fd5b506105036004803603602081101561065157600080fd5b50356001600160a01b0316611314565b34801561066d57600080fd5b506103e06004803603602081101561068457600080fd5b50356001600160a01b031661161d565b3480156106a057600080fd5b50610503600480360360208110156106b757600080fd5b50356116a0565b3480156106ca57600080fd5b506103e0600480360360208110156106e157600080fd5b50356001600160a01b0316611787565b3480156106fd57600080fd5b506105036117a2565b34801561071257600080fd5b506105036004803603602081101561072957600080fd5b5035611854565b34801561073c57600080fd5b50610407611974565b34801561075157600080fd5b506105036004803603602081101561076857600080fd5b503561197a565b34801561077b57600080fd5b506105036004803603602081101561079257600080fd5b50356001600160a01b0316611aa1565b3480156107ae57600080fd5b50610503600480360360208110156107c557600080fd5b50356001600160a01b0316611ec3565b3480156107e157600080fd5b50610407611f88565b3480156107f657600080fd5b50610309611f9c565b34801561080b57600080fd5b506103e0611ffd565b34801561082057600080fd5b506105036004803603604081101561083757600080fd5b506001600160a01b0381351690602001351515612003565b34801561085b57600080fd5b506103e06120c0565b34801561087057600080fd5b506103e06120c6565b34801561088557600080fd5b506103b76004803603604081101561089c57600080fd5b506001600160a01b03813516906020013561210b565b3480156108be57600080fd5b506103e0600480360360208110156108d557600080fd5b50356001600160a01b0316612179565b3480156108f157600080fd5b506103b76004803603604081101561090857600080fd5b506001600160a01b0381351690602001356121ca565b34801561092a57600080fd5b506105036004803603602081101561094157600080fd5b50356121de565b34801561095457600080fd5b5061097b6004803603602081101561096b57600080fd5b50356001600160a01b0316612346565b604080516001600160a01b0390991689526020890197909752878701959095526060870193909352608086019190915260a085015260c084015260e083015251908190036101000190f35b3480156109d257600080fd5b506103b7600480360360208110156109e957600080fd5b50356001600160a01b031661242f565b348015610a0557600080fd5b5061050360048036036040811015610a1c57600080fd5b506001600160a01b0381351690602001351515612444565b348015610a4057600080fd5b5061050360048036036040811015610a5757600080fd5b810190602081018135640100000000811115610a7257600080fd5b820183602082011115610a8457600080fd5b80359060200191846020830284011164010000000083111715610aa657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295505050503515159050612564565b348015610af257600080fd5b506103e060048036036040811015610b0957600080fd5b506001600160a01b03813581169160200135166126a3565b348015610b2d57600080fd5b506103e06126ce565b348015610b4257600080fd5b506103e06126d4565b348015610b5757600080fd5b5061050360048036036020811015610b6e57600080fd5b5035612719565b348015610b8157600080fd5b506103e06127c8565b348015610b9657600080fd5b506104076127ce565b348015610bab57600080fd5b5061097b60048036036020811015610bc257600080fd5b50356127dd565b348015610bd557600080fd5b5061050360048036036020811015610bec57600080fd5b50356001600160a01b0316612843565b348015610c0857600080fd5b506103e0612951565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c9d5780601f10610c7257610100808354040283529160200191610c9d565b820191906000526020600020905b815481529060010190602001808311610c8057829003601f168201915b5050505050905090565b6000610cbb610cb4612957565b848461295b565b5060015b92915050565b600e5481565b6006546001600160a01b031681565b60025490565b6000610ced848484612a47565b610d6384610cf9612957565b610d5e85604051806060016040528060288152602001613bb6602891396001600160a01b038a16600090815260016020526040812090610d37612957565b6001600160a01b03168152602081019190915260400160002054919063ffffffff612f4116565b61295b565b5060019392505050565b6008546001600160a01b031681565b600854604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae916004808301926020929190829003018186803b158015610dc157600080fd5b505afa158015610dd5573d6000803e3d6000fd5b505050506040513d6020811015610deb57600080fd5b5051905090565b60055460ff1690565b610e03612957565b6001600160a01b0316610e14611f88565b6001600160a01b031614610e5d576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b6008546040805163031e79db60e41b81526001600160a01b038481166004830152915191909216916331e79db091602480830192600092919082900301818387803b158015610eab57600080fd5b505af1158015610ebf573d6000803e3d6000fd5b5050505050565b610ece612957565b6001600160a01b0316610edf611f88565b6001600160a01b031614610f28576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b6008610f51600d54610f4584600b54612fd890919063ffffffff16565b9063ffffffff612fd816565b1115610fa0576040805162461bcd60e51b815260206004820152601960248201527844546573743a204d6178696d756d207461782069732031302560381b604482015290519081900360640190fd5b600c819055600d54600b54610fc09190610f45908463ffffffff612fd816565b600e5560405181907f5597c0e02a719eddde3b801d7abc15c0023afdcf6880c1e254427559820083c290600090a250565b6000610cbb610ffe612957565b84610d5e856001600061100f612957565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff612fd816565b6007546001600160a01b031681565b61105c612957565b6001600160a01b031661106d611f88565b6001600160a01b0316146110b6576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b670de0b6b3a764000002600a55565b6110cd612957565b6001600160a01b03166110de611f88565b6001600160a01b031614611127576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b600861114482610f45600c54600b54612fd890919063ffffffff16565b1115611193576040805162461bcd60e51b815260206004820152601960248201527844546573743a204d6178696d756d207461782069732031302560381b604482015290519081900360640190fd5b600d819055600c54600b546111b3918391610f459163ffffffff612fd816565b600e5560405181907fd54296e32811a7f2da2c1f6e8b39cb815ce208595da09bb98b034ccca6dffc6990600090a250565b6008546040805163bc4c4b3760e01b815233600482015260006024820181905291516001600160a01b039093169263bc4c4b3792604480840193602093929083900390910190829087803b15801561123b57600080fd5b505af115801561124f573d6000803e3d6000fd5b505050506040513d602081101561126557600080fd5b50516112af576040805162461bcd60e51b81526020600482015260146024820152734e6f207265776172647320746f20636c61696d2160601b604482015290519081900360640190fd5b565b6001600160a01b031660009081526013602052604090205460ff1690565b600854604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde916004808301926020929190829003018186803b158015610dc157600080fd5b61131c612957565b6001600160a01b031661132d611f88565b6001600160a01b031614611376576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b6006546001600160a01b03828116911614156113c35760405162461bcd60e51b815260040180806020018281038252602a8152602001806139a4602a913960400191505060405180910390fd5b6006546040516001600160a01b03918216918316907f8fc842bbd331dfa973645f4ed48b11683d501ebf1352708d77a5da2ab49a576e90600090a3600680546001600160a01b0319166001600160a01b0383811691909117918290556040805163c45a015560e01b815290516000939092169163c45a015591600480820192602092909190829003018186803b15801561145c57600080fd5b505afa158015611470573d6000803e3d6000fd5b505050506040513d602081101561148657600080fd5b5051600654604080516315ab88c960e31b815290516001600160a01b039384169363c9c6539693309391169163ad5c464891600480820192602092909190829003018186803b1580156114d857600080fd5b505afa1580156114ec573d6000803e3d6000fd5b505050506040513d602081101561150257600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301525160448083019260209291908290030181600087803b15801561155457600080fd5b505af1158015611568573d6000803e3d6000fd5b505050506040513d602081101561157e57600080fd5b5051600780546001600160a01b0319166001600160a01b0380841691909117918290559192506115b091166001613039565b6008546006546040805163031e79db60e41b81526001600160a01b039283166004820152905191909216916331e79db091602480830192600092919082900301818387803b15801561160157600080fd5b505af1158015611615573d6000803e3d6000fd5b505050505050565b600854604080516370a0823160e01b81526001600160a01b038481166004830152915160009392909216916370a0823191602480820192602092909190829003018186803b15801561166e57600080fd5b505afa158015611682573d6000803e3d6000fd5b505050506040513d602081101561169857600080fd5b505192915050565b600854604080516001624d3b8760e01b03198152600481018490529051600092839283926001600160a01b039092169163ffb2c4799160248082019260609290919082900301818787803b1580156116f757600080fd5b505af115801561170b573d6000803e3d6000fd5b505050506040513d606081101561172157600080fd5b5080516020808301516040938401518451848152928301829052828501819052606083018990529351929650945091925032916000917fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989181900360800190a350505050565b6001600160a01b031660009081526020819052604090205490565b6117aa612957565b6001600160a01b03166117bb611f88565b6001600160a01b031614611804576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b61185c612957565b6001600160a01b031661186d611f88565b6001600160a01b0316146118b6576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b60086118d3600d54610f45600c5485612fd890919063ffffffff16565b1115611922576040805162461bcd60e51b815260206004820152601960248201527844546573743a204d6178696d756d207461782069732031302560381b604482015290519081900360640190fd5b600b819055600d54600c546119439190610f4590849063ffffffff612fd816565b600e5560405181907f1e8d0723ec2530f83d10c12ca10bbb82e108a28c018f0981c7f8e0b93ca8ef3f90600090a250565b61dead81565b611982612957565b6001600160a01b0316611993611f88565b6001600160a01b0316146119dc576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b62030d4081101580156119f257506207a1208111155b611a2d5760405162461bcd60e51b815260040180806020018281038252603b815260200180613bfe603b913960400191505060405180910390fd5b601254811415611a6e5760405162461bcd60e51b8152600401808060200182810382526033815260200180613b626033913960400191505060405180910390fd5b60125460405182907f40d7e40e79af4e8e5a9b3c57030d8ea93f13d669c06d448c4d631d4ae7d23db790600090a3601255565b611aa9612957565b6001600160a01b0316611aba611f88565b6001600160a01b031614611b03576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b6008546001600160a01b0382811691161415611b505760405162461bcd60e51b8152600401808060200182810382526034815260200180613c826034913960400191505060405180910390fd5b6000819050306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015611b9857600080fd5b505afa158015611bac573d6000803e3d6000fd5b505050506040513d6020811015611bc257600080fd5b50516001600160a01b031614611c095760405162461bcd60e51b8152600401808060200182810382526049815260200180613b196049913960600191505060405180910390fd5b6040805163031e79db60e41b81526001600160a01b0383166004820181905291516331e79db09160248082019260009290919082900301818387803b158015611c5157600080fd5b505af1158015611c65573d6000803e3d6000fd5b50506040805163031e79db60e41b815230600482015290516001600160a01b03851693506331e79db09250602480830192600092919082900301818387803b158015611cb057600080fd5b505af1158015611cc4573d6000803e3d6000fd5b50505050806001600160a01b03166331e79db0611cdf611f88565b6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b158015611d2757600080fd5b505af1158015611d3b573d6000803e3d6000fd5b50506006546040805163031e79db60e41b81526001600160a01b039283166004820152905191851693506331e79db0925060248082019260009290919082900301818387803b158015611d8d57600080fd5b505af1158015611da1573d6000803e3d6000fd5b50506040805163031e79db60e41b815261dead600482015290516001600160a01b03851693506331e79db09250602480830192600092919082900301818387803b158015611dee57600080fd5b505af1158015611e02573d6000803e3d6000fd5b50506040805163031e79db60e41b815260006004820181905291516001600160a01b03861694506331e79db093506024808301939282900301818387803b158015611e4c57600080fd5b505af1158015611e60573d6000803e3d6000fd5b50506008546040516001600160a01b03918216935090851691507f90c7d74461c613da5efa97d90740869367d74ab3aa5837aa4ae9a975f954b7a890600090a3600880546001600160a01b0319166001600160a01b039290921691909117905550565b611ecb612957565b6001600160a01b0316611edc611f88565b6001600160a01b031614611f25576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b600980546001600160a01b0319166001600160a01b038381169182179092556008546040805163f8cf31cb60e01b815260048101939093525192169163f8cf31cb9160248082019260009290919082900301818387803b158015610eab57600080fd5b60055461010090046001600160a01b031690565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c9d5780601f10610c7257610100808354040283529160200191610c9d565b600c5481565b61200b612957565b6001600160a01b031661201c611f88565b6001600160a01b031614612065576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b6007546001600160a01b03838116911614156120b25760405162461bcd60e51b815260040180806020018281038252604a815260200180613a6a604a913960600191505060405180910390fd5b6120bc8282613039565b5050565b60125481565b60085460408051631bc9e27b60e21b815290516000926001600160a01b031691636f2789ec916004808301926020929190829003018186803b158015610dc157600080fd5b6000610cbb612118612957565b84610d5e85604051806060016040528060258152602001613cb66025913960016000612142612957565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff612f4116565b600854604080516302a2e74960e61b81526001600160a01b0384811660048301529151600093929092169163a8b9d24091602480820192602092909190829003018186803b15801561166e57600080fd5b6000610cbb6121d7612957565b8484612a47565b6121e6612957565b6001600160a01b03166121f7611f88565b6001600160a01b031614612240576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b600061224a611f88565b6040805160008152602081019182905280516001600160a01b039390931692859290819081908082805b602083106122935780518252601f199092019160209182019101612274565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146122f5576040519150601f19603f3d011682016040523d82523d6000602084013e6122fa565b606091505b50509050806120bc576040805162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015290519081900360640190fd5b600080600080600080600080600860009054906101000a90046001600160a01b03166001600160a01b031663fbcbc0f18a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b031681526020019150506101006040518083038186803b1580156123be57600080fd5b505afa1580156123d2573d6000803e3d6000fd5b505050506040513d6101008110156123e957600080fd5b508051602082015160408301516060840151608085015160a086015160c087015160e090970151959e50939c50919a509850965094509092509050919395975091939597565b60146020526000908152604090205460ff1681565b61244c612957565b6001600160a01b031661245d611f88565b6001600160a01b0316146124a6576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b6001600160a01b03821660009081526013602052604090205460ff16151581151514156125045760405162461bcd60e51b8152600401808060200182810382526031815260200180613a396031913960400191505060405180910390fd5b6001600160a01b038216600081815260136020908152604091829020805460ff1916851515908117909155825190815291517f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df79281900390910190a25050565b61256c612957565b6001600160a01b031661257d611f88565b6001600160a01b0316146125c6576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b60005b825181101561261d5781601360008584815181106125e357fe5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790556001016125c9565b507f7fdaf542373fa84f4ee8d662c642f44e4c2276a217d7d29e548b6eb29a233b358282604051808060200183151515158152602001828103825284818151815260200191508051906020019060200280838360005b8381101561268b578181015183820152602001612673565b50505050905001935050505060405180910390a15050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600a5481565b6008546040805163039e107b60e61b815290516000926001600160a01b03169163e7841ec0916004808301926020929190829003018186803b158015610dc157600080fd5b612721612957565b6001600160a01b0316612732611f88565b6001600160a01b03161461277b576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b6008546040805163e98030c760e01b81526004810184905290516001600160a01b039092169163e98030c79160248082019260009290919082900301818387803b158015610eab57600080fd5b600b5481565b6009546001600160a01b031681565b600080600080600080600080600860009054906101000a90046001600160a01b03166001600160a01b0316635183d6fd8a6040518263ffffffff1660e01b8152600401808281526020019150506101006040518083038186803b1580156123be57600080fd5b61284b612957565b6001600160a01b031661285c611f88565b6001600160a01b0316146128a5576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b6001600160a01b0381166128ea5760405162461bcd60e51b81526004018080602001828103825260268152602001806139f16026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600d5481565b3390565b6001600160a01b0383166129a05760405162461bcd60e51b8152600401808060200182810382526024815260200180613c5e6024913960400191505060405180910390fd5b6001600160a01b0382166129e55760405162461bcd60e51b8152600401808060200182810382526022815260200180613a176022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316612a8c5760405162461bcd60e51b8152600401808060200182810382526025815260200180613c396025913960400191505060405180910390fd5b6001600160a01b038216612ad15760405162461bcd60e51b81526004018080602001828103825260238152602001806139ce6023913960400191505060405180910390fd5b80612ae757612ae283836000613167565b612f3c565b6000612af230611787565b600a5490915081108015908190612b135750600754600160a01b900460ff16155b8015612b3857506001600160a01b03851660009081526014602052604090205460ff16155b8015612b5d5750612b47611f88565b6001600160a01b0316856001600160a01b031614155b8015612b825750612b6c611f88565b6001600160a01b0316846001600160a01b031614155b15612c8a576007805460ff60a01b1916600160a01b179055600e54600c54600091612bc491612bb890869063ffffffff6132ce16565b9063ffffffff61332716565b90506000612be3600e54612bb8600d54876132ce90919063ffffffff16565b9050612bee8261338e565b6040805163a9059cbb60e01b815261dead6004820152602481018390529051309163a9059cbb9160448083019260209291908290030181600087803b158015612c3657600080fd5b505af1158015612c4a573d6000803e3d6000fd5b505050506040513d6020811015612c6057600080fd5b5060009050612c6e30611787565b9050612c7981613428565b50506007805460ff60a01b19169055505b6001600160a01b03841660009081526014602052604081205460ff1615612cb357506001612cb7565b5060005b6001600160a01b03861660009081526013602052604090205460ff1680612cf657506001600160a01b03851660009081526013602052604090205460ff165b15612cff575060005b8015612d42576000612d216064612bb8600e54886132ce90919063ffffffff16565b9050612d33858263ffffffff6135df16565b9450612d40873083613167565b505b612d4d868686613167565b6008546001600160a01b031663e30443bc87612d6881611787565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015612db757600080fd5b505af1925050508015612dc8575060015b506008546001600160a01b031663e30443bc86612de481611787565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015612e3357600080fd5b505af1925050508015612e44575060015b50600754600160a01b900460ff1661161557601254600854604080516001624d3b8760e01b031981526004810184905290516001600160a01b039092169163ffb2c479916024808201926060929091908290030181600087803b158015612eaa57600080fd5b505af1925050508015612ede57506040513d6060811015612eca57600080fd5b508051602082015160409092015190919060015b612ee757612f37565b604080518481526020810184905280820183905260608101869052905132916001917fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989181900360800190a35050505b505050505b505050565b60008184841115612fd05760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612f95578181015183820152602001612f7d565b50505050905090810190601f168015612fc25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015613032576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821660009081526014602052604090205460ff16151581151514156130975760405162461bcd60e51b815260040180806020018281038252603f815260200180613ab4603f913960400191505060405180910390fd5b6001600160a01b0382166000908152601460205260409020805460ff1916821580159190911790915561312b576008546040805163031e79db60e41b81526001600160a01b038581166004830152915191909216916331e79db091602480830192600092919082900301818387803b15801561311257600080fd5b505af1158015613126573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b0383166131ac5760405162461bcd60e51b8152600401808060200182810382526025815260200180613c396025913960400191505060405180910390fd5b6001600160a01b0382166131f15760405162461bcd60e51b81526004018080602001828103825260238152602001806139ce6023913960400191505060405180910390fd5b6131fc838383612f3c565b61323f81604051806060016040528060268152602001613af3602691396001600160a01b038616600090815260208190526040902054919063ffffffff612f4116565b6001600160a01b038085166000908152602081905260408082209390935590841681522054613274908263ffffffff612fd816565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000826132dd57506000610cbf565b828202828482816132ea57fe5b04146130325760405162461bcd60e51b8152600401808060200182810382526021815260200180613b956021913960400191505060405180910390fd5b600080821161337d576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161338657fe5b049392505050565b60006133a182600263ffffffff61332716565b905060006133b5838363ffffffff6135df16565b9050476133c18361363c565b4760006133d4828463ffffffff6135df16565b90506133e085826137ce565b604080518681526020810183905280820186905290517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a1505050505050565b6134318161389f565b600954604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561347c57600080fd5b505afa158015613490573d6000803e3d6000fd5b505050506040513d60208110156134a657600080fd5b50516009546008546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018590529051939450600093919092169163a9059cbb91604480830192602092919082900301818787803b15801561350657600080fd5b505af115801561351a573d6000803e3d6000fd5b505050506040513d602081101561353057600080fd5b505190508015612f3c57600854604080516301d4c84960e31b81526004810185905290516001600160a01b0390921691630ea642489160248082019260009290919082900301818387803b15801561358757600080fd5b505af115801561359b573d6000803e3d6000fd5b5050604080518681526020810186905281517f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc39450908190039091019150a1505050565b600082821115613636576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6040805160028082526060808301845292602083019080388339019050509050308160008151811061366a57fe5b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b1580156136be57600080fd5b505afa1580156136d2573d6000803e3d6000fd5b505050506040513d60208110156136e857600080fd5b50518151829060019081106136f957fe5b6001600160a01b03928316602091820292909201015260065461371f913091168461295b565b60065460405163791ac94760e01b8152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a487015287516001600160a01b039097169663791ac947968a968a9594939092909160c40190602080880191028083838b5b838110156137a557818101518382015260200161378d565b505050509050019650505050505050600060405180830381600087803b15801561160157600080fd5b6006546137e69030906001600160a01b03168461295b565b6006546040805163f305d71960e01b815230600482015260248101859052600060448201819052606482015261dead60848201524260a482015290516001600160a01b039092169163f305d71991849160c480830192606092919082900301818588803b15801561385657600080fd5b505af115801561386a573d6000803e3d6000fd5b50505050506040513d606081101561388157600080fd5b5080516020820151604090920151601155601091909155600f555050565b6040805160038082526080820190925260609160208201838038833901905050905030816000815181106138cf57fe5b6001600160a01b0392831660209182029290920101526009548251911690829060029081106138fa57fe5b6001600160a01b039283166020918202929092010152600654613920913091168461295b565b600654604051635c11d79560e01b8152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a487015287516001600160a01b0390971696635c11d795968a968a9594939092909160c40190602087810191028083838b83156137a557818101518382015260200161378d56fe44546573743a2054686520726f7574657220616c7265616479206861732074686174206164647265737345524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737344546573743a204163636f756e7420697320616c7265616479207468652076616c7565206f6620276578636c756465642744546573743a205468652044546573742d424e4220706169722063616e6e6f742062652072656d6f7665642066726f6d206175746f6d617465644d61726b65744d616b6572506169727344546573743a204175746f6d61746564206d61726b6574206d616b6572207061697220697320616c72656164792073657420746f20746861742076616c756545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636544546573743a20546865206e6577206469766964656e6420747261636b6572206d757374206265206f776e65642062792074686520445465737420746f6b656e20636f6e747261637444546573743a2043616e6e6f742075706461746520676173466f7250726f63657373696e6720746f2073616d652076616c7565536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657244546573743a20676173466f7250726f63657373696e67206d757374206265206265747765656e203230302c30303020616e64203530302c30303045524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737344546573743a20546865206469766964656e6420747261636b657220616c7265616479206861732074686174206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220c94ad5b52c1c0cbb564c8f898434f139e77d3a3fedd19815713385b44b0926f064736f6c634300060200336080604052600680546001600160a01b03191673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21790553480156200003757600080fd5b50604080518082018252601581527f44546573745f4469766964656e5f547261636b6572000000000000000000000060208083019182528351808501909452601684527f44546573745f4469766964656e645f547261636b65720000000000000000000090840152815191929183918391620000b69160039162000169565b508051620000cc90600490602084019062000169565b50506005805460ff19166012179055506000620000f16001600160e01b036200016416565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35050610e10601255506a52b7d2dcc80cd2e40000006013556200020b565b335b90565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001ac57805160ff1916838001178555620001dc565b82800160010185558215620001dc579182015b82811115620001dc578251825591602001919060010190620001bf565b50620001ea929150620001ee565b5090565b6200016691905b80821115620001ea5760008155600101620001f5565b612378806200021b6000396000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c806385a6b3ae11610130578063be10b614116100b8578063f1e9f1e51161007c578063f1e9f1e5146106a3578063f2fde38b146106ab578063f8cf31cb146106d1578063fbcbc0f1146106f7578063ffb2c4791461071d57610227565b8063be10b6141461061c578063dd62ed3e14610624578063e30443bc14610652578063e7841ec01461067e578063e98030c71461068657610227565b8063a457c2d7116100ff578063a457c2d71461054a578063a8b9d24014610576578063a9059cbb1461059c578063aafd847a146105c8578063bc4c4b37146105ee57610227565b806385a6b3ae146104f05780638da5cb5b146104f857806391b89fba1461051c57806395d89b411461054257610227565b8063313ce567116101b35780635183d6fd116101825780635183d6fd1461044a5780636a474002146104b25780636f2789ec146104ba57806370a08231146104c2578063715018a6146104e857610227565b8063313ce567146103b457806331e79db0146103d257806339509351146103f85780634e7b827f1461042457610227565b806318160ddd116101fa57806318160ddd14610322578063226cfa3d1461032a57806323b872dd1461035057806327ce0147146103865780633009a609146103ac57610227565b806306fdde031461022c578063095ea7b3146102a957806309bbedde146102e95780630ea6424814610303575b600080fd5b610234610758565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026e578181015183820152602001610256565b50505050905090810190601f16801561029b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102d5600480360360408110156102bf57600080fd5b506001600160a01b0381351690602001356107ee565b604080519115158252519081900360200190f35b6102f161080c565b60408051918252519081900360200190f35b6103206004803603602081101561031957600080fd5b5035610812565b005b6102f1610960565b6102f16004803603602081101561034057600080fd5b50356001600160a01b0316610966565b6102d56004803603606081101561036657600080fd5b506001600160a01b03813581169160208101359091169060400135610978565b6102f16004803603602081101561039c57600080fd5b50356001600160a01b0316610a05565b6102f1610a70565b6103bc610a76565b6040805160ff9092168252519081900360200190f35b610320600480360360208110156103e857600080fd5b50356001600160a01b0316610a7f565b6102d56004803603604081101561040e57600080fd5b506001600160a01b038135169060200135610c2d565b6102d56004803603602081101561043a57600080fd5b50356001600160a01b0316610c81565b6104676004803603602081101561046057600080fd5b5035610c96565b604080516001600160a01b0390991689526020890197909752878701959095526060870193909352608086019190915260a085015260c084015260e083015251908190036101000190f35b610320610df5565b6102f1610e2c565b6102f1600480360360208110156104d857600080fd5b50356001600160a01b0316610e32565b610320610e4d565b6102f1610eff565b610500610f05565b604080516001600160a01b039092168252519081900360200190f35b6102f16004803603602081101561053257600080fd5b50356001600160a01b0316610f19565b610234610f24565b6102d56004803603604081101561056057600080fd5b506001600160a01b038135169060200135610f85565b6102f16004803603602081101561058c57600080fd5b50356001600160a01b0316610ff3565b6102d5600480360360408110156105b257600080fd5b506001600160a01b038135169060200135611025565b6102f1600480360360208110156105de57600080fd5b50356001600160a01b0316611039565b6102d56004803603604081101561060457600080fd5b506001600160a01b0381351690602001351515611054565b6102f1611133565b6102f16004803603604081101561063a57600080fd5b506001600160a01b0381358116916020013516611139565b6103206004803603604081101561066857600080fd5b506001600160a01b038135169060200135611164565b6102f161131a565b6103206004803603602081101561069c57600080fd5b5035611320565b610500611446565b610320600480360360208110156106c157600080fd5b50356001600160a01b0316611455565b610320600480360360208110156106e757600080fd5b50356001600160a01b0316611563565b6104676004803603602081101561070d57600080fd5b50356001600160a01b0316611622565b61073a6004803603602081101561073357600080fd5b50356117bc565b60408051938452602084019290925282820152519081900360600190f35b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107e45780601f106107b9576101008083540402835291602001916107e4565b820191906000526020600020905b8154815290600101906020018083116107c757829003601f168201915b5050505050905090565b60006108026107fb6118c6565b84846118ca565b5060015b92915050565b600b5490565b61081a6118c6565b6001600160a01b031661082b610f05565b6001600160a01b031614610874576040805162461bcd60e51b81526020600482018190526024820152600080516020612231833981519152604482015290519081900360640190fd5b600061087e610960565b116108d0576040805162461bcd60e51b815260206004820152601c60248201527f546f74616c20737570706c79206973206c657373207468616e20302100000000604482015290519081900360640190fd5b801561095d5761090d6108e1610960565b6108f583600160801b63ffffffff6119b616565b816108fc57fe5b60075491900463ffffffff611a1616565b60075560408051828152905133917fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d78454116511919081900360200190a2600a54610959908263ffffffff611a1616565b600a555b50565b60025490565b60116020526000908152604090205481565b6000610985848484611a70565b6109fb846109916118c6565b6109f685604051806060016040528060288152602001612209602891396001600160a01b038a166000908152600160205260408120906109cf6118c6565b6001600160a01b03168152602081019190915260400160002054919063ffffffff611aa716565b6118ca565b5060019392505050565b6001600160a01b038116600090815260086020526040812054600160801b90610a6090610a5b90610a4f610a4a610a3b88610e32565b6007549063ffffffff6119b616565b611b3e565b9063ffffffff611b4e16565b611b81565b81610a6757fe5b0490505b919050565b600f5481565b60055460ff1690565b610a876118c6565b6001600160a01b0316610a98610f05565b6001600160a01b031614610ae1576040805162461bcd60e51b81526020600482018190526024820152600080516020612231833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526010602052604090205460ff1615610b4f576040805162461bcd60e51b815260206004820181905260248201527f416c7265616479206578636c756465642066726f6d206469766964656e647321604482015290519081900360640190fd5b6001600160a01b0381166000908152601060205260408120805460ff19166001179055610b7d908290611b94565b6040805163131836e760e21b8152600b60048201526001600160a01b0383166024820152905173f5607a2df09a4d05f593ed0597e34747548b938191634c60db9c916044808301926000929190829003018186803b158015610bde57600080fd5b505af4158015610bf2573d6000803e3d6000fd5b50506040516001600160a01b03841692507fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b259150600090a250565b6000610802610c3a6118c6565b846109f68560016000610c4b6118c6565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff611a1616565b60106020526000908152604090205460ff1681565b600080600080600080600080600b73f5607a2df09a4d05f593ed0597e34747548b938163deb3d89690916040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610cf457600080fd5b505af4158015610d08573d6000803e3d6000fd5b505050506040513d6020811015610d1e57600080fd5b50518910610d45575060009650600019955085945086935083925082915081905080610dea565b6000600b73f5607a2df09a4d05f593ed0597e34747548b938163d1aa9e7e90918c6040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b158015610da157600080fd5b505af4158015610db5573d6000803e3d6000fd5b505050506040513d6020811015610dcb57600080fd5b50519050610dd881611622565b98509850985098509850985098509850505b919395975091939597565b60405162461bcd60e51b81526004018080602001828103825260678152602001806121a26067913960800191505060405180910390fd5b60125481565b6001600160a01b031660009081526020819052604090205490565b610e556118c6565b6001600160a01b0316610e66610f05565b6001600160a01b031614610eaf576040805162461bcd60e51b81526020600482018190526024820152600080516020612231833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b600a5481565b60055461010090046001600160a01b031690565b600061080682610ff3565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107e45780601f106107b9576101008083540402835291602001916107e4565b6000610802610f926118c6565b846109f68560405180606001604052806025815260200161231e6025913960016000610fbc6118c6565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff611aa716565b6001600160a01b0381166000908152600960205260408120546108069061101984610a05565b9063ffffffff611bf916565b60006108026110326118c6565b8484611a70565b6001600160a01b031660009081526009602052604090205490565b600061105e6118c6565b6001600160a01b031661106f610f05565b6001600160a01b0316146110b8576040805162461bcd60e51b81526020600482018190526024820152600080516020612231833981519152604482015290519081900360640190fd5b60006110c384611c56565b90508015611129576001600160a01b0384166000818152601160209081526040918290204290558151848152915186151593927fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09292908290030190a36001915050610806565b5060009392505050565b60135481565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61116c6118c6565b6001600160a01b031661117d610f05565b6001600160a01b0316146111c6576040805162461bcd60e51b81526020600482018190526024820152600080516020612231833981519152604482015290519081900360640190fd5b6001600160a01b03821660009081526010602052604090205460ff16156111ec57611316565b6013548110611284576111ff8282611b94565b60408051632f0ad01760e21b8152600b60048201526001600160a01b038416602482015260448101839052905173f5607a2df09a4d05f593ed0597e34747548b93819163bc2b405c916064808301926000929190829003018186803b15801561126757600080fd5b505af415801561127b573d6000803e3d6000fd5b50505050611309565b61128f826000611b94565b6040805163131836e760e21b8152600b60048201526001600160a01b0384166024820152905173f5607a2df09a4d05f593ed0597e34747548b938191634c60db9c916044808301926000929190829003018186803b1580156112f057600080fd5b505af4158015611304573d6000803e3d6000fd5b505050505b611314826001611054565b505b5050565b600f5490565b6113286118c6565b6001600160a01b0316611339610f05565b6001600160a01b031614611382576040805162461bcd60e51b81526020600482018190526024820152600080516020612231833981519152604482015290519081900360640190fd5b610e1081101580156113975750620151808111155b6113d25760405162461bcd60e51b815260040180806020018281038252604b815260200180612296604b913960600191505060405180910390fd5b6012548114156114135760405162461bcd60e51b815260040180806020018281038252603d8152602001806122e1603d913960400191505060405180910390fd5b60125460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601255565b6006546001600160a01b031681565b61145d6118c6565b6001600160a01b031661146e610f05565b6001600160a01b0316146114b7576040805162461bcd60e51b81526020600482018190526024820152600080516020612231833981519152604482015290519081900360640190fd5b6001600160a01b0381166114fc5760405162461bcd60e51b81526004018080602001828103825260268152602001806121396026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b61156b6118c6565b6001600160a01b031661157c610f05565b6001600160a01b0316146115c5576040805162461bcd60e51b81526020600482018190526024820152600080516020612231833981519152604482015290519081900360640190fd5b6006546040516001600160a01b03918216918316907f906ff2422a6ffa134f2d7ccaffd446bc0c583a5cb6615749b4b2836942a5fea890600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b600080600080600080600080889750600b73f5607a2df09a4d05f593ed0597e34747548b93816317e142d190918a6040518363ffffffff1660e01b815260040180838152602001826001600160a01b03166001600160a01b031681526020019250505060206040518083038186803b15801561169d57600080fd5b505af41580156116b1573d6000803e3d6000fd5b505050506040513d60208110156116c757600080fd5b5051965060001995506000871261173d57600f548711156116fd57600f546116f690889063ffffffff611dd116565b955061173d565b600f54600b5460009110611712576000611727565b600f54600b546117279163ffffffff611bf916565b9050611739888263ffffffff611b4e16565b9650505b61174688610ff3565b945061175188610a05565b6001600160a01b03891660009081526011602052604090205490945092508261177b57600061178f565b60125461178f90849063ffffffff611a1616565b915042821161179f5760006117af565b6117af824263ffffffff611bf916565b9050919395975091939597565b600b5460009081908190806117dc575050600f54600092508291506118bf565b600f546000805a90506000805b89841080156117f757508582105b156118ae57600b54600190950194851061181057600094505b6000600b600001868154811061182257fe5b60009182526020808320909101546001600160a01b0316808352601190915260409091205490915061185390611e05565b1561186f57611863816001611054565b1561186f576001909101905b60019092019160005a9050808511156118a5576118a2611895868363ffffffff611bf916565b879063ffffffff611a1616565b95505b93506117e99050565b600f85905590975095509193505050505b9193909250565b3390565b6001600160a01b03831661190f5760405162461bcd60e51b81526004018080602001828103825260248152602001806122726024913960400191505060405180910390fd5b6001600160a01b0382166119545760405162461bcd60e51b815260040180806020018281038252602281526020018061215f6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6000826119c557506000610806565b828202828482816119d257fe5b0414611a0f5760405162461bcd60e51b81526004018080602001828103825260218152602001806121816021913960400191505060405180910390fd5b9392505050565b600082820183811015611a0f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60405162461bcd60e51b815260040180806020018281038252602c81526020018061210d602c913960400191505060405180910390fd5b60008184841115611b365760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611afb578181015183820152602001611ae3565b50505050905090810190601f168015611b285780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000818181121561080657600080fd5b6000828201818312801590611b635750838112155b80611b785750600083128015611b7857508381125b611a0f57600080fd5b600080821215611b9057600080fd5b5090565b6000611b9f83610e32565b905080821115611bcd576000611bbb838363ffffffff611bf916565b9050611bc78482611e32565b50611314565b80821015611314576000611be7828463ffffffff611bf916565b9050611bf38482611e9c565b50505050565b600082821115611c50576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600080611c6283610ff3565b90508015611dc8576001600160a01b038316600090815260096020526040902054611c93908263ffffffff611a1616565b6001600160a01b038416600081815260096020908152604091829020939093558051848152905191927fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d92918290030190a26006546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151600093929092169163a9059cbb9160448082019260209290919082900301818787803b158015611d3e57600080fd5b505af1158015611d52573d6000803e3d6000fd5b505050506040513d6020811015611d6857600080fd5b5051905080611dc0576001600160a01b038416600090815260096020526040902054611d9a908363ffffffff611bf916565b6001600160a01b0385166000908152600960205260408120919091559250610a6b915050565b509050610a6b565b50600092915050565b6000808212158015611de557508282840313155b80611dfc5750600082128015611dfc575082828403135b611c5057600080fd5b600042821115611e1757506000610a6b565b601254611e2a428463ffffffff611bf916565b101592915050565b611e3c8282611ee6565b611e7c611e57610a4a836007546119b690919063ffffffff16565b6001600160a01b0384166000908152600860205260409020549063ffffffff611dd116565b6001600160a01b0390921660009081526008602052604090209190915550565b611ea68282611fe2565b611e7c611ec1610a4a836007546119b690919063ffffffff16565b6001600160a01b0384166000908152600860205260409020549063ffffffff611b4e16565b6001600160a01b038216611f41576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611f4d60008383611314565b600254611f60908263ffffffff611a1616565b6002556001600160a01b038216600090815260208190526040902054611f8c908263ffffffff611a1616565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0382166120275760405162461bcd60e51b81526004018080602001828103825260218152602001806122516021913960400191505060405180910390fd5b61203382600083611314565b612076816040518060600160405280602281526020016120eb602291396001600160a01b038516600090815260208190526040902054919063ffffffff611aa716565b6001600160a01b0383166000908152602081905260409020556002546120a2908263ffffffff611bf916565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3505056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636544546573745f4469766964656e645f547261636b65723a204e6f207472616e736665727320616c6c6f7765644f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7744546573745f4469766964656e645f547261636b65723a2077697468647261774469766964656e642064697361626c65642e20557365207468652027636c61696d272066756e6374696f6e206f6e20746865206d61696e20445465737420636f6e74726163742e45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737344546573745f4469766964656e645f547261636b65723a20636c61696d57616974206d757374206265207570646174656420746f206265747765656e203120616e6420323420686f75727344546573745f4469766964656e645f547261636b65723a2043616e6e6f742075706461746520636c61696d5761697420746f2073616d652076616c756545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122014e8c54bf58754b7486bd5449a6274b41e4e35294d610698fdde547b636c8b4d64736f6c6343000602003344546573743a204163636f756e7420697320616c7265616479207468652076616c7565206f6620276578636c756465642744546573743a204175746f6d61746564206d61726b6574206d616b6572207061697220697320616c72656164792073657420746f20746861742076616c7565

Deployed Bytecode

0x6080604052600436106102e85760003560e01c8063871c128d11610190578063ad56c13c116100dc578063e7841ec011610095578063f1e9f1e51161006f578063f1e9f1e514610b8a578063f27fd25414610b9f578063f2fde38b14610bc9578063fce589d814610bfc576102ef565b8063e7841ec014610b36578063e98030c714610b4b578063e9c2801c14610b75576102ef565b8063ad56c13c14610948578063b62496f5146109c6578063c0246668146109f9578063c492f04614610a34578063dd62ed3e14610ae6578063e2f4560514610b21576102ef565b80639a7a23d611610149578063a457c2d711610123578063a457c2d714610879578063a8b9d240146108b2578063a9059cbb146108e5578063aa60e7331461091e576102ef565b80639a7a23d6146108145780639c1b8af51461084f578063a26579ad14610864576102ef565b8063871c128d1461074557806388bdd9be1461076f5780638aee8127146107a25780638da5cb5b146107d557806395d89b41146107ea57806398118cb4146107ff576102ef565b806349bd5a5e1161024f57806365b8dbc01161020857806370a08231116101e257806370a08231146106be578063715018a6146106f157806381c79ec21461070657806385141a7714610730576102ef565b806365b8dbc01461062e5780636843cd8414610661578063700bb19114610694576102ef565b806349bd5a5e146105685780634b46e3011461057d5780634bf2c7c9146105a75780634e71d92d146105d15780634fbee193146105e657806364b0f65314610619576102ef565b80632c1f5216116102a15780632c1f52161461047b57806330bb4cff14610490578063313ce567146104a557806331e79db0146104d0578063357bf15c14610505578063395093511461052f576102ef565b806306fdde03146102f4578063095ea7b31461037e57806313114a9d146103cb5780631694505e146103f257806318160ddd1461042357806323b872dd14610438576102ef565b366102ef57005b600080fd5b34801561030057600080fd5b50610309610c11565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561034357818101518382015260200161032b565b50505050905090810190601f1680156103705780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561038a57600080fd5b506103b7600480360360408110156103a157600080fd5b506001600160a01b038135169060200135610ca7565b604080519115158252519081900360200190f35b3480156103d757600080fd5b506103e0610cc5565b60408051918252519081900360200190f35b3480156103fe57600080fd5b50610407610ccb565b604080516001600160a01b039092168252519081900360200190f35b34801561042f57600080fd5b506103e0610cda565b34801561044457600080fd5b506103b76004803603606081101561045b57600080fd5b506001600160a01b03813581169160208101359091169060400135610ce0565b34801561048757600080fd5b50610407610d6d565b34801561049c57600080fd5b506103e0610d7c565b3480156104b157600080fd5b506104ba610df2565b6040805160ff9092168252519081900360200190f35b3480156104dc57600080fd5b50610503600480360360208110156104f357600080fd5b50356001600160a01b0316610dfb565b005b34801561051157600080fd5b506105036004803603602081101561052857600080fd5b5035610ec6565b34801561053b57600080fd5b506103b76004803603604081101561055257600080fd5b506001600160a01b038135169060200135610ff1565b34801561057457600080fd5b50610407611045565b34801561058957600080fd5b50610503600480360360208110156105a057600080fd5b5035611054565b3480156105b357600080fd5b50610503600480360360208110156105ca57600080fd5b50356110c5565b3480156105dd57600080fd5b506105036111e4565b3480156105f257600080fd5b506103b76004803603602081101561060957600080fd5b50356001600160a01b03166112b1565b34801561062557600080fd5b506103e06112cf565b34801561063a57600080fd5b506105036004803603602081101561065157600080fd5b50356001600160a01b0316611314565b34801561066d57600080fd5b506103e06004803603602081101561068457600080fd5b50356001600160a01b031661161d565b3480156106a057600080fd5b50610503600480360360208110156106b757600080fd5b50356116a0565b3480156106ca57600080fd5b506103e0600480360360208110156106e157600080fd5b50356001600160a01b0316611787565b3480156106fd57600080fd5b506105036117a2565b34801561071257600080fd5b506105036004803603602081101561072957600080fd5b5035611854565b34801561073c57600080fd5b50610407611974565b34801561075157600080fd5b506105036004803603602081101561076857600080fd5b503561197a565b34801561077b57600080fd5b506105036004803603602081101561079257600080fd5b50356001600160a01b0316611aa1565b3480156107ae57600080fd5b50610503600480360360208110156107c557600080fd5b50356001600160a01b0316611ec3565b3480156107e157600080fd5b50610407611f88565b3480156107f657600080fd5b50610309611f9c565b34801561080b57600080fd5b506103e0611ffd565b34801561082057600080fd5b506105036004803603604081101561083757600080fd5b506001600160a01b0381351690602001351515612003565b34801561085b57600080fd5b506103e06120c0565b34801561087057600080fd5b506103e06120c6565b34801561088557600080fd5b506103b76004803603604081101561089c57600080fd5b506001600160a01b03813516906020013561210b565b3480156108be57600080fd5b506103e0600480360360208110156108d557600080fd5b50356001600160a01b0316612179565b3480156108f157600080fd5b506103b76004803603604081101561090857600080fd5b506001600160a01b0381351690602001356121ca565b34801561092a57600080fd5b506105036004803603602081101561094157600080fd5b50356121de565b34801561095457600080fd5b5061097b6004803603602081101561096b57600080fd5b50356001600160a01b0316612346565b604080516001600160a01b0390991689526020890197909752878701959095526060870193909352608086019190915260a085015260c084015260e083015251908190036101000190f35b3480156109d257600080fd5b506103b7600480360360208110156109e957600080fd5b50356001600160a01b031661242f565b348015610a0557600080fd5b5061050360048036036040811015610a1c57600080fd5b506001600160a01b0381351690602001351515612444565b348015610a4057600080fd5b5061050360048036036040811015610a5757600080fd5b810190602081018135640100000000811115610a7257600080fd5b820183602082011115610a8457600080fd5b80359060200191846020830284011164010000000083111715610aa657600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295505050503515159050612564565b348015610af257600080fd5b506103e060048036036040811015610b0957600080fd5b506001600160a01b03813581169160200135166126a3565b348015610b2d57600080fd5b506103e06126ce565b348015610b4257600080fd5b506103e06126d4565b348015610b5757600080fd5b5061050360048036036020811015610b6e57600080fd5b5035612719565b348015610b8157600080fd5b506103e06127c8565b348015610b9657600080fd5b506104076127ce565b348015610bab57600080fd5b5061097b60048036036020811015610bc257600080fd5b50356127dd565b348015610bd557600080fd5b5061050360048036036020811015610bec57600080fd5b50356001600160a01b0316612843565b348015610c0857600080fd5b506103e0612951565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c9d5780601f10610c7257610100808354040283529160200191610c9d565b820191906000526020600020905b815481529060010190602001808311610c8057829003601f168201915b5050505050905090565b6000610cbb610cb4612957565b848461295b565b5060015b92915050565b600e5481565b6006546001600160a01b031681565b60025490565b6000610ced848484612a47565b610d6384610cf9612957565b610d5e85604051806060016040528060288152602001613bb6602891396001600160a01b038a16600090815260016020526040812090610d37612957565b6001600160a01b03168152602081019190915260400160002054919063ffffffff612f4116565b61295b565b5060019392505050565b6008546001600160a01b031681565b600854604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae916004808301926020929190829003018186803b158015610dc157600080fd5b505afa158015610dd5573d6000803e3d6000fd5b505050506040513d6020811015610deb57600080fd5b5051905090565b60055460ff1690565b610e03612957565b6001600160a01b0316610e14611f88565b6001600160a01b031614610e5d576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b6008546040805163031e79db60e41b81526001600160a01b038481166004830152915191909216916331e79db091602480830192600092919082900301818387803b158015610eab57600080fd5b505af1158015610ebf573d6000803e3d6000fd5b5050505050565b610ece612957565b6001600160a01b0316610edf611f88565b6001600160a01b031614610f28576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b6008610f51600d54610f4584600b54612fd890919063ffffffff16565b9063ffffffff612fd816565b1115610fa0576040805162461bcd60e51b815260206004820152601960248201527844546573743a204d6178696d756d207461782069732031302560381b604482015290519081900360640190fd5b600c819055600d54600b54610fc09190610f45908463ffffffff612fd816565b600e5560405181907f5597c0e02a719eddde3b801d7abc15c0023afdcf6880c1e254427559820083c290600090a250565b6000610cbb610ffe612957565b84610d5e856001600061100f612957565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff612fd816565b6007546001600160a01b031681565b61105c612957565b6001600160a01b031661106d611f88565b6001600160a01b0316146110b6576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b670de0b6b3a764000002600a55565b6110cd612957565b6001600160a01b03166110de611f88565b6001600160a01b031614611127576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b600861114482610f45600c54600b54612fd890919063ffffffff16565b1115611193576040805162461bcd60e51b815260206004820152601960248201527844546573743a204d6178696d756d207461782069732031302560381b604482015290519081900360640190fd5b600d819055600c54600b546111b3918391610f459163ffffffff612fd816565b600e5560405181907fd54296e32811a7f2da2c1f6e8b39cb815ce208595da09bb98b034ccca6dffc6990600090a250565b6008546040805163bc4c4b3760e01b815233600482015260006024820181905291516001600160a01b039093169263bc4c4b3792604480840193602093929083900390910190829087803b15801561123b57600080fd5b505af115801561124f573d6000803e3d6000fd5b505050506040513d602081101561126557600080fd5b50516112af576040805162461bcd60e51b81526020600482015260146024820152734e6f207265776172647320746f20636c61696d2160601b604482015290519081900360640190fd5b565b6001600160a01b031660009081526013602052604090205460ff1690565b600854604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde916004808301926020929190829003018186803b158015610dc157600080fd5b61131c612957565b6001600160a01b031661132d611f88565b6001600160a01b031614611376576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b6006546001600160a01b03828116911614156113c35760405162461bcd60e51b815260040180806020018281038252602a8152602001806139a4602a913960400191505060405180910390fd5b6006546040516001600160a01b03918216918316907f8fc842bbd331dfa973645f4ed48b11683d501ebf1352708d77a5da2ab49a576e90600090a3600680546001600160a01b0319166001600160a01b0383811691909117918290556040805163c45a015560e01b815290516000939092169163c45a015591600480820192602092909190829003018186803b15801561145c57600080fd5b505afa158015611470573d6000803e3d6000fd5b505050506040513d602081101561148657600080fd5b5051600654604080516315ab88c960e31b815290516001600160a01b039384169363c9c6539693309391169163ad5c464891600480820192602092909190829003018186803b1580156114d857600080fd5b505afa1580156114ec573d6000803e3d6000fd5b505050506040513d602081101561150257600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301525160448083019260209291908290030181600087803b15801561155457600080fd5b505af1158015611568573d6000803e3d6000fd5b505050506040513d602081101561157e57600080fd5b5051600780546001600160a01b0319166001600160a01b0380841691909117918290559192506115b091166001613039565b6008546006546040805163031e79db60e41b81526001600160a01b039283166004820152905191909216916331e79db091602480830192600092919082900301818387803b15801561160157600080fd5b505af1158015611615573d6000803e3d6000fd5b505050505050565b600854604080516370a0823160e01b81526001600160a01b038481166004830152915160009392909216916370a0823191602480820192602092909190829003018186803b15801561166e57600080fd5b505afa158015611682573d6000803e3d6000fd5b505050506040513d602081101561169857600080fd5b505192915050565b600854604080516001624d3b8760e01b03198152600481018490529051600092839283926001600160a01b039092169163ffb2c4799160248082019260609290919082900301818787803b1580156116f757600080fd5b505af115801561170b573d6000803e3d6000fd5b505050506040513d606081101561172157600080fd5b5080516020808301516040938401518451848152928301829052828501819052606083018990529351929650945091925032916000917fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989181900360800190a350505050565b6001600160a01b031660009081526020819052604090205490565b6117aa612957565b6001600160a01b03166117bb611f88565b6001600160a01b031614611804576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b61185c612957565b6001600160a01b031661186d611f88565b6001600160a01b0316146118b6576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b60086118d3600d54610f45600c5485612fd890919063ffffffff16565b1115611922576040805162461bcd60e51b815260206004820152601960248201527844546573743a204d6178696d756d207461782069732031302560381b604482015290519081900360640190fd5b600b819055600d54600c546119439190610f4590849063ffffffff612fd816565b600e5560405181907f1e8d0723ec2530f83d10c12ca10bbb82e108a28c018f0981c7f8e0b93ca8ef3f90600090a250565b61dead81565b611982612957565b6001600160a01b0316611993611f88565b6001600160a01b0316146119dc576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b62030d4081101580156119f257506207a1208111155b611a2d5760405162461bcd60e51b815260040180806020018281038252603b815260200180613bfe603b913960400191505060405180910390fd5b601254811415611a6e5760405162461bcd60e51b8152600401808060200182810382526033815260200180613b626033913960400191505060405180910390fd5b60125460405182907f40d7e40e79af4e8e5a9b3c57030d8ea93f13d669c06d448c4d631d4ae7d23db790600090a3601255565b611aa9612957565b6001600160a01b0316611aba611f88565b6001600160a01b031614611b03576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b6008546001600160a01b0382811691161415611b505760405162461bcd60e51b8152600401808060200182810382526034815260200180613c826034913960400191505060405180910390fd5b6000819050306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015611b9857600080fd5b505afa158015611bac573d6000803e3d6000fd5b505050506040513d6020811015611bc257600080fd5b50516001600160a01b031614611c095760405162461bcd60e51b8152600401808060200182810382526049815260200180613b196049913960600191505060405180910390fd5b6040805163031e79db60e41b81526001600160a01b0383166004820181905291516331e79db09160248082019260009290919082900301818387803b158015611c5157600080fd5b505af1158015611c65573d6000803e3d6000fd5b50506040805163031e79db60e41b815230600482015290516001600160a01b03851693506331e79db09250602480830192600092919082900301818387803b158015611cb057600080fd5b505af1158015611cc4573d6000803e3d6000fd5b50505050806001600160a01b03166331e79db0611cdf611f88565b6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b158015611d2757600080fd5b505af1158015611d3b573d6000803e3d6000fd5b50506006546040805163031e79db60e41b81526001600160a01b039283166004820152905191851693506331e79db0925060248082019260009290919082900301818387803b158015611d8d57600080fd5b505af1158015611da1573d6000803e3d6000fd5b50506040805163031e79db60e41b815261dead600482015290516001600160a01b03851693506331e79db09250602480830192600092919082900301818387803b158015611dee57600080fd5b505af1158015611e02573d6000803e3d6000fd5b50506040805163031e79db60e41b815260006004820181905291516001600160a01b03861694506331e79db093506024808301939282900301818387803b158015611e4c57600080fd5b505af1158015611e60573d6000803e3d6000fd5b50506008546040516001600160a01b03918216935090851691507f90c7d74461c613da5efa97d90740869367d74ab3aa5837aa4ae9a975f954b7a890600090a3600880546001600160a01b0319166001600160a01b039290921691909117905550565b611ecb612957565b6001600160a01b0316611edc611f88565b6001600160a01b031614611f25576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b600980546001600160a01b0319166001600160a01b038381169182179092556008546040805163f8cf31cb60e01b815260048101939093525192169163f8cf31cb9160248082019260009290919082900301818387803b158015610eab57600080fd5b60055461010090046001600160a01b031690565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c9d5780601f10610c7257610100808354040283529160200191610c9d565b600c5481565b61200b612957565b6001600160a01b031661201c611f88565b6001600160a01b031614612065576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b6007546001600160a01b03838116911614156120b25760405162461bcd60e51b815260040180806020018281038252604a815260200180613a6a604a913960600191505060405180910390fd5b6120bc8282613039565b5050565b60125481565b60085460408051631bc9e27b60e21b815290516000926001600160a01b031691636f2789ec916004808301926020929190829003018186803b158015610dc157600080fd5b6000610cbb612118612957565b84610d5e85604051806060016040528060258152602001613cb66025913960016000612142612957565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff612f4116565b600854604080516302a2e74960e61b81526001600160a01b0384811660048301529151600093929092169163a8b9d24091602480820192602092909190829003018186803b15801561166e57600080fd5b6000610cbb6121d7612957565b8484612a47565b6121e6612957565b6001600160a01b03166121f7611f88565b6001600160a01b031614612240576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b600061224a611f88565b6040805160008152602081019182905280516001600160a01b039390931692859290819081908082805b602083106122935780518252601f199092019160209182019101612274565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146122f5576040519150601f19603f3d011682016040523d82523d6000602084013e6122fa565b606091505b50509050806120bc576040805162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015290519081900360640190fd5b600080600080600080600080600860009054906101000a90046001600160a01b03166001600160a01b031663fbcbc0f18a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b031681526020019150506101006040518083038186803b1580156123be57600080fd5b505afa1580156123d2573d6000803e3d6000fd5b505050506040513d6101008110156123e957600080fd5b508051602082015160408301516060840151608085015160a086015160c087015160e090970151959e50939c50919a509850965094509092509050919395975091939597565b60146020526000908152604090205460ff1681565b61244c612957565b6001600160a01b031661245d611f88565b6001600160a01b0316146124a6576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b6001600160a01b03821660009081526013602052604090205460ff16151581151514156125045760405162461bcd60e51b8152600401808060200182810382526031815260200180613a396031913960400191505060405180910390fd5b6001600160a01b038216600081815260136020908152604091829020805460ff1916851515908117909155825190815291517f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df79281900390910190a25050565b61256c612957565b6001600160a01b031661257d611f88565b6001600160a01b0316146125c6576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b60005b825181101561261d5781601360008584815181106125e357fe5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790556001016125c9565b507f7fdaf542373fa84f4ee8d662c642f44e4c2276a217d7d29e548b6eb29a233b358282604051808060200183151515158152602001828103825284818151815260200191508051906020019060200280838360005b8381101561268b578181015183820152602001612673565b50505050905001935050505060405180910390a15050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600a5481565b6008546040805163039e107b60e61b815290516000926001600160a01b03169163e7841ec0916004808301926020929190829003018186803b158015610dc157600080fd5b612721612957565b6001600160a01b0316612732611f88565b6001600160a01b03161461277b576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b6008546040805163e98030c760e01b81526004810184905290516001600160a01b039092169163e98030c79160248082019260009290919082900301818387803b158015610eab57600080fd5b600b5481565b6009546001600160a01b031681565b600080600080600080600080600860009054906101000a90046001600160a01b03166001600160a01b0316635183d6fd8a6040518263ffffffff1660e01b8152600401808281526020019150506101006040518083038186803b1580156123be57600080fd5b61284b612957565b6001600160a01b031661285c611f88565b6001600160a01b0316146128a5576040805162461bcd60e51b81526020600482018190526024820152600080516020613bde833981519152604482015290519081900360640190fd5b6001600160a01b0381166128ea5760405162461bcd60e51b81526004018080602001828103825260268152602001806139f16026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600d5481565b3390565b6001600160a01b0383166129a05760405162461bcd60e51b8152600401808060200182810382526024815260200180613c5e6024913960400191505060405180910390fd5b6001600160a01b0382166129e55760405162461bcd60e51b8152600401808060200182810382526022815260200180613a176022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316612a8c5760405162461bcd60e51b8152600401808060200182810382526025815260200180613c396025913960400191505060405180910390fd5b6001600160a01b038216612ad15760405162461bcd60e51b81526004018080602001828103825260238152602001806139ce6023913960400191505060405180910390fd5b80612ae757612ae283836000613167565b612f3c565b6000612af230611787565b600a5490915081108015908190612b135750600754600160a01b900460ff16155b8015612b3857506001600160a01b03851660009081526014602052604090205460ff16155b8015612b5d5750612b47611f88565b6001600160a01b0316856001600160a01b031614155b8015612b825750612b6c611f88565b6001600160a01b0316846001600160a01b031614155b15612c8a576007805460ff60a01b1916600160a01b179055600e54600c54600091612bc491612bb890869063ffffffff6132ce16565b9063ffffffff61332716565b90506000612be3600e54612bb8600d54876132ce90919063ffffffff16565b9050612bee8261338e565b6040805163a9059cbb60e01b815261dead6004820152602481018390529051309163a9059cbb9160448083019260209291908290030181600087803b158015612c3657600080fd5b505af1158015612c4a573d6000803e3d6000fd5b505050506040513d6020811015612c6057600080fd5b5060009050612c6e30611787565b9050612c7981613428565b50506007805460ff60a01b19169055505b6001600160a01b03841660009081526014602052604081205460ff1615612cb357506001612cb7565b5060005b6001600160a01b03861660009081526013602052604090205460ff1680612cf657506001600160a01b03851660009081526013602052604090205460ff165b15612cff575060005b8015612d42576000612d216064612bb8600e54886132ce90919063ffffffff16565b9050612d33858263ffffffff6135df16565b9450612d40873083613167565b505b612d4d868686613167565b6008546001600160a01b031663e30443bc87612d6881611787565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015612db757600080fd5b505af1925050508015612dc8575060015b506008546001600160a01b031663e30443bc86612de481611787565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015612e3357600080fd5b505af1925050508015612e44575060015b50600754600160a01b900460ff1661161557601254600854604080516001624d3b8760e01b031981526004810184905290516001600160a01b039092169163ffb2c479916024808201926060929091908290030181600087803b158015612eaa57600080fd5b505af1925050508015612ede57506040513d6060811015612eca57600080fd5b508051602082015160409092015190919060015b612ee757612f37565b604080518481526020810184905280820183905260608101869052905132916001917fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989181900360800190a35050505b505050505b505050565b60008184841115612fd05760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612f95578181015183820152602001612f7d565b50505050905090810190601f168015612fc25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015613032576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03821660009081526014602052604090205460ff16151581151514156130975760405162461bcd60e51b815260040180806020018281038252603f815260200180613ab4603f913960400191505060405180910390fd5b6001600160a01b0382166000908152601460205260409020805460ff1916821580159190911790915561312b576008546040805163031e79db60e41b81526001600160a01b038581166004830152915191909216916331e79db091602480830192600092919082900301818387803b15801561311257600080fd5b505af1158015613126573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b0383166131ac5760405162461bcd60e51b8152600401808060200182810382526025815260200180613c396025913960400191505060405180910390fd5b6001600160a01b0382166131f15760405162461bcd60e51b81526004018080602001828103825260238152602001806139ce6023913960400191505060405180910390fd5b6131fc838383612f3c565b61323f81604051806060016040528060268152602001613af3602691396001600160a01b038616600090815260208190526040902054919063ffffffff612f4116565b6001600160a01b038085166000908152602081905260408082209390935590841681522054613274908263ffffffff612fd816565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000826132dd57506000610cbf565b828202828482816132ea57fe5b04146130325760405162461bcd60e51b8152600401808060200182810382526021815260200180613b956021913960400191505060405180910390fd5b600080821161337d576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161338657fe5b049392505050565b60006133a182600263ffffffff61332716565b905060006133b5838363ffffffff6135df16565b9050476133c18361363c565b4760006133d4828463ffffffff6135df16565b90506133e085826137ce565b604080518681526020810183905280820186905290517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a1505050505050565b6134318161389f565b600954604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561347c57600080fd5b505afa158015613490573d6000803e3d6000fd5b505050506040513d60208110156134a657600080fd5b50516009546008546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018590529051939450600093919092169163a9059cbb91604480830192602092919082900301818787803b15801561350657600080fd5b505af115801561351a573d6000803e3d6000fd5b505050506040513d602081101561353057600080fd5b505190508015612f3c57600854604080516301d4c84960e31b81526004810185905290516001600160a01b0390921691630ea642489160248082019260009290919082900301818387803b15801561358757600080fd5b505af115801561359b573d6000803e3d6000fd5b5050604080518681526020810186905281517f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc39450908190039091019150a1505050565b600082821115613636576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6040805160028082526060808301845292602083019080388339019050509050308160008151811061366a57fe5b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b1580156136be57600080fd5b505afa1580156136d2573d6000803e3d6000fd5b505050506040513d60208110156136e857600080fd5b50518151829060019081106136f957fe5b6001600160a01b03928316602091820292909201015260065461371f913091168461295b565b60065460405163791ac94760e01b8152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a487015287516001600160a01b039097169663791ac947968a968a9594939092909160c40190602080880191028083838b5b838110156137a557818101518382015260200161378d565b505050509050019650505050505050600060405180830381600087803b15801561160157600080fd5b6006546137e69030906001600160a01b03168461295b565b6006546040805163f305d71960e01b815230600482015260248101859052600060448201819052606482015261dead60848201524260a482015290516001600160a01b039092169163f305d71991849160c480830192606092919082900301818588803b15801561385657600080fd5b505af115801561386a573d6000803e3d6000fd5b50505050506040513d606081101561388157600080fd5b5080516020820151604090920151601155601091909155600f555050565b6040805160038082526080820190925260609160208201838038833901905050905030816000815181106138cf57fe5b6001600160a01b0392831660209182029290920101526009548251911690829060029081106138fa57fe5b6001600160a01b039283166020918202929092010152600654613920913091168461295b565b600654604051635c11d79560e01b8152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a487015287516001600160a01b0390971696635c11d795968a968a9594939092909160c40190602087810191028083838b83156137a557818101518382015260200161378d56fe44546573743a2054686520726f7574657220616c7265616479206861732074686174206164647265737345524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737344546573743a204163636f756e7420697320616c7265616479207468652076616c7565206f6620276578636c756465642744546573743a205468652044546573742d424e4220706169722063616e6e6f742062652072656d6f7665642066726f6d206175746f6d617465644d61726b65744d616b6572506169727344546573743a204175746f6d61746564206d61726b6574206d616b6572207061697220697320616c72656164792073657420746f20746861742076616c756545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636544546573743a20546865206e6577206469766964656e6420747261636b6572206d757374206265206f776e65642062792074686520445465737420746f6b656e20636f6e747261637444546573743a2043616e6e6f742075706461746520676173466f7250726f63657373696e6720746f2073616d652076616c7565536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657244546573743a20676173466f7250726f63657373696e67206d757374206265206265747765656e203230302c30303020616e64203530302c30303045524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737344546573743a20546865206469766964656e6420747261636b657220616c7265616479206861732074686174206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220c94ad5b52c1c0cbb564c8f898434f139e77d3a3fedd19815713385b44b0926f064736f6c63430006020033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.