ETH Price: $1,984.34 (+0.58%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw194469822024-03-16 10:52:11703 days ago1710586331IN
0x568e1630...4DE79e9F7
0 ETH0.002851729.78007065
Withdraw194469272024-03-16 10:40:59703 days ago1710585659IN
0x568e1630...4DE79e9F7
0 ETH0.0029861931.1806024
Withdraw194468722024-03-16 10:29:47703 days ago1710584987IN
0x568e1630...4DE79e9F7
0 ETH0.0034779134.5830612
Deposit194321492024-03-14 8:45:59705 days ago1710405959IN
0x568e1630...4DE79e9F7
0 ETH0.0037861643.86754098
Deposit193817852024-03-07 7:25:11712 days ago1709796311IN
0x568e1630...4DE79e9F7
0 ETH0.0104377756.59815577
Withdraw192330422024-02-15 11:30:47733 days ago1707996647IN
0x568e1630...4DE79e9F7
0 ETH0.0022340726.47827102
Deposit192330362024-02-15 11:29:35733 days ago1707996575IN
0x568e1630...4DE79e9F7
0 ETH0.00264523.74925654
Withdraw186344722023-11-23 12:36:23817 days ago1700742983IN
0x568e1630...4DE79e9F7
0 ETH0.0045970150.6463032
Deposit184766212023-11-01 10:20:35839 days ago1698834035IN
0x568e1630...4DE79e9F7
0 ETH0.0023974514.32865851
Deposit184395832023-10-27 5:53:59844 days ago1698386039IN
0x568e1630...4DE79e9F7
0 ETH0.000952712.34515877
Deposit184395592023-10-27 5:49:11844 days ago1698385751IN
0x568e1630...4DE79e9F7
0 ETH0.001091314.14116431
Withdraw184196022023-10-24 10:44:11847 days ago1698144251IN
0x568e1630...4DE79e9F7
0 ETH0.0020598420.48232832
Withdraw182894942023-10-06 5:51:59865 days ago1696571519IN
0x568e1630...4DE79e9F7
0 ETH0.000522266.18987157
Withdraw181920872023-09-22 14:51:35879 days ago1695394295IN
0x568e1630...4DE79e9F7
0 ETH0.001193214.14191394
Deposit181920822023-09-22 14:50:35879 days ago1695394235IN
0x568e1630...4DE79e9F7
0 ETH0.0010606413.74394089
Deposit181905972023-09-22 9:49:35879 days ago1695376175IN
0x568e1630...4DE79e9F7
0 ETH0.001387258.2910855
Withdraw181905912023-09-22 9:48:23879 days ago1695376103IN
0x568e1630...4DE79e9F7
0 ETH0.000741848.79234434
Deposit181833592023-09-21 9:28:35880 days ago1695288515IN
0x568e1630...4DE79e9F7
0 ETH0.0010262811.8925179
Deposit181833492023-09-21 9:26:23880 days ago1695288383IN
0x568e1630...4DE79e9F7
0 ETH0.0008287910.73961158
Deposit181107202023-09-11 4:26:11890 days ago1694406371IN
0x568e1630...4DE79e9F7
0 ETH0.000819767.92712038
Deposit180988952023-09-09 12:41:11892 days ago1694263271IN
0x568e1630...4DE79e9F7
0 ETH0.0008238210.22653007
Deposit180469262023-09-02 6:03:35899 days ago1693634615IN
0x568e1630...4DE79e9F7
0 ETH0.0008368410.41742665
Deposit180390832023-09-01 3:40:47900 days ago1693539647IN
0x568e1630...4DE79e9F7
0 ETH0.0012278111.52357368
Deposit180390782023-09-01 3:39:47900 days ago1693539587IN
0x568e1630...4DE79e9F7
0 ETH0.0008434410.49956935
Deposit180262082023-08-30 8:24:35902 days ago1693383875IN
0x568e1630...4DE79e9F7
0 ETH0.0018934417.76680857
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Staking

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : staking1.sol
// File: @openzeppelin/contracts/utils/Context.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

/**
 * @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.
 */
abstract 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() {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual 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;
    }
}

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

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

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

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

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

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

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

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

            bytes32 lastvalue = set._values[lastIndex];

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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


    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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


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

