Contract 0x6db62e510a24600a373a4c3a918bad9ddaa9c318 3

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x85a5c454e7ca89be3003dfd83f8982ee4d193f08a9b1e08bfc0e30e74d26d131Deposit111505082021-09-23 0:26:461 hr 48 mins ago0x771249d1bca55bfd14e106f43d9de57e245db6c2 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.000876155
0x55415c2babcd2681d7492c5d00bf6d3a5279457b43a96edfd20dddc207af10dcHarvest111504992021-09-23 0:26:191 hr 48 mins ago0x771249d1bca55bfd14e106f43d9de57e245db6c2 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.00088619
0xf3763f64377512f75c18fef062b28b115ef16189f3f2af7fa66b6126c8463f8cWithdraw111502552021-09-23 0:14:062 hrs ago0xc2cbac8eb91b05fbdd0f195dd5e6fa837bc56f3b IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.001036975
0xf87e13decbc8c72fa9e48d167129fde385aab07d84c6675fe429288b4edd43c2Withdraw111500802021-09-23 0:05:212 hrs 9 mins ago0xc2cbac8eb91b05fbdd0f195dd5e6fa837bc56f3b IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.00118727
0xafaa197b9316ad064821bca25936817fa081608afa74cf7ef7268d9598f616f5Deposit111492462021-09-22 23:23:352 hrs 51 mins ago0xa55634d45110039d7699b7009b195922bee57547 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.001226945
0x63db9fdbda82f3823bac93bb00a3a9afd39e62bf31567b284173be8a3f90d285Harvest111492302021-09-22 23:22:422 hrs 52 mins ago0xa55634d45110039d7699b7009b195922bee57547 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.00088619
0x8cd45776e8168251e98966754266f7950f78a0d8c3b32a95184046a25f27cdfcHarvest111492052021-09-22 23:21:192 hrs 53 mins ago0xa55634d45110039d7699b7009b195922bee57547 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.00076323
0xb074572eb73e5dc7f451bbd627520b22d6418ebfb23f31616894871ad8f19a82Harvest111486112021-09-22 22:51:073 hrs 23 mins ago0x19f06a2b2366b6f2d9b040d770b01c3a734d2b88 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.00096119
0xa84fed02bf96f5f1ff1b3d48331fc7def710efb615af80ab32f4d23e466667d9Deposit111483742021-09-22 22:39:043 hrs 35 mins ago0xe651044bce04203d0696cc4655bd933bd70059b0 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.000876155
0xa03278e5be0804d616131106aeabe5af7a30fd69c4b5631eaac7b66ced6a1a65Harvest111483682021-09-22 22:38:453 hrs 36 mins ago0xe651044bce04203d0696cc4655bd933bd70059b0 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.00088619
0x1cbf435ebe64c615b033a9a174bc88c724aef939b1bfffa00b18cc1c1c72cd25Deposit111481892021-09-22 22:29:203 hrs 45 mins ago0x21e0e940463abe2f485a98d40def235e630b786b IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.001226885
0xd081b653068b2d0f29c20ef0cc9b382f547ad05997442a780cebd9a72bf4b8d4Deposit111480302021-09-22 22:21:223 hrs 53 mins ago0x0d45a4fe3e31f266f1e415e03ddefc3f80adeceb IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.001226945
0xed347b38390276d264a9b2447c8bf72fb2352c30e3c27b3a72cc4e51d72a5156Deposit111479532021-09-22 22:17:313 hrs 57 mins ago0x21e0e940463abe2f485a98d40def235e630b786b IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.00120559
0x9cf7cd7f5c6ebc7ea21d0b9be7459ff016121104d3e1f9f0133e79454a40ab54Harvest111479412021-09-22 22:16:553 hrs 57 mins ago0x21213d7c68f9e310244b2d72420380e39d1669b6 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.00096119
0x24518217270223218ae5c00a540d6e5b39c56d694c66e4997e5b7d0375db4604Deposit111477012021-09-22 22:04:554 hrs 9 mins ago0xc2cbac8eb91b05fbdd0f195dd5e6fa837bc56f3b IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.001122155
0xd977e44633cdb938dee0823f865b51fdb6c83e958e1b91b8dd3af2df1fe21325Deposit111470922021-09-22 21:34:184 hrs 40 mins ago0xd732c9f2f5ca4bd738f02cd6bbd558aaac83f841 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.001301885
0xcd5821417e504d5225237cdc3230b73d5f12ea72ce1dbbe0c1d9cb52daa08f74Harvest111469242021-09-22 21:25:544 hrs 48 mins ago0x5fe8e7a8086cc15278a80a38efe84e7be3daedd4 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.000262515
0x0ac46b4b63cc8f7cb0ad7935c0c0fb5c4c08163d20be839410d3d810dc02bacaHarvest111469202021-09-22 21:25:424 hrs 49 mins ago0x5fe8e7a8086cc15278a80a38efe84e7be3daedd4 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.00096119
0x3d9cdeed94780cf095af3c1bad90fda99f0be87689e807b431606cdae3446d04Deposit111465072021-09-22 21:04:255 hrs 10 mins ago0x5c570038668c28d15b2607d6934c59826335ad78 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.001047215
0xf33eae5c057bd2560850de577467ec99244b4b9fd437a177204ecc5e8dabdcadDeposit111462162021-09-22 20:49:255 hrs 25 mins ago0x8027f1dc097a0df443618f62b6a680e666891592 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.001226885
0xc9b8f2a1dd19ea431e8b6c09ece0f46f06152ca9d0751c687116bea637eb55bcDeposit111457232021-09-22 20:24:465 hrs 50 mins ago0xe259ee56f5d07b346a9015da08b8de01e31798f5 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.001301885
0x8a66994bd3cebf68a9847c83e11a1c3e078e46903f4a6f57946df43e2f1c3884Deposit111456792021-09-22 20:22:345 hrs 52 mins ago0x440b6f8413773ff8f72e2fbfe70b25ae1836c309 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.001047215
0xe5007981a41d8af79429bde0359d4a98246052f938904dc4e419efae71f8feafDeposit111450032021-09-22 19:48:316 hrs 26 mins ago0x973a9390b859e80b69e31003b203eb557038d615 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.001226945
0xc9ac7a52654494183736393b1e6f9114907ffb223d0d3d5c4cff292aec183f04Deposit111449952021-09-22 19:48:076 hrs 26 mins ago0x973a9390b859e80b69e31003b203eb557038d615 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.000949625
0xdf93f2806c46172db6e8b353e078d706a5bbad3bee006b993cbb25761c1dedf7Harvest111449892021-09-22 19:47:496 hrs 26 mins ago0x973a9390b859e80b69e31003b203eb557038d615 IN  0x6db62e510a24600a373a4c3a918bad9ddaa9c3180 BNB0.00088619
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StakeMaster

