Contract 0xC2392DD3e3fED2c8Ed9f7f0bDf6026fcd1348453

Contract Overview

MoonBeans: BEANS Token
Balance:
0.147047719444531492 MOVR

MOVR Value:
$3.55 (@ $24.18/MOVR)

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xcd6884e384affe79e986c9bf8a763efc38e4f79d8c397a0944ea0d48737b3e26Approve18826112022-05-23 13:16:4220 hrs 21 mins ago0x287926b337f2dca79ed7beb85bc522dfb0c9830c IN  MoonBeans: BEANS Token0 MOVR0.00011638
0x0c02d10556e78a8fac382832f76e88d835c687c10b36967012afa812409662baApprove18818712022-05-23 10:29:0623 hrs 9 mins ago0xca19d045317224c3bb84af1a403f70bd3589ef56 IN  MoonBeans: BEANS Token0 MOVR0.00011638
0x93aa27ee876cf98a2907980654f7d87c35606f1072c5cd9114fbcfa706be7476Approve18818482022-05-23 10:24:0623 hrs 14 mins ago0xca19d045317224c3bb84af1a403f70bd3589ef56 IN  MoonBeans: BEANS Token0 MOVR0.00011638
0x2e1c9f07dd282e44e0ac7d948d87f45d1bd17d3ab595966a8186337b97a1995aTransfer18787172022-05-22 22:26:181 day 11 hrs ago0x7aa8b40417df1711decbc4ba64154c1507942329 IN  MoonBeans: BEANS Token0 MOVR0.000922215
0xf8ac0f548f75f760a81d0582dee860541f90a0505b50c1f600433d8e6200c608Transfer18785422022-05-22 21:46:001 day 11 hrs ago0xa8e00b034eb4744d603b63a5b5cb5e1e9ebffece IN  MoonBeans: BEANS Token0 MOVR0.000814785
0x1608b2621506eb68939ee11f250367016d2e9de5fe9a16fd49680b695c17f140Transfer18785272022-05-22 21:41:121 day 11 hrs ago0x7aa8b40417df1711decbc4ba64154c1507942329 IN  MoonBeans: BEANS Token0 MOVR0.000692217
0x6bd29a36909ad2a93c71c12dabe98947768550aea7da7707fd4b2e3eda4b1573Approve18775182022-05-22 17:47:481 day 15 hrs ago0x6289071a919d25e5ae90754e851e6f8507108245 IN  MoonBeans: BEANS Token0 MOVR0.00006588
0xd319eb39aaea8f4e84cf82d319a8d4f282c45f1af94d1dd2f4aae40bfa7ab439Approve18665552022-05-20 23:15:363 days 10 hrs ago0x111da5bd993636d82ada5788b10c9fb9af85fa30 IN  MoonBeans: BEANS Token0 MOVR0.00011638
0x08c6b15618e6724d80c71d4ba0de97d5ee327fe38fe580d4146fb244c5e1c42cApprove18651632022-05-20 17:53:123 days 15 hrs ago0xc12246c2c1e44a8e550c14301a16918f10ac7fbd IN  MoonBeans: BEANS Token0 MOVR0.00011638
0x50184b1547d827e4a08db6e55517ef89547f8e5295a86d761b5e1311952e0a1eApprove18640602022-05-20 13:34:003 days 20 hrs ago0x338372d8734f571c87f790f02e137f94d1a90eda IN  MoonBeans: BEANS Token0 MOVR0.000093104
0x91d0e1bd4aece25e183fd3801f105df51e83ab92cbed710b703a59ef34950f52Transfer18582552022-05-19 14:54:544 days 18 hrs ago0xe1f2e87e3dae93bd9b8bc25dc3a76a82d2cfd706 IN  MoonBeans: BEANS Token0 MOVR0.000949053
0x71eba094f9c6dc2e7883a28b56b22050c53d0b9b237ceabd208c5159a99d1ee3Approve18498482022-05-18 6:23:546 days 3 hrs ago0x431362e4f7352aa12a6c966323204f45afd142cd IN  MoonBeans: BEANS Token0 MOVR0.000162932
0x004b1796b9ff41d45ac3f38744a670999221f536fec8ad95e766d28981a72c27Approve18452122022-05-17 12:44:126 days 20 hrs ago0xfbea1b97406c6945d07f50f588e54144ea8b684f IN  MoonBeans: BEANS Token0 MOVR0.000162932
0xbf8fc2ef3a637caee5ea67ea7a493b1194541ad8d38ce5d982592e16e2f85a2aApprove18407062022-05-16 19:25:307 days 14 hrs ago0x7ee85ec0744fab13ae27d21695338d08e55f0039 IN  MoonBeans: BEANS Token0 MOVR0.000162932
0x85abac3159699b750ca49152951e4d94ceddc34c029fd334ae03a51e23aeb556Approve18405872022-05-16 18:57:367 days 14 hrs ago0x7ee85ec0744fab13ae27d21695338d08e55f0039 IN  MoonBeans: BEANS Token0 MOVR0.00011638
0xf2b2d62252c16419ba7ba0740c454610961b0ff003e703d96f1b6874e625f781Approve18375232022-05-16 7:14:248 days 2 hrs ago0xdd0e245441eb89ea633a4111d51c7b50154c3262 IN  MoonBeans: BEANS Token0 MOVR0.000162932
0x5e0caef0f3213570515cc7d3c9c3b68028b0b9ec24f5fed37f120c08d0f0ee42Transfer18336832022-05-15 16:35:008 days 17 hrs ago0x607d33c337f6bbd3c7476df7ec722c9299a63efd IN  MoonBeans: BEANS Token0 MOVR0.0010475982
0x5fe224ea012ac3c9a2aac7970f3165e787b3d28568f423e7831131a3d20e82a2Approve18229022022-05-13 22:42:2410 days 10 hrs ago0xbd227c7b8d581b9d3639b7e6e301cdf99c374dd6 IN  MoonBeans: BEANS Token0 MOVR0.000162932
0x57bba7c91c1621c4941c26ec147441a99d20c9edc9855d86025a2d826c8dd258Approve18163372022-05-12 21:19:4811 days 12 hrs ago0x3a0c5f83d9418199d7a85e02712ddada239be244 IN  MoonBeans: BEANS Token0 MOVR0.00011638
0x6f3c5b22ee1628e77ddc84754616989765b03cdef92893ffadf17948a2523f4bApprove18144522022-05-12 13:37:5411 days 20 hrs ago0x49ecb06e0f3655b2e1328b734a9ba4f4ec4d0aec IN  MoonBeans: BEANS Token0 MOVR0.00011638
0x408a285ba7b0a30ba800f8da1e66d482be638b34195d93ce9abc194753e37045Approve18136782022-05-12 10:25:3011 days 23 hrs ago0xbd227c7b8d581b9d3639b7e6e301cdf99c374dd6 IN  MoonBeans: BEANS Token0 MOVR0.000093104
0x2ef05a2cf60c4e8049fb658c0184b57f19ef87b42bb0ab08607d71bf12eb8492Approve18136682022-05-12 10:23:0611 days 23 hrs ago0xbd227c7b8d581b9d3639b7e6e301cdf99c374dd6 IN  MoonBeans: BEANS Token0 MOVR0.00011638
0x7fa8a417c4b1bcc06b379b9d30e2d3a958d1e36209a321ed4db34bf8a8103578Approve18099132022-05-11 18:56:3012 days 14 hrs ago0x73b45c74dfcc8548ccfbae19dbc458089c11db4b IN  MoonBeans: BEANS Token0 MOVR0.000162932
0x6c0223866c4e68db03515fc601c63543cdb0acd941b4050dc30bb4623ccf8f66Approve18084992022-05-11 12:49:3012 days 20 hrs ago0x5c62917089e8dc6484679f75b4cf7c589fb25732 IN  MoonBeans: BEANS Token0 MOVR0.000162932
0xc245a9c80d743505c51d2006065d15f39b91cb83e71007952aa20e05e73f707fTransfer18032382022-05-10 13:08:1813 days 20 hrs ago0x607d33c337f6bbd3c7476df7ec722c9299a63efd IN  MoonBeans: BEANS Token0 MOVR0.0003365758
[ Download CSV Export 

OVERVIEW

Moonbeans is a dividend rewards token and a NFT marketplace on Moonriver.

Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x6bab9a603638b0b54ab3b472a4c26256fd54ab17428d52f356cd70525102c4b418850152022-05-23 22:34:3611 hrs 3 mins ago MoonBeans: BEANS Token Solarbeam: Solar Router0.379806849225099356 MOVR
0x6bab9a603638b0b54ab3b472a4c26256fd54ab17428d52f356cd70525102c4b418850152022-05-23 22:34:3611 hrs 3 mins ago Solarbeam: Solar Router MoonBeans: BEANS Token0.379806849225099356 MOVR
0xaec859397089a2735bd016ad955386cd8a11f9ffd55fdf5940281ef02531a8dd18846732022-05-23 21:16:4812 hrs 21 mins ago MoonBeans: BEANS Token Solarbeam: Solar Router0.379806849225099356 MOVR
0xaec859397089a2735bd016ad955386cd8a11f9ffd55fdf5940281ef02531a8dd18846732022-05-23 21:16:4812 hrs 21 mins ago Solarbeam: Solar Router MoonBeans: BEANS Token0.379806849225099356 MOVR
0x4276307a8ace43e828b37f938a584bf3df71fc0f6bce530cb9852eb8f89f2cec18818822022-05-23 10:31:3023 hrs 6 mins ago MoonBeans: BEANS Token Solarbeam: Solar Router0.942331186531366521 MOVR
0x4276307a8ace43e828b37f938a584bf3df71fc0f6bce530cb9852eb8f89f2cec18818822022-05-23 10:31:3023 hrs 6 mins ago Solarbeam: Solar Router MoonBeans: BEANS Token0.942331186531366521 MOVR
0x770f7c8e749428b8744e3a7658414cdbb28df790f3d7a68395ddba9c0a83e96f18775212022-05-22 17:49:301 day 15 hrs ago MoonBeans: BEANS Token Solarbeam: Solar Router0.371410472581415528 MOVR
0x770f7c8e749428b8744e3a7658414cdbb28df790f3d7a68395ddba9c0a83e96f18775212022-05-22 17:49:301 day 15 hrs ago Solarbeam: Solar Router MoonBeans: BEANS Token0.371410472581415528 MOVR
0xd865ca7f060d3b2981b3dd35f53c7957bca8d939dd3149f4507568eefe0fd74c18604092022-05-19 23:19:424 days 10 hrs ago MoonBeans: BEANS Token Solarbeam: Solar Router0.183077509949912185 MOVR
0xd865ca7f060d3b2981b3dd35f53c7957bca8d939dd3149f4507568eefe0fd74c18604092022-05-19 23:19:424 days 10 hrs ago Solarbeam: Solar Router MoonBeans: BEANS Token0.183077509949912185 MOVR
0x91d0e1bd4aece25e183fd3801f105df51e83ab92cbed710b703a59ef34950f5218582552022-05-19 14:54:544 days 18 hrs ago MoonBeans: BEANS Token Solarbeam: Solar Router0.586866352017910268 MOVR
0x91d0e1bd4aece25e183fd3801f105df51e83ab92cbed710b703a59ef34950f5218582552022-05-19 14:54:544 days 18 hrs ago Solarbeam: Solar Router MoonBeans: BEANS Token0.586866352017910268 MOVR
0xbaa3cd1e7d9c72d7297e2185f801f4d5462231a10002b2d042b414b7fae407f018539282022-05-18 22:20:485 days 11 hrs ago MoonBeans: BEANS Token Solarbeam: Solar Router0.21234653417323537 MOVR
0xbaa3cd1e7d9c72d7297e2185f801f4d5462231a10002b2d042b414b7fae407f018539282022-05-18 22:20:485 days 11 hrs ago Solarbeam: Solar Router MoonBeans: BEANS Token0.21234653417323537 MOVR
0x40eb22b24cb2e7ed06dcde4381ff1c27ff4298b5ef73e57c2c9e1aaabaa74ef718517372022-05-18 13:43:305 days 19 hrs ago MoonBeans: BEANS Token Solarbeam: Solar Router0.256531700202475871 MOVR
0x40eb22b24cb2e7ed06dcde4381ff1c27ff4298b5ef73e57c2c9e1aaabaa74ef718517372022-05-18 13:43:305 days 19 hrs ago Solarbeam: Solar Router MoonBeans: BEANS Token0.256531700202475871 MOVR
0x3346be8854dc668d7f8dda382aedf76c952e480da946e1c1aa6a51f8190b890f18461022022-05-17 16:07:246 days 17 hrs ago MoonBeans: BEANS Token Solarbeam: Solar Router0.466540357489407662 MOVR
0x3346be8854dc668d7f8dda382aedf76c952e480da946e1c1aa6a51f8190b890f18461022022-05-17 16:07:246 days 17 hrs ago Solarbeam: Solar Router MoonBeans: BEANS Token0.466540357489407662 MOVR
0x56117e78c7529f95b2e30185b704108201e1f0ac77d939c9d80ff4963f67f4a618356372022-05-16 0:09:368 days 9 hrs ago MoonBeans: BEANS Token Solarbeam: Solar Router0.585900335123372668 MOVR
0x56117e78c7529f95b2e30185b704108201e1f0ac77d939c9d80ff4963f67f4a618356372022-05-16 0:09:368 days 9 hrs ago Solarbeam: Solar Router MoonBeans: BEANS Token0.585900335123372668 MOVR
0x68439001ae5b0525d7ecbf3f7f92791947258028a2994b8385d316e6c2cd0fc018356352022-05-16 0:09:068 days 9 hrs ago MoonBeans: BEANS Token Solarbeam: Solar Router0.585900335123372668 MOVR
0x68439001ae5b0525d7ecbf3f7f92791947258028a2994b8385d316e6c2cd0fc018356352022-05-16 0:09:068 days 9 hrs ago Solarbeam: Solar Router MoonBeans: BEANS Token0.585900335123372668 MOVR
0xe5f87471a5c1a71b2aacef3767a91c49cff9a04d4f64d29f8373864580f77afe18356352022-05-16 0:09:068 days 9 hrs ago MoonBeans: BEANS Token Solarbeam: Solar Router0.585900335123372668 MOVR
0xe5f87471a5c1a71b2aacef3767a91c49cff9a04d4f64d29f8373864580f77afe18356352022-05-16 0:09:068 days 9 hrs ago Solarbeam: Solar Router MoonBeans: BEANS Token0.585900335123372668 MOVR
0x5e0caef0f3213570515cc7d3c9c3b68028b0b9ec24f5fed37f120c08d0f0ee4218336832022-05-15 16:35:008 days 17 hrs ago MoonBeans: BEANS Token Solarbeam: Solar Router0.21170789415533958 MOVR
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MOONBEANS

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 1 : Foo.sol
/**
      ████████                          
    ██▒▒▒▒▒▒▒▒▒▒██                      
  ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒██                    
██▒▒▒▒▒▒▒▒    ▒▒▒▒▒▒██                  
██▒▒▒▒▒▒▒▒▒▒▒▒  ▒▒▒▒▒▒██                
██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒████            
██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██        
██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██    
████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██  
  ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██
    ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██
    ██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██
      ████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██
          ████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██  
              ████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██    
                  ████████████████      

███╗░░░███╗░█████╗░░█████╗░███╗░░██╗██████╗░███████╗░█████╗░███╗░░██╗░██████╗
████╗░████║██╔══██╗██╔══██╗████╗░██║██╔══██╗██╔════╝██╔══██╗████╗░██║██╔════╝
██╔████╔██║██║░░██║██║░░██║██╔██╗██║██████╦╝█████╗░░███████║██╔██╗██║╚█████╗░
██║╚██╔╝██║██║░░██║██║░░██║██║╚████║██╔══██╗██╔══╝░░██╔══██║██║╚████║░╚═══██╗
██║░╚═╝░██║╚█████╔╝╚█████╔╝██║░╚███║██████╦╝███████╗██║░░██║██║░╚███║██████╔╝
╚═╝░░░░░╚═╝░╚════╝░░╚════╝░╚═╝░░╚══╝╚═════╝░╚══════╝╚═╝░░╚═╝╚═╝░░╚══╝╚═════╝░

MoonBeans
Eat your beans, get your vitamin D (Hold $BEANS, get $SOLAR rewards)
**/

pragma solidity ^0.6.2;
// SPDX-License-Identifier: MIT

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



pragma solidity ^0.6.2;


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


pragma solidity ^0.6.2;

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


pragma solidity ^0.6.2;

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



pragma solidity ^0.6.2;





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


pragma solidity ^0.6.2;

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



/*
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.
*/

pragma solidity ^0.6.2;

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



pragma solidity ^0.6.2;


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


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

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

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



pragma solidity ^0.6.2;


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

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

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


pragma solidity ^0.6.2;




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

pragma solidity ^0.6.2;

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

  address public CAKE = address(0x6bD193Ee6D2104F14F94E2cA6efefae561A4334B); //SOLAR

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

  uint256 internal magnifiedDividendPerShare;

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

  uint256 public totalDividendsDistributed;

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

  }


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

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

      totalDividendsDistributed = totalDividendsDistributed.add(amount);
    }
  }

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

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

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

      return _withdrawableDividend;
    }

    return 0;
  }


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

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

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


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

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

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

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

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

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

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

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

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


