Contract 0xa58899544832a252e94e66c36f77b398a1b5a96d

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
Ad
Ad
Txn Hash
Block
From
To
Value [Txn Fee]
0x844da1d47c8e98234ae70519bbd66b19810b69c2495cf217830de5e8f8d005ed54628142021-03-07 4:53:293 hrs 13 mins ago0xb932cc684f661ae83ab532b3eee1a14582c152a1 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00108986
0x8c263b41df3f5e8e21511c668d45d1d0068b8af789f8a8fc2cb94e0951a009dd54627932021-03-07 4:52:263 hrs 14 mins ago0xb932cc684f661ae83ab532b3eee1a14582c152a1 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.0007658
0x41efab2d2d5a8aecff3232dffe3b9d03a29a8eaccdc643d788bdc1ac258f946654614562021-03-07 3:45:354 hrs 21 mins ago0x27c727121297018e775e274ccb03b22663338ba2 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00093986
0x63137e6ff52e7581b426042d52c3057ba8409afdd8e535ff707ccb199fc3e91b54296582021-03-06 1:14:111 day 6 hrs ago0xb932cc684f661ae83ab532b3eee1a14582c152a1 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.0007658
0x6dc4c9fc66051b8beb93a8b1ea85ee47893809db057bc8273224098112bc8cd954195582021-03-05 16:49:101 day 15 hrs ago0x1b368e3de63fa5923e9f145596ed8d059d722f7a IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00093974
0xee5e6d2b6238aff735128808f72ea088126759ab70cc95dcea8232d4f5b121ae54069552021-03-05 6:19:012 days 1 hr ago0xb932cc684f661ae83ab532b3eee1a14582c152a1 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00093986
0x41df81ba7009cb871e2713753398c388e2f9a5e8889cb867784b21d75bb32ea154069252021-03-05 6:17:312 days 1 hr ago0xb932cc684f661ae83ab532b3eee1a14582c152a1 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.0007658
0x848e217c34b96c6b0e4c5821917ada36217c416ed3de5a04ae3f2b7436eba3e953990062021-03-04 23:41:342 days 8 hrs ago0x5f0ff52df8df2c5351c47b6711c33f36c5402909 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00093974
0x4c441b8a7bc2857703285b65e7d4d0d4a113c6476d039d4c5bf2ff766e6330d853499452021-03-03 5:28:464 days 2 hrs ago0x27c727121297018e775e274ccb03b22663338ba2 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00093986
0x9522f0f443fd4e08709d3b513eeceacf1cf0618836bc5b4d860148f426c899ed53490572021-03-03 4:44:224 days 3 hrs ago0xb932cc684f661ae83ab532b3eee1a14582c152a1 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.0007658
0x4b7dae2ddd1837bf182c60ecc1fdc580666fa53b530555ebce09544d43f93e5a53364082021-03-02 18:08:344 days 13 hrs ago0xb45e9087dfcbd48ebeb160bc057d29b5fded22d7 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00102974
0xf414a50eda3dc964237a8da298392598e2ba6f2701cfd47308eb00c2b9e7f96e53359802021-03-02 17:47:104 days 14 hrs ago0x5f0ff52df8df2c5351c47b6711c33f36c5402909 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00093974
0x9ed3e78c0aa1d90665a7a00dd408130840dff1a5400134684709ff7a19679ef553358582021-03-02 17:41:044 days 14 hrs ago0x5f0ff52df8df2c5351c47b6711c33f36c5402909 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00093974
0x8a94e83ae7e5ac935368a6c3bc94287cffece007ca82c238b90906063e44361053318592021-03-02 14:20:464 days 17 hrs ago0x1b368e3de63fa5923e9f145596ed8d059d722f7a IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00108974
0xff70bcf36009995024e52270d4675a19930660f08c75f713db08776fbf19b6ff53269832021-03-02 10:16:584 days 21 hrs ago0x34a843ab2139b99f775a03c78f63a98455c60988 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00085396
0x6d62b0649b8c8e28e7180c91f22a0568cbbfe4fa00f22d53a2548fecdac6e0a353183322021-03-02 3:04:065 days 5 hrs ago0x86688b743a49639059bcb305011f0068206fcd6c IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00070384
0x5594b3b5775ce578a98855fc598930c09995a24052605bda2cd86267cde1082453042422021-03-01 15:18:585 days 16 hrs ago0x34a843ab2139b99f775a03c78f63a98455c60988 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00108974
0xa373e67989f8626e90431e2c52bf05187d3cf97078113aec61b3fb94afb0e96e53013292021-03-01 12:52:595 days 19 hrs ago0xb932cc684f661ae83ab532b3eee1a14582c152a1 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00093986
0xf25ddcf0498de498461565ef3e26dcdb883a55ed7354b2a632067c5d885a4f6e53013242021-03-01 12:52:445 days 19 hrs ago0xb932cc684f661ae83ab532b3eee1a14582c152a1 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.0007658
0x0aec5ddba6a6f99b1e146bb453336a72e9a08a6eabc8975500d1746c01f5507052671672021-02-28 8:15:066 days 23 hrs ago0xb46cd17962318ec6a1c0d7af20fa776f5ff88c15 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00093974
0xad16cd5c03a276c628a4b2cc00961e4e86494b2a798eebda3ea8fdd7dcd4280d52629912021-02-28 4:45:487 days 3 hrs ago0x966513654b0d8167b0f91e5b1d967f165c047722 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00100396
0x67f15e17b530af6b78bd962ea61d4ddccdc15c311479f2b0a09a2b3b25aad6d252507632021-02-27 18:32:547 days 13 hrs ago0x4844a8c7a94948ea5897397a6231317ac7b44b40 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00093974
0x2607adeae7cabaf381897c647b1654224efe37ae891fdefaa8ca31979bef52f552386392021-02-27 8:24:507 days 23 hrs ago0xb932cc684f661ae83ab532b3eee1a14582c152a1 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00093974
0x5b3ad1ee3a19bc303007cb55910f0e97e6ed67ac974550b9cb988281f3028f0c52386202021-02-27 8:23:537 days 23 hrs ago0xb932cc684f661ae83ab532b3eee1a14582c152a1 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00123986
0x358eac370bef208aaabc923d0f04e45fa9b66f5bb7724518b3e480c3d35ed5f952385312021-02-27 8:19:267 days 23 hrs ago0xb932cc684f661ae83ab532b3eee1a14582c152a1 IN  0xa58899544832a252e94e66c36f77b398a1b5a96d0 BNB0.00108986
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x844da1d47c8e98234ae70519bbd66b19810b69c2495cf217830de5e8f8d005ed54628142021-03-07 4:53:293 hrs 13 mins ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: SODA Token0 BNB
0x844da1d47c8e98234ae70519bbd66b19810b69c2495cf217830de5e8f8d005ed54628142021-03-07 4:53:293 hrs 13 mins ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: ICE Token0 BNB
0x844da1d47c8e98234ae70519bbd66b19810b69c2495cf217830de5e8f8d005ed54628142021-03-07 4:53:293 hrs 13 mins ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: SODA Token0 BNB
0x8c263b41df3f5e8e21511c668d45d1d0068b8af789f8a8fc2cb94e0951a009dd54627932021-03-07 4:52:263 hrs 14 mins ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: ICE Token0 BNB
0x8c263b41df3f5e8e21511c668d45d1d0068b8af789f8a8fc2cb94e0951a009dd54627932021-03-07 4:52:263 hrs 14 mins ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: SODA Token0 BNB
0x41efab2d2d5a8aecff3232dffe3b9d03a29a8eaccdc643d788bdc1ac258f946654614562021-03-07 3:45:354 hrs 21 mins ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: SODA Token0 BNB
0x41efab2d2d5a8aecff3232dffe3b9d03a29a8eaccdc643d788bdc1ac258f946654614562021-03-07 3:45:354 hrs 21 mins ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: ICE Token0 BNB
0x41efab2d2d5a8aecff3232dffe3b9d03a29a8eaccdc643d788bdc1ac258f946654614562021-03-07 3:45:354 hrs 21 mins ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: SODA Token0 BNB
0x63137e6ff52e7581b426042d52c3057ba8409afdd8e535ff707ccb199fc3e91b54296582021-03-06 1:14:111 day 6 hrs ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: ICE Token0 BNB
0x63137e6ff52e7581b426042d52c3057ba8409afdd8e535ff707ccb199fc3e91b54296582021-03-06 1:14:111 day 6 hrs ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: SODA Token0 BNB
0x6dc4c9fc66051b8beb93a8b1ea85ee47893809db057bc8273224098112bc8cd954195582021-03-05 16:49:101 day 15 hrs ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: SODA Token0 BNB
0x6dc4c9fc66051b8beb93a8b1ea85ee47893809db057bc8273224098112bc8cd954195582021-03-05 16:49:101 day 15 hrs ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: ICE Token0 BNB
0x6dc4c9fc66051b8beb93a8b1ea85ee47893809db057bc8273224098112bc8cd954195582021-03-05 16:49:101 day 15 hrs ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: SODA Token0 BNB
0xee5e6d2b6238aff735128808f72ea088126759ab70cc95dcea8232d4f5b121ae54069552021-03-05 6:19:012 days 1 hr ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: SODA Token0 BNB
0xee5e6d2b6238aff735128808f72ea088126759ab70cc95dcea8232d4f5b121ae54069552021-03-05 6:19:012 days 1 hr ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: ICE Token0 BNB
0xee5e6d2b6238aff735128808f72ea088126759ab70cc95dcea8232d4f5b121ae54069552021-03-05 6:19:012 days 1 hr ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: SODA Token0 BNB
0x41df81ba7009cb871e2713753398c388e2f9a5e8889cb867784b21d75bb32ea154069252021-03-05 6:17:312 days 1 hr ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: ICE Token0 BNB
0x41df81ba7009cb871e2713753398c388e2f9a5e8889cb867784b21d75bb32ea154069252021-03-05 6:17:312 days 1 hr ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: SODA Token0 BNB
0x848e217c34b96c6b0e4c5821917ada36217c416ed3de5a04ae3f2b7436eba3e953990062021-03-04 23:41:342 days 8 hrs ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: SODA Token0 BNB
0x848e217c34b96c6b0e4c5821917ada36217c416ed3de5a04ae3f2b7436eba3e953990062021-03-04 23:41:342 days 8 hrs ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: ICE Token0 BNB
0x848e217c34b96c6b0e4c5821917ada36217c416ed3de5a04ae3f2b7436eba3e953990062021-03-04 23:41:342 days 8 hrs ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: SODA Token0 BNB
0x4c441b8a7bc2857703285b65e7d4d0d4a113c6476d039d4c5bf2ff766e6330d853499452021-03-03 5:28:464 days 2 hrs ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: SODA Token0 BNB
0x4c441b8a7bc2857703285b65e7d4d0d4a113c6476d039d4c5bf2ff766e6330d853499452021-03-03 5:28:464 days 2 hrs ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: ICE Token0 BNB
0x4c441b8a7bc2857703285b65e7d4d0d4a113c6476d039d4c5bf2ff766e6330d853499452021-03-03 5:28:464 days 2 hrs ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: SODA Token0 BNB
0x9522f0f443fd4e08709d3b513eeceacf1cf0618836bc5b4d860148f426c899ed53490572021-03-03 4:44:224 days 3 hrs ago 0xa58899544832a252e94e66c36f77b398a1b5a96d SoftDrink Swap: ICE Token0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x9b959Ef53E7a84b04D98DeE473e6AfBcC452C478

