Contract 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e1

 

Contract Overview

Balance:
0.063597246215294489 MATIC

MATIC Value:
$0.03 (@ $0.46/MATIC)

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xf5ebec91acf4ebea092ec2ce967b54fa19f66189ffb72d65d04049b730d1a0e8Approve262988772022-03-24 8:11:1799 days 21 hrs ago0x961a92470e7c00c50a98636069f446df5228d542 IN  0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10 MATIC0.002798875973 60.123646111
0xdf10da7cac71496e4cfef4ffd28bc29c5cbd569a9897ba3178d74eb876067206Transfer260341182022-03-17 9:03:34106 days 20 hrs ago0x1e9f72c28b227cbb56577dc6f693b95237ac0bfe IN  0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10 MATIC0.000755734354 32.50749976
0x4445756e8ee50d4640573645ede09c9013e277c0f3dd577182c6209b7ea3ae0dTransfer260341122022-03-17 9:03:22106 days 20 hrs ago0x1e9f72c28b227cbb56577dc6f693b95237ac0bfe IN  0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10 MATIC0.000745905088 32.084699281
0xb2b44911b8cbe66e7d5f26abc0a95b620cd3f85628ae43b7972f40154cd43c5bTransfer260341032022-03-17 9:03:00106 days 20 hrs ago0x1e9f72c28b227cbb56577dc6f693b95237ac0bfe IN  0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10 MATIC0.000764213447 32.872223296
0x0ac85a12d1eb62ac040daff4d73c262fb861b9bd9db5e98bdfebb1042ef6c642Transfer250161662022-02-16 16:39:22135 days 13 hrs ago0x1e9f72c28b227cbb56577dc6f693b95237ac0bfe IN  0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10 MATIC0.00076671904 32.980000011
0xeb3584aa23afcb0ae80219ee6b9eab311d94a84a4e1c5828fa4252dde56955e9Approve247121342022-02-08 22:45:23143 days 7 hrs ago0x1e9f72c28b227cbb56577dc6f693b95237ac0bfe IN  0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10 MATIC0.000124177511 2.667501112
0x3a8794f34b197c0f53049fe4efded07a7d0bfd061e89ade94ef73c2be36449ebTransfer219940072021-12-01 1:07:32213 days 4 hrs ago0x4d8e2e666a4aeb0a192d3f932613f2f394045e82 IN  0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10.1 MATIC0.0010541730
0x7695509d71ac1ead31a6d84f7ff9269c862f43d802dc33098d33a97465f4a91dTransfer211766452021-11-09 17:17:51234 days 12 hrs ago0x4d8e2e666a4aeb0a192d3f932613f2f394045e82 IN  0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10.1 MATIC0.0010541730
0x7cd34f4b29e1b35fc22ba3590b61a534fa620b4344a8c88e45e3a55a7e2b6759Transfer211764462021-11-09 17:10:57234 days 12 hrs ago0x46ff7626a5abed2f518bc3ec1261efd503683eb0 IN  0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10.01 MATIC0.0020801730
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x86f1d6f59b7ba2bc399655cfe7798cb4ee08ea95bd1d2fbfebe41284aab81e9a297032982022-06-18 5:31:5414 days 18 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10x70e0febce697ea77098d910517bf2d1565edcc4f0.018217703917507142 MATIC
0x86f1d6f59b7ba2bc399655cfe7798cb4ee08ea95bd1d2fbfebe41284aab81e9a297032982022-06-18 5:31:5414 days 18 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10x229951bdf3b0e1dbff7b13d537a2732f5ec8020c0.000910885195875357 MATIC
0x86f1d6f59b7ba2bc399655cfe7798cb4ee08ea95bd1d2fbfebe41284aab81e9a297032982022-06-18 5:31:5414 days 18 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10x59a321796200e2149cc408e5bf2e11fb6a4bde1a0.000910885195875357 MATIC
0x86f1d6f59b7ba2bc399655cfe7798cb4ee08ea95bd1d2fbfebe41284aab81e9a297032982022-06-18 5:31:5414 days 18 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10x543607ad6bfba407e801a4386d25f45da509b5e20.000910885195875357 MATIC
0x86f1d6f59b7ba2bc399655cfe7798cb4ee08ea95bd1d2fbfebe41284aab81e9a297032982022-06-18 5:31:5414 days 18 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10x9d59e01015aa98ef79bba92384d557cad64230670.000910885195875357 MATIC
0x86f1d6f59b7ba2bc399655cfe7798cb4ee08ea95bd1d2fbfebe41284aab81e9a297032982022-06-18 5:31:5414 days 18 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10x9ec96ccc785683268164b1260c75580fc9d8387a0.09108851958753571 MATIC
0x86f1d6f59b7ba2bc399655cfe7798cb4ee08ea95bd1d2fbfebe41284aab81e9a297032982022-06-18 5:31:5414 days 18 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10x9a32136329bb6ef23719161fb2422983b6584dfd0.000783361268452807 MATIC
0x86f1d6f59b7ba2bc399655cfe7798cb4ee08ea95bd1d2fbfebe41284aab81e9a297032982022-06-18 5:31:5414 days 18 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10x8c2e4af48b1e55251de06b2fe9c9717a46a132a30.000783361268452807 MATIC
0x86f1d6f59b7ba2bc399655cfe7798cb4ee08ea95bd1d2fbfebe41284aab81e9a297032982022-06-18 5:31:5414 days 18 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10x532ee4b1d13441bb846a8e6380a0858bc2c9a2450.000783361268452807 MATIC
0x86f1d6f59b7ba2bc399655cfe7798cb4ee08ea95bd1d2fbfebe41284aab81e9a297032982022-06-18 5:31:5414 days 18 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10x98365b793b5225a2b5cd315ce5890149d2540a760.001914677666431175 MATIC
0x86f1d6f59b7ba2bc399655cfe7798cb4ee08ea95bd1d2fbfebe41284aab81e9a297032982022-06-18 5:31:5414 days 18 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10x5a75815c5d53ed0f72fa2af8f96e0b25afc6b0490.000008999940296832 MATIC
0x86f1d6f59b7ba2bc399655cfe7798cb4ee08ea95bd1d2fbfebe41284aab81e9a297032982022-06-18 5:31:5414 days 18 mins ago 0xe8e96dc55573f308074569521e37f3bd532d2e9d 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10.02604708220622201 MATIC
0x7f1b925fb9020daf6826b33777016d467b8030e8bf453205ea4a1b499898df92297032692022-06-18 5:30:5214 days 19 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10x627306090abab3a6e1400e9345bc60c78a8bef570.00000000009050823 MATIC
0x7f1b925fb9020daf6826b33777016d467b8030e8bf453205ea4a1b499898df92297032692022-06-18 5:30:5214 days 19 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10xf48b175bdf5930d71dfc049ac98b76c1bfe9660c0.029686699536601231 MATIC
0x7f1b925fb9020daf6826b33777016d467b8030e8bf453205ea4a1b499898df92297032692022-06-18 5:30:5214 days 19 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10x697819d4a56d4b531bfeba56b2ff8ecee4c5759c0.014043546559792409 MATIC
0x7f1b925fb9020daf6826b33777016d467b8030e8bf453205ea4a1b499898df92297032692022-06-18 5:30:5214 days 19 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10xd4a94f83d6c47f9d7f104fa65be3ba5c05eeb2960.007998401746957224 MATIC
0x7f1b925fb9020daf6826b33777016d467b8030e8bf453205ea4a1b499898df92297032692022-06-18 5:30:5214 days 19 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10x5a75815c5d53ed0f72fa2af8f96e0b25afc6b0490.000109899696842652 MATIC
0x7f1b925fb9020daf6826b33777016d467b8030e8bf453205ea4a1b499898df92297032692022-06-18 5:30:5214 days 19 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e1 0xe1b7086ca4c0ec7046b19b9014ae8e886ae31e220.000438273964171563 MATIC
0x7f1b925fb9020daf6826b33777016d467b8030e8bf453205ea4a1b499898df92297032692022-06-18 5:30:5214 days 19 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e1 0x98d22a6813065cc2d51f3bb0a90fdd8b79061fa50.000109388784492171 MATIC
0x7f1b925fb9020daf6826b33777016d467b8030e8bf453205ea4a1b499898df92297032692022-06-18 5:30:5214 days 19 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10x8acd6755c2da71d778c3b6793f6ad6fafe29a2440.04449040605680878 MATIC
0x7f1b925fb9020daf6826b33777016d467b8030e8bf453205ea4a1b499898df92297032692022-06-18 5:30:5214 days 19 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e1 0x54efcf12f5cdb86c6eb5c3b50e5d00cabfcefdd80.000109334395760885 MATIC
0x7f1b925fb9020daf6826b33777016d467b8030e8bf453205ea4a1b499898df92297032692022-06-18 5:30:5214 days 19 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10xeb5663f9dab0548eba712e33f850358d3cfbf6da0.001110725025821182 MATIC
0x7f1b925fb9020daf6826b33777016d467b8030e8bf453205ea4a1b499898df92297032692022-06-18 5:30:5214 days 19 mins ago 0xe8e96dc55573f308074569521e37f3bd532d2e9d 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10.016355269585411404 MATIC
0xfb78ba2bbfec76169b53e69b9441818df4755264823b47e85124886a936ca35a297032172022-06-18 5:29:0414 days 21 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e1 0xe7af6e182edd42e5ede47ec1b3044531e865c9690.00002420037534742 MATIC
0xfb78ba2bbfec76169b53e69b9441818df4755264823b47e85124886a936ca35a297032172022-06-18 5:29:0414 days 21 mins ago 0xee578e0e4a1400790e9d2ffc1b133e074bbdb4e10x26bf67a87e80bcbc2ae2fe239c11ca735a8b2a2d0.017795667412817874 MATIC
[ Download CSV Export 
Loading
This contract contains unverified libraries: IterableMapping
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
HYPERMATICDividendTracker

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-11-09
*/

// HYPERMATIC on MATIC
// https://hypermatic.org/
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

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

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

// SafeMathUint.sol start
/**
 * @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;
  }
}
// SafeMathUint.sol end

// SafeMathInt.sol start
/*
MIT License

Copyright (c) 2018 requestnetwork
Copyright (c) 2018 Fragments, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
/**
 * @title SafeMathInt
 * @dev Math operations for int256 with overflow safety checks.
 */
library SafeMathInt {
    int256 private constant MIN_INT256 = int256(1) << 255;
    int256 private constant MAX_INT256 = ~(int256(1) << 255);

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

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

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

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

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

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

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


    function toUint256Safe(int256 a) internal pure returns (uint256) {
        require(a >= 0);
        return uint256(a);
    }
}
// SafeMathInt.sol end

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

// Ownable.sol start
contract Ownable is Context {
    address private _owner;

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

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

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

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

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

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

// IUniswapV2Router.sol start
interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

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

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

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

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

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

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

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

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

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

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

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

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

    function initialize(address, address) external;
}
// IUniswapV2Pair.sol end

// IUniswapV2Factory.sol start
interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

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

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

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

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}
// IUniswapV2Factory.sol end