Compiler Version
v0.6.11+commit.5ef660b1

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-04-17
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.6.11;

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

/**
 * @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.
     *
     * _Available since v2.4.0._
     */
    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.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        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.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}


/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
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);
}

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

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

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


contract StakeMaster is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;             
        uint256 rewardTokenDebt;    
        uint256 lastBlockNumber;    
    }

    uint256 public emergencyWithdraw;
    
    uint256 public constant PERSHARERATE = 1000000000000;
    uint256 public accTokenPerShare; // accumulate token per share
    uint256 public lastBalance; // last balance of staked token, deduct staked amount
    uint256 public debtBalance; // debit token amount between two update balance
    
    address public stakeToken; // staked token address
    uint256 public totalStaked; // total staked token

    mapping (address => UserInfo) public userInfo;

    event Deposit(address indexed user, uint256 amount, uint256 penddingToken);
    event DepositFrom(address indexed user, uint256 amount,address from, uint256 penddingToken);
    event Harvest(address indexed user, uint256 penddingToken);    
    event Withdraw(address indexed user, uint256 amount, uint256 penddingToken);

    event EmergencyWithdraw(address indexed user, uint256 amount);

    modifier onlyNotEmergencyWithdraw() {
        require(emergencyWithdraw == 0, "onlyNotEmergencyWithdraw: emergencyWithdraw now");
        _;
    }

    constructor(address _stakeToken) public {
        stakeToken = _stakeToken;
    }

    function set_emergencyWithdraw(uint256 _emergencyWithdraw) public onlyOwner {
        emergencyWithdraw = _emergencyWithdraw;
    }

    function _updateAccPerShare() internal {
        if (totalStaked != 0) {
            uint256 balance = IERC20(stakeToken).balanceOf(address(this));
            balance = balance.sub(totalStaked);
            uint256 diff = balance.add(debtBalance).sub(lastBalance);
            accTokenPerShare = accTokenPerShare.add( diff.mul(PERSHARERATE).div(totalStaked) );

            lastBalance = balance;
            debtBalance = 0;
        }
    }

    function _updateUserInfo(UserInfo storage user, uint256 _amount, uint256 _amountType) internal {
        if (_amountType == 0) {
            user.rewardTokenDebt = user.amount.mul(accTokenPerShare).div(PERSHARERATE); // harvest update user debt
        } else  if (_amountType == 1) {
            user.amount = user.amount.add(_amount); // for deposit
            bool needUpdate = (totalStaked == 0);
            totalStaked = totalStaked.add(_amount);
            user.rewardTokenDebt = user.amount.mul(accTokenPerShare).div(PERSHARERATE);
            if (needUpdate) {
                _updateAccPerShare();
            }
        } else if (_amountType == 2) {
            user.amount = user.amount.sub(_amount); // for withdraw
            totalStaked = totalStaked.sub(_amount);
            user.rewardTokenDebt = user.amount.mul(accTokenPerShare).div(PERSHARERATE);
        }
    }
    
    function _harvest(UserInfo storage user) internal returns (uint256) {
        _updateAccPerShare();

        if (block.number <= user.lastBlockNumber || totalStaked == 0) {
            return 0;
        }

        uint256 reward = user.amount.mul(accTokenPerShare).div(PERSHARERATE).sub(user.rewardTokenDebt);
        if (reward != 0) {
            IERC20(stakeToken).safeTransfer(msg.sender, reward);
            debtBalance = debtBalance.add(reward);
        }
        
        user.lastBlockNumber = block.number;

        return reward;
    }

    // for token public
    function deposit(uint256 _amount) public onlyNotEmergencyWithdraw {
        require(_amount > 0, "deposit: amount not good");

        UserInfo storage user = userInfo[msg.sender];
        uint256 pendingToken = _harvest(user);

        IERC20(stakeToken).safeTransferFrom(address(msg.sender), address(this), _amount);
        _updateUserInfo(user, _amount, 1);

        emit Deposit(msg.sender, _amount, pendingToken);
    }

    // for token public
    function withdraw(uint256 _amount) public {
        require(_amount > 0, "withdraw: amount not good");

         UserInfo storage user = userInfo[msg.sender];
         require(user.amount >= _amount, "withdraw: not good");

        uint256 pendingToken = _harvest(user);

        IERC20(stakeToken).safeTransfer(address(msg.sender), _amount);
        _updateUserInfo(user, _amount, 2);

        emit Withdraw(msg.sender, _amount, pendingToken);
    }

    // for token public
    function harvest() public onlyNotEmergencyWithdraw {
        UserInfo storage user = userInfo[msg.sender];
        if (user.amount == 0 || totalStaked == 0) {
            return;
        }

        uint256 pendingToken = _harvest(user);
        _updateUserInfo(user, 0, 0); // update user debe reward

        emit Harvest(msg.sender, pendingToken);
    }

    // for token public
    function depositFrom(address _from, uint256 _amount) public onlyNotEmergencyWithdraw {
        require(_amount > 0, "depositFrom: amount not good");

        UserInfo storage user = userInfo[_from];
        uint256 pendingToken = _harvest(user);

        IERC20(stakeToken).safeTransferFrom(address(msg.sender), address(this), _amount);
        _updateUserInfo(user, _amount, 1);

        emit DepositFrom(_from, _amount, msg.sender, pendingToken);
    }

    function getPendingToken(address _address) public view returns (uint256) {
        UserInfo memory user = userInfo[_address];
        if (block.number <= user.lastBlockNumber || user.amount == 0 || totalStaked == 0) {
            return 0;
        }

        uint256 balance = IERC20(stakeToken).balanceOf(address(this));
        balance = balance.sub(totalStaked);
        uint256 diff = balance.add(debtBalance).sub(lastBalance);
        uint256 _tmpAccTokenPerShare = accTokenPerShare.add( diff.mul(PERSHARERATE).div(totalStaked) );

        return user.amount.mul(_tmpAccTokenPerShare).div(PERSHARERATE).sub(user.rewardTokenDebt);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_stakeToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"penddingToken","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"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"penddingToken","type":"uint256"}],"name":"DepositFrom","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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"penddingToken","type":"uint256"}],"name":"Harvest","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"},{"indexed":false,"internalType":"uint256","name":"penddingToken","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"PERSHARERATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accTokenPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debtBalance","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":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getPendingToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_emergencyWithdraw","type":"uint256"}],"name":"set_emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","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":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardTokenDebt","type":"uint256"},{"internalType":"uint256","name":"lastBlockNumber","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506040516120cb3803806120cb8339818101604052602081101561003357600080fd5b8101908080519060200190929190505050600061005461013960201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35080600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610141565b600033905090565b611f7b806101506000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80637dc10fde116100a25780638f662915116100715780638f6629151461037a578063b6b55f2514610398578063bf1eb64a146103c6578063db2e21bc146103e4578063f2fde38b146104025761010b565b80637dc10fde146102c6578063817b1cd2146102f45780638da5cb5b146103125780638f1c56bd1461035c5761010b565b80634b6578c0116100de5780634b6578c0146101fc57806351ed6a301461021a578063715018a61461026457806378ad411d1461026e5761010b565b806315cc36f2146101105780631959a0021461015e5780632e1a7d4d146101c45780634641257d146101f2575b600080fd5b61015c6004803603604081101561012657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610446565b005b6101a06004803603602081101561017457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610652565b60405180848152602001838152602001828152602001935050505060405180910390f35b6101f0600480360360208110156101da57600080fd5b810190808035906020019092919050505061067c565b005b6101fa610870565b005b61020461099a565b6040518082815260200191505060405180910390f35b6102226109a3565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61026c6109c9565b005b6102b06004803603602081101561028457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610b51565b6040518082815260200191505060405180910390f35b6102f2600480360360208110156102dc57600080fd5b8101908080359060200190929190505050610dae565b005b6102fc610e81565b6040518082815260200191505060405180910390f35b61031a610e87565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610364610eb0565b6040518082815260200191505060405180910390f35b610382610eb6565b6040518082815260200191505060405180910390f35b6103c4600480360360208110156103ae57600080fd5b8101908080359060200190929190505050610ebc565b005b6103ce611093565b6040518082815260200191505060405180910390f35b6103ec611099565b6040518082815260200191505060405180910390f35b6104446004803603602081101561041857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061109f565b005b6000600154146104a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180611ecc602f913960400191505060405180910390fd5b60008111610517576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f6465706f73697446726f6d3a20616d6f756e74206e6f7420676f6f640000000081525060200191505060405180910390fd5b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000610565826112ac565b90506105b6333085600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166113a7909392919063ffffffff16565b6105c282846001611494565b8373ffffffffffffffffffffffffffffffffffffffff167f0b1d84cce4311192216ab15f42ab719e763e4499270381fd85ec21b58b46bea8843384604051808481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a250505050565b60076020528060005260406000206000915090508060000154908060010154908060020154905083565b600081116106f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f77697468647261773a20616d6f756e74206e6f7420676f6f640000000000000081525060200191505060405180910390fd5b6000600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905081816000015410156107af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f77697468647261773a206e6f7420676f6f64000000000000000000000000000081525060200191505060405180910390fd5b60006107ba826112ac565b90506108093384600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166115f69092919063ffffffff16565b61081582846002611494565b3373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5688483604051808381526020018281526020019250505060405180910390a2505050565b6000600154146108cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180611ecc602f913960400191505060405180910390fd5b6000600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154148061092357506000600654145b1561092e5750610998565b6000610939826112ac565b905061094782600080611494565b3373ffffffffffffffffffffffffffffffffffffffff167fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba826040518082815260200191505060405180910390a250505b565b64e8d4a5100081565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6109d16116ae565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a92576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000610b5b611e84565b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820154815250509050806040015143111580610bdc575060008160000151145b80610be957506000600654145b15610bf8576000915050610da9565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610c9957600080fd5b505afa158015610cad573d6000803e3d6000fd5b505050506040513d6020811015610cc357600080fd5b81019080805190602001909291905050509050610ceb600654826116b690919063ffffffff16565b90506000610d18600354610d0a6004548561170090919063ffffffff16565b6116b690919063ffffffff16565b90506000610d5c610d4b600654610d3d64e8d4a510008661178890919063ffffffff16565b61180e90919063ffffffff16565b60025461170090919063ffffffff16565b9050610da28460200151610d9464e8d4a51000610d8685896000015161178890919063ffffffff16565b61180e90919063ffffffff16565b6116b690919063ffffffff16565b9450505050505b919050565b610db66116ae565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610e77576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8060018190555050565b60065481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60035481565b60025481565b600060015414610f17576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180611ecc602f913960400191505060405180910390fd5b60008111610f8d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f6465706f7369743a20616d6f756e74206e6f7420676f6f64000000000000000081525060200191505060405180910390fd5b6000600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000610fdb826112ac565b905061102c333085600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166113a7909392919063ffffffff16565b61103882846001611494565b3373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a158483604051808381526020018281526020019250505060405180910390a2505050565b60045481565b60015481565b6110a76116ae565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611168576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111ee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611ea66026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006112b6611858565b8160020154431115806112cb57506000600654145b156112d957600090506113a2565b6000611321836001015461131364e8d4a51000611305600254886000015461178890919063ffffffff16565b61180e90919063ffffffff16565b6116b690919063ffffffff16565b905060008114611394576113783382600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166115f69092919063ffffffff16565b61138d8160045461170090919063ffffffff16565b6004819055505b438360020181905550809150505b919050565b61148e846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506119de565b50505050565b60008114156114da576114cd64e8d4a510006114bf600254866000015461178890919063ffffffff16565b61180e90919063ffffffff16565b83600101819055506115f1565b6001811415611573576114fa82846000015461170090919063ffffffff16565b83600001819055506000806006541490506115208360065461170090919063ffffffff16565b60068190555061155664e8d4a51000611548600254876000015461178890919063ffffffff16565b61180e90919063ffffffff16565b8460010181905550801561156d5761156c611858565b5b506115f0565b60028114156115ef576115938284600001546116b690919063ffffffff16565b83600001819055506115b0826006546116b690919063ffffffff16565b6006819055506115e664e8d4a510006115d8600254866000015461178890919063ffffffff16565b61180e90919063ffffffff16565b83600101819055505b5b5b505050565b6116a98363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506119de565b505050565b600033905090565b60006116f883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611acd565b905092915050565b60008082840190508381101561177e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60008083141561179b5760009050611808565b60008284029050828482816117ac57fe5b0414611803576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611efb6021913960400191505060405180910390fd5b809150505b92915050565b600061185083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611b8d565b905092915050565b6000600654146119dc576000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561190357600080fd5b505afa158015611917573d6000803e3d6000fd5b505050506040513d602081101561192d57600080fd5b81019080805190602001909291905050509050611955600654826116b690919063ffffffff16565b905060006119826003546119746004548561170090919063ffffffff16565b6116b690919063ffffffff16565b90506119c46119b36006546119a564e8d4a510008561178890919063ffffffff16565b61180e90919063ffffffff16565b60025461170090919063ffffffff16565b60028190555081600381905550600060048190555050505b565b6060611a40826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611c539092919063ffffffff16565b9050600081511115611ac857808060200190516020811015611a6157600080fd5b8101908080519060200190929190505050611ac7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611f1c602a913960400191505060405180910390fd5b5b505050565b6000838311158290611b7a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611b3f578082015181840152602081019050611b24565b50505050905090810190601f168015611b6c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60008083118290611c39576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611bfe578082015181840152602081019050611be3565b50505050905090810190601f168015611c2b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611c4557fe5b049050809150509392505050565b6060611c628484600085611c6b565b90509392505050565b6060611c7685611e71565b611ce8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310611d385780518252602082019150602081019050602083039250611d15565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611d9a576040519150601f19603f3d011682016040523d82523d6000602084013e611d9f565b606091505b50915091508115611db4578092505050611e69565b600081511115611dc75780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611e2e578082015181840152602081019050611e13565b50505050905090810190601f168015611e5b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b949350505050565b600080823b905060008111915050919050565b6040518060600160405280600081526020016000815260200160008152509056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573736f6e6c794e6f74456d657267656e637957697468647261773a20656d657267656e63795769746864726177206e6f77536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122043a20a4350bb8175213d971832f50b99ffad8c4a19253a2f2ea5e4c8a7df7b7c64736f6c634300060b0033000000000000000000000000f859bf77cbe8699013d6dbc7c2b926aaf307f830

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

000000000000000000000000f859bf77cbe8699013d6dbc7c2b926aaf307f830

-----Decoded View---------------
Arg [0] : _stakeToken (address): 0xf859bf77cbe8699013d6dbc7c2b926aaf307f830

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000f859bf77cbe8699013d6dbc7c2b926aaf307f830


Deployed ByteCode Sourcemap

21166:6042:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26081:464;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;21906:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25188:462;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;25683:365;;;:::i;:::-;;21491:52;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21793:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;20610:148;;;:::i;:::-;;26553:652;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22610:133;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;21849:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;19968:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;21618:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21550:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24720:435;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;21705:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21446:32;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20913:244;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;26081:464;22438:1;22417:17;;:22;22409:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26195:1:::1;26185:7;:11;26177:52;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;26242:21;26266:8;:15;26275:5;26266:15;;;;;;;;;;;;;;;26242:39;;26292:20;26315:14;26324:4;26315:8;:14::i;:::-;26292:37;;26342:80;26386:10;26407:4;26414:7;26349:10;;;;;;;;;;;26342:35;;;;:80;;;;;;:::i;:::-;26433:33;26449:4;26455:7;26464:1;26433:15;:33::i;:::-;26496:5;26484:53;;;26503:7;26512:10;26524:12;26484:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22502:1;;26081:464:::0;;:::o;21906:45::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;25188:462::-;25259:1;25249:7;:11;25241:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25304:21;25328:8;:20;25337:10;25328:20;;;;;;;;;;;;;;;25304:44;;25383:7;25368:4;:11;;;:22;;25360:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25426:20;25449:14;25458:4;25449:8;:14::i;:::-;25426:37;;25476:61;25516:10;25529:7;25483:10;;;;;;;;;;;25476:31;;;;:61;;;;;:::i;:::-;25548:33;25564:4;25570:7;25579:1;25548:15;:33::i;:::-;25608:10;25599:43;;;25620:7;25629:12;25599:43;;;;;;;;;;;;;;;;;;;;;;;;25188:462;;;:::o;25683:365::-;22438:1;22417:17;;:22;22409:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25745:21:::1;25769:8;:20;25778:10;25769:20;;;;;;;;;;;;;;;25745:44;;25819:1;25804:4;:11;;;:16;:36;;;;25839:1;25824:11;;:16;25804:36;25800:75;;;25857:7;;;25800:75;25887:20;25910:14;25919:4;25910:8;:14::i;:::-;25887:37;;25935:27;25951:4;25957:1;25960::::0;25935:15:::1;:27::i;:::-;26015:10;26007:33;;;26027:12;26007:33;;;;;;;;;;;;;;;;;;22502:1;;;25683:365::o:0;21491:52::-;21530:13;21491:52;:::o;21793:25::-;;;;;;;;;;;;;:::o;20610:148::-;20190:12;:10;:12::i;:::-;20180:22;;:6;;;;;;;;;;;:22;;;20172:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20717:1:::1;20680:40;;20701:6;::::0;::::1;;;;;;;;;20680:40;;;;;;;;;;;;20748:1;20731:6:::0;::::1;:19;;;;;;;;;;;;;;;;;;20610:148::o:0;26553:652::-;26617:7;26637:20;;:::i;:::-;26660:8;:18;26669:8;26660:18;;;;;;;;;;;;;;;26637:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26709:4;:20;;;26693:12;:36;;:56;;;;26748:1;26733:4;:11;;;:16;26693:56;:76;;;;26768:1;26753:11;;:16;26693:76;26689:117;;;26793:1;26786:8;;;;;26689:117;26818:15;26843:10;;;;;;;;;;;26836:28;;;26873:4;26836:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26818:61;;26900:24;26912:11;;26900:7;:11;;:24;;;;:::i;:::-;26890:34;;26935:12;26950:41;26979:11;;26950:24;26962:11;;26950:7;:11;;:24;;;;:::i;:::-;:28;;:41;;;;:::i;:::-;26935:56;;27002:28;27033:63;27055:39;27082:11;;27055:22;21530:13;27055:4;:8;;:22;;;;:::i;:::-;:26;;:39;;;;:::i;:::-;27033:16;;:20;;:63;;;;:::i;:::-;27002:94;;27116:81;27176:4;:20;;;27116:55;21530:13;27116:37;27132:20;27116:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:55;;;;:::i;:::-;:59;;:81;;;;:::i;:::-;27109:88;;;;;;26553:652;;;;:::o;22610:133::-;20190:12;:10;:12::i;:::-;20180:22;;:6;;;;;;;;;;;:22;;;20172:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22717:18:::1;22697:17;:38;;;;22610:133:::0;:::o;21849:26::-;;;;:::o;19968:79::-;20006:7;20033:6;;;;;;;;;;;20026:13;;19968:79;:::o;21618:26::-;;;;:::o;21550:31::-;;;;:::o;24720:435::-;22438:1;22417:17;;:22;22409:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24815:1:::1;24805:7;:11;24797:48;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;24858:21;24882:8;:20;24891:10;24882:20;;;;;;;;;;;;;;;24858:44;;24913:20;24936:14;24945:4;24936:8;:14::i;:::-;24913:37;;24963:80;25007:10;25028:4;25035:7;24970:10;;;;;;;;;;;24963:35;;;;:80;;;;;;:::i;:::-;25054:33;25070:4;25076:7;25085:1;25054:15;:33::i;:::-;25113:10;25105:42;;;25125:7;25134:12;25105:42;;;;;;;;;;;;;;;;;;;;;;;;22502:1;;24720:435:::0;:::o;21705:26::-;;;;:::o;21446:32::-;;;;:::o;20913:244::-;20190:12;:10;:12::i;:::-;20180:22;;:6;;;;;;;;;;;:22;;;20172:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21022:1:::1;21002:22;;:8;:22;;;;20994:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21112:8;21083:38;;21104:6;::::0;::::1;;;;;;;;;21083:38;;;;;;;;;;;;21141:8;21132:6;::::0;:17:::1;;;;;;;;;;;;;;;;;;20913:244:::0;:::o;24125:562::-;24184:7;24204:20;:18;:20::i;:::-;24257:4;:20;;;24241:12;:36;;:56;;;;24296:1;24281:11;;:16;24241:56;24237:97;;;24321:1;24314:8;;;;24237:97;24346:14;24363:77;24419:4;:20;;;24363:51;21530:13;24363:33;24379:16;;24363:4;:11;;;:15;;:33;;;;:::i;:::-;:37;;:51;;;;:::i;:::-;:55;;:77;;;;:::i;:::-;24346:94;;24465:1;24455:6;:11;24451:147;;24483:51;24515:10;24527:6;24490:10;;;;;;;;;;;24483:31;;;;:51;;;;;:::i;:::-;24563:23;24579:6;24563:11;;:15;;:23;;;;:::i;:::-;24549:11;:37;;;;24451:147;24641:12;24618:4;:20;;:35;;;;24673:6;24666:13;;;24125:562;;;;:::o;16072:205::-;16173:96;16193:5;16223:27;;;16252:4;16258:2;16262:5;16200:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16173:19;:96::i;:::-;16072:205;;;;:::o;23211:902::-;23336:1;23321:11;:16;23317:789;;;23377:51;21530:13;23377:33;23393:16;;23377:4;:11;;;:15;;:33;;;;:::i;:::-;:37;;:51;;;;:::i;:::-;23354:4;:20;;:74;;;;23317:789;;;23494:1;23479:11;:16;23475:631;;;23526:24;23542:7;23526:4;:11;;;:15;;:24;;;;:::i;:::-;23512:4;:11;;:38;;;;23580:15;23614:1;23599:11;;:16;23580:36;;23645:24;23661:7;23645:11;;:15;;:24;;;;:::i;:::-;23631:11;:38;;;;23707:51;21530:13;23707:33;23723:16;;23707:4;:11;;;:15;;:33;;;;:::i;:::-;:37;;:51;;;;:::i;:::-;23684:4;:20;;:74;;;;23777:10;23773:71;;;23808:20;:18;:20::i;:::-;23773:71;23475:631;;;;23880:1;23865:11;:16;23861:245;;;23912:24;23928:7;23912:4;:11;;;:15;;:24;;;;:::i;:::-;23898:4;:11;;:38;;;;23981:24;23997:7;23981:11;;:15;;:24;;;;:::i;:::-;23967:11;:38;;;;24043:51;21530:13;24043:33;24059:16;;24043:4;:11;;;:15;;:33;;;;:::i;:::-;:37;;:51;;;;:::i;:::-;24020:4;:20;;:74;;;;23861:245;23475:631;23317:789;23211:902;;;:::o;15887:177::-;15970:86;15990:5;16020:23;;;16045:2;16049:5;15997:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15970:19;:86::i;:::-;15887:177;;;:::o;787:106::-;840:15;875:10;868:17;;787:106;:::o;2429:136::-;2487:7;2514:43;2518:1;2521;2514:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;2507:50;;2429:136;;;;:::o;1973:181::-;2031:7;2051:9;2067:1;2063;:5;2051:17;;2092:1;2087;:6;;2079:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2145:1;2138:8;;;1973:181;;;;:::o;3345:471::-;3403:7;3653:1;3648;:6;3644:47;;;3678:1;3671:8;;;;3644:47;3703:9;3719:1;3715;:5;3703:17;;3748:1;3743;3739;:5;;;;;;:10;3731:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3807:1;3800:8;;;3345:471;;;;;:::o;4284:132::-;4342:7;4369:39;4373:1;4376;4369:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;4362:46;;4284:132;;;;:::o;22751:452::-;22820:1;22805:11;;:16;22801:395;;22838:15;22863:10;;;;;;;;;;;22856:28;;;22893:4;22856:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22838:61;;22924:24;22936:11;;22924:7;:11;;:24;;;;:::i;:::-;22914:34;;22963:12;22978:41;23007:11;;22978:24;22990:11;;22978:7;:11;;:24;;;;:::i;:::-;:28;;:41;;;;:::i;:::-;22963:56;;23053:63;23075:39;23102:11;;23075:22;21530:13;23075:4;:8;;:22;;;;:::i;:::-;:26;;:39;;;;:::i;:::-;23053:16;;:20;;:63;;;;:::i;:::-;23034:16;:82;;;;23147:7;23133:11;:21;;;;23183:1;23169:11;:15;;;;22801:395;;;22751:452::o;18192:761::-;18616:23;18642:69;18670:4;18642:69;;;;;;;;;;;;;;;;;18650:5;18642:27;;;;:69;;;;;:::i;:::-;18616:95;;18746:1;18726:10;:17;:21;18722:224;;;18868:10;18857:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18849:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18722:224;18192:761;;;:::o;2902:192::-;2988:7;3021:1;3016;:6;;3024:12;3008:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3048:9;3064:1;3060;:5;3048:17;;3085:1;3078:8;;;2902:192;;;;;:::o;4946:345::-;5032:7;5131:1;5127;:5;5134:12;5119:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5158:9;5174:1;5170;:5;;;;;;5158:17;;5282:1;5275:8;;;4946:345;;;;;:::o;12965:196::-;13068:12;13100:53;13123:6;13131:4;13137:1;13140:12;13100:22;:53::i;:::-;13093:60;;12965:196;;;;;:::o;14342:979::-;14472:12;14505:18;14516:6;14505:10;:18::i;:::-;14497:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14631:12;14645:23;14672:6;:11;;14692:8;14703:4;14672:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14630:78;;;;14723:7;14719:595;;;14754:10;14747:17;;;;;;14719:595;14888:1;14868:10;:17;:21;14864:439;;;15131:10;15125:17;15192:15;15179:10;15175:2;15171:19;15164:44;15079:148;15274:12;15267:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14342:979;;;;;;;:::o;10047:422::-;10107:4;10315:12;10426:7;10414:20;10406:28;;10460:1;10453:4;:8;10446:15;;;10047:422;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://43a20a4350bb8175213d971832f50b99ffad8c4a19253a2f2ea5e4c8a7df7b7c
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.