Contract Name:
SmartPoolReward

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2020-10-31
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

// File: node_modules\@openzeppelin\contracts\math\SafeMath.sol

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, 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;
    }
}

// File: node_modules\@openzeppelin\contracts\utils\Address.sol

pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin\contracts\token\ERC20\SafeERC20.sol

pragma solidity ^0.6.0;

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: @openzeppelin\contracts\utils\EnumerableSet.sol

pragma solidity ^0.6.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint256(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

// File: node_modules\@openzeppelin\contracts\GSN\Context.sol

pragma solidity ^0.6.0;

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

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

// File: @openzeppelin\contracts\access\Ownable.sol

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

// File: contracts\SmartPoolReward.sol

pragma solidity 0.6.12;






//
// Note that it's ownable and the owner wields tremendous power. The ownership
// will be transferred to a governance smart contract once REWARDTOKEN is sufficiently
// distributed and the community can show to govern itself.
//
contract SmartPoolReward is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;     // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
        address ref; // Ref address
        //
        // We do some fancy math here. Basically, any point in time, the amount of REWARDTOKENs
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accRewardTokenPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accRewardTokenPerShare` (and `lastRewardBlock`) gets updated.
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated.
    }

    // Info of each pool.
    struct PoolInfo {
        IERC20 lpToken;           // Address of LP token contract.
        uint256 allocPoint;       // How many allocation points assigned to this pool. REWARDTOKENs to distribute per block.
        uint256 lastRewardBlock;  // Last block number that REWARDTOKENs distribution occurs.
        uint256 accRewardTokenPerShare; // Accumulated REWARDTOKENs per share, times 1e12. See below.
    }

    // The REWARDTOKEN TOKEN!
    IERC20 public rewardToken;
    // Block number when bonus REWARDTOKEN period ends.
    uint256 public bonusEndBlock;
    // REWARDTOKEN tokens created per block.
    uint256 public rewardTokenPerBlock;

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping (uint256 => mapping (address => UserInfo)) public userInfo;
    // Total allocation poitns. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // The block number when REWARDTOKEN mining starts.
    uint256 public startBlock;

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);

    modifier validatePool(uint256 _pid) {
        require(_pid < poolInfo.length, "validatePool: pool exists?");
        _;
    }

    constructor(
        IERC20 _rewardToken,
        uint256 _rewardTokenPerBlock,
        uint256 _startBlock,
        uint256 _bonusEndBlock
    ) public {
        rewardToken = _rewardToken;
        rewardTokenPerBlock = _rewardTokenPerBlock;
        bonusEndBlock = _bonusEndBlock;
        startBlock = _startBlock;
    }

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    function changeRewardTokenPerBlock(uint256 _newRewardTokenPerBlock) public onlyOwner {
        rewardTokenPerBlock = _newRewardTokenPerBlock;
    }

    // Add a new lp to the pool. Can only be called by the owner.
    // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    function add(uint256 _allocPoint, IERC20 _lpToken, bool _withUpdate) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(PoolInfo({
            lpToken: _lpToken,
            allocPoint: _allocPoint,
            lastRewardBlock: lastRewardBlock,
            accRewardTokenPerShare: 0
        }));
    }

    // Update the given pool's REWARDTOKEN allocation point. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) public onlyOwner validatePool(_pid) {
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
        poolInfo[_pid].allocPoint = _allocPoint;
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
        if (_to <= bonusEndBlock) {
            return _to.sub(_from);
        } else if (_from >= bonusEndBlock) {
            return 0;
        } else {
            return bonusEndBlock.sub(_from);
        }
    }

    // View function to see pending REWARDTOKENs on frontend.
    function pendingReward(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accRewardTokenPerShare = pool.accRewardTokenPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 rewardTokenReward = multiplier.mul(rewardTokenPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accRewardTokenPerShare = accRewardTokenPerShare.add(rewardTokenReward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accRewardTokenPerShare).div(1e12).sub(user.rewardDebt);
    }

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public validatePool(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 rewardTokenReward = multiplier.mul(rewardTokenPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        pool.accRewardTokenPerShare = pool.accRewardTokenPerShare.add(rewardTokenReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to SmartPoolReward for REWARDTOKEN allocation.
    function deposit(uint256 _pid, uint256 _amount, address _ref) public validatePool(_pid) {
        require(_ref != msg.sender, "deposit: invalid ref address");
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);

        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accRewardTokenPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                rewardToken.safeTransfer(msg.sender, pending);
            }
        }
        if(_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            user.amount = user.amount.add(_amount);
        }
        user.rewardDebt = user.amount.mul(pool.accRewardTokenPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw LP tokens from SmartPoolReward.
    function withdraw(uint256 _pid, uint256 _amount) public validatePool(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 pending = user.amount.mul(pool.accRewardTokenPerShare).div(1e12).sub(user.rewardDebt);
        if(pending > 0) {
            rewardToken.safeTransfer(msg.sender, pending);
        }
        if(_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accRewardTokenPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public validatePool(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        pool.lpToken.safeTransfer(address(msg.sender), user.amount);
        emit EmergencyWithdraw(msg.sender, _pid, user.amount);
        user.amount = 0;
        user.rewardDebt = 0;
    }

    // Withdraw reward. EMERGENCY ONLY.
    function emergencyRewardWithdraw(uint256 _amount) public onlyOwner {
        require(_amount < rewardToken.balanceOf(address(this)), 'not enough token');
        rewardToken.safeTransfer(address(msg.sender), _amount);
    }
}

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_rewardTokenPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bonusEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newRewardTokenPerBlock","type":"uint256"}],"name":"changeRewardTokenPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_ref","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyRewardWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accRewardTokenPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTokenPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"address","name":"ref","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600060065534801561001557600080fd5b506040516118ff3803806118ff8339818101604052608081101561003857600080fd5b508051602082015160408301516060909301519192909160006100596100d8565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b0395909516949094179093556003919091556002919091556007556100dc565b3390565b611814806100eb6000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c8063554c798a116100b85780638dbb1e3a1161007c5780638dbb1e3a146102fa5780638dbdbe6d1461031d57806393f1a40b1461034f57806398969e82146103a2578063f2fde38b146103ce578063f7c618c1146103f457610142565b8063554c798a14610293578063630b5ba11461029b57806364482f79146102a3578063715018a6146102ce5780638da5cb5b146102d657610142565b80631eaaa0451161010a5780631eaaa045146101dd5780633279beab14610211578063441a3e701461022e57806348cd4cb11461025157806351eb05a6146102595780635312ea8e1461027657610142565b8063081e3eda146101475780631526fe271461016157806317c19ab9146101ae57806317caf6f1146101cd5780631aed6553146101d5575b600080fd5b61014f6103fc565b60408051918252519081900360200190f35b61017e6004803603602081101561017757600080fd5b5035610402565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b6101cb600480360360208110156101c457600080fd5b5035610443565b005b61014f6104a0565b61014f6104a6565b6101cb600480360360608110156101f357600080fd5b508035906001600160a01b03602082013516906040013515156104ac565b6101cb6004803603602081101561022757600080fd5b503561062b565b6101cb6004803603604081101561024457600080fd5b508035906020013561075a565b61014f61090d565b6101cb6004803603602081101561026f57600080fd5b5035610913565b6101cb6004803603602081101561028c57600080fd5b5035610a8a565b61014f610b6c565b6101cb610b72565b6101cb600480360360608110156102b957600080fd5b50803590602081013590604001351515610b91565b6101cb610ca9565b6102de610d4b565b604080516001600160a01b039092168252519081900360200190f35b61014f6004803603604081101561031057600080fd5b5080359060200135610d5a565b6101cb6004803603606081101561033357600080fd5b50803590602081013590604001356001600160a01b0316610d9a565b61037b6004803603604081101561036557600080fd5b50803590602001356001600160a01b0316610f5f565b6040805193845260208401929092526001600160a01b031682820152519081900360600190f35b61014f600480360360408110156103b857600080fd5b50803590602001356001600160a01b0316610f94565b6101cb600480360360208110156103e457600080fd5b50356001600160a01b03166110f6565b6102de6111ee565b60045490565b6004818154811061040f57fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b61044b6111fd565b6000546001600160a01b0390811691161461049b576040805162461bcd60e51b81526020600482018190526024820152600080516020611795833981519152604482015290519081900360640190fd5b600355565b60065481565b60025481565b6104b46111fd565b6000546001600160a01b03908116911614610504576040805162461bcd60e51b81526020600482018190526024820152600080516020611795833981519152604482015290519081900360640190fd5b801561051257610512610b72565b6000600754431161052557600754610527565b435b6006549091506105379085611201565b600655604080516080810182526001600160a01b03948516815260208101958652908101918252600060608201818152600480546001810182559281905292517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b9290930291820180546001600160a01b031916939096169290921790945593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c840155517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d8301555090517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e90910155565b6106336111fd565b6000546001600160a01b03908116911614610683576040805162461bcd60e51b81526020600482018190526024820152600080516020611795833981519152604482015290519081900360640190fd5b600154604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156106ce57600080fd5b505afa1580156106e2573d6000803e3d6000fd5b505050506040513d60208110156106f857600080fd5b50518110610740576040805162461bcd60e51b815260206004820152601060248201526f3737ba1032b737bab3b4103a37b5b2b760811b604482015290519081900360640190fd5b600154610757906001600160a01b03163383611262565b50565b600454829081106107a0576040805162461bcd60e51b815260206004820152601a6024820152600080516020611754833981519152604482015290519081900360640190fd5b6000600484815481106107af57fe5b600091825260208083208784526005825260408085203386529092529220805460049092029092019250841115610822576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b61082b85610913565b6000610865826001015461085f64e8d4a51000610859876003015487600001546112b990919063ffffffff16565b90611312565b90611354565b9050801561088457600154610884906001600160a01b03163383611262565b84156108ae5781546108969086611354565b825582546108ae906001600160a01b03163387611262565b600383015482546108c99164e8d4a5100091610859916112b9565b6001830155604080518681529051879133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b60075481565b60045481908110610959576040805162461bcd60e51b815260206004820152601a6024820152600080516020611754833981519152604482015290519081900360640190fd5b60006004838154811061096857fe5b90600052602060002090600402019050806002015443116109895750610a86565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156109d357600080fd5b505afa1580156109e7573d6000803e3d6000fd5b505050506040513d60208110156109fd57600080fd5b5051905080610a13575043600290910155610a86565b6000610a23836002015443610d5a565b90506000610a506006546108598660010154610a4a600354876112b990919063ffffffff16565b906112b9565b9050610a73610a68846108598464e8d4a510006112b9565b600386015490611201565b6003850155505043600290920191909155505b5050565b60045481908110610ad0576040805162461bcd60e51b815260206004820152601a6024820152600080516020611754833981519152604482015290519081900360640190fd5b600060048381548110610adf57fe5b60009182526020808320868452600582526040808520338087529352909320805460049093029093018054909450610b24926001600160a01b03919091169190611262565b80546040805191825251859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a36000808255600190910155505050565b60035481565b60045460005b81811015610a8657610b8981610913565b600101610b78565b610b996111fd565b6000546001600160a01b03908116911614610be9576040805162461bcd60e51b81526020600482018190526024820152600080516020611795833981519152604482015290519081900360640190fd5b60045483908110610c2f576040805162461bcd60e51b815260206004820152601a6024820152600080516020611754833981519152604482015290519081900360640190fd5b8115610c3d57610c3d610b72565b610c7a83610c7460048781548110610c5157fe5b90600052602060002090600402016001015460065461135490919063ffffffff16565b90611201565b6006819055508260048581548110610c8e57fe5b90600052602060002090600402016001018190555050505050565b610cb16111fd565b6000546001600160a01b03908116911614610d01576040805162461bcd60e51b81526020600482018190526024820152600080516020611795833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b60006002548211610d7657610d6f8284611354565b9050610d94565b6002548310610d8757506000610d94565b600254610d6f9084611354565b92915050565b60045483908110610de0576040805162461bcd60e51b815260206004820152601a6024820152600080516020611754833981519152604482015290519081900360640190fd5b6001600160a01b038216331415610e3e576040805162461bcd60e51b815260206004820152601c60248201527f6465706f7369743a20696e76616c696420726566206164647265737300000000604482015290519081900360640190fd5b600060048581548110610e4d57fe5b60009182526020808320888452600582526040808520338652909252922060049091029091019150610e7e86610913565b805415610ed4576000610eb3826001015461085f64e8d4a51000610859876003015487600001546112b990919063ffffffff16565b90508015610ed257600154610ed2906001600160a01b03163383611262565b505b8415610f00578154610ef1906001600160a01b0316333088611396565b8054610efd9086611201565b81555b60038201548154610f1b9164e8d4a5100091610859916112b9565b6001820155604080518681529051879133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a3505050505050565b60056020908152600092835260408084209091529082529020805460018201546002909201549091906001600160a01b031683565b60008060048481548110610fa457fe5b600091825260208083208784526005825260408085206001600160a01b03898116875290845281862060049586029093016003810154815484516370a0823160e01b81523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b15801561102257600080fd5b505afa158015611036573d6000803e3d6000fd5b505050506040513d602081101561104c57600080fd5b505160028501549091504311801561106357508015155b156110c3576000611078856002015443610d5a565b9050600061109f6006546108598860010154610a4a600354876112b990919063ffffffff16565b90506110be6110b7846108598464e8d4a510006112b9565b8590611201565b935050505b6110eb836001015461085f64e8d4a510006108598688600001546112b990919063ffffffff16565b979650505050505050565b6110fe6111fd565b6000546001600160a01b0390811691161461114e576040805162461bcd60e51b81526020600482018190526024820152600080516020611795833981519152604482015290519081900360640190fd5b6001600160a01b0381166111935760405162461bcd60e51b815260040180806020018281038252602681526020018061172e6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b3390565b60008282018381101561125b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526112b49084906113f6565b505050565b6000826112c857506000610d94565b828202828482816112d557fe5b041461125b5760405162461bcd60e51b81526004018080602001828103825260218152602001806117746021913960400191505060405180910390fd5b600061125b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506114a7565b600061125b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611549565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526113f09085906113f6565b50505050565b606061144b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115a39092919063ffffffff16565b8051909150156112b45780806020019051602081101561146a57600080fd5b50516112b45760405162461bcd60e51b815260040180806020018281038252602a8152602001806117b5602a913960400191505060405180910390fd5b600081836115335760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156114f85781810151838201526020016114e0565b50505050905090810190601f1680156115255780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161153f57fe5b0495945050505050565b6000818484111561159b5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156114f85781810151838201526020016114e0565b505050900390565b60606115b284846000856115ba565b949350505050565b60606115c585611727565b611616576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106116555780518252601f199092019160209182019101611636565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146116b7576040519150601f19603f3d011682016040523d82523d6000602084013e6116bc565b606091505b509150915081156116d05791506115b29050565b8051156116e05780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156114f85781810151838201526020016114e0565b3b15159056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737376616c6964617465506f6f6c3a20706f6f6c206578697374733f000000000000536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220385d46f1ebb2c3b0fa66aa33202d3a0c8e6ae1b69d2241e4b902462f31b7c40964736f6c634300060c0033000000000000000000000000816427ed0c2986c14db63ca09b6376ffd9e0ad7000000000000000000000000000000000000000000000000001346023de81000000000000000000000000000000000000000000000000000000000000001c4bb3000000000000000000000000000000000000000000000000000000000036a9b3

Deployed ByteCode Sourcemap

29594:9059:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32416:95;;;:::i;:::-;;;;;;;;;;;;;;;;31315:26;;;;;;;;;;;;;;;;-1:-1:-1;31315:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;31315:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32519:149;;;;;;;;;;;;;;;;-1:-1:-1;32519:149:0;;:::i;:::-;;31558:34;;;:::i;31164:28::-;;;:::i;32837:520::-;;;;;;;;;;;;;;;;-1:-1:-1;32837:520:0;;;-1:-1:-1;;;;;32837:520:0;;;;;;;;;;;;:::i;38424:226::-;;;;;;;;;;;;;;;;-1:-1:-1;38424:226:0;;:::i;37148:781::-;;;;;;;;;;;;;;;;-1:-1:-1;37148:781:0;;;;;;;:::i;31656:25::-;;;:::i;35392:739::-;;;;;;;;;;;;;;;;-1:-1:-1;35392:739:0;;:::i;38000:375::-;;;;;;;;;;;;;;;;-1:-1:-1;38000:375:0;;:::i;31245:34::-;;;:::i;35136:180::-;;;:::i;33460:323::-;;;;;;;;;;;;;;;;-1:-1:-1;33460:323:0;;;;;;;;;;;;;;:::i;28724:148::-;;;:::i;28082:79::-;;;:::i;:::-;;;;-1:-1:-1;;;;;28082:79:0;;;;;;;;;;;;;;33859:306;;;;;;;;;;;;;;;;-1:-1:-1;33859:306:0;;;;;;;:::i;36212:879::-;;;;;;;;;;;;;;;;-1:-1:-1;36212:879:0;;;;;;;;;;;-1:-1:-1;;;;;36212:879:0;;:::i;31397:66::-;;;;;;;;;;;;;;;;-1:-1:-1;31397:66:0;;;;;;-1:-1:-1;;;;;31397:66:0;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;31397:66:0;;;;;;;;;;;;;;34236:817;;;;;;;;;;;;;;;;-1:-1:-1;34236:817:0;;;;;;-1:-1:-1;;;;;34236:817:0;;:::i;29027:244::-;;;;;;;;;;;;;;;;-1:-1:-1;29027:244:0;-1:-1:-1;;;;;29027:244:0;;:::i;31075:25::-;;;:::i;32416:95::-;32488:8;:15;32416:95;:::o;31315:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31315:26:0;;;;-1:-1:-1;31315:26:0;;;:::o;32519:149::-;28304:12;:10;:12::i;:::-;28294:6;;-1:-1:-1;;;;;28294:6:0;;;:22;;;28286:67;;;;;-1:-1:-1;;;28286:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28286:67:0;;;;;;;;;;;;;;;32615:19:::1;:45:::0;32519:149::o;31558:34::-;;;;:::o;31164:28::-;;;;:::o;32837:520::-;28304:12;:10;:12::i;:::-;28294:6;;-1:-1:-1;;;;;28294:6:0;;;:22;;;28286:67;;;;;-1:-1:-1;;;28286:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28286:67:0;;;;;;;;;;;;;;;32938:11:::1;32934:61;;;32966:17;:15;:17::i;:::-;33005:23;33046:10;;33031:12;:25;:53;;33074:10;;33031:53;;;33059:12;33031:53;33113:15;::::0;33005:79;;-1:-1:-1;33113:32:0::1;::::0;33133:11;33113:19:::1;:32::i;:::-;33095:15;:50:::0;33170:178:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;33170:178:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;33170:178:0;;;;;;33156:8:::1;:193:::0;;::::1;::::0;::::1;::::0;;;;;;;;;;;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;33156:193:0::1;::::0;;;::::1;::::0;;;::::1;::::0;;;;;;;;;;;;;;-1:-1:-1;33156:193:0;;;;;;;32837:520::o;38424:226::-;28304:12;:10;:12::i;:::-;28294:6;;-1:-1:-1;;;;;28294:6:0;;;:22;;;28286:67;;;;;-1:-1:-1;;;28286:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28286:67:0;;;;;;;;;;;;;;;38520:11:::1;::::0;:36:::1;::::0;;-1:-1:-1;;;38520:36:0;;38550:4:::1;38520:36;::::0;::::1;::::0;;;-1:-1:-1;;;;;38520:11:0;;::::1;::::0;:21:::1;::::0;:36;;;;;::::1;::::0;;;;;;;;;:11;:36;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;38520:36:0;38510:46;::::1;38502:75;;;::::0;;-1:-1:-1;;;38502:75:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;38502:75:0;;;;;;;;;;;;;::::1;;38588:11;::::0;:54:::1;::::0;-1:-1:-1;;;;;38588:11:0::1;38621:10;38634:7:::0;38588:24:::1;:54::i;:::-;38424:226:::0;:::o;37148:781::-;32002:8;:15;37217:4;;31995:22;;31987:61;;;;;-1:-1:-1;;;31987:61:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;31987:61:0;;;;;;;;;;;;;;;37234:21:::1;37258:8;37267:4;37258:14;;;;;;;;;::::0;;;::::1;::::0;;;37307;;;:8:::1;:14:::0;;;;;;37322:10:::1;37307:26:::0;;;;;;;37352:11;;37258:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;37352:22:0;-1:-1:-1;37352:22:0::1;37344:53;;;::::0;;-1:-1:-1;;;37344:53:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;37344:53:0;;;;;;;;;;;;;::::1;;37408:16;37419:4;37408:10;:16::i;:::-;37435:15;37453:75;37512:4;:15;;;37453:54;37502:4;37453:44;37469:4;:27;;;37453:4;:11;;;:15;;:44;;;;:::i;:::-;:48:::0;::::1;:54::i;:::-;:58:::0;::::1;:75::i;:::-;37435:93:::0;-1:-1:-1;37542:11:0;;37539:88:::1;;37570:11;::::0;:45:::1;::::0;-1:-1:-1;;;;;37570:11:0::1;37595:10;37607:7:::0;37570:24:::1;:45::i;:::-;37640:11:::0;;37637:151:::1;;37682:11:::0;;:24:::1;::::0;37698:7;37682:15:::1;:24::i;:::-;37668:38:::0;;37721:12;;:55:::1;::::0;-1:-1:-1;;;;;37721:12:0::1;37755:10;37768:7:::0;37721:25:::1;:55::i;:::-;37832:27;::::0;::::1;::::0;37816:11;;:54:::1;::::0;37865:4:::1;::::0;37816:44:::1;::::0;:15:::1;:44::i;:54::-;37798:15;::::0;::::1;:72:::0;37886:35:::1;::::0;;;;;;;37907:4;;37895:10:::1;::::0;37886:35:::1;::::0;;;;::::1;::::0;;::::1;32059:1;;;37148:781:::0;;;:::o;31656:25::-;;;;:::o;35392:739::-;32002:8;:15;35446:4;;31995:22;;31987:61;;;;;-1:-1:-1;;;31987:61:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;31987:61:0;;;;;;;;;;;;;;;35463:21:::1;35487:8;35496:4;35487:14;;;;;;;;;;;;;;;;;;35463:38;;35532:4;:20;;;35516:12;:36;35512:75;;35569:7;;;35512:75;35616:12:::0;;:37:::1;::::0;;-1:-1:-1;;;35616:37:0;;35647:4:::1;35616:37;::::0;::::1;::::0;;;35597:16:::1;::::0;-1:-1:-1;;;;;35616:12:0::1;::::0;:22:::1;::::0;:37;;;;;::::1;::::0;;;;;;;;:12;:37;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;35616:37:0;;-1:-1:-1;35668:13:0;35664:102:::1;;-1:-1:-1::0;35721:12:0::1;35698:20;::::0;;::::1;:35:::0;35748:7:::1;;35664:102;35776:18;35797:49;35811:4;:20;;;35833:12;35797:13;:49::i;:::-;35776:70;;35857:25;35885:77;35946:15;;35885:56;35925:4;:15;;;35885:35;35900:19;;35885:10;:14;;:35;;;;:::i;:::-;:39:::0;::::1;:56::i;:77::-;35857:105:::0;-1:-1:-1;36003:74:0::1;36035:41;36067:8:::0;36035:27:::1;35857:105:::0;36057:4:::1;36035:21;:27::i;:41::-;36003:27;::::0;::::1;::::0;;:31:::1;:74::i;:::-;35973:27;::::0;::::1;:104:::0;-1:-1:-1;;36111:12:0::1;36088:20;::::0;;::::1;:35:::0;;;;-1:-1:-1;32059:1:0::1;35392:739:::0;;:::o;38000:375::-;32002:8;:15;38061:4;;31995:22;;31987:61;;;;;-1:-1:-1;;;31987:61:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;31987:61:0;;;;;;;;;;;;;;;38078:21:::1;38102:8;38111:4;38102:14;;;;;;;;;::::0;;;::::1;::::0;;;38151;;;:8:::1;:14:::0;;;;;;38166:10:::1;38151:26:::0;;;;;;;;38235:11;;38102:14:::1;::::0;;::::1;::::0;;::::1;38188:12:::0;;38102:14;;-1:-1:-1;38188:59:0::1;::::0;-1:-1:-1;;;;;38188:12:0;;;::::1;::::0;38166:10;38188:25:::1;:59::i;:::-;38299:11:::0;;38263:48:::1;::::0;;;;;;38293:4;;38281:10:::1;::::0;38263:48:::1;::::0;;;;::::1;::::0;;::::1;38336:1;38322:15:::0;;;38348::::1;::::0;;::::1;:19:::0;-1:-1:-1;;;38000:375:0:o;31245:34::-;;;;:::o;35136:180::-;35198:8;:15;35181:14;35224:85;35252:6;35246:3;:12;35224:85;;;35282:15;35293:3;35282:10;:15::i;:::-;35260:5;;35224:85;;33460:323;28304:12;:10;:12::i;:::-;28294:6;;-1:-1:-1;;;;;28294:6:0;;;:22;;;28286:67;;;;;-1:-1:-1;;;28286:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28286:67:0;;;;;;;;;;;;;;;32002:8:::1;:15:::0;33556:4;;31995:22;::::1;31987:61;;;::::0;;-1:-1:-1;;;31987:61:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;31987:61:0;;;;;;;;;;;;;::::1;;33577:11:::2;33573:61;;;33605:17;:15;:17::i;:::-;33662:63;33713:11;33662:46;33682:8;33691:4;33682:14;;;;;;;;;;;;;;;;;;:25;;;33662:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::2;:63::i;:::-;33644:15;:81;;;;33764:11;33736:8;33745:4;33736:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;28364:1:::1;33460:323:::0;;;:::o;28724:148::-;28304:12;:10;:12::i;:::-;28294:6;;-1:-1:-1;;;;;28294:6:0;;;:22;;;28286:67;;;;;-1:-1:-1;;;28286:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28286:67:0;;;;;;;;;;;;;;;28831:1:::1;28815:6:::0;;28794:40:::1;::::0;-1:-1:-1;;;;;28815:6:0;;::::1;::::0;28794:40:::1;::::0;28831:1;;28794:40:::1;28862:1;28845:19:::0;;-1:-1:-1;;;;;;28845:19:0::1;::::0;;28724:148::o;28082:79::-;28120:7;28147:6;-1:-1:-1;;;;;28147:6:0;28082:79;:::o;33859:306::-;33931:7;33962:13;;33955:3;:20;33951:207;;33999:14;:3;34007:5;33999:7;:14::i;:::-;33992:21;;;;33951:207;34044:13;;34035:5;:22;34031:127;;-1:-1:-1;34081:1:0;34074:8;;34031:127;34122:13;;:24;;34140:5;34122:17;:24::i;34031:127::-;33859:306;;;;:::o;36212:879::-;32002:8;:15;36294:4;;31995:22;;31987:61;;;;;-1:-1:-1;;;31987:61:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;31987:61:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;36319:18:0;::::1;36327:10;36319:18;;36311:59;;;::::0;;-1:-1:-1;;;36311:59:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;36381:21;36405:8;36414:4;36405:14;;;;;;;;;::::0;;;::::1;::::0;;;36454;;;:8:::1;:14:::0;;;;;;36469:10:::1;36454:26:::0;;;;;;;36405:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;36491:16:0::1;36463:4:::0;36491:10:::1;:16::i;:::-;36524:11:::0;;:15;36520:251:::1;;36556:15;36574:75;36633:4;:15;;;36574:54;36623:4;36574:44;36590:4;:27;;;36574:4;:11;;;:15;;:44;;;;:::i;:75::-;36556:93:::0;-1:-1:-1;36667:11:0;;36664:96:::1;;36699:11;::::0;:45:::1;::::0;-1:-1:-1;;;;;36699:11:0::1;36724:10;36736:7:::0;36699:24:::1;:45::i;:::-;36520:251;;36784:11:::0;;36781:170:::1;;36812:12:::0;;:74:::1;::::0;-1:-1:-1;;;;;36812:12:0::1;36850:10;36871:4;36878:7:::0;36812:29:::1;:74::i;:::-;36915:11:::0;;:24:::1;::::0;36931:7;36915:15:::1;:24::i;:::-;36901:38:::0;;36781:170:::1;36995:27;::::0;::::1;::::0;36979:11;;:54:::1;::::0;37028:4:::1;::::0;36979:44:::1;::::0;:15:::1;:44::i;:54::-;36961:15;::::0;::::1;:72:::0;37049:34:::1;::::0;;;;;;;37069:4;;37057:10:::1;::::0;37049:34:::1;::::0;;;;::::1;::::0;;::::1;32059:1;;36212:879:::0;;;;:::o;31397:66::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31397:66:0;;:::o;34236:817::-;34311:7;34331:21;34355:8;34364:4;34355:14;;;;;;;;;;;;;;;;34404;;;:8;:14;;;;;;-1:-1:-1;;;;;34404:21:0;;;;;;;;;;;34355:14;;;;;;;34469:27;;;;34526:12;;:37;;-1:-1:-1;;;34526:37:0;;34557:4;34526:37;;;;;;;;;34355:14;;-1:-1:-1;34404:21:0;;34469:27;;34355:14;;34526:12;;;;;:22;;:37;;;;;34355:14;;34526:37;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34526:37:0;34593:20;;;;34526:37;;-1:-1:-1;34578:12:0;:35;:52;;;;-1:-1:-1;34617:13:0;;;34578:52;34574:384;;;34647:18;34668:49;34682:4;:20;;;34704:12;34668:13;:49::i;:::-;34647:70;;34732:25;34760:77;34821:15;;34760:56;34800:4;:15;;;34760:35;34775:19;;34760:10;:14;;:35;;;;:::i;:77::-;34732:105;-1:-1:-1;34877:69:0;34904:41;34936:8;34904:27;34732:105;34926:4;34904:21;:27::i;:41::-;34877:22;;:26;:69::i;:::-;34852:94;;34574:384;;;34975:70;35029:4;:15;;;34975:49;35019:4;34975:39;34991:22;34975:4;:11;;;:15;;:39;;;;:::i;:70::-;34968:77;34236:817;-1:-1:-1;;;;;;;34236:817:0:o;29027:244::-;28304:12;:10;:12::i;:::-;28294:6;;-1:-1:-1;;;;;28294:6:0;;;:22;;;28286:67;;;;;-1:-1:-1;;;28286:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28286:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;29116:22:0;::::1;29108:73;;;;-1:-1:-1::0;;;29108:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29218:6;::::0;;29197:38:::1;::::0;-1:-1:-1;;;;;29197:38:0;;::::1;::::0;29218:6;::::1;::::0;29197:38:::1;::::0;::::1;29246:6;:17:::0;;-1:-1:-1;;;;;;29246:17:0::1;-1:-1:-1::0;;;;;29246:17:0;;;::::1;::::0;;;::::1;::::0;;29027:244::o;31075:25::-;;;-1:-1:-1;;;;;31075:25:0;;:::o;26638:106::-;26726:10;26638:106;:::o;3709:181::-;3767:7;3799:5;;;3823:6;;;;3815:46;;;;;-1:-1:-1;;;3815:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;3881:1;3709:181;-1:-1:-1;;;3709:181:0:o;14873:177::-;14983:58;;;-1:-1:-1;;;;;14983:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;14983:58:0;-1:-1:-1;;;14983:58:0;;;14956:86;;14976:5;;14956:19;:86::i;:::-;14873:177;;;:::o;5063:471::-;5121:7;5366:6;5362:47;;-1:-1:-1;5396:1:0;5389:8;;5362:47;5433:5;;;5437:1;5433;:5;:1;5457:5;;;;;:10;5449:56;;;;-1:-1:-1;;;5449:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6010:132;6068:7;6095:39;6099:1;6102;6095:39;;;;;;;;;;;;;;;;;:3;:39::i;4173:136::-;4231:7;4258:43;4262:1;4265;4258:43;;;;;;;;;;;;;;;;;:3;:43::i;15058:205::-;15186:68;;;-1:-1:-1;;;;;15186:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15186:68:0;-1:-1:-1;;;15186:68:0;;;15159:96;;15179:5;;15159:19;:96::i;:::-;15058:205;;;;:::o;17178:761::-;17602:23;17628:69;17656:4;17628:69;;;;;;;;;;;;;;;;;17636:5;-1:-1:-1;;;;;17628:27:0;;;:69;;;;;:::i;:::-;17712:17;;17602:95;;-1:-1:-1;17712:21:0;17708:224;;17854:10;17843:30;;;;;;;;;;;;;;;-1:-1:-1;17843:30:0;17835:85;;;;-1:-1:-1;;;17835:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6638:278;6724:7;6759:12;6752:5;6744:28;;;;-1:-1:-1;;;6744:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6783:9;6799:1;6795;:5;;;;;;;6638:278;-1:-1:-1;;;;;6638:278:0:o;4612:192::-;4698:7;4734:12;4726:6;;;;4718:29;;;;-1:-1:-1;;;4718:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4770:5:0;;;4612:192::o;11862:196::-;11965:12;11997:53;12020:6;12028:4;12034:1;12037:12;11997:22;:53::i;:::-;11990:60;11862:196;-1:-1:-1;;;;11862:196:0:o;13239:979::-;13369:12;13402:18;13413:6;13402:10;:18::i;:::-;13394:60;;;;;-1:-1:-1;;;13394:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13528:12;13542:23;13569:6;-1:-1:-1;;;;;13569:11:0;13589:8;13600:4;13569:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13569:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13527:78;;;;13620:7;13616:595;;;13651:10;-1:-1:-1;13644:17:0;;-1:-1:-1;13644:17:0;13616:595;13765:17;;:21;13761:439;;14028:10;14022:17;14089:15;14076:10;14072:2;14068:19;14061:44;13976:148;14164:20;;-1:-1:-1;;;14164:20:0;;;;;;;;;;;;;;;;;14171:12;;14164:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8944:422;9311:20;9350:8;;;8944:422::o

Swarm Source

ipfs://385d46f1ebb2c3b0fa66aa33202d3a0c8e6ae1b69d2241e4b902462f31b7c409
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.