// IterableMapping.sol start
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();
    }
}
// IterableMapping.sol end

// IERC20.sol start
/**
 * @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);
}
// IERC20.sol end

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

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

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

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

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

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

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

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

// DividendPayingTokenOptionalInterface.sol start
/// @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);
}
// DividendPayingTokenOptionalInterface.sol end

// DividendPayingTokenInterface.sol start
/// @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
  );
}
// DividendPayingTokenInterface.sol end

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

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

    uint256 internal magnifiedDividendPerShare;

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

    uint256 public totalDividendsDistributed;

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

    }

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

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

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

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

/// @notice 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,) = user.call{value: _withdrawableDividend, gas: 3000}("");

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

return _withdrawableDividend;
}

return 0;
}


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

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

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


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

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

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

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

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

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

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

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

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



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

    IUniswapV2Router02 public uniswapV2Router;
    address public  uniswapV2Pair;

    bool private swapping;

    HYPERMATICDividendTracker public dividendTracker;

    address public deadWallet = 0x000000000000000000000000000000000000dEaD;

    uint256 public swapTokensAtAmount = 2000000 * (10**18);

    mapping(address => bool) public _isBlacklisted;

    uint256 public MATICRewardsFee = 8;
    uint256 public liquidityFee = 3;
    uint256 public marketingFee = 3;
    uint256 public totalFees = MATICRewardsFee.add(liquidityFee).add(marketingFee);

    address public _marketingWalletAddress = 0x6C1739456c14f0c1935a68D4ACb94Eb07cE18B0B;



    // 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;
     // exlcude from fees and max transaction amount during trades
    mapping (address => bool) private _isExcludedFromFeesDuringTrades;


    // 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, bool isExcludedDuringTrades);
    event ExcludeMultipleAccountsFromFees(address[] accounts, bool isExcluded, bool isExcludedDuringTrades);

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

    constructor() public ERC20("HYPERMATIC", "HYPERMATIC") {

    	dividendTracker = new HYPERMATICDividendTracker();


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

        uniswapV2Router = _uniswapV2Router;
        uniswapV2Pair = _uniswapV2Pair;

        _setAutomatedMarketMakerPair(_uniswapV2Pair, true);

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

        // exclude from paying fees or having max transaction amount
        excludeFromFees(owner(), true, true);
        excludeFromFees(_marketingWalletAddress, true, true);
        excludeFromFees(address(this), true, true);

        /*
            _mint is an internal function in ERC20.sol that is only called here,
            and CANNOT be called ever again
        */
        _mint(owner(), 100000000000000000 * (10**18));
    }

    receive() external payable {

  	}

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

        HYPERMATICDividendTracker newDividendTracker = HYPERMATICDividendTracker(payable(newAddress));

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

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

        emit UpdateDividendTracker(newAddress, address(dividendTracker));

        dividendTracker = newDividendTracker;
    }

    function updateUniswapV2Router(address newAddress) public onlyOwner {
        require(newAddress != address(uniswapV2Router), "HYPERMATIC: The router already has that address");
        emit UpdateUniswapV2Router(newAddress, address(uniswapV2Router));
        uniswapV2Router = IUniswapV2Router02(newAddress);

        IUniswapV2Factory factory = IUniswapV2Factory(
            uniswapV2Router.factory()
        );

        address _uniswapV2Pair = factory.getPair(
            address(this),
            uniswapV2Router.WETH()
        );

        if (_uniswapV2Pair == address(0)) {
            _uniswapV2Pair = factory.createPair(
                address(this),
                uniswapV2Router.WETH()
            );
        }

        uniswapV2Pair = _uniswapV2Pair;

        if (!automatedMarketMakerPairs[uniswapV2Pair]) {
            _setAutomatedMarketMakerPair(uniswapV2Pair, true);
        }
        if (!dividendTracker.excludedFromDividends(address(uniswapV2Router))) {
            dividendTracker.excludeFromDividends(address(uniswapV2Router));
        }
    }

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

        emit ExcludeFromFees(account, excluded, excludedFromTrades);
    }

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

        emit ExcludeMultipleAccountsFromFees(accounts, excluded, excludedFromTrades);
    }

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

    function setMATICRewardsFee(uint256 value) external onlyOwner{
        MATICRewardsFee = value;
        totalFees = MATICRewardsFee.add(liquidityFee).add(marketingFee);
    }

    function setLiquiditFee(uint256 value) external onlyOwner{
        liquidityFee = value;
        totalFees = MATICRewardsFee.add(liquidityFee).add(marketingFee);
    }

    function setMarketingFee(uint256 value) external onlyOwner{
        marketingFee = value;
        totalFees = MATICRewardsFee.add(liquidityFee).add(marketingFee);

    }


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

        _setAutomatedMarketMakerPair(pair, value);
    }

    function blacklistAddress(address account, bool value) external onlyOwner{
        _isBlacklisted[account] = value;
    }


    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        require(automatedMarketMakerPairs[pair] != value, "HYPERMATIC: 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, "HYPERMATIC: gasForProcessing must be between 200,000 and 500,000");
        require(newValue != gasForProcessing, "HYPERMATIC: 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 isExcludedFromFeesDuringTrades(address account) public view returns(bool) {
        return _isExcludedFromFeesDuringTrades[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 {
		dividendTracker.processAccount(msg.sender, false);
    }

    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");
        require(!_isBlacklisted[from] && !_isBlacklisted[to], 'Blacklisted 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 marketingTokens = contractTokenBalance.mul(marketingFee).div(totalFees);
            swapAndSendToFee(marketingTokens);

            uint256 swapTokens = contractTokenBalance.mul(liquidityFee).div(totalFees);
            swapAndLiquify(swapTokens);

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

            swapping = false;
        }


        bool takeFee = !swapping;

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

        if(takeFee) {
        	uint256 fees = amount.mul(totalFees).div(100);
        	if(automatedMarketMakerPairs[to]){
        	    fees += amount.mul(1).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 {}
        try dividendTracker.setBalance(payable(to), balanceOf(to)) {} catch {}

        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 {

	    	}
        }
    }

    function swapAndSendToFee(uint256 tokens) private  {

        uint256 initialBalance = address(this).balance;

        swapTokensForEth(tokens);
        uint256 newBalance = address(this).balance.sub(initialBalance);
        payable(_marketingWalletAddress).transfer(newBalance);
    }

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

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

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

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

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

        emit SwapAndLiquify(half, newBalance, 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 addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {

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

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

    }

    function swapAndSendDividends(uint256 tokens) private{
       swapTokensForEth(tokens);
        uint256 dividends = address(this).balance;
        (bool success,) = address(dividendTracker).call{value: dividends}("");

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

contract HYPERMATICDividendTracker 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 immutable 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("HYPERMATIC_Dividen_Tracker", "HYPERMATIC_Dividend_Tracker") {
    	claimWait = 3600;
        minimumTokenBalanceForDividends = 200000 * (10**18); //must hold 200000+ tokens
    }

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

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

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

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

    	emit ExcludeFromDividends(account);
    }

    function updateClaimWait(uint256 newClaimWait) external onlyOwner {
        require(newClaimWait >= 3600 && newClaimWait <= 86400, "HYPERMATIC_Dividend_Tracker: claimWait must be updated to between 1 and 24 hours");
        require(newClaimWait != claimWait, "HYPERMATIC_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;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"bool","name":"autoMATIC","type":"bool"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"oldValue","type":"uint256"}],"name":"ClaimWaitUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"DividendWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"DividendsDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"ExcludeFromDividends","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"accumulativeDividendOf","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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimWait","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeDividends","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"dividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedFromDividends","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getAccount","outputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"int256","name":"index","type":"int256"},{"internalType":"int256","name":"iterationsUntilProcessed","type":"int256"},{"internalType":"uint256","name":"withdrawableDividends","type":"uint256"},{"internalType":"uint256","name":"totalDividends","type":"uint256"},{"internalType":"uint256","name":"lastClaimTime","type":"uint256"},{"internalType":"uint256","name":"nextClaimTime","type":"uint256"},{"internalType":"uint256","name":"secondsUntilAutoClaimAvailable","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getAccountAtIndex","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":"getLastProcessedIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfTokenHolders","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaimTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastProcessedIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumTokenBalanceForDividends","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":"process","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"bool","name":"autoMATIC","type":"bool"}],"name":"processAccount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"setBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDividendsDistributed","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":[{"internalType":"uint256","name":"newClaimWait","type":"uint256"}],"name":"updateClaimWait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawDividend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"withdrawnDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040523480156200001157600080fd5b506040518060400160405280601a81526020017f48595045524d415449435f4469766964656e5f547261636b65720000000000008152506040518060400160405280601b81526020017f48595045524d415449435f4469766964656e645f547261636b6572000000000081525081816000620000926200012660201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508151620000f19060049060208501906200012a565b508051620001079060059060208401906200012a565b5050610e106011555050692a5a058fc295ed00000060805250620001c6565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200016d57805160ff19168380011785556200019d565b828001600101855582156200019d579182015b828111156200019d57825182559160200191906001019062000180565b50620001ab929150620001af565b5090565b5b80821115620001ab5760008155600101620001b0565b608051612226620001e660003980611144528061121152506122266000f3fe6080604052600436106102085760003560e01c8063715018a611610118578063bc4c4b37116100a0578063e7841ec01161006f578063e7841ec0146107d0578063e98030c7146107e5578063f2fde38b1461080f578063fbcbc0f114610842578063ffb2c4791461087557610217565b8063bc4c4b371461070c578063be10b61414610747578063dd62ed3e1461075c578063e30443bc1461079757610217565b806395d89b41116100e757806395d89b411461061f578063a457c2d714610634578063a8b9d2401461066d578063a9059cbb146106a0578063aafd847a146106d957610217565b8063715018a61461059157806385a6b3ae146105a65780638da5cb5b146105bb57806391b89fba146105ec57610217565b80633009a6091161019b5780634e7b827f1161016a5780634e7b827f1461048c5780635183d6fd146104bf5780636a474002146105345780636f2789ec1461054957806370a082311461055e57610217565b80633009a609146103e0578063313ce567146103f557806331e79db014610420578063395093511461045357610217565b806318160ddd116101d757806318160ddd14610322578063226cfa3d1461033757806323b872dd1461036a57806327ce0147146103ad57610217565b806303c833021461021c57806306fdde0314610224578063095ea7b3146102ae57806309bbedde146102fb57610217565b36610217576102156108bd565b005b600080fd5b6102156108bd565b34801561023057600080fd5b5061023961094e565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027357818101518382015260200161025b565b50505050905090810190601f1680156102a05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102ba57600080fd5b506102e7600480360360408110156102d157600080fd5b506001600160a01b0381351690602001356109e4565b604080519115158252519081900360200190f35b34801561030757600080fd5b50610310610a02565b60408051918252519081900360200190f35b34801561032e57600080fd5b50610310610a08565b34801561034357600080fd5b506103106004803603602081101561035a57600080fd5b50356001600160a01b0316610a0e565b34801561037657600080fd5b506102e76004803603606081101561038d57600080fd5b506001600160a01b03813581169160208101359091169060400135610a20565b3480156103b957600080fd5b50610310600480360360208110156103d057600080fd5b50356001600160a01b0316610aa7565b3480156103ec57600080fd5b50610310610b06565b34801561040157600080fd5b5061040a610b0c565b6040805160ff9092168252519081900360200190f35b34801561042c57600080fd5b506102156004803603602081101561044357600080fd5b50356001600160a01b0316610b11565b34801561045f57600080fd5b506102e76004803603604081101561047657600080fd5b506001600160a01b038135169060200135610c6d565b34801561049857600080fd5b506102e7600480360360208110156104af57600080fd5b50356001600160a01b0316610cbb565b3480156104cb57600080fd5b506104e9600480360360208110156104e257600080fd5b5035610cd0565b604080516001600160a01b0390991689526020890197909752878701959095526060870193909352608086019190915260a085015260c084015260e083015251908190036101000190f35b34801561054057600080fd5b50610215610e2f565b34801561055557600080fd5b50610310610e66565b34801561056a57600080fd5b506103106004803603602081101561058157600080fd5b50356001600160a01b0316610e6c565b34801561059d57600080fd5b50610215610e87565b3480156105b257600080fd5b50610310610f29565b3480156105c757600080fd5b506105d0610f2f565b604080516001600160a01b039092168252519081900360200190f35b3480156105f857600080fd5b506103106004803603602081101561060f57600080fd5b50356001600160a01b0316610f3e565b34801561062b57600080fd5b50610239610f49565b34801561064057600080fd5b506102e76004803603604081101561065757600080fd5b506001600160a01b038135169060200135610faa565b34801561067957600080fd5b506103106004803603602081101561069057600080fd5b50356001600160a01b0316611012565b3480156106ac57600080fd5b506102e7600480360360408110156106c357600080fd5b506001600160a01b03813516906020013561103e565b3480156106e557600080fd5b50610310600480360360208110156106fc57600080fd5b50356001600160a01b0316611052565b34801561071857600080fd5b506102e76004803603604081101561072f57600080fd5b506001600160a01b038135169060200135151561106d565b34801561075357600080fd5b50610310611142565b34801561076857600080fd5b506103106004803603604081101561077f57600080fd5b506001600160a01b0381358116916020013516611166565b3480156107a357600080fd5b50610215600480360360408110156107ba57600080fd5b506001600160a01b038135169060200135611191565b3480156107dc57600080fd5b5061031061135b565b3480156107f157600080fd5b506102156004803603602081101561080857600080fd5b5035611361565b34801561081b57600080fd5b506102156004803603602081101561083257600080fd5b50356001600160a01b031661147d565b34801561084e57600080fd5b506104e96004803603602081101561086557600080fd5b50356001600160a01b0316611575565b34801561088157600080fd5b5061089f6004803603602081101561089857600080fd5b50356116e8565b60408051938452602084019290925282820152519081900360600190f35b60006108c7610a08565b116108d157600080fd5b341561094c576109026108e2610a08565b6108f034600160801b6117e6565b816108f757fe5b600654919004611846565b60065560408051348152905133917fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d78454116511919081900360200190a26009546109489034611846565b6009555b565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109da5780601f106109af576101008083540402835291602001916109da565b820191906000526020600020905b8154815290600101906020018083116109bd57829003601f168201915b5050505050905090565b60006109f86109f16118a0565b84846118a4565b5060015b92915050565b600a5490565b60035490565b60106020526000908152604090205481565b6000610a2d848484611990565b610a9d84610a396118a0565b610a988560405180606001604052806028815260200161210e602891396001600160a01b038a16600090815260026020526040812090610a776118a0565b6001600160a01b0316815260208101919091526040016000205491906119c7565b6118a4565b5060019392505050565b6001600160a01b038116600090815260076020526040812054600160801b90610af690610af190610aeb610ae6610add88610e6c565b600654906117e6565b611a5e565b90611a6e565b611aa1565b81610afd57fe5b0490505b919050565b600e5481565b601290565b610b196118a0565b6000546001600160a01b03908116911614610b69576040805162461bcd60e51b81526020600482018190526024820152600080516020612136833981519152604482015290519081900360640190fd5b6001600160a01b0381166000908152600f602052604090205460ff1615610b8f57600080fd5b6001600160a01b0381166000908152600f60205260408120805460ff19166001179055610bbd908290611ab4565b6040805163131836e760e21b8152600a60048201526001600160a01b0383166024820152905173ea74424e7df8db8176abf500a3a8aee34525b59291634c60db9c916044808301926000929190829003018186803b158015610c1e57600080fd5b505af4158015610c32573d6000803e3d6000fd5b50506040516001600160a01b03841692507fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b259150600090a250565b60006109f8610c7a6118a0565b84610a988560026000610c8b6118a0565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611846565b600f6020526000908152604090205460ff1681565b600080600080600080600080600a73ea74424e7df8db8176abf500a3a8aee34525b59263deb3d89690916040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610d2e57600080fd5b505af4158015610d42573d6000803e3d6000fd5b505050506040513d6020811015610d5857600080fd5b50518910610d7f575060009650600019955085945086935083925082915081905080610e24565b6000600a73ea74424e7df8db8176abf500a3a8aee34525b59263d1aa9e7e90918c6040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b158015610ddb57600080fd5b505af4158015610def573d6000803e3d6000fd5b505050506040513d6020811015610e0557600080fd5b50519050610e1281611575565b98509850985098509850985098509850505b919395975091939597565b60405162461bcd60e51b8152600401808060200182810382526071815260200180611fea6071913960800191505060405180910390fd5b60115481565b6001600160a01b031660009081526001602052604090205490565b610e8f6118a0565b6000546001600160a01b03908116911614610edf576040805162461bcd60e51b81526020600482018190526024820152600080516020612136833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60095481565b6000546001600160a01b031690565b60006109fc82611012565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109da5780601f106109af576101008083540402835291602001916109da565b60006109f8610fb76118a0565b84610a98856040518060600160405280602581526020016121cc6025913960026000610fe16118a0565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906119c7565b6001600160a01b0381166000908152600860205260408120546109fc9061103884610aa7565b90611b0d565b60006109f861104b6118a0565b8484611990565b6001600160a01b031660009081526008602052604090205490565b60006110776118a0565b6000546001600160a01b039081169116146110c7576040805162461bcd60e51b81526020600482018190526024820152600080516020612136833981519152604482015290519081900360640190fd5b60006110d284611b4f565b90508015611138576001600160a01b0384166000818152601060209081526040918290204290558151848152915186151593927fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09292908290030190a360019150506109fc565b5060009392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6111996118a0565b6000546001600160a01b039081169116146111e9576040805162461bcd60e51b81526020600482018190526024820152600080516020612136833981519152604482015290519081900360640190fd5b6001600160a01b0382166000908152600f602052604090205460ff161561120f57611357565b7f000000000000000000000000000000000000000000000000000000000000000081106112c5576112408282611ab4565b60408051632f0ad01760e21b8152600a60048201526001600160a01b038416602482015260448101839052905173ea74424e7df8db8176abf500a3a8aee34525b5929163bc2b405c916064808301926000929190829003018186803b1580156112a857600080fd5b505af41580156112bc573d6000803e3d6000fd5b5050505061134a565b6112d0826000611ab4565b6040805163131836e760e21b8152600a60048201526001600160a01b0384166024820152905173ea74424e7df8db8176abf500a3a8aee34525b59291634c60db9c916044808301926000929190829003018186803b15801561133157600080fd5b505af4158015611345573d6000803e3d6000fd5b505050505b61135582600161106d565b505b5050565b600e5490565b6113696118a0565b6000546001600160a01b039081169116146113b9576040805162461bcd60e51b81526020600482018190526024820152600080516020612136833981519152604482015290519081900360640190fd5b610e1081101580156113ce5750620151808111155b6114095760405162461bcd60e51b815260040180806020018281038252605081526020018061209d6050913960600191505060405180910390fd5b60115481141561144a5760405162461bcd60e51b815260040180806020018281038252604281526020018061205b6042913960600191505060405180910390fd5b60115460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601155565b6114856118a0565b6000546001600160a01b039081169116146114d5576040805162461bcd60e51b81526020600482018190526024820152600080516020612136833981519152604482015290519081900360640190fd5b6001600160a01b03811661151a5760405162461bcd60e51b8152600401808060200182810382526026815260200180611fa26026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600080600080600080600080889750600a73ea74424e7df8db8176abf500a3a8aee34525b5926317e142d190918a6040518363ffffffff1660e01b815260040180838152602001826001600160a01b031681526020019250505060206040518083038186803b1580156115e757600080fd5b505af41580156115fb573d6000803e3d6000fd5b505050506040513d602081101561161157600080fd5b5051965060001995506000871261167557600e5487111561164157600e5461163a908890611c90565b9550611675565b600e54600a5460009110611656576000611665565b600e54600a5461166591611b0d565b90506116718882611a6e565b9650505b61167e88611012565b945061168988610aa7565b6001600160a01b0389166000908152601060205260409020549094509250826116b35760006116c1565b6011546116c1908490611846565b91504282116116d15760006116db565b6116db8242611b0d565b9050919395975091939597565b600a546000908190819080611708575050600e54600092508291506117df565b600e546000805a90506000805b898410801561172357508582105b156117ce57600a54600190950194851061173c57600094505b6000600a600001868154811061174e57fe5b60009182526020808320909101546001600160a01b0316808352601090915260409091205490915061177f90611cc2565b1561179b5761178f81600161106d565b1561179b576001909101905b60019092019160005a9050808511156117c5576117c26117bb8683611b0d565b8790611846565b95505b93506117159050565b600e85905590975095509193505050505b9193909250565b6000826117f5575060006109fc565b8282028284828161180257fe5b041461183f5760405162461bcd60e51b81526004018080602001828103825260218152602001806120ed6021913960400191505060405180910390fd5b9392505050565b60008282018381101561183f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b6001600160a01b0383166118e95760405162461bcd60e51b81526004018080602001828103825260248152602001806121a86024913960400191505060405180910390fd5b6001600160a01b03821661192e5760405162461bcd60e51b8152600401808060200182810382526022815260200180611fc86022913960400191505060405180910390fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60405162461bcd60e51b81526004018080602001828103825260318152602001806121566031913960400191505060405180910390fd5b60008184841115611a565760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611a1b578181015183820152602001611a03565b50505050905090810190601f168015611a485780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081818112156109fc57600080fd5b6000828201818312801590611a835750838112155b80611a985750600083128015611a9857508381125b61183f57600080fd5b600080821215611ab057600080fd5b5090565b6000611abf83610e6c565b905080821115611ae7576000611ad58383611b0d565b9050611ae18482611ce9565b50611355565b80821015611355576000611afb8284611b0d565b9050611b078482611d4d565b50505050565b600061183f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506119c7565b600080611b5b83611012565b90508015611c87576001600160a01b038316600090815260086020526040902054611b869082611846565b6001600160a01b038416600081815260086020908152604091829020939093558051848152905191927fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d92918290030190a26040516000906001600160a01b03851690610bb890849084818181858888f193505050503d8060008114611c28576040519150601f19603f3d011682016040523d82523d6000602084013e611c2d565b606091505b5050905080611c7f576001600160a01b038416600090815260086020526040902054611c599083611b0d565b6001600160a01b0385166000908152600860205260408120919091559250610b01915050565b509050610b01565b50600092915050565b6000818303818312801590611ca55750838113155b80611a985750600083128015611a98575083811361183f57600080fd5b600042821115611cd457506000610b01565b601154611ce14284611b0d565b101592915050565b611cf38282611d91565b611d2d611d0e610ae6836006546117e690919063ffffffff16565b6001600160a01b03841660009081526007602052604090205490611c90565b6001600160a01b0390921660009081526007602052604090209190915550565b611d578282611e83565b611d2d611d72610ae6836006546117e690919063ffffffff16565b6001600160a01b03841660009081526007602052604090205490611a6e565b6001600160a01b038216611dec576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611df860008383611355565b600354611e059082611846565b6003556001600160a01b038216600090815260016020526040902054611e2b9082611846565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216611ec85760405162461bcd60e51b81526004018080602001828103825260218152602001806121876021913960400191505060405180910390fd5b611ed482600083611355565b611f1181604051806060016040528060228152602001611f80602291396001600160a01b03851660009081526001602052604090205491906119c7565b6001600160a01b038316600090815260016020526040902055600354611f379082611b0d565b6003556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3505056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737348595045524d415449435f4469766964656e645f547261636b65723a2077697468647261774469766964656e642064697361626c65642e20557365207468652027636c61696d272066756e6374696f6e206f6e20746865206d61696e2048595045524d4154494320636f6e74726163742e48595045524d415449435f4469766964656e645f547261636b65723a2043616e6e6f742075706461746520636c61696d5761697420746f2073616d652076616c756548595045524d415449435f4469766964656e645f547261636b65723a20636c61696d57616974206d757374206265207570646174656420746f206265747765656e203120616e6420323420686f757273536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657248595045524d415449435f4469766964656e645f547261636b65723a204e6f207472616e736665727320616c6c6f77656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220495e8296ce32a0fa9131dec564fdbf23f12a4a046be9e6fb6da179a59e9e07d464736f6c634300060c0033

Library Used

IterableMapping : 0xea74424e7df8db8176abf500a3a8aee34525b592Unverified

Deployed ByteCode Sourcemap

62239:6686:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39928:21;:19;:21::i;:::-;62239:6686;;;;;40774:338;;;:::i;26193:100::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28360:169;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28360:169:0;;-1:-1:-1;;;;;28360:169:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;64404:119;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;27313:108;;;;;;;;;;;;;:::i;62590:50::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;62590:50:0;-1:-1:-1;;;;;62590:50:0;;:::i;29011:355::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;29011:355:0;;;;;;;;;;;;;;;;;:::i;43532:235::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43532:235:0;-1:-1:-1;;;;;43532:235:0;;:::i;62485:33::-;;;;;;;;;;;;;:::i;27155:93::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;63562:283;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63562:283:0;-1:-1:-1;;;;;63562:283:0;;:::i;29775:218::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29775:218:0;;-1:-1:-1;;;;;29775:218:0;;;;;;:::i;62527:54::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;62527:54:0;-1:-1:-1;;;;;62527:54:0;;:::i;66213:505::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66213:505:0;;:::i;:::-;;;;-1:-1:-1;;;;;66213:505:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63360:194;;;;;;;;;;;;;:::i;62649:24::-;;;;;;;;;;;;;:::i;27484:127::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27484:127:0;-1:-1:-1;;;;;27484:127:0;;:::i;10366:148::-;;;;;;;;;;;;;:::i;39677:40::-;;;;;;;;;;;;;:::i;9724:79::-;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;9724:79:0;;;;;;;;;;;;;;42292:118;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42292:118:0;-1:-1:-1;;;;;42292:118:0;;:::i;26412:104::-;;;;;;;;;;;;;:::i;30496:269::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30496:269:0;;-1:-1:-1;;;;;30496:269:0;;;;;;:::i;42613:162::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42613:162:0;-1:-1:-1;;;;;42613:162:0;;:::i;27824:175::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27824:175:0;;-1:-1:-1;;;;;27824:175:0;;;;;;:::i;42980:123::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42980:123:0;-1:-1:-1;;;;;42980:123:0;;:::i;68579:343::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;68579:343:0;;-1:-1:-1;;;;;68579:343:0;;;;;;;;:::i;62680:56::-;;;;;;;;;;;;;:::i;28062:151::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28062:151:0;;;;;;;;;;:::i;66953:460::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66953:460:0;;-1:-1:-1;;;;;66953:460:0;;;;;;:::i;64291:105::-;;;;;;;;;;;;;:::i;63853:430::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63853:430:0;;:::i;10669:244::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10669:244:0;-1:-1:-1;;;;;10669:244:0;;:::i;64535:1670::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64535:1670:0;-1:-1:-1;;;;;64535:1670:0;;:::i;67421:1150::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;67421:1150:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;40774:338;40847:1;40831:13;:11;:13::i;:::-;:17;40823:26;;;;;;40858:9;:13;40854:255;;40904:77;40965:13;:11;:13::i;:::-;40936:26;40937:9;-1:-1:-1;;;40936:15:0;:26::i;:::-;:42;;;;;40904:25;;;40936:42;;40904:29;:77::i;:::-;40876:25;:105;40989:43;;;41022:9;40989:43;;;;41010:10;;40989:43;;;;;;;;;;41065:25;;:40;;41095:9;41065:29;:40::i;:::-;41037:25;:68;40854:255;40774:338::o;26193:100::-;26280:5;26273:12;;;;;;;;;;;;;-1:-1:-1;;26273:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;26247:13;;26273:12;;26280:5;;26273:12;;;26280:5;26273:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26193:100;:::o;28360:169::-;28443:4;28460:39;28469:12;:10;:12::i;:::-;28483:7;28492:6;28460:8;:39::i;:::-;-1:-1:-1;28517:4:0;28360:169;;;;;:::o;64404:119::-;64488:15;:27;64404:119;:::o;27313:108::-;27401:12;;27313:108;:::o;62590:50::-;;;;;;;;;;;;;:::o;29011:355::-;29151:4;29168:36;29178:6;29186:9;29197:6;29168:9;:36::i;:::-;29215:121;29224:6;29232:12;:10;:12::i;:::-;29246:89;29284:6;29246:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29246:19:0;;;;;;:11;:19;;;;;;29266:12;:10;:12::i;:::-;-1:-1:-1;;;;;29246:33:0;;;;;;;;;;;;-1:-1:-1;29246:33:0;;;;:37;:89::i;:::-;29215:8;:121::i;:::-;-1:-1:-1;29354:4:0;29011:355;;;;;:::o;43532:235::-;-1:-1:-1;;;;;43698:36:0;;43609:7;43698:36;;;:28;:36;;;;;;-1:-1:-1;;;;43628:123:0;;:107;;:63;:48;43658:17;43698:36;43658:9;:17::i;:::-;43628:25;;;:29;:48::i;:::-;:61;:63::i;:::-;:69;;:107::i;:::-;:121;:123::i;:::-;:135;;;;;;43621:142;;43532:235;;;;:::o;62485:33::-;;;;:::o;27155:93::-;27238:2;27155:93;:::o;63562:283::-;9946:12;:10;:12::i;:::-;9936:6;;-1:-1:-1;;;;;9936:22:0;;;:6;;:22;9928:67;;;;;-1:-1:-1;;;9928:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;9928:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;63645:30:0;::::1;;::::0;;;:21:::1;:30;::::0;;;;;::::1;;63644:31;63636:40;;;::::0;::::1;;-1:-1:-1::0;;;;;63684:30:0;::::1;;::::0;;;:21:::1;:30;::::0;;;;:37;;-1:-1:-1;;63684:37:0::1;-1:-1:-1::0;63684:37:0::1;::::0;;63731:23:::1;::::0;63684:30;;63731:11:::1;:23::i;:::-;63762:31;::::0;;-1:-1:-1;;;63762:31:0;;:15:::1;:31;::::0;::::1;::::0;-1:-1:-1;;;;;63762:31:0;::::1;::::0;;;;;;:22:::1;::::0;::::1;::::0;:31;;;;;-1:-1:-1;;63762:31:0;;;;;;;:22;:31;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;63808:29:0::1;::::0;-1:-1:-1;;;;;63808:29:0;::::1;::::0;-1:-1:-1;63808:29:0::1;::::0;-1:-1:-1;63808:29:0;;::::1;63562:283:::0;:::o;29775:218::-;29863:4;29880:83;29889:12;:10;:12::i;:::-;29903:7;29912:50;29951:10;29912:11;:25;29924:12;:10;:12::i;:::-;-1:-1:-1;;;;;29912:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;29912:25:0;;;:34;;;;;;;;;;;:38;:50::i;62527:54::-;;;;;;;;;;;;;;;:::o;66213:505::-;66299:7;66321:6;66342;66363:7;66385;66407;66429;66451;66480:15;:20;;;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66480:22:0;66471:31;;66468:137;;-1:-1:-1;66527:42:0;;-1:-1:-1;;;;;;;;66527:42:0;;-1:-1:-1;66527:42:0;;-1:-1:-1;66527:42:0;;-1:-1:-1;66527:42:0;;-1:-1:-1;66527:42:0;66519:74;;66468:137;66617:15;66635;:29;;;;66665:5;66635:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66635:36:0;;-1:-1:-1;66691:19:0;66635:36;66691:10;:19::i;:::-;66684:26;;;;;;;;;;;;;;;;;66213:505;;;;;;;;;;:::o;63360:194::-;63415:131;;-1:-1:-1;;;63415:131:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62649:24;;;;:::o;27484:127::-;-1:-1:-1;;;;;27585:18:0;27558:7;27585:18;;;-1:-1:-1;27585:18:0;;;;;;;27484:127::o;10366:148::-;9946:12;:10;:12::i;:::-;9936:6;;-1:-1:-1;;;;;9936:22:0;;;:6;;:22;9928:67;;;;;-1:-1:-1;;;9928:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;9928:67:0;;;;;;;;;;;;;;;10473:1:::1;10457:6:::0;;10436:40:::1;::::0;-1:-1:-1;;;;;10457:6:0;;::::1;::::0;10436:40:::1;::::0;10473:1;;10436:40:::1;10504:1;10487:19:::0;;-1:-1:-1;;;;;;10487:19:0::1;::::0;;10366:148::o;39677:40::-;;;;:::o;9724:79::-;9762:7;9789:6;-1:-1:-1;;;;;9789:6:0;;9724:79::o;42292:118::-;42357:7;42376:30;42399:6;42376:22;:30::i;26412:104::-;26501:7;26494:14;;;;;;;;;;;;;-1:-1:-1;;26494:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;26468:13;;26494:14;;26501:7;;26494:14;;;26501:7;26494:14;;;;;;;;;;;;;;;;;;;;;;;;30496:269;30589:4;30606:129;30615:12;:10;:12::i;:::-;30629:7;30638:96;30677:15;30638:96;;;;;;;;;;;;;;;;;:11;:25;30650:12;:10;:12::i;:::-;-1:-1:-1;;;;;30638:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;30638:25:0;;;:34;;;;;;;;;;;;:38;:96::i;42613:162::-;-1:-1:-1;;;;;42744:26:0;;42690:7;42744:26;;;:18;:26;;;;;;42709:62;;:30;42744:26;42709:22;:30::i;:::-;:34;;:62::i;27824:175::-;27910:4;27927:42;27937:12;:10;:12::i;:::-;27951:9;27962:6;27927:9;:42::i;42980:123::-;-1:-1:-1;;;;;43073:26:0;43054:7;43073:26;;;:18;:26;;;;;;;42980:123::o;68579:343::-;68670:4;9946:12;:10;:12::i;:::-;9936:6;;-1:-1:-1;;;;;9936:22:0;;;:6;;:22;9928:67;;;;;-1:-1:-1;;;9928:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;9928:67:0;;;;;;;;;;;;;;;68687:14:::1;68704:32;68728:7;68704:23;:32::i;:::-;68687:49:::0;-1:-1:-1;68749:10:0;;68746:147:::1;;-1:-1:-1::0;;;;;68770:23:0;::::1;;::::0;;;:14:::1;:23;::::0;;;;;;;;68796:15:::1;68770:41:::0;;68831:33;;;;;;;;::::1;;::::0;68770:23;68831:33:::1;::::0;;;;;;;::::1;68880:4;68873:11;;;;;68746:147;-1:-1:-1::0;68909:5:0::1;::::0;68579:343;-1:-1:-1;;;68579:343:0:o;62680:56::-;;;:::o;28062:151::-;-1:-1:-1;;;;;28178:18:0;;;28151:7;28178:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;28062:151::o;66953:460::-;9946:12;:10;:12::i;:::-;9936:6;;-1:-1:-1;;;;;9936:22:0;;;:6;;:22;9928:67;;;;;-1:-1:-1;;;9928:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;9928:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;67048:30:0;::::1;;::::0;;;:21:::1;:30;::::0;;;;;::::1;;67045:59;;;67089:7;;67045:59;67130:31;67116:10;:45;67113:254;;67178:32;67190:7;67199:10;67178:11;:32::i;:::-;67219:40;::::0;;-1:-1:-1;;;67219:40:0;;:15:::1;:40;::::0;::::1;::::0;-1:-1:-1;;;;;67219:40:0;::::1;::::0;;;;;;;;;;;;:19:::1;::::0;::::1;::::0;:40;;;;;-1:-1:-1;;67219:40:0;;;;;;;:19;:40;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;67113:254;;;67295:23;67307:7;67316:1;67295:11;:23::i;:::-;67327:31;::::0;;-1:-1:-1;;;67327:31:0;;:15:::1;:31;::::0;::::1;::::0;-1:-1:-1;;;;;67327:31:0;::::1;::::0;;;;;;:22:::1;::::0;::::1;::::0;:31;;;;;-1:-1:-1;;67327:31:0;;;;;;;:22;:31;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;67113:254;67376:29;67391:7;67400:4;67376:14;:29::i;:::-;;10006:1;66953:460:::0;;:::o;64291:105::-;64370:18;;64291:105;:::o;63853:430::-;9946:12;:10;:12::i;:::-;9936:6;;-1:-1:-1;;;;;9936:22:0;;;:6;;:22;9928:67;;;;;-1:-1:-1;;;9928:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;9928:67:0;;;;;;;;;;;;;;;63954:4:::1;63938:12;:20;;:45;;;;;63978:5;63962:12;:21;;63938:45;63930:138;;;;-1:-1:-1::0;;;63930:138:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64103:9;;64087:12;:25;;64079:104;;;;-1:-1:-1::0;;;64079:104:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64230:9;::::0;64199:41:::1;::::0;64216:12;;64199:41:::1;::::0;;;::::1;64251:9;:24:::0;63853:430::o;10669:244::-;9946:12;:10;:12::i;:::-;9936:6;;-1:-1:-1;;;;;9936:22:0;;;:6;;:22;9928:67;;;;;-1:-1:-1;;;9928:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;9928:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;10758:22:0;::::1;10750:73;;;;-1:-1:-1::0;;;10750:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10860:6;::::0;;10839:38:::1;::::0;-1:-1:-1;;;;;10839:38:0;;::::1;::::0;10860:6;::::1;::::0;10839:38:::1;::::0;::::1;10888:6;:17:::0;;-1:-1:-1;;;;;;10888:17:0::1;-1:-1:-1::0;;;;;10888:17:0;;;::::1;::::0;;;::::1;::::0;;10669:244::o;64535:1670::-;64963:38;;;-1:-1:-1;;;64963:38:0;;:15;:38;;;;-1:-1:-1;;;;;64963:38:0;;;;;;;;64934:8;;64617:15;;;;;;;;;;;;;;64963:29;;;;:38;;;;;;;;;;;;;;:29;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64963:38:0;;-1:-1:-1;;;;;;65059:10:0;;65056:582;;65106:18;;65097:5;65089:35;65086:541;;;65189:18;;65172:37;;:5;;:9;:37::i;:::-;65145:64;;65086:541;;;65328:18;;65298:15;:27;65263:32;;-1:-1:-1;65298:220:0;;65517:1;65298:220;;;65438:18;;65406:15;:27;:51;;:31;:51::i;:::-;65263:255;-1:-1:-1;65568:43:0;:5;65263:255;65568:9;:43::i;:::-;65541:70;;65086:541;;65676:31;65699:7;65676:22;:31::i;:::-;65652:55;;65735:31;65758:7;65735:22;:31::i;:::-;-1:-1:-1;;;;;65795:23:0;;;;;;:14;:23;;;;;;65718:48;;-1:-1:-1;65795:23:0;-1:-1:-1;65795:23:0;65847:126;;65972:1;65847:126;;;65922:9;;65904:28;;:13;;:17;:28::i;:::-;65831:142;;66035:15;66019:13;:31;:178;;66196:1;66019:178;;;66106:34;:13;66124:15;66106:17;:34::i;:::-;65986:211;;64535:1670;;;;;;;;;:::o;67421:1150::-;67533:15;:27;67467:7;;;;;;67573:25;67570:81;;-1:-1:-1;;67623:18:0;;67617:1;;-1:-1:-1;67617:1:0;;-1:-1:-1;67609:33:0;;67570:81;67690:18;;67660:27;;67765:9;67747:27;;67784:18;67814:14;67842:615;67858:3;67848:7;:13;:50;;;;;67878:20;67865:10;:33;67848:50;67842:615;;;67967:15;:27;67909:21;;;;;67944:50;;67941:98;;68028:1;68006:23;;67941:98;68049:15;68067;:20;;68088:19;68067:41;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;68067:41:0;68135:23;;;:14;:23;;;;;;;;68067:41;;-1:-1:-1;68122:37:0;;:12;:37::i;:::-;68119:134;;;68174:38;68197:7;68207:4;68174:14;:38::i;:::-;68171:73;;;68225:8;;;;;68171:73;68263:12;;;;;68286:18;68307:9;68286:30;;68340:10;68330:7;:20;68327:91;;;68372:36;68384:23;:7;68396:10;68384:11;:23::i;:::-;68372:7;;:11;:36::i;:::-;68362:46;;68327:91;68438:10;-1:-1:-1;67842:615:0;;-1:-1:-1;67842:615:0;;68466:18;:40;;;68524:10;;-1:-1:-1;68536:6:0;-1:-1:-1;68487:19:0;;-1:-1:-1;;;;67421:1150:0;;;;;;:::o;6076:471::-;6134:7;6379:6;6375:47;;-1:-1:-1;6409:1:0;6402:8;;6375:47;6446:5;;;6450:1;6446;:5;:1;6470:5;;;;;:10;6462:56;;;;-1:-1:-1;;;6462:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6538:1;6076:471;-1:-1:-1;;;6076:471:0:o;4722:181::-;4780:7;4812:5;;;4836:6;;;;4828:46;;;;;-1:-1:-1;;;4828:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;675:98;755:10;675:98;:::o;33682:380::-;-1:-1:-1;;;;;33818:19:0;;33810:68;;;;-1:-1:-1;;;33810:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33897:21:0;;33889:68;;;;-1:-1:-1;;;33889:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33970:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;34022:32;;;;;;;;;;;;;;;;;33682:380;;;:::o;63202:150::-;63277:67;;-1:-1:-1;;;63277:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5625:192;5711:7;5747:12;5739:6;;;;5731:29;;;;-1:-1:-1;;;5731:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5783:5:0;;;5625:192::o;1195:134::-;1251:6;1284:1;1301:6;;;;1293:15;;;;;3873:176;3929:6;3959:5;;;3984:6;;;;;;:16;;;3999:1;3994;:6;;3984:16;3983:38;;;;4010:1;4006;:5;:14;;;;;4019:1;4015;:5;4006:14;3975:47;;;;;4278:127;4334:7;4367:1;4362;:6;;4354:15;;;;;;-1:-1:-1;4395:1:0;4278:127::o;45441:365::-;45511:22;45536:18;45546:7;45536:9;:18::i;:::-;45511:43;;45575:14;45562:10;:27;45559:244;;;45594:18;45615:30;:10;45630:14;45615;:30::i;:::-;45594:51;;45648:26;45654:7;45663:10;45648:5;:26::i;:::-;45559:244;;;;45700:14;45687:10;:27;45684:119;;;45719:18;45740:30;:14;45759:10;45740:18;:30::i;:::-;45719:51;;45773:26;45779:7;45788:10;45773:5;:26::i;:::-;45684:119;45441:365;;;:::o;5186:136::-;5244:7;5271:43;5275:1;5278;5271:43;;;;;;;;;;;;;;;;;:3;:43::i;41532:555::-;41605:7;41617:29;41649:28;41672:4;41649:22;:28::i;:::-;41617:60;-1:-1:-1;41684:25:0;;41680:391;;-1:-1:-1;;;;;41741:24:0;;;;;;:18;:24;;;;;;:51;;41770:21;41741:28;:51::i;:::-;-1:-1:-1;;;;;41714:24:0;;;;;;:18;:24;;;;;;;;;:78;;;;41800:46;;;;;;;41714:24;;41800:46;;;;;;;;;41867:54;;41850:12;;-1:-1:-1;;;;;41867:9:0;;;41912:4;;41884:21;;41850:12;41867:54;41850:12;41867:54;41884:21;41867:9;41912:4;41867:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41849:72;;;41930:7;41926:109;;-1:-1:-1;;;;;41969:24:0;;;;;;:18;:24;;;;;;:51;;41998:21;41969:28;:51::i;:::-;-1:-1:-1;;;;;41942:24:0;;;;;;:18;:24;;;;;:78;;;;:24;-1:-1:-1;42023:8:0;;-1:-1:-1;;42023:8:0;41926:109;-1:-1:-1;42046:21:0;-1:-1:-1;42039:28:0;;41680:391;-1:-1:-1;42082:1:0;;41532:555;-1:-1:-1;;41532:555:0:o;3609:176::-;3665:6;3695:5;;;3720:6;;;;;;:16;;;3735:1;3730;:6;;3720:16;3719:38;;;;3746:1;3742;:5;:14;;;;;3755:1;3751;:5;3711:47;;;;;66726:219;66793:4;66826:15;66810:13;:31;66807:67;;;-1:-1:-1;66860:5:0;66853:12;;66807:67;66928:9;;66890:34;:15;66910:13;66890:19;:34::i;:::-;:47;;;66726:219;-1:-1:-1;;66726:219:0:o;44684:244::-;44752:27;44764:7;44773:5;44752:11;:27::i;:::-;44824:100;44869:53;44870:36;44900:5;44870:25;;:29;;:36;;;;:::i;44869:53::-;-1:-1:-1;;;;;44824:37:0;;;;;;:28;:37;;;;;;;:43;:100::i;:::-;-1:-1:-1;;;;;44784:37:0;;;;;;;;:28;:37;;;;;:140;;;;-1:-1:-1;44684:244:0:o;45193:::-;45261:27;45273:7;45282:5;45261:11;:27::i;:::-;45333:100;45378:53;45379:36;45409:5;45379:25;;:29;;:36;;;;:::i;45378:53::-;-1:-1:-1;;;;;45333:37:0;;;;;;:28;:37;;;;;;;:43;:100::i;32115:378::-;-1:-1:-1;;;;;32199:21:0;;32191:65;;;;;-1:-1:-1;;;32191:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;32269:49;32298:1;32302:7;32311:6;32269:20;:49::i;:::-;32346:12;;:24;;32363:6;32346:16;:24::i;:::-;32331:12;:39;-1:-1:-1;;;;;32402:18:0;;;;;;-1:-1:-1;32402:18:0;;;;;;:30;;32425:6;32402:22;:30::i;:::-;-1:-1:-1;;;;;32381:18:0;;;;;;-1:-1:-1;32381:18:0;;;;;;;;:51;;;;32448:37;;;;;;;32381:18;;;;32448:37;;;;;;;;;;32115:378;;:::o;32826:418::-;-1:-1:-1;;;;;32910:21:0;;32902:67;;;;-1:-1:-1;;;32902:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32982:49;33003:7;33020:1;33024:6;32982:20;:49::i;:::-;33065:68;33088:6;33065:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33065:18:0;;;;;;-1:-1:-1;33065:18:0;;;;;;;;:22;:68::i;:::-;-1:-1:-1;;;;;33044:18:0;;;;;;-1:-1:-1;33044:18:0;;;;;:89;33159:12;;:24;;33176:6;33159:16;:24::i;:::-;33144:12;:39;33199:37;;;;;;;;33225:1;;-1:-1:-1;;;;;33199:37:0;;;;;;;;;;;;32826:418;;:::o

Swarm Source

ipfs://495e8296ce32a0fa9131dec564fdbf23f12a4a046be9e6fb6da179a59e9e07d4
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.