Contract 0xf499d79Ac73569220c91F4bd016f328e40F983F2

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x594877f303d4d137e37ff14163a86376afdaafb9538b66af4f040ad64f9befbeEmergency Withdr...42086692021-01-22 8:54:38366 days 1 hr ago0x9b3295b892007d73c1a36a28b15741e2976f83fb IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.0007497
0xe802683b3efdbba3717b9b61d5fdc9a8ef10aa9681900ccdc0df3011a43d529cEmergency Withdr...37307482021-01-05 18:35:18382 days 15 hrs ago0x335750387f02fd6c0de18bb8783c3b6ef2084bfa IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.00052486
0x5e67c2277fc5426993662710f3168c6f96bcb252c887495f375fd808ee71ee98Emergency Withdr...25391242020-11-25 8:12:18424 days 2 hrs ago0x7e71ee150ba65afe3e34c54f0f78ec8b971d95bf IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.0007497
0x09ec998109e4d66f896d666b58da774446ea8252c930e2a9609d8816a8a12104Emergency Withdr...25297972020-11-25 0:25:03424 days 10 hrs ago0x4762cebb4b1796f68b52716c50db2cf9a82fe3a8 IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.0007497
0x95334528d216f57a7c22dc83097a6b8d6c383d3728c8c1f860817a1021a22345Emergency Withdr...24855182020-11-23 11:27:08425 days 23 hrs ago0xa63e3b96cd3a48a33c1115a7442a97349395c8fc IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.0007497
0xbf886ab99c45cb978dc184287ddc672a6f0af24c92986e462d2f4c03a92133c3Emergency Withdr...24827682020-11-23 9:09:38426 days 1 hr ago0xb7376be8f4c9b5db5c736a7b4ff395a37b2d7029 IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.00052486
0x22b8d809cec83769efc4462e6fde36bc8daf34392cf00b78a222d44edc8ab2dbEmergency Withdr...23609972020-11-19 3:32:13430 days 7 hrs ago0xd19a0ba50fdcc95163b926133be905f5e2816d02 IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.0007497
0x38b7891bc5d259bd471a51078d1a4db9d41a935067670827ca3d1a395a4f9498Emergency Withdr...22920072020-11-16 17:54:54432 days 16 hrs ago0x3d5c457920ff88a7a42d2af63d450e5f2da61d14 IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.00052486
0x7b2bc29ff327694ce09bebb469f6f68ab0929cdd0c7246101ab03e2d079d118dDeposit22919752020-11-16 17:53:18432 days 16 hrs ago0x3d5c457920ff88a7a42d2af63d450e5f2da61d14 IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.00200848
0x5303bd9d4b4695164c671c6ff00791f259b875908d11258baca67b19dad38e15Emergency Withdr...22562022020-11-15 12:00:03433 days 22 hrs ago0xdccfd98186def1e8f50539c42c978b71ce111117 IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.00052486
0xb22c59fab0c8160b85fedf7604a3fce947e261a7df64a5ed8d99d12581fd6b1cEmergency Withdr...22558932020-11-15 11:44:36433 days 22 hrs ago0xee1f49fec6ba8a87bc61b202b71cec04073025b3 IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.0007497
0x9a379b9880514237cb4d37888775e00db9056c405bbe6dd15726297abf1b53deEmergency Withdr...22548172020-11-15 10:50:48433 days 23 hrs ago0x8b8265200ecff9afd336a67904a07ba6187882d8 IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.00052486
0x260f68fb1a24b08fa0f24e221998ff752050254dfecdd1c7a64c6b7d51459550Update Pool22443332020-11-15 2:06:28434 days 8 hrs ago0x335750387f02fd6c0de18bb8783c3b6ef2084bfa IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.00085706
0xa0082bf17b2d866531fd87d80f275afaa13d8cf04acaeefc0bede9eb61d30951Emergency Withdr...22270482020-11-14 11:41:16434 days 22 hrs ago0x0cecdbe90b889751afcd5a4e78f4537ac9985412 IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.0007497
0x1ee57af5636624ef1118a1706a955890befde1ae46af7a4a93f1809120a9424cEmergency Withdr...22253062020-11-14 10:14:10435 days 20 mins ago0x0f5ab2b1e8c8bd006998fbef515513f9779f04f6 IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.00052486
0x13d1eb81ecf189b11f9ba13d0e712c5bdcc1856524099305e383fc36c01b26e6Emergency Withdr...22217232020-11-14 7:15:01435 days 3 hrs ago0x8bf0d9c57888c14e8e7f9e548c97f5f3c64751f2 IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.00052486
0x7a9731b72f9b3e446362d5c78949fb167f149ad9318ee67a91259ebdd6b270cdEmergency Withdr...22119002020-11-13 23:03:47435 days 11 hrs ago0x0854ab2c44aec9a45a9881da561d9e43af3f8a65 IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.0007497
0x8d38ccaba718b14a68996baa9d6368b15d31e38f977ce6301f43fef385967466Emergency Withdr...22115302020-11-13 22:45:17435 days 11 hrs ago0x8f0a7876698da27fc99d655ed4e13e005bbdd51b IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.0007497
0x4f57ee2b5218479d4ef396f983a11c92d536ea356df4b360446e97836f08eb06Emergency Withdr...21940522020-11-13 8:09:55436 days 2 hrs ago0x18b8c80d6322d77cae8a133d39cfeb4d6b0a7c7e IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.00052486
0xa50949b8351475fa61cd0cafa2e2b98c347ea4896bc538dce848cb95bb3ccf8cEmergency Withdr...21925322020-11-13 6:53:55436 days 3 hrs ago0x1d1722028afdb9ee6531b3da15e365df6e41765c IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.00052486
0x97b29bbccfaf9debbcf56a76005090ab8b263158b4bdef4e7b6e2a9ee8db6977Emergency Withdr...21694232020-11-12 11:38:25436 days 22 hrs ago0xe879a2fd6ece4dbd735f4dc99f9919adb1089d69 IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.0007497
0xd8a0d94d37a87c52a3b5e1180950c284c4da595b8f0a5ea42fee4d5b17358c54Emergency Withdr...21445432020-11-11 14:53:10437 days 19 hrs ago0x713c11fda7ddb0ba67126050ba1f2395a52b47d1 IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.00052486
0x3f6d8f4fcb4c683fab2273833d069f0401637c923cfa4a4f4ff6cf9d5c30cbccEmergency Withdr...21236292020-11-10 21:27:28438 days 13 hrs ago0xf7022c296844873619fe42c173864415b6d40ba1 IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.0007497
0x1492f41fa157040696d7431f1a4181e9e8d03bdb2340ab3401892977f0beb8d6Deposit21235152020-11-10 21:21:46438 days 13 hrs ago0xf7022c296844873619fe42c173864415b6d40ba1 IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.00200872
0x21d0d6503255afd83dc6f9a84455a5a5c180c1f6e31670938764d505c847bb91Deposit21187262020-11-10 17:22:19438 days 17 hrs ago0x0f5ab2b1e8c8bd006998fbef515513f9779f04f6 IN  0xf499d79ac73569220c91f4bd016f328e40f983f20 BNB0.00200848
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SmartGangster

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