/**
 * @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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * 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);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/utils/ReentrancyGuard.sol

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

// File: bsc-library/contracts/IBEP20.sol

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

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

/**
 * @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 on 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");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

// File: bsc-library/contracts/SafeBEP20.sol

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

// File: contracts/Staking.sol

contract Staking is Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;
    using EnumerableSet for EnumerableSet.AddressSet;

    // Whether it is initialized
    bool public isInitialized;

    // Accrued token per share
    uint256 public accTokenPerShare;

    // The block number when FORWARD mining ends.
    uint256 public bonusEndBlock;

    // The block number when FORWARD mining starts.
    uint256 public startBlock;

    // The block number of the last pool update
    uint256 public lastRewardBlock;

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

    // The precision factor
    uint256 public PRECISION_FACTOR;

    // Total amount staked
    uint256 public totalStaked;

    // The reward token
    IBEP20 public rewardToken;

    // The staked token
    IBEP20 public stakedToken;

    // Info of each user that stakes tokens (stakedToken)
    mapping(address => UserInfo) public userInfo;

    // List of users who take part in staking
    EnumerableSet.AddressSet private holders;

    struct UserInfo {
        uint256 amount; // How many staked tokens the user has provided
        uint256 rewardDebt; // Reward debt
        uint256 totalEarned; // Total earned reward 
        uint256 totalBonus; // Total bonus earned
        uint256 depositTime; // Deposit time
    }

    event AdminTokenRecovery(address tokenRecovered, uint256 amount);
    event Deposit(address indexed user, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 amount);
    event NewStartAndEndBlocks(uint256 startBlock, uint256 endBlock);
    event NewRewardPerBlock(uint256 rewardPerBlock);
    event Withdraw(address indexed user, uint256 amount);

    /*
     * @notice Initialize the contract
     * @param _stakedToken: staked token address
     * @param _rewardToken: reward token address
     * @param _rewardPerBlock: reward per block (in rewardToken)
     * @param _startBlock: start block
     * @param _bonusEndBlock: end block
     * @param _minLockTime: pool minimum Lock time for depositing tokens 
     * @param _admin: admin address with ownership
     */
    function initialize(
        IBEP20 _stakedToken,
        IBEP20 _rewardToken,
        uint256 _rewardPerBlock,
        uint256 _startBlock,
        uint256 _bonusEndBlock,
        address _admin
    ) external onlyOwner{
        require(!isInitialized, "Already initialized");

        // Make this contract initialized
        isInitialized = true;

        stakedToken = _stakedToken;
        rewardToken = _rewardToken;
        rewardPerBlock = _rewardPerBlock;
        startBlock = _startBlock;
        bonusEndBlock = _bonusEndBlock;

        uint256 decimalsRewardToken = uint256(rewardToken.decimals());
        require(decimalsRewardToken < 30, "Must be inferior to 30");

        PRECISION_FACTOR = uint256(10**(uint256(30).sub(decimalsRewardToken)));

        // Set the lastRewardBlock as the startBlock
        lastRewardBlock = startBlock;

        // Transfer ownership to the admin address who becomes owner of the contract
        transferOwnership(_admin);
    }

    /*
     * @notice Deposit staked tokens and collect reward tokens (if any)
     * @param _amount: amount to withdraw (in rewardToken)
     */
    function deposit(uint256 _amount) external nonReentrant {
        UserInfo storage user = userInfo[msg.sender];

        _updatePool();

        if (user.amount > 0) {
            uint256 pending = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR).sub(user.rewardDebt);
            if (pending > 0) {
                user.totalEarned = user.totalEarned.add(pending);
                rewardToken.safeTransfer(address(msg.sender), pending);
            }
        }

        if (_amount > 0) {
            user.amount = user.amount.add(_amount);
            totalStaked = totalStaked.add(_amount);
            user.depositTime = block.timestamp;
            stakedToken.safeTransferFrom(address(msg.sender), address(this), _amount);
        }

        user.rewardDebt = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR);

        if (!holders.contains(msg.sender)) {
            holders.add(msg.sender);
        }

        emit Deposit(msg.sender, _amount);
    }

    /*
     * @notice Withdraw staked tokens and collect reward tokens
     * @param _amount: amount to withdraw (in rewardToken)
     */
    function withdraw(uint256 _amount) external nonReentrant {
        UserInfo storage user = userInfo[msg.sender];

        require(user.amount >= _amount, "Amount to withdraw too high");

        _updatePool();

        // uint256 pending = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR).sub(user.rewardDebt).mul(user.lockTime.div(15 minutes).mul(1e4)).div(1e4);
        uint256 pending = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR).sub(user.rewardDebt);

        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            totalStaked = totalStaked.sub(_amount);
            stakedToken.safeTransfer(address(msg.sender), _amount);
        }

        if (pending > 0) {
            user.totalEarned = user.totalEarned.add(pending);
            rewardToken.safeTransfer(address(msg.sender), pending);
        }

        user.rewardDebt = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR);

        if (holders.contains(msg.sender) && user.amount == 0) {
            holders.remove(msg.sender);
        }

        emit Withdraw(msg.sender, _amount);
    }

    /*
     * @notice Withdraw staked tokens without caring about rewards rewards
     * @dev Needs to be for emergency.
     */
    function emergencyWithdraw() external nonReentrant {
        UserInfo storage user = userInfo[msg.sender];
        uint256 amountToTransfer = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;

        if (amountToTransfer > 0) {
            totalStaked = totalStaked.sub(amountToTransfer);
            stakedToken.safeTransfer(address(msg.sender), amountToTransfer);
        }

        if (holders.contains(msg.sender) && user.amount == 0) {
            holders.remove(msg.sender);
        }

        emit EmergencyWithdraw(msg.sender, user.amount);
    }

    /*
     * @notice Stop rewards
     * @dev Only callable by owner. Needs to be for emergency.
     */
    function emergencyRewardWithdraw(uint256 _amount) external onlyOwner {
        rewardToken.safeTransfer(address(msg.sender), _amount);
    }

    /**
     * @notice It allows the admin to recover wrong tokens sent to the contract
     * @param _tokenAddress: the address of the token to withdraw
     * @param _tokenAmount: the number of tokens to withdraw
     * @dev This function is only callable by admin.
     */
    function recoverWrongTokens(address _tokenAddress, uint256 _tokenAmount) external onlyOwner {
        require(_tokenAddress != address(stakedToken), "Cannot be staked token");
        require(_tokenAddress != address(rewardToken), "Cannot be reward token");

        IBEP20(_tokenAddress).safeTransfer(address(msg.sender), _tokenAmount);

        emit AdminTokenRecovery(_tokenAddress, _tokenAmount);
    }

    /*
     * @notice Stop rewards
     * @dev Only callable by owner
     */
    function stopReward() external onlyOwner {
        bonusEndBlock = block.number;
    }

    /*
     * @notice Update reward per block
     * @dev Only callable by owner.
     * @param _rewardPerBlock: the reward per block
     */
    function updateRewardPerBlock(uint256 _rewardPerBlock) external onlyOwner {
        rewardPerBlock = _rewardPerBlock;
        emit NewRewardPerBlock(_rewardPerBlock);
    }

    /**
     * @notice It allows the admin to update start and end blocks
     * @dev This function is only callable by owner.
     * @param _startBlock: the new start block
     * @param _bonusEndBlock: the new end block
     */
    function updateStartAndEndBlocks(uint256 _startBlock, uint256 _bonusEndBlock) external onlyOwner {

        startBlock = _startBlock;
        bonusEndBlock = _bonusEndBlock;

        // Set the lastRewardBlock as the startBlock
        lastRewardBlock = startBlock;

        emit NewStartAndEndBlocks(_startBlock, _bonusEndBlock);
    }

    /*
     * @notice View function to see pending reward on frontend.
     * @param _user: user address
     * @return Pending reward for a given user
     */
    function pendingReward(address _user) public view returns (uint256) {
        UserInfo storage user = userInfo[_user];
        uint256 stakedTokenSupply = stakedToken.balanceOf(address(this));
        if (block.number > lastRewardBlock && stakedTokenSupply != 0) {
            uint256 multiplier = _getMultiplier(lastRewardBlock, block.number);
            uint256 forwardReward = multiplier.mul(rewardPerBlock);
            uint256 adjustedTokenPerShare =
                accTokenPerShare.add(forwardReward.mul(PRECISION_FACTOR).div(stakedTokenSupply));
            uint256 pending = user.amount.mul(adjustedTokenPerShare).div(PRECISION_FACTOR).sub(user.rewardDebt);
            return (pending);
        } else {
            uint256 pending =  user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR).sub(user.rewardDebt);
            return (pending);
        }
    }

    /*
     * @notice get total number of stakers
     */
    function getNumberOfStakers() public view returns (uint) {
        return holders.length();
    }

    /*
     * @notice get stakers list
     */
    function getStakersList(uint startIndex, uint endIndex) 
        public 
        view 
        returns (address[] memory stakers, 
            uint[] memory stakingTimestamps, 
            uint[] memory stakedTokens,
            uint[] memory lockTime) {
        require (startIndex < endIndex);
        
        uint length = endIndex.sub(startIndex);
        address[] memory _stakers = new address[](length);
        uint[] memory _stakingTimestamps = new uint[](length);
        uint[] memory _stakedTokens = new uint[](length);
        uint[] memory _lockTime = new uint[](length);
        
        for (uint i = startIndex; i < endIndex; i = i.add(1)) {
            address staker = holders.at(i);
            uint listIndex = i.sub(startIndex);
            _stakers[listIndex] = staker;
            _stakingTimestamps[listIndex] = userInfo[staker].depositTime;
            _stakedTokens[listIndex] = userInfo[staker].amount;
        }
        
        return (_stakers, _stakingTimestamps, _stakedTokens, _lockTime);
    }
    /*
     * @notice Update reward variables of the given pool to be up-to-date.
     */
    function _updatePool() internal {
        if (block.number <= lastRewardBlock) {
            return;
        }

        uint256 stakedTokenSupply = totalStaked;

        if (stakedTokenSupply == 0) {
            lastRewardBlock = block.number;
            return;
        }

        uint256 multiplier = _getMultiplier(lastRewardBlock, block.number);
        uint256 forwardReward = multiplier.mul(rewardPerBlock);
        accTokenPerShare = accTokenPerShare.add(forwardReward.mul(PRECISION_FACTOR).div(stakedTokenSupply));
        lastRewardBlock = block.number;
    }

    /*
     * @notice Return reward multiplier over the given _from to _to block.
     * @param _from: block to start
     * @param _to: block to finish
     */
    function _getMultiplier(uint256 _from, uint256 _to) internal view returns (uint256) {
        if (_to <= bonusEndBlock) {
            return _to.sub(_from);
        } else if (_from >= bonusEndBlock) {
            return 0;
        } else {
            return bonusEndBlock.sub(_from);
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenRecovered","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AdminTokenRecovery","type":"event"},{"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":false,"internalType":"uint256","name":"rewardPerBlock","type":"uint256"}],"name":"NewRewardPerBlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"startBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endBlock","type":"uint256"}],"name":"NewStartAndEndBlocks","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":"PRECISION_FACTOR","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":"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":[],"name":"getNumberOfStakers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"startIndex","type":"uint256"},{"internalType":"uint256","name":"endIndex","type":"uint256"}],"name":"getStakersList","outputs":[{"internalType":"address[]","name":"stakers","type":"address[]"},{"internalType":"uint256[]","name":"stakingTimestamps","type":"uint256[]"},{"internalType":"uint256[]","name":"stakedTokens","type":"uint256[]"},{"internalType":"uint256[]","name":"lockTime","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IBEP20","name":"_stakedToken","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"},{"internalType":"address","name":"_admin","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRewardBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"recoverWrongTokens","outputs":[],"stateMutability":"nonpayable","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":"stakedToken","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":"stopReward","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"_rewardPerBlock","type":"uint256"}],"name":"updateRewardPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"}],"name":"updateStartAndEndBlocks","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"},{"internalType":"uint256","name":"totalEarned","type":"uint256"},{"internalType":"uint256","name":"totalBonus","type":"uint256"},{"internalType":"uint256","name":"depositTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055611cfc806100656000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80638ae39cac116100de578063b6b55f2511610097578063db2e21bc11610071578063db2e21bc14610365578063f2fde38b1461036d578063f40f0f5214610380578063f7c618c11461039357600080fd5b8063b6b55f2514610336578063cc7a262e14610349578063ccd34cd51461035c57600080fd5b80638ae39cac146102d05780638da5cb5b146102d95780638f662915146102fe5780639513997f14610307578063a9f8d1811461031a578063b1a5d12d1461032357600080fd5b8063392e53cd1161014b578063658b672911610125578063658b6729146102af578063715018a6146102b757806380dc0672146102bf578063817b1cd2146102c757600080fd5b8063392e53cd146102765780633f138d4b1461029357806348cd4cb1146102a657600080fd5b806301f8a976146101935780631911cf4a146101a85780631959a002146101d45780631aed6553146102395780632e1a7d4d146102505780633279beab14610263575b600080fd5b6101a66101a136600461180f565b6103a6565b005b6101bb6101b6366004611828565b610414565b6040516101cb9493929190611885565b60405180910390f35b6102116101e2366004611919565b600c60205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a0016101cb565b61024260045481565b6040519081526020016101cb565b6101a661025e36600461180f565b61065e565b6101a661027136600461180f565b610813565b6002546102839060ff1681565b60405190151581526020016101cb565b6101a66102a1366004611936565b610857565b61024260055481565b61024261098a565b6101a661099b565b6101a6610a0f565b61024260095481565b61024260075481565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016101cb565b61024260035481565b6101a6610315366004611828565b610a3f565b61024260065481565b6101a6610331366004611962565b610aae565b6101a661034436600461180f565b610c4a565b600b546102e6906001600160a01b031681565b61024260085481565b6101a6610da6565b6101a661037b366004611919565b610e75565b61024261038e366004611919565b610f5f565b600a546102e6906001600160a01b031681565b6000546001600160a01b031633146103d95760405162461bcd60e51b81526004016103d0906119c9565b60405180910390fd5b60078190556040518181527f0c4d677eef92893ac7ec52faf8140fc6c851ab4736302b4f3a89dfb20696a0df9060200160405180910390a150565b60608060608084861061042657600080fd5b600061043286886110b0565b905060008167ffffffffffffffff81111561044f5761044f6119fe565b604051908082528060200260200182016040528015610478578160200160208202803683370190505b50905060008267ffffffffffffffff811115610496576104966119fe565b6040519080825280602002602001820160405280156104bf578160200160208202803683370190505b50905060008367ffffffffffffffff8111156104dd576104dd6119fe565b604051908082528060200260200182016040528015610506578160200160208202803683370190505b50905060008467ffffffffffffffff811115610524576105246119fe565b60405190808252806020026020018201604052801561054d578160200160208202803683370190505b5090508a5b8a81101561064c576000610567600d83611115565b90506000610575838f6110b0565b90508187828151811061058a5761058a611a14565b60200260200101906001600160a01b031690816001600160a01b031681525050600c6000836001600160a01b03166001600160a01b03168152602001908152602001600020600401548682815181106105e5576105e5611a14565b602002602001018181525050600c6000836001600160a01b03166001600160a01b031681526020019081526020016000206000015485828151811061062c5761062c611a14565b6020908102919091010152506106459050816001611121565b9050610552565b50929a91995097509095509350505050565b600260015414156106815760405162461bcd60e51b81526004016103d090611a2a565b6002600155336000908152600c6020526040902080548211156106e65760405162461bcd60e51b815260206004820152601b60248201527f416d6f756e7420746f20776974686472617720746f6f2068696768000000000060448201526064016103d0565b6106ee611180565b6000610723826001015461071d60085461071760035487600001546111eb90919063ffffffff16565b9061126a565b906110b0565b9050821561076057815461073790846110b0565b825560095461074690846110b0565b600955600b54610760906001600160a01b031633856112c5565b80156107915760028201546107759082611121565b6002830155600a54610791906001600160a01b031633836112c5565b60085460035483546107a8929161071791906111eb565b60018301556107b8600d3361132d565b80156107c357508154155b156107d5576107d3600d3361134f565b505b60405183815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a250506001805550565b6000546001600160a01b0316331461083d5760405162461bcd60e51b81526004016103d0906119c9565b600a54610854906001600160a01b031633836112c5565b50565b6000546001600160a01b031633146108815760405162461bcd60e51b81526004016103d0906119c9565b600b546001600160a01b03838116911614156108d85760405162461bcd60e51b815260206004820152601660248201527521b0b73737ba1031329039ba30b5b2b2103a37b5b2b760511b60448201526064016103d0565b600a546001600160a01b038381169116141561092f5760405162461bcd60e51b815260206004820152601660248201527521b0b73737ba103132903932bbb0b932103a37b5b2b760511b60448201526064016103d0565b6109436001600160a01b03831633836112c5565b604080516001600160a01b0384168152602081018390527f74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab7812991015b60405180910390a15050565b6000610996600d611364565b905090565b6000546001600160a01b031633146109c55760405162461bcd60e51b81526004016103d0906119c9565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b03163314610a395760405162461bcd60e51b81526004016103d0906119c9565b43600455565b6000546001600160a01b03163314610a695760405162461bcd60e51b81526004016103d0906119c9565b60058290556004819055600682905560408051838152602081018390527f7cd0ab87d19036f3dfadadb232c78aa4879dda3f0c994a9d637532410ee2ce06910161097e565b6000546001600160a01b03163314610ad85760405162461bcd60e51b81526004016103d0906119c9565b60025460ff1615610b215760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b60448201526064016103d0565b6002805460ff19166001179055600b80546001600160a01b038089166001600160a01b031992831617909255600a805492881692909116821790556007859055600584905560048381556040805163313ce56760e01b815290516000939263313ce567928082019260209290918290030181865afa158015610ba7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bcb9190611a61565b60ff169050601e8110610c195760405162461bcd60e51b815260206004820152601660248201527504d75737420626520696e666572696f7220746f2033360541b60448201526064016103d0565b610c24601e826110b0565b610c2f90600a611b7e565b600855600554600655610c4182610e75565b50505050505050565b60026001541415610c6d5760405162461bcd60e51b81526004016103d090611a2a565b6002600155336000908152600c60205260409020610c89611180565b805415610cee576000610cb9826001015461071d60085461071760035487600001546111eb90919063ffffffff16565b90508015610cec576002820154610cd09082611121565b6002830155600a54610cec906001600160a01b031633836112c5565b505b8115610d30578054610d009083611121565b8155600954610d0f9083611121565b600955426004820155600b54610d30906001600160a01b031633308561136e565b6008546003548254610d47929161071791906111eb565b6001820155610d57600d3361132d565b610d6857610d66600d336113ac565b505b60405182815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c906020015b60405180910390a2505060018055565b60026001541415610dc95760405162461bcd60e51b81526004016103d090611a2a565b60026001908155336000908152600c60205260408120805482825592810191909155908015610e1957600954610dff90826110b0565b600955600b54610e19906001600160a01b031633836112c5565b610e24600d3361132d565b8015610e2f57508154155b15610e4157610e3f600d3361134f565b505b815460405190815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd969590602001610d96565b6000546001600160a01b03163314610e9f5760405162461bcd60e51b81526004016103d0906119c9565b6001600160a01b038116610f045760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103d0565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038181166000908152600c6020526040808220600b5491516370a0823160e01b8152306004820152929390928492909116906370a0823190602401602060405180830381865afa158015610fbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe29190611b8a565b905060065443118015610ff457508015155b1561107e576000611007600654436113c1565b90506000611020600754836111eb90919063ffffffff16565b9050600061104961104085610717600854866111eb90919063ffffffff16565b60035490611121565b90506000611072866001015461071d600854610717868b600001546111eb90919063ffffffff16565b98975050505050505050565b60006110a7836001015461071d60085461071760035488600001546111eb90919063ffffffff16565b95945050505050565b6000828211156111025760405162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f77000060448201526064016103d0565b61110c8284611ba3565b90505b92915050565b600061110c83836113fb565b60008061112e8385611bba565b90508381101561110c5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016103d0565b600654431161118b57565b6009548061119a575043600655565b60006111a8600654436113c1565b905060006111c1600754836111eb90919063ffffffff16565b90506111df61104084610717600854856111eb90919063ffffffff16565b60035550504360065550565b6000826111fa5750600061110f565b60006112068385611bd2565b9050826112138583611bf1565b1461110c5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016103d0565b60008082116112bb5760405162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f00000000000060448201526064016103d0565b61110c8284611bf1565b6040516001600160a01b03831660248201526044810182905261132890849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611481565b505050565b6001600160a01b0381166000908152600183016020526040812054151561110c565b600061110c836001600160a01b038416611553565b600061110f825490565b6040516001600160a01b03808516602483015283166044820152606481018290526113a69085906323b872dd60e01b906084016112f1565b50505050565b600061110c836001600160a01b038416611646565b600060045482116113dd576113d682846110b0565b905061110f565b60045483106113ee5750600061110f565b6004546113d690846110b0565b815460009082106114595760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016103d0565b82600001828154811061146e5761146e611a14565b9060005260206000200154905092915050565b60006114d6826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116959092919063ffffffff16565b80519091501561132857808060200190518101906114f49190611c13565b6113285760405162461bcd60e51b815260206004820152602a60248201527f5361666542455032303a204245503230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103d0565b6000818152600183016020526040812054801561163c576000611577600183611ba3565b855490915060009061158b90600190611ba3565b905060008660000182815481106115a4576115a4611a14565b90600052602060002001549050808760000184815481106115c7576115c7611a14565b6000918252602090912001556115de836001611bba565b6000828152600189016020526040902055865487908061160057611600611c35565b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061110f565b600091505061110f565b600081815260018301602052604081205461168d5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561110f565b50600061110f565b60606116a484846000856116ae565b90505b9392505050565b60608247101561170f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103d0565b843b61175d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103d0565b600080866001600160a01b031685876040516117799190611c77565b60006040518083038185875af1925050503d80600081146117b6576040519150601f19603f3d011682016040523d82523d6000602084013e6117bb565b606091505b50915091506117cb8282866117d6565b979650505050505050565b606083156117e55750816116a7565b8251156117f55782518084602001fd5b8160405162461bcd60e51b81526004016103d09190611c93565b60006020828403121561182157600080fd5b5035919050565b6000806040838503121561183b57600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b8381101561187a5781518752958201959082019060010161185e565b509495945050505050565b6080808252855190820181905260009060209060a0840190828901845b828110156118c75781516001600160a01b0316845292840192908401906001016118a2565b505050838103828501526118db818861184a565b91505082810360408401526118f0818661184a565b905082810360608401526117cb818561184a565b6001600160a01b038116811461085457600080fd5b60006020828403121561192b57600080fd5b813561110c81611904565b6000806040838503121561194957600080fd5b823561195481611904565b946020939093013593505050565b60008060008060008060c0878903121561197b57600080fd5b863561198681611904565b9550602087013561199681611904565b945060408701359350606087013592506080870135915060a08701356119bb81611904565b809150509295509295509295565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b600060208284031215611a7357600080fd5b815160ff8116811461110c57600080fd5b634e487b7160e01b600052601160045260246000fd5b600181815b80851115611ad5578160001904821115611abb57611abb611a84565b80851615611ac857918102915b93841c9390800290611a9f565b509250929050565b600082611aec5750600161110f565b81611af95750600061110f565b8160018114611b0f5760028114611b1957611b35565b600191505061110f565b60ff841115611b2a57611b2a611a84565b50506001821b61110f565b5060208310610133831016604e8410600b8410161715611b58575081810a61110f565b611b628383611a9a565b8060001904821115611b7657611b76611a84565b029392505050565b600061110c8383611add565b600060208284031215611b9c57600080fd5b5051919050565b600082821015611bb557611bb5611a84565b500390565b60008219821115611bcd57611bcd611a84565b500190565b6000816000190483118215151615611bec57611bec611a84565b500290565b600082611c0e57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215611c2557600080fd5b8151801515811461110c57600080fd5b634e487b7160e01b600052603160045260246000fd5b60005b83811015611c66578181015183820152602001611c4e565b838111156113a65750506000910152565b60008251611c89818460208701611c4b565b9190910192915050565b6020815260008251806020840152611cb2816040850160208701611c4b565b601f01601f1916919091016040019291505056fea264697066735822122097757541b45fc39131076544ae773522367517dbbeb444a85bf272fdb006dbf564736f6c634300080b0033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80638ae39cac116100de578063b6b55f2511610097578063db2e21bc11610071578063db2e21bc14610365578063f2fde38b1461036d578063f40f0f5214610380578063f7c618c11461039357600080fd5b8063b6b55f2514610336578063cc7a262e14610349578063ccd34cd51461035c57600080fd5b80638ae39cac146102d05780638da5cb5b146102d95780638f662915146102fe5780639513997f14610307578063a9f8d1811461031a578063b1a5d12d1461032357600080fd5b8063392e53cd1161014b578063658b672911610125578063658b6729146102af578063715018a6146102b757806380dc0672146102bf578063817b1cd2146102c757600080fd5b8063392e53cd146102765780633f138d4b1461029357806348cd4cb1146102a657600080fd5b806301f8a976146101935780631911cf4a146101a85780631959a002146101d45780631aed6553146102395780632e1a7d4d146102505780633279beab14610263575b600080fd5b6101a66101a136600461180f565b6103a6565b005b6101bb6101b6366004611828565b610414565b6040516101cb9493929190611885565b60405180910390f35b6102116101e2366004611919565b600c60205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a0016101cb565b61024260045481565b6040519081526020016101cb565b6101a661025e36600461180f565b61065e565b6101a661027136600461180f565b610813565b6002546102839060ff1681565b60405190151581526020016101cb565b6101a66102a1366004611936565b610857565b61024260055481565b61024261098a565b6101a661099b565b6101a6610a0f565b61024260095481565b61024260075481565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016101cb565b61024260035481565b6101a6610315366004611828565b610a3f565b61024260065481565b6101a6610331366004611962565b610aae565b6101a661034436600461180f565b610c4a565b600b546102e6906001600160a01b031681565b61024260085481565b6101a6610da6565b6101a661037b366004611919565b610e75565b61024261038e366004611919565b610f5f565b600a546102e6906001600160a01b031681565b6000546001600160a01b031633146103d95760405162461bcd60e51b81526004016103d0906119c9565b60405180910390fd5b60078190556040518181527f0c4d677eef92893ac7ec52faf8140fc6c851ab4736302b4f3a89dfb20696a0df9060200160405180910390a150565b60608060608084861061042657600080fd5b600061043286886110b0565b905060008167ffffffffffffffff81111561044f5761044f6119fe565b604051908082528060200260200182016040528015610478578160200160208202803683370190505b50905060008267ffffffffffffffff811115610496576104966119fe565b6040519080825280602002602001820160405280156104bf578160200160208202803683370190505b50905060008367ffffffffffffffff8111156104dd576104dd6119fe565b604051908082528060200260200182016040528015610506578160200160208202803683370190505b50905060008467ffffffffffffffff811115610524576105246119fe565b60405190808252806020026020018201604052801561054d578160200160208202803683370190505b5090508a5b8a81101561064c576000610567600d83611115565b90506000610575838f6110b0565b90508187828151811061058a5761058a611a14565b60200260200101906001600160a01b031690816001600160a01b031681525050600c6000836001600160a01b03166001600160a01b03168152602001908152602001600020600401548682815181106105e5576105e5611a14565b602002602001018181525050600c6000836001600160a01b03166001600160a01b031681526020019081526020016000206000015485828151811061062c5761062c611a14565b6020908102919091010152506106459050816001611121565b9050610552565b50929a91995097509095509350505050565b600260015414156106815760405162461bcd60e51b81526004016103d090611a2a565b6002600155336000908152600c6020526040902080548211156106e65760405162461bcd60e51b815260206004820152601b60248201527f416d6f756e7420746f20776974686472617720746f6f2068696768000000000060448201526064016103d0565b6106ee611180565b6000610723826001015461071d60085461071760035487600001546111eb90919063ffffffff16565b9061126a565b906110b0565b9050821561076057815461073790846110b0565b825560095461074690846110b0565b600955600b54610760906001600160a01b031633856112c5565b80156107915760028201546107759082611121565b6002830155600a54610791906001600160a01b031633836112c5565b60085460035483546107a8929161071791906111eb565b60018301556107b8600d3361132d565b80156107c357508154155b156107d5576107d3600d3361134f565b505b60405183815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a250506001805550565b6000546001600160a01b0316331461083d5760405162461bcd60e51b81526004016103d0906119c9565b600a54610854906001600160a01b031633836112c5565b50565b6000546001600160a01b031633146108815760405162461bcd60e51b81526004016103d0906119c9565b600b546001600160a01b03838116911614156108d85760405162461bcd60e51b815260206004820152601660248201527521b0b73737ba1031329039ba30b5b2b2103a37b5b2b760511b60448201526064016103d0565b600a546001600160a01b038381169116141561092f5760405162461bcd60e51b815260206004820152601660248201527521b0b73737ba103132903932bbb0b932103a37b5b2b760511b60448201526064016103d0565b6109436001600160a01b03831633836112c5565b604080516001600160a01b0384168152602081018390527f74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab7812991015b60405180910390a15050565b6000610996600d611364565b905090565b6000546001600160a01b031633146109c55760405162461bcd60e51b81526004016103d0906119c9565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b03163314610a395760405162461bcd60e51b81526004016103d0906119c9565b43600455565b6000546001600160a01b03163314610a695760405162461bcd60e51b81526004016103d0906119c9565b60058290556004819055600682905560408051838152602081018390527f7cd0ab87d19036f3dfadadb232c78aa4879dda3f0c994a9d637532410ee2ce06910161097e565b6000546001600160a01b03163314610ad85760405162461bcd60e51b81526004016103d0906119c9565b60025460ff1615610b215760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b60448201526064016103d0565b6002805460ff19166001179055600b80546001600160a01b038089166001600160a01b031992831617909255600a805492881692909116821790556007859055600584905560048381556040805163313ce56760e01b815290516000939263313ce567928082019260209290918290030181865afa158015610ba7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bcb9190611a61565b60ff169050601e8110610c195760405162461bcd60e51b815260206004820152601660248201527504d75737420626520696e666572696f7220746f2033360541b60448201526064016103d0565b610c24601e826110b0565b610c2f90600a611b7e565b600855600554600655610c4182610e75565b50505050505050565b60026001541415610c6d5760405162461bcd60e51b81526004016103d090611a2a565b6002600155336000908152600c60205260409020610c89611180565b805415610cee576000610cb9826001015461071d60085461071760035487600001546111eb90919063ffffffff16565b90508015610cec576002820154610cd09082611121565b6002830155600a54610cec906001600160a01b031633836112c5565b505b8115610d30578054610d009083611121565b8155600954610d0f9083611121565b600955426004820155600b54610d30906001600160a01b031633308561136e565b6008546003548254610d47929161071791906111eb565b6001820155610d57600d3361132d565b610d6857610d66600d336113ac565b505b60405182815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c906020015b60405180910390a2505060018055565b60026001541415610dc95760405162461bcd60e51b81526004016103d090611a2a565b60026001908155336000908152600c60205260408120805482825592810191909155908015610e1957600954610dff90826110b0565b600955600b54610e19906001600160a01b031633836112c5565b610e24600d3361132d565b8015610e2f57508154155b15610e4157610e3f600d3361134f565b505b815460405190815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd969590602001610d96565b6000546001600160a01b03163314610e9f5760405162461bcd60e51b81526004016103d0906119c9565b6001600160a01b038116610f045760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103d0565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038181166000908152600c6020526040808220600b5491516370a0823160e01b8152306004820152929390928492909116906370a0823190602401602060405180830381865afa158015610fbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe29190611b8a565b905060065443118015610ff457508015155b1561107e576000611007600654436113c1565b90506000611020600754836111eb90919063ffffffff16565b9050600061104961104085610717600854866111eb90919063ffffffff16565b60035490611121565b90506000611072866001015461071d600854610717868b600001546111eb90919063ffffffff16565b98975050505050505050565b60006110a7836001015461071d60085461071760035488600001546111eb90919063ffffffff16565b95945050505050565b6000828211156111025760405162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f77000060448201526064016103d0565b61110c8284611ba3565b90505b92915050565b600061110c83836113fb565b60008061112e8385611bba565b90508381101561110c5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016103d0565b600654431161118b57565b6009548061119a575043600655565b60006111a8600654436113c1565b905060006111c1600754836111eb90919063ffffffff16565b90506111df61104084610717600854856111eb90919063ffffffff16565b60035550504360065550565b6000826111fa5750600061110f565b60006112068385611bd2565b9050826112138583611bf1565b1461110c5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016103d0565b60008082116112bb5760405162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f00000000000060448201526064016103d0565b61110c8284611bf1565b6040516001600160a01b03831660248201526044810182905261132890849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611481565b505050565b6001600160a01b0381166000908152600183016020526040812054151561110c565b600061110c836001600160a01b038416611553565b600061110f825490565b6040516001600160a01b03808516602483015283166044820152606481018290526113a69085906323b872dd60e01b906084016112f1565b50505050565b600061110c836001600160a01b038416611646565b600060045482116113dd576113d682846110b0565b905061110f565b60045483106113ee5750600061110f565b6004546113d690846110b0565b815460009082106114595760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016103d0565b82600001828154811061146e5761146e611a14565b9060005260206000200154905092915050565b60006114d6826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116959092919063ffffffff16565b80519091501561132857808060200190518101906114f49190611c13565b6113285760405162461bcd60e51b815260206004820152602a60248201527f5361666542455032303a204245503230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103d0565b6000818152600183016020526040812054801561163c576000611577600183611ba3565b855490915060009061158b90600190611ba3565b905060008660000182815481106115a4576115a4611a14565b90600052602060002001549050808760000184815481106115c7576115c7611a14565b6000918252602090912001556115de836001611bba565b6000828152600189016020526040902055865487908061160057611600611c35565b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061110f565b600091505061110f565b600081815260018301602052604081205461168d5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561110f565b50600061110f565b60606116a484846000856116ae565b90505b9392505050565b60608247101561170f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103d0565b843b61175d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103d0565b600080866001600160a01b031685876040516117799190611c77565b60006040518083038185875af1925050503d80600081146117b6576040519150601f19603f3d011682016040523d82523d6000602084013e6117bb565b606091505b50915091506117cb8282866117d6565b979650505050505050565b606083156117e55750816116a7565b8251156117f55782518084602001fd5b8160405162461bcd60e51b81526004016103d09190611c93565b60006020828403121561182157600080fd5b5035919050565b6000806040838503121561183b57600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b8381101561187a5781518752958201959082019060010161185e565b509495945050505050565b6080808252855190820181905260009060209060a0840190828901845b828110156118c75781516001600160a01b0316845292840192908401906001016118a2565b505050838103828501526118db818861184a565b91505082810360408401526118f0818661184a565b905082810360608401526117cb818561184a565b6001600160a01b038116811461085457600080fd5b60006020828403121561192b57600080fd5b813561110c81611904565b6000806040838503121561194957600080fd5b823561195481611904565b946020939093013593505050565b60008060008060008060c0878903121561197b57600080fd5b863561198681611904565b9550602087013561199681611904565b945060408701359350606087013592506080870135915060a08701356119bb81611904565b809150509295509295509295565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b600060208284031215611a7357600080fd5b815160ff8116811461110c57600080fd5b634e487b7160e01b600052601160045260246000fd5b600181815b80851115611ad5578160001904821115611abb57611abb611a84565b80851615611ac857918102915b93841c9390800290611a9f565b509250929050565b600082611aec5750600161110f565b81611af95750600061110f565b8160018114611b0f5760028114611b1957611b35565b600191505061110f565b60ff841115611b2a57611b2a611a84565b50506001821b61110f565b5060208310610133831016604e8410600b8410161715611b58575081810a61110f565b611b628383611a9a565b8060001904821115611b7657611b76611a84565b029392505050565b600061110c8383611add565b600060208284031215611b9c57600080fd5b5051919050565b600082821015611bb557611bb5611a84565b500390565b60008219821115611bcd57611bcd611a84565b500190565b6000816000190483118215151615611bec57611bec611a84565b500290565b600082611c0e57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215611c2557600080fd5b8151801515811461110c57600080fd5b634e487b7160e01b600052603160045260246000fd5b60005b83811015611c66578181015183820152602001611c4e565b838111156113a65750506000910152565b60008251611c89818460208701611c4b565b9190910192915050565b6020815260008251806020840152611cb2816040850160208701611c4b565b601f01601f1916919091016040019291505056fea264697066735822122097757541b45fc39131076544ae773522367517dbbeb444a85bf272fdb006dbf564736f6c634300080b0033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.