pragma solidity ^0.6.2;

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

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

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

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



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

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

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

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

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

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

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



pragma solidity ^0.6.2;

interface ISolarPair {
    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;
}




pragma solidity ^0.6.2;

interface ISolarFactory {
    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;
}


pragma solidity ^0.6.2;

interface ISolarRouter01 {
    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);
}



// pragma solidity >=0.6.2;

interface ISolarRouter02 is ISolarRouter01 {
    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;
}


pragma solidity ^0.6.2;

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

    ISolarRouter02 public uniswapV2Router;
    address public  uniswapV2Pair;

    bool private swapping;

    BEANSDividendTracker public dividendTracker;

    address public deadWallet = 0x000000000000000000000000000000000000dEaD;

    address public CAKE = address(0x6bD193Ee6D2104F14F94E2cA6efefae561A4334B); //SOLAR

    uint256 public swapTokensAtAmount = 50 * (10**18);
    
    mapping(address => bool) public _isBlacklisted;

    uint256 public CAKERewardsFee = 6;
    uint256 public liquidityFee = 2;
    uint256 public marketingFee = 2;
    uint256 public totalFees = CAKERewardsFee.add(liquidityFee).add(marketingFee);

    address public _marketingWalletAddress = 0x000000000000000000000000000000000000dEaD;


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

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


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

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

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

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

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

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

    event GasForProcessingUpdated(uint256 indexed newValue, uint256 indexed oldValue);

    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiqudity
    );

    event SendDividends(
    	uint256 tokensSwapped,
    	uint256 amount
    );

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

    constructor() public ERC20("MoonBeans", "BEANS") {

    	dividendTracker = new BEANSDividendTracker();

    	ISolarRouter02 _uniswapV2Router = ISolarRouter02(0xAA30eF758139ae4a7f798112902Bf6d65612045f);
         // Create a uniswap pair for this new token
        address _uniswapV2Pair = ISolarFactory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());

        uniswapV2Router = _uniswapV2Router;
        uniswapV2Pair = _uniswapV2Pair;

        _setAutomatedMarketMakerPair(_uniswapV2Pair, true);

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

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

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

    receive() external payable {

  	}

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

        BEANSDividendTracker newDividendTracker = BEANSDividendTracker(payable(newAddress));

        require(newDividendTracker.owner() == address(this), "MOONBEANS: The new dividend tracker must be owned by the MOONBEANS 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 updateSolarRouter(address newAddress) public onlyOwner {
        require(newAddress != address(uniswapV2Router), "MOONBEANS: The router already has that address");
        emit UpdateSolarRouter(newAddress, address(uniswapV2Router));
        uniswapV2Router = ISolarRouter02(newAddress);
        address _uniswapV2Pair = ISolarFactory(uniswapV2Router.factory())
            .createPair(address(this), uniswapV2Router.WETH());
        uniswapV2Pair = _uniswapV2Pair;
    }

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

        emit ExcludeFromFees(account, excluded);
    }

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

        emit ExcludeMultipleAccountsFromFees(accounts, excluded);
    }

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

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

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

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

    }


    function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner {
        require(pair != uniswapV2Pair, "MOONBEANS: The PancakeSwap 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, "MOONBEANS: 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 >= 10000 && newValue <= 1000000, "MOONBEANS: gasForProcessing must be between 10,000 and 1,000,000");
        require(newValue != gasForProcessing, "MOONBEANS: Cannot update gasForProcessing to same value");
        emit GasForProcessingUpdated(newValue, gasForProcessing);
        gasForProcessing = newValue;
    }

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

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

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

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

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

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

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

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

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

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

    function claim() external {
		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]) {
            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 initialCAKEBalance = IERC20(CAKE).balanceOf(address(this));

        swapTokensForCake(tokens);
        uint256 newBalance = (IERC20(CAKE).balanceOf(address(this))).sub(initialCAKEBalance);
        IERC20(CAKE).transfer(_marketingWalletAddress, 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 swapTokensForCake(uint256 tokenAmount) private {

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

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

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

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {

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

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

    }

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

        if (success) {
            dividendTracker.distributeCAKEDividends(dividends);
            emit SendDividends(tokens, dividends);
        }
    }
    
    // Emergency only - Recover Tokens
    function recoverToken(address _token, uint256 amount) external virtual onlyOwner {
        IERC20(_token).transfer(owner(), amount);
    }

    // Emergency only - Recover MOVR
    function RecoverMOVR(address payable to, uint256 amount) public onlyOwner {
        to.transfer(amount);
    }
    
    function setRewardToken(address newToken) public onlyOwner {
        CAKE = newToken;
    }
}

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

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

    function withdrawDividend() public override {
        require(false, "MOONBEANS_Dividend_Tracker: withdrawDividend disabled. Use the 'claim' function on the main MoonBeans 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, "MOONBEANS_Dividend_Tracker: claimWait must be updated to between 1 and 24 hours");
        require(newClaimWait != claimWait, "MOONBEANS_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;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {
    "contracts/Foo.sol": {
      "IterableMapping": "0x3A6dffd314818A37FA67c23465cf7992DdF229d6"
    }
  }
}

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":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"accounts","type":"address[]"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeMultipleAccountsFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"oldValue","type":"uint256"}],"name":"GasForProcessingUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newLiquidityWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldLiquidityWallet","type":"address"}],"name":"LiquidityWalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"iterations","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claims","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastProcessedIndex","type":"uint256"},{"indexed":true,"internalType":"bool","name":"automatic","type":"bool"},{"indexed":false,"internalType":"uint256","name":"gas","type":"uint256"},{"indexed":true,"internalType":"address","name":"processor","type":"address"}],"name":"ProcessedDividendTracker","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SendDividends","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiqudity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateDividendTracker","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateSolarRouter","type":"event"},{"inputs":[],"name":"CAKE","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CAKERewardsFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RecoverMOVR","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_marketingWalletAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"blacklistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deadWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"dividendTokenBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dividendTracker","outputs":[{"internalType":"contract BEANSDividendTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeMultipleAccountsFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gasForProcessing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountDividendsInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getAccountDividendsInfoAtIndex","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClaimWait","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastProcessedIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfDividendTokenHolders","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalDividendsDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gas","type":"uint256"}],"name":"processDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setLiquidityFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setMarketingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"wallet","type":"address"}],"name":"setMarketingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newToken","type":"address"}],"name":"setRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setSOLARRewardsFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract ISolarRouter02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"claimWait","type":"uint256"}],"name":"updateClaimWait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateDividendTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateGasForProcessing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateSolarRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"withdrawableDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526009805461dead6001600160a01b031991821617909155600a8054736bd193ee6d2104f14f94e2ca6efefae561a4334b92169190911790556802b5e3af16b1880000600b556006600d8190556002600e819055600f8190556200008d916200007990826200060f602090811b620026a617901c565b6200060f60201b620026a61790919060201c565b601055601180546001600160a01b03191661dead179055620493e0601255348015620000b857600080fd5b5060408051808201825260098152684d6f6f6e4265616e7360b81b6020808301918252835180850190945260058452644245414e5360d81b9084015281519192916200010791600391620009f8565b5080516200011d906004906020840190620009f8565b5050506000620001326200067160201b60201c565b600580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506040516200018e9062000a7d565b604051809103906000f080158015620001ab573d6000803e3d6000fd5b50600860006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600073aa30ef758139ae4a7f798112902bf6d65612045f90506000816001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156200022757600080fd5b505afa1580156200023c573d6000803e3d6000fd5b505050506040513d60208110156200025357600080fd5b5051604080516315ab88c960e31b815290516001600160a01b039283169263c9c653969230929187169163ad5c464891600480820192602092909190829003018186803b158015620002a457600080fd5b505afa158015620002b9573d6000803e3d6000fd5b505050506040513d6020811015620002d057600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301525160448083019260209291908290030181600087803b1580156200032357600080fd5b505af115801562000338573d6000803e3d6000fd5b505050506040513d60208110156200034f57600080fd5b5051600680546001600160a01b038086166001600160a01b031992831617909255600780549284169290911691909117905590506200039081600162000675565b6008546040805163031e79db60e41b81526001600160a01b0390921660048301819052905190916331e79db091602480830192600092919082900301818387803b158015620003de57600080fd5b505af1158015620003f3573d6000803e3d6000fd5b50506008546040805163031e79db60e41b815230600482015290516001600160a01b0390921693506331e79db0925060248082019260009290919082900301818387803b1580156200044457600080fd5b505af115801562000459573d6000803e3d6000fd5b50506008546001600160a01b031691506331e79db090506200047a620007a8565b6040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b158015620004ba57600080fd5b505af1158015620004cf573d6000803e3d6000fd5b50506008546009546040805163031e79db60e41b81526001600160a01b03928316600482015290519190921693506331e79db09250602480830192600092919082900301818387803b1580156200052557600080fd5b505af11580156200053a573d6000803e3d6000fd5b50506008546040805163031e79db60e41b81526001600160a01b03878116600483015291519190921693506331e79db09250602480830192600092919082900301818387803b1580156200058d57600080fd5b505af1158015620005a2573d6000803e3d6000fd5b50505050620005c2620005ba620007a860201b60201c565b6001620007b7565b601154620005db906001600160a01b03166001620007b7565b620005e8306001620007b7565b62000607620005f6620007a8565b69d3c21bcecceda1000000620008e4565b505062000aa2565b6000828201838110156200066a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b03821660009081526014602052604090205460ff1615158115151415620006d55760405162461bcd60e51b815260040180806020018281038252604381526020018062006a9a6043913960600191505060405180910390fd5b6001600160a01b0382166000908152601460205260409020805460ff191682158015919091179091556200076c576008546040805163031e79db60e41b81526001600160a01b038581166004830152915191909216916331e79db091602480830192600092919082900301818387803b1580156200075257600080fd5b505af115801562000767573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6005546001600160a01b031690565b620007c162000671565b6005546001600160a01b0390811691161462000824576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03821660009081526013602052604090205460ff1615158115151415620008845760405162461bcd60e51b815260040180806020018281038252603581526020018062006a656035913960400191505060405180910390fd5b6001600160a01b038216600081815260136020908152604091829020805460ff1916851515908117909155825190815291517f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df79281900390910190a25050565b6001600160a01b03821662000940576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6200094e60008383620009f3565b6200096a816002546200060f60201b620026a61790919060201c565b6002556001600160a01b038216600090815260208181526040909120546200099d918390620026a66200060f821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1062000a3b57805160ff191683800117855562000a6b565b8280016001018555821562000a6b579182015b8281111562000a6b57825182559160200191906001019062000a4e565b5062000a7992915062000a8b565b5090565b612308806200475d83390190565b5b8082111562000a79576000815560010162000a8c565b613cab8062000ab26000396000f3fe6080604052600436106103545760003560e01c8063700bb191116101c6578063a457c2d7116100f7578063c492f04611610095578063e7841ec01161006f578063e7841ec014610c82578063e98030c714610c97578063f27fd25414610cc1578063f2fde38b14610ceb5761035b565b8063c492f04614610bb3578063dd62ed3e14610c32578063e2f4560514610c6d5761035b565b8063ad56c13c116100d1578063ad56c13c14610a8e578063b29a814014610b0c578063b62496f514610b45578063c024666814610b785761035b565b8063a457c2d7146109e9578063a8b9d24014610a22578063a9059cbb14610a555761035b565b80638aee81271161016457806398118cb41161013e57806398118cb41461096f5780639a7a23d6146109845780639c1b8af5146109bf578063a26579ad146109d45761035b565b80638aee8127146109125780638da5cb5b1461094557806395d89b411461095a5761035b565b806385141a77116101a057806385141a771461086d578063871c128d1461088257806388bdd9be146108ac5780638a96f62e146108df5761035b565b8063700bb191146107fb57806370a0823114610825578063715018a6146108585761035b565b806339509351116102a057806357ccdcf81161023e57806364b0f6531161021857806364b0f653146107895780636594aa5f1461079e5780636843cd84146107b35780636b67c4df146107e65761035b565b806357ccdcf8146106f35780635d098b381461072c578063625e764c1461075f5761035b565b806349bd5a5e1161027a57806349bd5a5e146106815780634ca6ef28146106965780634e71d92d146106ab5780634fbee193146106c05761035b565b806339509351146105f85780634144d9e414610631578063455a4396146106465761035b565b80631cdd3be31161030d57806330bb4cff116102e757806330bb4cff1461055b578063313ce5671461057057806331e79db01461059b578063357bf15c146105ce5761035b565b80631cdd3be3146104d057806323b872dd146105035780632c1f5216146105465761035b565b806304a53ade1461036057806306fdde031461038c578063095ea7b31461041657806313114a9d146104635780631694505e1461048a57806318160ddd146104bb5761035b565b3661035b57005b600080fd5b34801561036c57600080fd5b5061038a6004803603602081101561038357600080fd5b5035610d1e565b005b34801561039857600080fd5b506103a1610d9d565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103db5781810151838201526020016103c3565b50505050905090810190601f1680156104085780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561042257600080fd5b5061044f6004803603604081101561043957600080fd5b506001600160a01b038135169060200135610e33565b604080519115158252519081900360200190f35b34801561046f57600080fd5b50610478610e51565b60408051918252519081900360200190f35b34801561049657600080fd5b5061049f610e57565b604080516001600160a01b039092168252519081900360200190f35b3480156104c757600080fd5b50610478610e66565b3480156104dc57600080fd5b5061044f600480360360208110156104f357600080fd5b50356001600160a01b0316610e6c565b34801561050f57600080fd5b5061044f6004803603606081101561052657600080fd5b506001600160a01b03813581169160208101359091169060400135610e81565b34801561055257600080fd5b5061049f610f08565b34801561056757600080fd5b50610478610f17565b34801561057c57600080fd5b50610585610f8d565b6040805160ff9092168252519081900360200190f35b3480156105a757600080fd5b5061038a600480360360208110156105be57600080fd5b50356001600160a01b0316610f92565b3480156105da57600080fd5b5061038a600480360360208110156105f157600080fd5b5035611053565b34801561060457600080fd5b5061044f6004803603604081101561061b57600080fd5b506001600160a01b0381351690602001356110c5565b34801561063d57600080fd5b5061049f611113565b34801561065257600080fd5b5061038a6004803603604081101561066957600080fd5b506001600160a01b0381351690602001351515611122565b34801561068d57600080fd5b5061049f6111a5565b3480156106a257600080fd5b5061049f6111b4565b3480156106b757600080fd5b5061038a6111c3565b3480156106cc57600080fd5b5061044f600480360360208110156106e357600080fd5b50356001600160a01b0316611248565b3480156106ff57600080fd5b5061038a6004803603604081101561071657600080fd5b506001600160a01b038135169060200135611266565b34801561073857600080fd5b5061038a6004803603602081101561074f57600080fd5b50356001600160a01b03166112f9565b34801561076b57600080fd5b5061038a6004803603602081101561078257600080fd5b5035611373565b34801561079557600080fd5b506104786113e5565b3480156107aa57600080fd5b5061047861142a565b3480156107bf57600080fd5b50610478600480360360208110156107d657600080fd5b50356001600160a01b0316611430565b3480156107f257600080fd5b506104786114b3565b34801561080757600080fd5b5061038a6004803603602081101561081e57600080fd5b50356114b9565b34801561083157600080fd5b506104786004803603602081101561084857600080fd5b50356001600160a01b03166115a0565b34801561086457600080fd5b5061038a6115bb565b34801561087957600080fd5b5061049f61165d565b34801561088e57600080fd5b5061038a600480360360208110156108a557600080fd5b503561166c565b3480156108b857600080fd5b5061038a600480360360208110156108cf57600080fd5b50356001600160a01b0316611788565b3480156108eb57600080fd5b5061038a6004803603602081101561090257600080fd5b50356001600160a01b0316611adf565b34801561091e57600080fd5b5061038a6004803603602081101561093557600080fd5b50356001600160a01b0316611d64565b34801561095157600080fd5b5061049f611dde565b34801561096657600080fd5b506103a1611ded565b34801561097b57600080fd5b50610478611e4e565b34801561099057600080fd5b5061038a600480360360408110156109a757600080fd5b506001600160a01b0381351690602001351515611e54565b3480156109cb57600080fd5b50610478611f03565b3480156109e057600080fd5b50610478611f09565b3480156109f557600080fd5b5061044f60048036036040811015610a0c57600080fd5b506001600160a01b038135169060200135611f4e565b348015610a2e57600080fd5b5061047860048036036020811015610a4557600080fd5b50356001600160a01b0316611fb6565b348015610a6157600080fd5b5061044f60048036036040811015610a7857600080fd5b506001600160a01b038135169060200135612007565b348015610a9a57600080fd5b50610ac160048036036020811015610ab157600080fd5b50356001600160a01b031661201b565b604080516001600160a01b0390991689526020890197909752878701959095526060870193909352608086019190915260a085015260c084015260e083015251908190036101000190f35b348015610b1857600080fd5b5061038a60048036036040811015610b2f57600080fd5b506001600160a01b0381351690602001356120fb565b348015610b5157600080fd5b5061044f60048036036020811015610b6857600080fd5b50356001600160a01b03166121e1565b348015610b8457600080fd5b5061038a60048036036040811015610b9b57600080fd5b506001600160a01b03813516906020013515156121f6565b348015610bbf57600080fd5b5061038a60048036036040811015610bd657600080fd5b810190602081018135640100000000811115610bf157600080fd5b820183602082011115610c0357600080fd5b80359060200191846020830284011164010000000083111715610c2557600080fd5b919350915035151561230c565b348015610c3e57600080fd5b5061047860048036036040811015610c5557600080fd5b506001600160a01b038135811691602001351661242c565b348015610c7957600080fd5b50610478612457565b348015610c8e57600080fd5b5061047861245d565b348015610ca357600080fd5b5061038a60048036036020811015610cba57600080fd5b50356124a2565b348015610ccd57600080fd5b50610ac160048036036020811015610ce457600080fd5b5035612547565b348015610cf757600080fd5b5061038a60048036036020811015610d0e57600080fd5b50356001600160a01b03166125ad565b610d26612707565b6005546001600160a01b03908116911614610d76576040805162461bcd60e51b81526020600482018190526024820152600080516020613b1d833981519152604482015290519081900360640190fd5b600d819055600f54600e54610d979190610d919084906126a6565b906126a6565b60105550565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610e295780601f10610dfe57610100808354040283529160200191610e29565b820191906000526020600020905b815481529060010190602001808311610e0c57829003601f168201915b5050505050905090565b6000610e47610e40612707565b848461270b565b5060015b92915050565b60105481565b6006546001600160a01b031681565b60025490565b600c6020526000908152604090205460ff1681565b6000610e8e8484846127f7565b610efe84610e9a612707565b610ef985604051806060016040528060288152602001613af5602891396001600160a01b038a16600090815260016020526040812090610ed8612707565b6001600160a01b031681526020810191909152604001600020549190612d00565b61270b565b5060019392505050565b6008546001600160a01b031681565b600854604080516342d359d760e11b815290516000926001600160a01b0316916385a6b3ae916004808301926020929190829003018186803b158015610f5c57600080fd5b505afa158015610f70573d6000803e3d6000fd5b505050506040513d6020811015610f8657600080fd5b5051905090565b601290565b610f9a612707565b6005546001600160a01b03908116911614610fea576040805162461bcd60e51b81526020600482018190526024820152600080516020613b1d833981519152604482015290519081900360640190fd5b6008546040805163031e79db60e41b81526001600160a01b038481166004830152915191909216916331e79db091602480830192600092919082900301818387803b15801561103857600080fd5b505af115801561104c573d6000803e3d6000fd5b5050505050565b61105b612707565b6005546001600160a01b039081169116146110ab576040805162461bcd60e51b81526020600482018190526024820152600080516020613b1d833981519152604482015290519081900360640190fd5b600e819055600f54600d54610d979190610d9190846126a6565b6000610e476110d2612707565b84610ef985600160006110e3612707565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906126a6565b6011546001600160a01b031681565b61112a612707565b6005546001600160a01b0390811691161461117a576040805162461bcd60e51b81526020600482018190526024820152600080516020613b1d833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600c60205260409020805460ff1916911515919091179055565b6007546001600160a01b031681565b600a546001600160a01b031681565b6008546040805163bc4c4b3760e01b815233600482015260006024820181905291516001600160a01b039093169263bc4c4b3792604480840193602093929083900390910190829087803b15801561121a57600080fd5b505af115801561122e573d6000803e3d6000fd5b505050506040513d602081101561124457600080fd5b5050565b6001600160a01b031660009081526013602052604090205460ff1690565b61126e612707565b6005546001600160a01b039081169116146112be576040805162461bcd60e51b81526020600482018190526024820152600080516020613b1d833981519152604482015290519081900360640190fd5b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156112f4573d6000803e3d6000fd5b505050565b611301612707565b6005546001600160a01b03908116911614611351576040805162461bcd60e51b81526020600482018190526024820152600080516020613b1d833981519152604482015290519081900360640190fd5b601180546001600160a01b0319166001600160a01b0392909216919091179055565b61137b612707565b6005546001600160a01b039081169116146113cb576040805162461bcd60e51b81526020600482018190526024820152600080516020613b1d833981519152604482015290519081900360640190fd5b600f819055600e54600d54610d97918391610d91916126a6565b600854604080516304ddf6ef60e11b815290516000926001600160a01b0316916309bbedde916004808301926020929190829003018186803b158015610f5c57600080fd5b600d5481565b600854604080516370a0823160e01b81526001600160a01b038481166004830152915160009392909216916370a0823191602480820192602092909190829003018186803b15801561148157600080fd5b505afa158015611495573d6000803e3d6000fd5b505050506040513d60208110156114ab57600080fd5b505192915050565b600f5481565b600854604080516001624d3b8760e01b03198152600481018490529051600092839283926001600160a01b039092169163ffb2c4799160248082019260609290919082900301818787803b15801561151057600080fd5b505af1158015611524573d6000803e3d6000fd5b505050506040513d606081101561153a57600080fd5b5080516020808301516040938401518451848152928301829052828501819052606083018990529351929650945091925032916000917fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989181900360800190a350505050565b6001600160a01b031660009081526020819052604090205490565b6115c3612707565b6005546001600160a01b03908116911614611613576040805162461bcd60e51b81526020600482018190526024820152600080516020613b1d833981519152604482015290519081900360640190fd5b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6009546001600160a01b031681565b611674612707565b6005546001600160a01b039081169116146116c4576040805162461bcd60e51b81526020600482018190526024820152600080516020613b1d833981519152604482015290519081900360640190fd5b61271081101580156116d95750620f42408111155b6117145760405162461bcd60e51b81526004018080602001828103825260408152602001806139726040913960400191505060405180910390fd5b6012548114156117555760405162461bcd60e51b815260040180806020018281038252603781526020018061393b6037913960400191505060405180910390fd5b60125460405182907f40d7e40e79af4e8e5a9b3c57030d8ea93f13d669c06d448c4d631d4ae7d23db790600090a3601255565b611790612707565b6005546001600160a01b039081169116146117e0576040805162461bcd60e51b81526020600482018190526024820152600080516020613b1d833981519152604482015290519081900360640190fd5b6008546001600160a01b038281169116141561182d5760405162461bcd60e51b8152600401808060200182810382526038815260200180613b3d6038913960400191505060405180910390fd5b6000819050306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561187557600080fd5b505afa158015611889573d6000803e3d6000fd5b505050506040513d602081101561189f57600080fd5b50516001600160a01b0316146118e65760405162461bcd60e51b8152600401808060200182810382526051815260200180613a4e6051913960600191505060405180910390fd5b806001600160a01b03166331e79db0826040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b15801561193557600080fd5b505af1158015611949573d6000803e3d6000fd5b50506040805163031e79db60e41b815230600482015290516001600160a01b03851693506331e79db09250602480830192600092919082900301818387803b15801561199457600080fd5b505af11580156119a8573d6000803e3d6000fd5b50505050806001600160a01b03166331e79db06119c3611dde565b6040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b158015611a0257600080fd5b505af1158015611a16573d6000803e3d6000fd5b50506006546040805163031e79db60e41b81526001600160a01b039283166004820152905191851693506331e79db0925060248082019260009290919082900301818387803b158015611a6857600080fd5b505af1158015611a7c573d6000803e3d6000fd5b50506008546040516001600160a01b03918216935090851691507f90c7d74461c613da5efa97d90740869367d74ab3aa5837aa4ae9a975f954b7a890600090a3600880546001600160a01b0319166001600160a01b039290921691909117905550565b611ae7612707565b6005546001600160a01b03908116911614611b37576040805162461bcd60e51b81526020600482018190526024820152600080516020613b1d833981519152604482015290519081900360640190fd5b6006546001600160a01b0382811691161415611b845760405162461bcd60e51b815260040180806020018281038252602e8152602001806139fa602e913960400191505060405180910390fd5b6006546040516001600160a01b03918216918316907f1584ad6367bfe087c8faafddf158497f2b8222fd9fa176788721c1c6116429ea90600090a3600680546001600160a01b0319166001600160a01b0383811691909117918290556040805163c45a015560e01b815290516000939092169163c45a015591600480820192602092909190829003018186803b158015611c1d57600080fd5b505afa158015611c31573d6000803e3d6000fd5b505050506040513d6020811015611c4757600080fd5b5051600654604080516315ab88c960e31b815290516001600160a01b039384169363c9c6539693309391169163ad5c464891600480820192602092909190829003018186803b158015611c9957600080fd5b505afa158015611cad573d6000803e3d6000fd5b505050506040513d6020811015611cc357600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301525160448083019260209291908290030181600087803b158015611d1557600080fd5b505af1158015611d29573d6000803e3d6000fd5b505050506040513d6020811015611d3f57600080fd5b5051600780546001600160a01b0319166001600160a01b039092169190911790555050565b611d6c612707565b6005546001600160a01b03908116911614611dbc576040805162461bcd60e51b81526020600482018190526024820152600080516020613b1d833981519152604482015290519081900360640190fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031690565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610e295780601f10610dfe57610100808354040283529160200191610e29565b600e5481565b611e5c612707565b6005546001600160a01b03908116911614611eac576040805162461bcd60e51b81526020600482018190526024820152600080516020613b1d833981519152604482015290519081900360640190fd5b6007546001600160a01b0383811691161415611ef95760405162461bcd60e51b8152600401808060200182810382526050815260200180613bb86050913960600191505060405180910390fd5b6112448282612d97565b60125481565b60085460408051631bc9e27b60e21b815290516000926001600160a01b031691636f2789ec916004808301926020929190829003018186803b158015610f5c57600080fd5b6000610e47611f5b612707565b84610ef985604051806060016040528060258152602001613c516025913960016000611f85612707565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190612d00565b600854604080516302a2e74960e61b81526001600160a01b0384811660048301529151600093929092169163a8b9d24091602480820192602092909190829003018186803b15801561148157600080fd5b6000610e47612014612707565b84846127f7565b600080600080600080600080600860009054906101000a90046001600160a01b03166001600160a01b031663fbcbc0f18a6040518263ffffffff1660e01b815260040180826001600160a01b031681526020019150506101006040518083038186803b15801561208a57600080fd5b505afa15801561209e573d6000803e3d6000fd5b505050506040513d6101008110156120b557600080fd5b508051602082015160408301516060840151608085015160a086015160c087015160e090970151959e50939c50919a509850965094509092509050919395975091939597565b612103612707565b6005546001600160a01b03908116911614612153576040805162461bcd60e51b81526020600482018190526024820152600080516020613b1d833981519152604482015290519081900360640190fd5b816001600160a01b031663a9059cbb61216a611dde565b836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156121b157600080fd5b505af11580156121c5573d6000803e3d6000fd5b505050506040513d60208110156121db57600080fd5b50505050565b60146020526000908152604090205460ff1681565b6121fe612707565b6005546001600160a01b0390811691161461224e576040805162461bcd60e51b81526020600482018190526024820152600080516020613b1d833981519152604482015290519081900360640190fd5b6001600160a01b03821660009081526013602052604090205460ff16151581151514156122ac5760405162461bcd60e51b8152600401808060200182810382526035815260200180613a9f6035913960400191505060405180910390fd5b6001600160a01b038216600081815260136020908152604091829020805460ff1916851515908117909155825190815291517f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df79281900390910190a25050565b612314612707565b6005546001600160a01b03908116911614612364576040805162461bcd60e51b81526020600482018190526024820152600080516020613b1d833981519152604482015290519081900360640190fd5b60005b828110156123b957816013600086868581811061238057fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff1916911515919091179055600101612367565b507f7fdaf542373fa84f4ee8d662c642f44e4c2276a217d7d29e548b6eb29a233b35838383604051808060200183151581526020018281038252858582818152602001925060200280828437600083820152604051601f909101601f1916909201829003965090945050505050a1505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600b5481565b6008546040805163039e107b60e61b815290516000926001600160a01b03169163e7841ec0916004808301926020929190829003018186803b158015610f5c57600080fd5b6124aa612707565b6005546001600160a01b039081169116146124fa576040805162461bcd60e51b81526020600482018190526024820152600080516020613b1d833981519152604482015290519081900360640190fd5b6008546040805163e98030c760e01b81526004810184905290516001600160a01b039092169163e98030c79160248082019260009290919082900301818387803b15801561103857600080fd5b600080600080600080600080600860009054906101000a90046001600160a01b03166001600160a01b0316635183d6fd8a6040518263ffffffff1660e01b8152600401808281526020019150506101006040518083038186803b15801561208a57600080fd5b6125b5612707565b6005546001600160a01b03908116911614612605576040805162461bcd60e51b81526020600482018190526024820152600080516020613b1d833981519152604482015290519081900360640190fd5b6001600160a01b03811661264a5760405162461bcd60e51b81526004018080602001828103825260268152602001806139b26026913960400191505060405180910390fd5b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b600082820183811015612700576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b6001600160a01b0383166127505760405162461bcd60e51b8152600401808060200182810382526024815260200180613c2d6024913960400191505060405180910390fd5b6001600160a01b0382166127955760405162461bcd60e51b81526004018080602001828103825260228152602001806139d86022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661283c5760405162461bcd60e51b8152600401808060200182810382526025815260200180613c086025913960400191505060405180910390fd5b6001600160a01b0382166128815760405162461bcd60e51b81526004018080602001828103825260238152602001806139186023913960400191505060405180910390fd5b6001600160a01b0383166000908152600c602052604090205460ff161580156128c357506001600160a01b0382166000908152600c602052604090205460ff16155b61290a576040805162461bcd60e51b8152602060048201526013602482015272426c61636b6c6973746564206164647265737360681b604482015290519081900360640190fd5b806129205761291b83836000612ec5565b6112f4565b600061292b306115a0565b600b549091508110801590819061294c5750600754600160a01b900460ff16155b801561297157506001600160a01b03851660009081526014602052604090205460ff16155b80156129965750612980611dde565b6001600160a01b0316856001600160a01b031614155b80156129bb57506129a5611dde565b6001600160a01b0316846001600160a01b031614155b15612a4b576007805460ff60a01b1916600160a01b179055601054600f546000916129f1916129eb908690613020565b90613079565b90506129fc816130bb565b6000612a196010546129eb600e548761302090919063ffffffff16565b9050612a2481613248565b6000612a2f306115a0565b9050612a3a816132ce565b50506007805460ff60a01b19169055505b6007546001600160a01b03861660009081526013602052604090205460ff600160a01b909204821615911680612a9957506001600160a01b03851660009081526013602052604090205460ff165b15612aa2575060005b8015612b13576000612ac460646129eb6010548861302090919063ffffffff16565b6001600160a01b03871660009081526014602052604090205490915060ff1615612afa57612af860646129eb876001613020565b015b612b048582613485565b9450612b11873083612ec5565b505b612b1e868686612ec5565b6008546001600160a01b031663e30443bc87612b39816115a0565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015612b7f57600080fd5b505af1925050508015612b90575060015b506008546001600160a01b031663e30443bc86612bac816115a0565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015612bf257600080fd5b505af1925050508015612c03575060015b50600754600160a01b900460ff16612cf857601254600854604080516001624d3b8760e01b031981526004810184905290516001600160a01b039092169163ffb2c479916024808201926060929091908290030181600087803b158015612c6957600080fd5b505af1925050508015612c9d57506040513d6060811015612c8957600080fd5b508051602082015160409092015190919060015b612ca657612cf6565b604080518481526020810184905280820183905260608101869052905132916001917fc864333d6121033635ab41b29ae52f10a22cf4438c3e4f1c4c68518feb2f8a989181900360800190a35050505b505b505050505050565b60008184841115612d8f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612d54578181015183820152602001612d3c565b50505050905090810190601f168015612d815780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b03821660009081526014602052604090205460ff1615158115151415612df55760405162461bcd60e51b8152600401808060200182810382526043815260200180613b756043913960600191505060405180910390fd5b6001600160a01b0382166000908152601460205260409020805460ff19168215801591909117909155612e89576008546040805163031e79db60e41b81526001600160a01b038581166004830152915191909216916331e79db091602480830192600092919082900301818387803b158015612e7057600080fd5b505af1158015612e84573d6000803e3d6000fd5b505050505b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6001600160a01b038316612f0a5760405162461bcd60e51b8152600401808060200182810382526025815260200180613c086025913960400191505060405180910390fd5b6001600160a01b038216612f4f5760405162461bcd60e51b81526004018080602001828103825260238152602001806139186023913960400191505060405180910390fd5b612f5a8383836112f4565b612f9781604051806060016040528060268152602001613a28602691396001600160a01b0386166000908152602081905260409020549190612d00565b6001600160a01b038085166000908152602081905260408082209390935590841681522054612fc690826126a6565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008261302f57506000610e4b565b8282028284828161303c57fe5b04146127005760405162461bcd60e51b8152600401808060200182810382526021815260200180613ad46021913960400191505060405180910390fd5b600061270083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506134c7565b600a54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561310657600080fd5b505afa15801561311a573d6000803e3d6000fd5b505050506040513d602081101561313057600080fd5b5051905061313d8261352c565b600a54604080516370a0823160e01b815230600482015290516000926131c39285926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561319157600080fd5b505afa1580156131a5573d6000803e3d6000fd5b505050506040513d60208110156131bb57600080fd5b505190613485565b600a546011546040805163a9059cbb60e01b81526001600160a01b03928316600482015260248101859052905193945091169163a9059cbb916044808201926020929091908290030181600087803b15801561321e57600080fd5b505af1158015613232573d6000803e3d6000fd5b505050506040513d602081101561104c57600080fd5b6000613255826002613079565b905060006132638383613485565b90504761326f836136ff565b600061327b4783613485565b90506132878382613865565b604080518581526020810183905280820185905290517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a15050505050565b6132d78161352c565b600a54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561332257600080fd5b505afa158015613336573d6000803e3d6000fd5b505050506040513d602081101561334c57600080fd5b5051600a546008546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018590529051939450600093919092169163a9059cbb91604480830192602092919082900301818787803b1580156133ac57600080fd5b505af11580156133c0573d6000803e3d6000fd5b505050506040513d60208110156133d657600080fd5b5051905080156112f4576008546040805163ba72a95560e01b81526004810185905290516001600160a01b039092169163ba72a9559160248082019260009290919082900301818387803b15801561342d57600080fd5b505af1158015613441573d6000803e3d6000fd5b5050604080518681526020810186905281517f80195cc573b02cc48460cbca6e6e4cc85ddb91959d946e1c3025ea3d87942dc39450908190039091019150a1505050565b600061270083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612d00565b600081836135165760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612d54578181015183820152602001612d3c565b50600083858161352257fe5b0495945050505050565b60408051600380825260808201909252606091602082018380368337019050509050308160008151811061355c57fe5b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b1580156135b057600080fd5b505afa1580156135c4573d6000803e3d6000fd5b505050506040513d60208110156135da57600080fd5b50518151829060019081106135eb57fe5b6001600160a01b039283166020918202929092010152600a5482519116908290600290811061361657fe5b6001600160a01b03928316602091820292909201015260065461363c913091168461270b565b600654604051635c11d79560e01b8152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a487015287516001600160a01b0390971696635c11d795968a968a9594939092909160c40190602080880191028083838b5b838110156136c25781810151838201526020016136aa565b505050509050019650505050505050600060405180830381600087803b1580156136eb57600080fd5b505af1158015612cf8573d6000803e3d6000fd5b6040805160028082526060808301845292602083019080368337019050509050308160008151811061372d57fe5b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561378157600080fd5b505afa158015613795573d6000803e3d6000fd5b505050506040513d60208110156137ab57600080fd5b50518151829060019081106137bc57fe5b6001600160a01b0392831660209182029290920101526006546137e2913091168461270b565b60065460405163791ac94760e01b8152600481018481526000602483018190523060648401819052426084850181905260a060448601908152875160a487015287516001600160a01b039097169663791ac947968a968a9594939092909160c40190602087810191028083838b83156136c25781810151838201526020016136aa565b60065461387d9030906001600160a01b03168461270b565b6006546040805163f305d71960e01b8152306004820181905260248201869052600060448301819052606483015260848201524260a482015290516001600160a01b039092169163f305d71991849160c480830192606092919082900301818588803b1580156138ec57600080fd5b505af1158015613900573d6000803e3d6000fd5b50505050506040513d60608110156121db57600080fdfe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734d4f4f4e4245414e533a2043616e6e6f742075706461746520676173466f7250726f63657373696e6720746f2073616d652076616c75654d4f4f4e4245414e533a20676173466f7250726f63657373696e67206d757374206265206265747765656e2031302c30303020616e6420312c3030302c3030304f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f20616464726573734d4f4f4e4245414e533a2054686520726f7574657220616c7265616479206861732074686174206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654d4f4f4e4245414e533a20546865206e6577206469766964656e6420747261636b6572206d757374206265206f776e656420627920746865204d4f4f4e4245414e5320746f6b656e20636f6e74726163744d4f4f4e4245414e533a204163636f756e7420697320616c7265616479207468652076616c7565206f6620276578636c7564656427536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724d4f4f4e4245414e533a20546865206469766964656e6420747261636b657220616c726561647920686173207468617420616464726573734d4f4f4e4245414e533a204175746f6d61746564206d61726b6574206d616b6572207061697220697320616c72656164792073657420746f20746861742076616c75654d4f4f4e4245414e533a205468652050616e63616b655377617020706169722063616e6e6f742062652072656d6f7665642066726f6d206175746f6d617465644d61726b65744d616b6572506169727345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122035c204daa96339aa4eef25c1619fb38d50c980900546a55a275b6ceff753747864736f6c634300060c003360a0604052600680546001600160a01b031916736bd193ee6d2104f14f94e2ca6efefae561a4334b1790553480156200003757600080fd5b50604080518082018252601a8082527f4d4f4f4e4245414e535f4469766964656e645f547261636b65720000000000006020808401828152855180870190965292855284015281519192918391839162000094916003916200012c565b508051620000aa9060049060208401906200012c565b5050506000620000bf6200012860201b60201c565b600580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35050610e10601255506802b5e3af16b1880000608052620001c8565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200016f57805160ff19168380011785556200019f565b828001600101855582156200019f579182015b828111156200019f57825182559160200191906001019062000182565b50620001ad929150620001b1565b5090565b5b80821115620001ad5760008155600101620001b2565b608051612120620001e86000398061101652806110e352506121206000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c806385a6b3ae11610125578063bc4c4b37116100ad578063e7841ec01161007c578063e7841ec01461067b578063e98030c714610683578063f2fde38b146106a0578063fbcbc0f1146106c6578063ffb2c479146106ec5761021c565b8063bc4c4b37146105eb578063be10b61414610619578063dd62ed3e14610621578063e30443bc1461064f5761021c565b8063a457c2d7116100f4578063a457c2d71461052a578063a8b9d24014610556578063a9059cbb1461057c578063aafd847a146105a8578063ba72a955146105ce5761021c565b806385a6b3ae146104ec5780638da5cb5b146104f457806391b89fba146104fc57806395d89b41146105225761021c565b806331e79db0116101a85780635183d6fd116101775780635183d6fd146104465780636a474002146104ae5780636f2789ec146104b657806370a08231146104be578063715018a6146104e45761021c565b806331e79db0146103a857806339509351146103d05780634ca6ef28146103fc5780634e7b827f146104205761021c565b8063226cfa3d116101ef578063226cfa3d1461030057806323b872dd1461032657806327ce01471461035c5780633009a60914610382578063313ce5671461038a5761021c565b806306fdde0314610221578063095ea7b31461029e57806309bbedde146102de57806318160ddd146102f8575b600080fd5b610229610727565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026357818101518382015260200161024b565b50505050905090810190601f1680156102905780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102ca600480360360408110156102b457600080fd5b506001600160a01b0381351690602001356107bd565b604080519115158252519081900360200190f35b6102e66107db565b60408051918252519081900360200190f35b6102e66107e1565b6102e66004803603602081101561031657600080fd5b50356001600160a01b03166107e7565b6102ca6004803603606081101561033c57600080fd5b506001600160a01b038135811691602081013590911690604001356107f9565b6102e66004803603602081101561037257600080fd5b50356001600160a01b0316610880565b6102e66108df565b6103926108e5565b6040805160ff9092168252519081900360200190f35b6103ce600480360360208110156103be57600080fd5b50356001600160a01b03166108ea565b005b6102ca600480360360408110156103e657600080fd5b506001600160a01b038135169060200135610a46565b610404610a94565b604080516001600160a01b039092168252519081900360200190f35b6102ca6004803603602081101561043657600080fd5b50356001600160a01b0316610aa3565b6104636004803603602081101561045c57600080fd5b5035610ab8565b604080516001600160a01b0390991689526020890197909752878701959095526060870193909352608086019190915260a085015260c084015260e083015251908190036101000190f35b6103ce610c17565b6102e6610c4e565b6102e6600480360360208110156104d457600080fd5b50356001600160a01b0316610c54565b6103ce610c6f565b6102e6610d11565b610404610d17565b6102e66004803603602081101561051257600080fd5b50356001600160a01b0316610d26565b610229610d31565b6102ca6004803603604081101561054057600080fd5b506001600160a01b038135169060200135610d92565b6102e66004803603602081101561056c57600080fd5b50356001600160a01b0316610dfa565b6102ca6004803603604081101561059257600080fd5b506001600160a01b038135169060200135610e26565b6102e6600480360360208110156105be57600080fd5b50356001600160a01b0316610e3a565b6103ce600480360360208110156105e457600080fd5b5035610e55565b6102ca6004803603604081101561060157600080fd5b506001600160a01b0381351690602001351515610f3f565b6102e6611014565b6102e66004803603604081101561063757600080fd5b506001600160a01b0381358116916020013516611038565b6103ce6004803603604081101561066557600080fd5b506001600160a01b038135169060200135611063565b6102e661122d565b6103ce6004803603602081101561069957600080fd5b5035611233565b6103ce600480360360208110156106b657600080fd5b50356001600160a01b031661134f565b610463600480360360208110156106dc57600080fd5b50356001600160a01b0316611448565b6107096004803603602081101561070257600080fd5b50356115bb565b60408051938452602084019290925282820152519081900360600190f35b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107b35780601f10610788576101008083540402835291602001916107b3565b820191906000526020600020905b81548152906001019060200180831161079657829003601f168201915b5050505050905090565b60006107d16107ca6116b9565b84846116bd565b5060015b92915050565b600b5490565b60025490565b60116020526000908152604090205481565b60006108068484846117a9565b610876846108126116b9565b61087185604051806060016040528060288152602001612039602891396001600160a01b038a166000908152600160205260408120906108506116b9565b6001600160a01b0316815260208101919091526040016000205491906117e0565b6116bd565b5060019392505050565b6001600160a01b038116600090815260086020526040812054600160801b906108cf906108ca906108c46108bf6108b688610c54565b60075490611877565b6118d7565b906118e7565b61191a565b816108d657fe5b0490505b919050565b600f5481565b601290565b6108f26116b9565b6005546001600160a01b03908116911614610942576040805162461bcd60e51b81526020600482018190526024820152600080516020612061833981519152604482015290519081900360640190fd5b6001600160a01b03811660009081526010602052604090205460ff161561096857600080fd5b6001600160a01b0381166000908152601060205260408120805460ff1916600117905561099690829061192d565b6040805163131836e760e21b8152600b60048201526001600160a01b03831660248201529051733a6dffd314818a37fa67c23465cf7992ddf229d691634c60db9c916044808301926000929190829003018186803b1580156109f757600080fd5b505af4158015610a0b573d6000803e3d6000fd5b50506040516001600160a01b03841692507fa878b31040b2e6d0a9a3d3361209db3908ba62014b0dca52adbaee451d128b259150600090a250565b60006107d1610a536116b9565b846108718560016000610a646116b9565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611986565b6006546001600160a01b031681565b60106020526000908152604090205460ff1681565b600080600080600080600080600b733a6dffd314818a37fa67c23465cf7992ddf229d663deb3d89690916040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610b1657600080fd5b505af4158015610b2a573d6000803e3d6000fd5b505050506040513d6020811015610b4057600080fd5b50518910610b67575060009650600019955085945086935083925082915081905080610c0c565b6000600b733a6dffd314818a37fa67c23465cf7992ddf229d663d1aa9e7e90918c6040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b158015610bc357600080fd5b505af4158015610bd7573d6000803e3d6000fd5b505050506040513d6020811015610bed57600080fd5b50519050610bfa81611448565b98509850985098509850985098509850505b919395975091939597565b60405162461bcd60e51b815260040180806020018281038252606f815260200180611f19606f913960800191505060405180910390fd5b60125481565b6001600160a01b031660009081526020819052604090205490565b610c776116b9565b6005546001600160a01b03908116911614610cc7576040805162461bcd60e51b81526020600482018190526024820152600080516020612061833981519152604482015290519081900360640190fd5b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b600a5481565b6005546001600160a01b031690565b60006107d582610dfa565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107b35780601f10610788576101008083540402835291602001916107b3565b60006107d1610d9f6116b9565b84610871856040518060600160405280602581526020016120c66025913960016000610dc96116b9565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906117e0565b6001600160a01b0381166000908152600960205260408120546107d590610e2084610880565b906119e0565b60006107d1610e336116b9565b84846117a9565b6001600160a01b031660009081526009602052604090205490565b610e5d6116b9565b6005546001600160a01b03908116911614610ead576040805162461bcd60e51b81526020600482018190526024820152600080516020612061833981519152604482015290519081900360640190fd5b6000610eb76107e1565b11610ec157600080fd5b8015610f3c57610ef2610ed26107e1565b610ee083600160801b611877565b81610ee757fe5b600754919004611986565b60075560408051828152905133917fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d78454116511919081900360200190a2600a54610f389082611986565b600a555b50565b6000610f496116b9565b6005546001600160a01b03908116911614610f99576040805162461bcd60e51b81526020600482018190526024820152600080516020612061833981519152604482015290519081900360640190fd5b6000610fa484611a22565b9050801561100a576001600160a01b0384166000818152601160209081526040918290204290558151848152915186151593927fa2c38e2d2fb7e3e1912d937fd1ca11ed6d51864dee4cfa7a7bf02becd7acf09292908290030190a360019150506107d5565b5060009392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61106b6116b9565b6005546001600160a01b039081169116146110bb576040805162461bcd60e51b81526020600482018190526024820152600080516020612061833981519152604482015290519081900360640190fd5b6001600160a01b03821660009081526010602052604090205460ff16156110e157611229565b7f0000000000000000000000000000000000000000000000000000000000000000811061119757611112828261192d565b60408051632f0ad01760e21b8152600b60048201526001600160a01b0384166024820152604481018390529051733a6dffd314818a37fa67c23465cf7992ddf229d69163bc2b405c916064808301926000929190829003018186803b15801561117a57600080fd5b505af415801561118e573d6000803e3d6000fd5b5050505061121c565b6111a282600061192d565b6040805163131836e760e21b8152600b60048201526001600160a01b03841660248201529051733a6dffd314818a37fa67c23465cf7992ddf229d691634c60db9c916044808301926000929190829003018186803b15801561120357600080fd5b505af4158015611217573d6000803e3d6000fd5b505050505b611227826001610f3f565b505b5050565b600f5490565b61123b6116b9565b6005546001600160a01b0390811691161461128b576040805162461bcd60e51b81526020600482018190526024820152600080516020612061833981519152604482015290519081900360640190fd5b610e1081101580156112a05750620151808111155b6112db5760405162461bcd60e51b815260040180806020018281038252604f815260200180611fc9604f913960600191505060405180910390fd5b60125481141561131c5760405162461bcd60e51b8152600401808060200182810382526041815260200180611f886041913960600191505060405180910390fd5b60125460405182907f474ea64804364a1e29a4487ddb63c3342a2dd826ccd8acf48825e680a0e6f20f90600090a3601255565b6113576116b9565b6005546001600160a01b039081169116146113a7576040805162461bcd60e51b81526020600482018190526024820152600080516020612061833981519152604482015290519081900360640190fd5b6001600160a01b0381166113ec5760405162461bcd60e51b8152600401808060200182810382526026815260200180611ea16026913960400191505060405180910390fd5b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b600080600080600080600080889750600b733a6dffd314818a37fa67c23465cf7992ddf229d66317e142d190918a6040518363ffffffff1660e01b815260040180838152602001826001600160a01b031681526020019250505060206040518083038186803b1580156114ba57600080fd5b505af41580156114ce573d6000803e3d6000fd5b505050506040513d60208110156114e457600080fd5b5051965060001995506000871261154857600f5487111561151457600f5461150d908890611b91565b9550611548565b600f54600b5460009110611529576000611538565b600f54600b54611538916119e0565b905061154488826118e7565b9650505b61155188610dfa565b945061155c88610880565b6001600160a01b038916600090815260116020526040902054909450925082611586576000611594565b601254611594908490611986565b91504282116115a45760006115ae565b6115ae82426119e0565b9050919395975091939597565b600b5460009081908190806115db575050600f54600092508291506116b2565b600f546000805a90506000805b89841080156115f657508582105b156116a157600b54600190950194851061160f57600094505b6000600b600001868154811061162157fe5b60009182526020808320909101546001600160a01b0316808352601190915260409091205490915061165290611bc3565b1561166e57611662816001610f3f565b1561166e576001909101905b60019092019160005a9050808511156116985761169561168e86836119e0565b8790611986565b95505b93506115e89050565b600f85905590975095509193505050505b9193909250565b3390565b6001600160a01b0383166117025760405162461bcd60e51b81526004018080602001828103825260248152602001806120a26024913960400191505060405180910390fd5b6001600160a01b0382166117475760405162461bcd60e51b8152600401808060200182810382526022815260200180611ec76022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60405162461bcd60e51b8152600401808060200182810382526030815260200180611ee96030913960400191505060405180910390fd5b6000818484111561186f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561183457818101518382015260200161181c565b50505050905090810190601f1680156118615780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082611886575060006107d5565b8282028284828161189357fe5b04146118d05760405162461bcd60e51b81526004018080602001828103825260218152602001806120186021913960400191505060405180910390fd5b9392505050565b600081818112156107d557600080fd5b60008282018183128015906118fc5750838112155b80611911575060008312801561191157508381125b6118d057600080fd5b60008082121561192957600080fd5b5090565b600061193883610c54565b90508082111561196057600061194e83836119e0565b905061195a8482611bea565b50611227565b8082101561122757600061197482846119e0565b90506119808482611c4e565b50505050565b6000828201838110156118d0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006118d083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506117e0565b600080611a2e83610dfa565b90508015611b88576001600160a01b038316600090815260096020526040902054611a599082611986565b6001600160a01b038416600081815260096020908152604091829020939093558051848152905191927fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d92918290030190a26006546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151600093929092169163a9059cbb9160448082019260209290919082900301818787803b158015611b0457600080fd5b505af1158015611b18573d6000803e3d6000fd5b505050506040513d6020811015611b2e57600080fd5b5051905080611b80576001600160a01b038416600090815260096020526040902054611b5a90836119e0565b6001600160a01b03851660009081526009602052604081209190915592506108da915050565b5090506108da565b50600092915050565b6000818303818312801590611ba65750838113155b80611911575060008312801561191157508381136118d057600080fd5b600042821115611bd5575060006108da565b601254611be242846119e0565b101592915050565b611bf48282611c92565b611c2e611c0f6108bf8360075461187790919063ffffffff16565b6001600160a01b03841660009081526008602052604090205490611b91565b6001600160a01b0390921660009081526008602052604090209190915550565b611c588282611d82565b611c2e611c736108bf8360075461187790919063ffffffff16565b6001600160a01b038416600090815260086020526040902054906118e7565b6001600160a01b038216611ced576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611cf960008383611227565b600254611d069082611986565b6002556001600160a01b038216600090815260208190526040902054611d2c9082611986565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b038216611dc75760405162461bcd60e51b81526004018080602001828103825260218152602001806120816021913960400191505060405180910390fd5b611dd382600083611227565b611e1081604051806060016040528060228152602001611e7f602291396001600160a01b03851660009081526020819052604090205491906117e0565b6001600160a01b038316600090815260208190526040902055600254611e3690826119e0565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3505056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f20616464726573734d4f4f4e4245414e535f4469766964656e645f547261636b65723a204e6f207472616e736665727320616c6c6f7765644d4f4f4e4245414e535f4469766964656e645f547261636b65723a2077697468647261774469766964656e642064697361626c65642e20557365207468652027636c61696d272066756e6374696f6e206f6e20746865206d61696e204d6f6f6e4265616e7320636f6e74726163742e4d4f4f4e4245414e535f4469766964656e645f547261636b65723a2043616e6e6f742075706461746520636c61696d5761697420746f2073616d652076616c75654d4f4f4e4245414e535f4469766964656e645f547261636b65723a20636c61696d57616974206d757374206265207570646174656420746f206265747765656e203120616e6420323420686f757273536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220717b5f42dcfc2da1f55c760ce466f50ba483ed41b80faf5b6f13433cce62aede64736f6c634300060c00334d4f4f4e4245414e533a204163636f756e7420697320616c7265616479207468652076616c7565206f6620276578636c75646564274d4f4f4e4245414e533a204175746f6d61746564206d61726b6574206d616b6572207061697220697320616c72656164792073657420746f20746861742076616c7565

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.