pragma solidity >=0.4.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;
    }

    function min(uint256 x, uint256 y) internal pure returns (uint256 z) {
        z = x < y ? x : y;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint256 y) internal pure returns (uint256 z) {
        if (y > 3) {
            z = y;
            uint256 x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}

// File: traphouse-lib/contracts/token/BEP20/IBEP20.sol

// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

interface IBEP20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the token decimals.
     */
    function decimals() external view returns (uint8);

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

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

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external view returns (address);

    /**
     * @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 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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            codehash := extcodehash(account)
        }
        return (codehash != accountHash && codehash != 0x0);
    }

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


pragma solidity ^0.6.0;




/**
 * @title SafeBEP20
 * @dev Wrappers around BEP20 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 SafeBEP20 for IBEP20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeBEP20 {
    using SafeMath for uint256;
    using Address for address;

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

    function safeTransferFrom(
        IBEP20 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
     * {IBEP20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IBEP20 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),
            'SafeBEP20: approve from non-zero to non-zero allowance'
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IBEP20 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(
        IBEP20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(
            value,
            'SafeBEP20: 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(IBEP20 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, 'SafeBEP20: low-level call failed');
        if (returndata.length > 0) {
            // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), 'SafeBEP20: BEP20 operation did not succeed');
        }
    }
}


pragma solidity >=0.4.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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor() internal {}

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

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


pragma solidity >=0.4.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 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), 'Ownable: new owner is the zero address');
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

pragma solidity 0.6.12;





// import "@nomiclabs/buidler/console.sol";

contract SmartGangster is Ownable {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;     // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
    }

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

    // The DRUGS TOKEN!
    IBEP20 public hoes;
    IBEP20 public rewardToken;

    // DRUGS tokens created per block.
    uint256 public rewardPerBlock;

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    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 DRUGS mining starts.
    uint256 public startBlock;
    // The block number when DRUGS mining ends.
    uint256 public bonusEndBlock;

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

    constructor(
        IBEP20 _hoes,
        IBEP20 _rewardToken,
        uint256 _rewardPerBlock,
        uint256 _startBlock,
        uint256 _bonusEndBlock
    ) public {
        hoes = _hoes;
        rewardToken = _rewardToken;
        rewardPerBlock = _rewardPerBlock;
        startBlock = _startBlock;
        bonusEndBlock = _bonusEndBlock;

        // staking pool
        poolInfo.push(PoolInfo({
            lpToken: _hoes,
            allocPoint: 1000,
            lastRewardBlock: startBlock,
            accDrugsPerShare: 0
        }));

        totalAllocPoint = 1000;

    }

    // 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 Reward on frontend.
    function pendingReward(address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[_user];
        uint256 accDrugsPerShare = pool.accDrugsPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 drugsReward = multiplier.mul(rewardPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accDrugsPerShare = accDrugsPerShare.add(drugsReward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accDrugsPerShare).div(1e12).sub(user.rewardDebt);
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        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 drugsReward = multiplier.mul(rewardPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        pool.accDrugsPerShare = pool.accDrugsPerShare.add(drugsReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

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


    // Stake HOES tokens to SmartGangster
    function deposit(uint256 _amount) public {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[msg.sender];
        updatePool(0);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accDrugsPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                rewardToken.safeTransfer(address(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.accDrugsPerShare).div(1e12);

        emit Deposit(msg.sender, _amount);
    }

    // Withdraw HOES tokens from STAKING.
    function withdraw(uint256 _amount) public {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(0);
        uint256 pending = user.amount.mul(pool.accDrugsPerShare).div(1e12).sub(user.rewardDebt);
        if(pending > 0) {
            rewardToken.safeTransfer(address(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.accDrugsPerShare).div(1e12);

        emit Withdraw(msg.sender, _amount);
    }

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

    // 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 Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IBEP20","name":"_hoes","type":"address"},{"internalType":"contract IBEP20","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_rewardPerBlock","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":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"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":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"bonusEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyRewardWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"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":"hoes","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"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":"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 IBEP20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accDrugsPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","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":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600060065534801561001557600080fd5b506040516114a13803806114a1833981810160405260a081101561003857600080fd5b5080516020820151604083015160608401516080909401519293919290919060006100616101d1565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b039687166001600160a01b03199182168117835560028054978916978316979097179096556003949094556007839055600891909155604080516080810182529485526103e86020860181815291860193845260006060870181815260048054958601815591829052965193027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b8101805494909816939095169290921790955593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c830155517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d82015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e909101556006556101d5565b3390565b6112bd806101e46000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c8063630b5ba1116100ad578063b6b55f2511610071578063b6b55f251461029c578063db2e21bc146102b9578063f2fde38b146102c1578063f40f0f52146102e7578063f7c618c11461030d57610121565b8063630b5ba114610259578063715018a6146102615780638ae39cac146102695780638da5cb5b146102715780638dbb1e3a1461027957610121565b80632e1a7d4d116100f45780632e1a7d4d146101d45780633279beab146101f357806348cd4cb11461021057806351eb05a614610218578063523db94d1461023557610121565b80631526fe271461012657806317caf6f1146101735780631959a0021461018d5780631aed6553146101cc575b600080fd5b6101436004803603602081101561013c57600080fd5b5035610315565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b61017b610356565b60408051918252519081900360200190f35b6101b3600480360360208110156101a357600080fd5b50356001600160a01b031661035c565b6040805192835260208301919091528051918290030190f35b61017b610375565b6101f1600480360360208110156101ea57600080fd5b503561037b565b005b6101f16004803603602081101561020957600080fd5b50356104e0565b61017b610621565b6101f16004803603602081101561022e57600080fd5b5035610627565b61023d610756565b604080516001600160a01b039092168252519081900360200190f35b6101f1610765565b6101f1610788565b61017b61083c565b61023d610842565b61017b6004803603604081101561028f57600080fd5b5080359060200135610851565b6101f1600480360360208110156102b257600080fd5b5035610891565b6101f16109a6565b6101f1600480360360208110156102d757600080fd5b50356001600160a01b0316610a39565b61017b600480360360208110156102fd57600080fd5b50356001600160a01b0316610aac565b61023d610c04565b6004818154811061032257fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60065481565b6005602052600090815260409020805460019091015482565b60085481565b6000600460008154811061038b57fe5b60009182526020808320338452600590915260409092208054600490920290920192508311156103f7576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6104016000610627565b600061043b826001015461043564e8d4a5100061042f87600301548760000154610c1390919063ffffffff16565b90610c73565b90610cb5565b9050801561045a5760025461045a906001600160a01b03163383610cf7565b831561048457815461046c9085610cb5565b82558254610484906001600160a01b03163386610cf7565b6003830154825461049f9164e8d4a510009161042f91610c13565b600183015560408051858152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a250505050565b6104e8610d4e565b6000546001600160a01b0390811691161461054a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600254604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561059557600080fd5b505afa1580156105a9573d6000803e3d6000fd5b505050506040513d60208110156105bf57600080fd5b50518110610607576040805162461bcd60e51b815260206004820152601060248201526f3737ba1032b737bab3b4103a37b5b2b760811b604482015290519081900360640190fd5b60025461061e906001600160a01b03163383610cf7565b50565b60075481565b60006004828154811061063657fe5b9060005260206000209060040201905080600201544311610657575061061e565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156106a157600080fd5b505afa1580156106b5573d6000803e3d6000fd5b505050506040513d60208110156106cb57600080fd5b50519050806106e157504360029091015561061e565b60006106f1836002015443610851565b9050600061071e60065461042f866001015461071860035487610c1390919063ffffffff16565b90610c13565b90506107416107368461042f8464e8d4a51000610c13565b600386015490610d52565b60038501555050436002909201919091555050565b6001546001600160a01b031681565b60045460005b818110156107845761077c81610627565b60010161076b565b5050565b610790610d4e565b6000546001600160a01b039081169116146107f2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60035481565b6000546001600160a01b031690565b6000600854821161086d576108668284610cb5565b905061088b565b600854831061087e5750600061088b565b6008546108669084610cb5565b92915050565b600060046000815481106108a157fe5b600091825260208083203384526005909152604083206004909202019250906108c990610627565b80541561091f5760006108fe826001015461043564e8d4a5100061042f87600301548760000154610c1390919063ffffffff16565b9050801561091d5760025461091d906001600160a01b03163383610cf7565b505b821561094b57815461093c906001600160a01b0316333086610dac565b80546109489084610d52565b81555b600382015481546109669164e8d4a510009161042f91610c13565b600182015560408051848152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2505050565b600060046000815481106109b657fe5b6000918252602080832033808552600590925260409093208054600490930290930180549094506109f4926001600160a01b03919091169190610cf7565b600080825560018201819055604080519182525133917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695919081900360200190a25050565b610a41610d4e565b6000546001600160a01b03908116911614610aa3576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61061e81610e0c565b6000806004600081548110610abd57fe5b600091825260208083206001600160a01b03878116855260058352604080862060049586029093016003810154815483516370a0823160e01b81523098810198909852925191985093969395939491909216926370a082319260248083019392829003018186803b158015610b3157600080fd5b505afa158015610b45573d6000803e3d6000fd5b505050506040513d6020811015610b5b57600080fd5b5051600285015490915043118015610b7257508015155b15610bd2576000610b87856002015443610851565b90506000610bae60065461042f886001015461071860035487610c1390919063ffffffff16565b9050610bcd610bc68461042f8464e8d4a51000610c13565b8590610d52565b935050505b610bfa836001015461043564e8d4a5100061042f868860000154610c1390919063ffffffff16565b9695505050505050565b6002546001600160a01b031681565b600082610c225750600061088b565b82820282848281610c2f57fe5b0414610c6c5760405162461bcd60e51b81526004018080602001828103825260218152602001806112676021913960400191505060405180910390fd5b9392505050565b6000610c6c83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610eac565b6000610c6c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610f4e565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d49908490610fa8565b505050565b3390565b600082820183811015610c6c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610e06908590610fa8565b50505050565b6001600160a01b038116610e515760405162461bcd60e51b81526004018080602001828103825260268152602001806112416026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008183610f385760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610efd578181015183820152602001610ee5565b50505050905090810190601f168015610f2a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610f4457fe5b0495945050505050565b60008184841115610fa05760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610efd578181015183820152602001610ee5565b505050900390565b6060610ffd826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110599092919063ffffffff16565b805190915015610d495780806020019051602081101561101c57600080fd5b5051610d495760405162461bcd60e51b815260040180806020018281038252602a815260200180611217602a913960400191505060405180910390fd5b60606110688484600085611070565b949350505050565b606061107b856111dd565b6110cc576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061110b5780518252601f1990920191602091820191016110ec565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461116d576040519150601f19603f3d011682016040523d82523d6000602084013e611172565b606091505b509150915081156111865791506110689050565b8051156111965780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315610efd578181015183820152602001610ee5565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061106857505015159291505056fe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a26469706673582212205a24ec0177b7600f250ebe9a008bc6a4f0dafb10bc6b3b4d484b4e0f102e642f64736f6c634300060c00330000000000000000000000008191113581cbfa3fcdc6b0d2e6f84753d4850080000000000000000000000000179983892ec36287f1f342443b671ba5497622410000000000000000000000000000000000000000000000004563918244f4000000000000000000000000000000000000000000000000000000000000001acd04000000000000000000000000000000000000000000000000000000000027fc04

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

0000000000000000000000008191113581cbfa3fcdc6b0d2e6f84753d4850080000000000000000000000000179983892ec36287f1f342443b671ba5497622410000000000000000000000000000000000000000000000004563918244f4000000000000000000000000000000000000000000000000000000000000001acd04000000000000000000000000000000000000000000000000000000000027fc04

-----Decoded View---------------
Arg [0] : _hoes (address): 0x8191113581cbfa3fcdc6b0d2e6f84753d4850080
Arg [1] : _rewardToken (address): 0x179983892ec36287f1f342443b671ba549762241
Arg [2] : _rewardPerBlock (uint256): 5000000000000000000
Arg [3] : _startBlock (uint256): 1756420
Arg [4] : _bonusEndBlock (uint256): 2620420

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000008191113581cbfa3fcdc6b0d2e6f84753d4850080
Arg [1] : 000000000000000000000000179983892ec36287f1f342443b671ba549762241
Arg [2] : 0000000000000000000000000000000000000000000000004563918244f40000
Arg [3] : 00000000000000000000000000000000000000000000000000000000001acd04
Arg [4] : 000000000000000000000000000000000000000000000000000000000027fc04


Deployed ByteCode Sourcemap

23129:6630:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24052:26;;;;;;;;;;;;;;;;-1:-1:-1;24052:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;24052:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24274:34;;;:::i;:::-;;;;;;;;;;;;;;;;24134:45;;;;;;;;;;;;;;;;-1:-1:-1;24134:45:0;-1:-1:-1;;;;;24134:45:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;24447:28;;;:::i;28350:729::-;;;;;;;;;;;;;;;;-1:-1:-1;28350:729:0;;:::i;:::-;;29528:226;;;;;;;;;;;;;;;;-1:-1:-1;29528:226:0;;:::i;24366:25::-;;;:::i;26551:691::-;;;;;;;;;;;;;;;;-1:-1:-1;26551:691:0;;:::i;23888:18::-;;;:::i;:::-;;;;-1:-1:-1;;;;;23888:18:0;;;;;;;;;;;;;;27325:180;;;:::i;22301:140::-;;;:::i;23987:29::-;;;:::i;21659:79::-;;;:::i;25357:306::-;;;;;;;;;;;;;;;;-1:-1:-1;25357:306:0;;;;;;;:::i;27558:741::-;;;;;;;;;;;;;;;;-1:-1:-1;27558:741:0;;:::i;29150:329::-;;;:::i;22596:109::-;;;;;;;;;;;;;;;;-1:-1:-1;22596:109:0;-1:-1:-1;;;;;22596:109:0;;:::i;25728:747::-;;;;;;;;;;;;;;;;-1:-1:-1;25728:747:0;-1:-1:-1;;;;;25728:747:0;;:::i;23913:25::-;;;:::i;24052:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24052:26:0;;;;-1:-1:-1;24052:26:0;;;:::o;24274:34::-;;;;:::o;24134:45::-;;;;;;;;;;;;;;;;;;;:::o;24447:28::-;;;;:::o;28350:729::-;28403:21;28427:8;28436:1;28427:11;;;;;;;;;;;;;;;;28482:10;28473:20;;:8;:20;;;;;;;28512:11;;28427;;;;;;;;-1:-1:-1;28512:22:0;-1:-1:-1;28512:22:0;28504:53;;;;;-1:-1:-1;;;28504:53:0;;;;;;;;;;;;-1:-1:-1;;;28504:53:0;;;;;;;;;;;;;;;28568:13;28579:1;28568:10;:13::i;:::-;28592:15;28610:69;28663:4;:15;;;28610:48;28653:4;28610:38;28626:4;:21;;;28610:4;:11;;;:15;;:38;;;;:::i;:::-;:42;;:48::i;:::-;:52;;:69::i;:::-;28592:87;-1:-1:-1;28693:11:0;;28690:97;;28721:11;;:54;;-1:-1:-1;;;;;28721:11:0;28754:10;28767:7;28721:24;:54::i;:::-;28800:11;;28797:151;;28842:11;;:24;;28858:7;28842:15;:24::i;:::-;28828:38;;28881:12;;:55;;-1:-1:-1;;;;;28881:12:0;28915:10;28928:7;28881:25;:55::i;:::-;28992:21;;;;28976:11;;:48;;29019:4;;28976:38;;:15;:38::i;:48::-;28958:15;;;:66;29042:29;;;;;;;;29051:10;;29042:29;;;;;;;;;;28350:729;;;;:::o;29528:226::-;21881:12;:10;:12::i;:::-;21871:6;;-1:-1:-1;;;;;21871:6:0;;;:22;;;21863:67;;;;;-1:-1:-1;;;21863:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29624:11:::1;::::0;:36:::1;::::0;;-1:-1:-1;;;29624:36:0;;29654:4:::1;29624:36;::::0;::::1;::::0;;;-1:-1:-1;;;;;29624: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;29624:36:0;29614:46;::::1;29606:75;;;::::0;;-1:-1:-1;;;29606:75:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;29606:75:0;;;;;;;;;;;;;::::1;;29692:11;::::0;:54:::1;::::0;-1:-1:-1;;;;;29692:11:0::1;29725:10;29738:7:::0;29692:24:::1;:54::i;:::-;29528:226:::0;:::o;24366:25::-;;;;:::o;26551:691::-;26603:21;26627:8;26636:4;26627:14;;;;;;;;;;;;;;;;;;26603:38;;26672:4;:20;;;26656:12;:36;26652:75;;26709:7;;;26652:75;26756:12;;:37;;;-1:-1:-1;;;26756:37:0;;26787:4;26756:37;;;;;;26737:16;;-1:-1:-1;;;;;26756:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26756:37:0;;-1:-1:-1;26808:13:0;26804:102;;-1:-1:-1;26861:12:0;26838:20;;;;:35;26888:7;;26804:102;26916:18;26937:49;26951:4;:20;;;26973:12;26937:13;:49::i;:::-;26916:70;;26997:19;27019:72;27075:15;;27019:51;27054:4;:15;;;27019:30;27034:14;;27019:10;:14;;:30;;;;:::i;:::-;:34;;:51::i;:72::-;26997:94;-1:-1:-1;27126:62:0;27152:35;27178:8;27152:21;26997:94;27168:4;27152:15;:21::i;:35::-;27126:21;;;;;:25;:62::i;:::-;27102:21;;;:86;-1:-1:-1;;27222:12:0;27199:20;;;;:35;;;;-1:-1:-1;26551:691:0;:::o;23888:18::-;;;-1:-1:-1;;;;;23888:18:0;;:::o;27325:180::-;27387:8;:15;27370:14;27413:85;27441:6;27435:3;:12;27413:85;;;27471:15;27482:3;27471:10;:15::i;:::-;27449:5;;27413:85;;;;27325:180;:::o;22301:140::-;21881:12;:10;:12::i;:::-;21871:6;;-1:-1:-1;;;;;21871:6:0;;;:22;;;21863:67;;;;;-1:-1:-1;;;21863:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22400:1:::1;22384:6:::0;;22363:40:::1;::::0;-1:-1:-1;;;;;22384:6:0;;::::1;::::0;22363:40:::1;::::0;22400:1;;22363:40:::1;22431:1;22414:19:::0;;-1:-1:-1;;;;;;22414:19:0::1;::::0;;22301:140::o;23987:29::-;;;;:::o;21659:79::-;21697:7;21724:6;-1:-1:-1;;;;;21724:6:0;21659:79;:::o;25357:306::-;25429:7;25460:13;;25453:3;:20;25449:207;;25497:14;:3;25505:5;25497:7;:14::i;:::-;25490:21;;;;25449:207;25542:13;;25533:5;:22;25529:127;;-1:-1:-1;25579:1:0;25572:8;;25529:127;25620:13;;:24;;25638:5;25620:17;:24::i;25529:127::-;25357:306;;;;:::o;27558:741::-;27610:21;27634:8;27643:1;27634:11;;;;;;;;;;;;;;;;27689:10;27680:20;;:8;:20;;;;;;27634:11;;;;;;-1:-1:-1;27680:20:0;27711:13;;:10;:13::i;:::-;27739:11;;:15;27735:254;;27771:15;27789:69;27842:4;:15;;;27789:48;27832:4;27789:38;27805:4;:21;;;27789:4;:11;;;:15;;:38;;;;:::i;:69::-;27771:87;-1:-1:-1;27876:11:0;;27873:105;;27908:11;;:54;;-1:-1:-1;;;;;27908:11:0;27941:10;27954:7;27908:24;:54::i;:::-;27735:254;;28002:11;;27999:170;;28030:12;;:74;;-1:-1:-1;;;;;28030:12:0;28068:10;28089:4;28096:7;28030:29;:74::i;:::-;28133:11;;:24;;28149:7;28133:15;:24::i;:::-;28119:38;;27999:170;28213:21;;;;28197:11;;:48;;28240:4;;28197:38;;:15;:38::i;:48::-;28179:15;;;:66;28263:28;;;;;;;;28271:10;;28263:28;;;;;;;;;;27558:741;;;:::o;29150:329::-;29197:21;29221:8;29230:1;29221:11;;;;;;;;;;;;;;;;29276:10;29267:20;;;:8;:20;;;;;;;29345:11;;29221;;;;;;;29298:12;;29221:11;;-1:-1:-1;29298:59:0;;-1:-1:-1;;;;;29298:12:0;;;;;29276:10;29298:25;:59::i;:::-;29382:1;29368:15;;;29394;;;:19;;;29429:42;;;;;;;29447:10;;29429:42;;;;;;;;;;29150:329;;:::o;22596:109::-;21881:12;:10;:12::i;:::-;21871:6;;-1:-1:-1;;;;;21871:6:0;;;:22;;;21863:67;;;;;-1:-1:-1;;;21863:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22669:28:::1;22688:8;22669:18;:28::i;25728:747::-:0;25789:7;25809:21;25833:8;25842:1;25833:11;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25879:15:0;;;;;:8;:15;;;;;;25833:11;;;;;;;25932:21;;;;25983:12;;:37;;-1:-1:-1;;;25983:37:0;;26014:4;25983:37;;;;;;;;;25833:11;;-1:-1:-1;25879:15:0;;25932:21;;25833:11;;25983:12;;;;;:22;;:37;;;;;25833:11;25983:37;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25983:37:0;26050:20;;;;25983:37;;-1:-1:-1;26035:12:0;:35;:52;;;;-1:-1:-1;26074:13:0;;;26035:52;26031:355;;;26104:18;26125:49;26139:4;:20;;;26161:12;26125:13;:49::i;:::-;26104:70;;26189:19;26211:72;26267:15;;26211:51;26246:4;:15;;;26211:30;26226:14;;26211:10;:14;;:30;;;;:::i;:72::-;26189:94;-1:-1:-1;26317:57:0;26338:35;26364:8;26338:21;26189:94;26354:4;26338:15;:21::i;:35::-;26317:16;;:20;:57::i;:::-;26298:76;;26031:355;;;26403:64;26451:4;:15;;;26403:43;26441:4;26403:33;26419:16;26403:4;:11;;;:15;;:33;;;;:::i;:64::-;26396:71;25728:747;-1:-1:-1;;;;;;25728:747:0:o;23913:25::-;;;-1:-1:-1;;;;;23913:25:0;;:::o;2256:471::-;2314:7;2559:6;2555:47;;-1:-1:-1;2589:1:0;2582:8;;2555:47;2626:5;;;2630:1;2626;:5;:1;2650:5;;;;;:10;2642:56;;;;-1:-1:-1;;;2642:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2718:1;2256:471;-1:-1:-1;;;2256:471:0:o;3203:132::-;3261:7;3288:39;3292:1;3295;3288:39;;;;;;;;;;;;;;;;;:3;:39::i;1332:136::-;1390:7;1417:43;1421:1;1424;1417:43;;;;;;;;;;;;;;;;;:3;:43::i;16213:211::-;16357:58;;;-1:-1:-1;;;;;16357:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16357:58:0;-1:-1:-1;;;16357:58:0;;;16330:86;;16350:5;;16330:19;:86::i;:::-;16213:211;;;:::o;20282:98::-;20362:10;20282:98;:::o;868:181::-;926:7;958:5;;;982:6;;;;974:46;;;;;-1:-1:-1;;;974:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;16432:248;16603:68;;;-1:-1:-1;;;;;16603:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16603:68:0;-1:-1:-1;;;16603:68:0;;;16576:96;;16596:5;;16576:19;:96::i;:::-;16432:248;;;;:::o;22811:229::-;-1:-1:-1;;;;;22885:22:0;;22877:73;;;;-1:-1:-1;;;22877:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22987:6;;;22966:38;;-1:-1:-1;;;;;22966:38:0;;;;22987:6;;;22966:38;;;23015:6;:17;;-1:-1:-1;;;;;;23015:17:0;-1:-1:-1;;;;;23015:17:0;;;;;;;;;;22811:229::o;3831:312::-;3951:7;3986:12;3979:5;3971:28;;;;-1:-1:-1;;;3971:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4010:9;4026:1;4022;:5;;;;;;;3831:312;-1:-1:-1;;;;;3831:312:0:o;1771:226::-;1891:7;1927:12;1919:6;;;;1911:29;;;;-1:-1:-1;;;1911:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1963:5:0;;;1771:226::o;18748:774::-;19172:23;19198:69;19226:4;19198:69;;;;;;;;;;;;;;;;;19206:5;-1:-1:-1;;;;;19198:27:0;;;:69;;;;;:::i;:::-;19282:17;;19172:95;;-1:-1:-1;19282:21:0;19278:237;;19437:10;19426:30;;;;;;;;;;;;;;;-1:-1:-1;19426:30:0;19418:85;;;;-1:-1:-1;;;19418:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13104:230;13241:12;13273:53;13296:6;13304:4;13310:1;13313:12;13273:22;:53::i;:::-;13266:60;13104:230;-1:-1:-1;;;;13104:230:0:o;14592:1020::-;14765:12;14798:18;14809:6;14798:10;:18::i;:::-;14790:60;;;;;-1:-1:-1;;;14790:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14924:12;14938:23;14965:6;-1:-1:-1;;;;;14965:11:0;14984:8;14994:4;14965:34;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;14965:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14923:76;;;;15014:7;15010:595;;;15045:10;-1:-1:-1;15038:17:0;;-1:-1:-1;15038:17:0;15010:595;15159:17;;:21;15155:439;;15422:10;15416:17;15483:15;15470:10;15466:2;15462:19;15455:44;15370:148;15558:20;;-1:-1:-1;;;15558:20:0;;;;;;;;;;;;;;;;;15565:12;;15558:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9967:641;10027:4;10508:20;;10338:66;10557:23;;;;;;:42;;-1:-1:-1;;10584:15:0;;;10549:51;-1:-1:-1;;9967:641:0:o

Swarm Source

ipfs://5a24ec0177b7600f250ebe9a008bc6a4f0dafb10bc6b3b4d484b4e0f102e642f
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.