Contract 0xa0f22ef29bd51013e8bd0ae438fe74898ba5f070

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x8610b2d56022d57e905daf11531033bd807c38229065e10a24dbbc9fadbdc329Withdraw111242452021-09-22 2:24:191 day 1 hr ago0x8407f9d05e52706056448ce9ba11a98e6236b906 IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.00025615
0x525880b8e3d413fa4922665041ae2f86c957e91b14d6bde8a031f31b56478452Harvest111242132021-09-22 2:22:431 day 1 hr ago0x8407f9d05e52706056448ce9ba11a98e6236b906 IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.00033533
0x73d5620e061b5ad1e4a4c61aa51db421e04f2fc95600c0dafc4338d7a2267a03Withdraw111241712021-09-22 2:20:371 day 1 hr ago0xdd96179851e2b9216a600c997e48e2f499048d99 IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.00043338
0x21ca4cba23a46454364f93edfda97e97aa003618fedfc09a5adfb09dd2d862b7Withdraw111105242021-09-21 14:49:421 day 12 hrs ago0x9bf3a93b770367f65898e9278aca642ba62a9935 IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.00025609
0xa545620ab9db15196ecc5bfca0f66ed6b5a94c7fa096b3de1f6f4987e86e7544Harvest111105102021-09-21 14:49:001 day 12 hrs ago0x9bf3a93b770367f65898e9278aca642ba62a9935 IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.00041033
0xff2a43b91eed5a78583a8c8c18d1f40025372548652e076f09a741d7b964451aWithdraw111096272021-09-21 14:04:511 day 13 hrs ago0x76d7945c822d88f78987394fcd92d1c9f1a3118f IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.00030456
0xa0637a1328ebf9288a857e40b35975a7d056753b43fa51bdc80bea90ce01c9efHarvest111064882021-09-21 11:27:501 day 15 hrs ago0x0281ad22fc8c74c2d8fe6ce89bbfacf636a6abcd IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.00041033
0x60d1cb14373410f25fd749bdb90dc5d50d22fb96e8e69ab152715fdeb44b7424Withdraw110987822021-09-21 5:02:261 day 22 hrs ago0xfc16c9b153ad877c64022d8f697a2e8e286d0a1b IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.0003585
0x5f89b36121a6fb1bcea6fb5acb9dc4c6df42ebb33adf0837525561963036feccWithdraw110803912021-09-20 13:39:592 days 13 hrs ago0xeab9b14e3885441d7147dc4f6501515eb4b21972 IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.00035838
0x58e86372ab53dde373fb7cfe891a8fa793fc1d1cd90903c5ebcdfa65a6bfbb96Withdraw110760122021-09-20 9:58:552 days 17 hrs ago0x2b7aefe49c4a8217ce9878f70ebfd9cbcf87d37d IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.00035844
0x82bda5d57267b464f4af72987646a046cd87803068e739dd5814f76ea0c4da9bWithdraw110662822021-09-20 1:52:203 days 1 hr ago0x327325ccaf357a88d968999814d4e79eebabaaae IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.0003045
0x37fa0bc854e094105b05b0a378f903b5d51ede43f7172d2ef254b4b52b89890eWithdraw110605882021-09-19 21:07:363 days 6 hrs ago0x1c858069716d667642f0c86fb1ffdc198ba6e538 IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.0003045
0x15b4a6d7b1032e2b3eb9f80db544b5a6cb5077a60ee05b44826d3158d899a7adWithdraw110519522021-09-19 13:55:423 days 13 hrs ago0x531b1d3b72c6ab8df3a851fa06e87272d653bbb7 IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.00030444
0x7ae5faf6e33c5a25388e0d5a185f600fcbb73125f156ded42bdc695058ba89e0Withdraw110461252021-09-19 8:50:463 days 18 hrs ago0x49701536b94a3a8b5c7beb1fdaef5ab6a03fb14f IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.0003045
0x7e55017f6b983ba1e8462e45fb8e2b8be26d205a58bb991003bdcdc3ac7651c2Withdraw110283672021-09-18 18:01:454 days 9 hrs ago0x516bcedd3ef9ce4655ee700d7c3617117ae833a0 IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.0003045
0x94531de9e493bd039ba7547c175793f7c41d1dd64aa27c3fc85b6bb7855e5155Withdraw110283552021-09-18 18:00:594 days 9 hrs ago0x516bcedd3ef9ce4655ee700d7c3617117ae833a0 IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.00042694
0x5b001ce9397664930945928031ec2122dc33fdbda19e09130dc55719e97c20b1Withdraw110283512021-09-18 18:00:474 days 9 hrs ago0x0fb1011c3837a41ba64c46d1a46878fd37521282 IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.0003585
0xc7902a1f441cab9053b1eb8e1e486f2ce6258ac2b8cc57ff32d36711f60f006bWithdraw110281352021-09-18 17:49:484 days 9 hrs ago0xe2f62dfef10ac98830c9cd29ee240b18aeeb803c IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.0003045
0xb027354bde54f9dac1a5900fae3bbd64d7ea21918804744a8e089a26b7416272Withdraw110266032021-09-18 16:32:434 days 10 hrs ago0x74d912b9ce7cc5748ba0c3a841747aebc408434f IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.0004335
0x3869139d8ec3b3756421701ab258211cafa26dd6c5824f314a917ddcaec1d9e8Withdraw110241052021-09-18 14:27:224 days 12 hrs ago0xfb4e08161b39a37dffd25604b51ed981ac1df842 IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.00037938
0x7209a014952bdf575ce72bdd5b765b5de1dc30c3d71204bae27c2fac56bd069cWithdraw110198542021-09-18 10:53:284 days 16 hrs ago0x3eb62b4c43518132838211b27fd01013a8b413c3 IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.00025615
0x046189ee4ec5258da334a46781b2269525190eb1ca299e2d0db9e5151345c7dbHarvest110198272021-09-18 10:52:074 days 16 hrs ago0x3eb62b4c43518132838211b27fd01013a8b413c3 IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.00041033
0x3f543846158389ed6a533759d06a00198f21ddf94e244f1e122e52820dd95498Withdraw110190512021-09-18 10:13:194 days 17 hrs ago0xde33ac0564add2cba1f7e1bad1d3a8a7e1ce48dc IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.0003795
0xbbb077feb28003591c6a3c31c1bd797d6b98495f406e0f2c36fa374137492ad4Withdraw110188832021-09-18 10:04:554 days 17 hrs ago0xda6f2232e3cba965943d75957674fa7ab6f6dc93 IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.0004335
0xa02b56fbae9646cd5579e86f3f09cc7414103c6ebe7d6734fff1078b804fe93eWithdraw110166922021-09-18 8:15:014 days 19 hrs ago0x6bc17a1782668c7cff27107dc452ff995c399268 IN  0xa0f22ef29bd51013e8bd0ae438fe74898ba5f0700 BNB0.00037944
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DiamondHandInitializable

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-06-19
*/

/**
 *Submitted for verification at BscScan.com on 2021-06-18
*/

// Sources flattened with hardhat v2.3.3 https://hardhat.org

// File contracts/Context.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 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 contracts/Ownable.sol


pragma solidity >=0.6.0 <0.8.0;

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


// File contracts/ReentrancyGuard.sol


pragma solidity >=0.6.0 <0.8.0;

/**
 * @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() internal {
        _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 contracts/SafeMath.sol


pragma solidity >=0.6.0 <0.8.0;

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


pragma solidity >=0.6.2 <0.8.0;

/**
 * @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 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 contracts/SafeBEP20.sol


pragma solidity ^0.6.0;



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

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

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

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

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

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

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

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


// File contracts/DiamondHandInitializable.sol


pragma solidity 0.6.12;





contract DiamondHandInitializable is Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;

    // The address of the dividend deployer
    address public immutable DIVIDEND_DEPLOYER;
    
    // The address to collect the fees when a user withdraw within the penalty period
    address public feeTo;

    // Whether a limit is set for users
    bool public hasUserLimit;

    // Whether it is initialized
    bool public isInitialized;

    // Accrued token per share
    uint256 public accTokenPerShare;

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

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

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

    // The pool limit (0 if none)
    uint256 public poolLimitPerUser;

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

    // The precision factor
    uint256 public PRECISION_FACTOR;

    // The reward token
    IBEP20 public rewardToken;

    // The staked token
    IBEP20 public stakedToken;

    // The remaining reward
    uint256 public stakingCount;

    // The penalty reward blocks
    uint256 public penaltyPeriodBlocks;

    // The penalty percentage
    uint256 public penaltyPercentage; //1e16 or 1%

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

    struct UserInfo {
        uint256 amount; // How many staked tokens the user has provided
        uint256 rewardDebt; // Reward debt
        uint256 depositBlock; // Latest deposit block
    }

    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 NewPoolLimit(uint256 poolLimitPerUser);
    event RewardsStop(uint256 blockNumber);
    event AdminWithdraw(uint256 amount);
    event Withdraw(address indexed user, uint256 amount);
    event DepositReward(uint256 amount);
    event SetPenaltyPercentage(uint256 oldPercentage, uint256 newPercentage);
    event SetPenaltyPeriodBlocks(uint256 oldBlocks, uint256 newBlocks);
    event SetFeeTo(address oldAddress, address newAddress);
    event Harvest(address user);

    constructor() public {
        DIVIDEND_DEPLOYER = msg.sender;
    }

    /*
     * @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 _poolLimitPerUser: pool limit per user in stakedToken (if any, else 0)
     * @param _admin: admin address with ownership
     */
    function initialize(
        IBEP20 _stakedToken,
        IBEP20 _rewardToken,
        uint256 _rewardPerBlock,
        uint256 _startBlock,
        uint256 _bonusEndBlock,
        uint256 _poolLimitPerUser,
        address _admin
    ) external {
        require(!isInitialized, "DiamondHandInitializable::initialize: Already initialized");
        require(msg.sender == DIVIDEND_DEPLOYER, "DiamondHandInitializable::initialize: Not deployer");

        // Make this contract initialized
        isInitialized = true;

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

        stakingCount = 0;

        // Adjustable
        penaltyPeriodBlocks = 403200; // 14 days
        penaltyPercentage = 10000000000000000; // 1e16 or 1%

        if (_poolLimitPerUser > 0) {
            hasUserLimit = true;
            poolLimitPerUser = _poolLimitPerUser;
        }

        uint256 decimalsRewardToken = uint256(rewardToken.decimals());
        require(decimalsRewardToken < 30, "DiamondHandInitializable::initialize: 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 setPenaltyPeriodBlocks update penalty period blocks
     * @params _blocks penalty reward blocks
    */

    function setPenaltyPeriodBlocks(uint256 _blocks) external onlyOwner {
        uint256 _oldPeriod = penaltyPeriodBlocks;
        penaltyPeriodBlocks = _blocks;

        emit SetPenaltyPeriodBlocks(_oldPeriod, _blocks);
    }

    /*
     * @notice setPenaltyPercentage update penalty percentage
     * @params _percentage penalty percentage in 1e18 decimals eg. 10000000000000000 or 1e16 is 1%
    */

    function setPenaltyPercentage(uint256 _percentage) external onlyOwner {
        uint256 _oldPercentage = penaltyPercentage;
        penaltyPercentage = _percentage;

        emit SetPenaltyPercentage(_oldPercentage, _percentage);
    }

    /*
     * @notice setFeeTo update address to receive fee
     * @params _newAddress the new address
    */

    function setFeeTo(address _newAddress) external onlyOwner {
        address _oldAddress = feeTo;
        feeTo = _newAddress;

        emit SetFeeTo(_oldAddress, _newAddress);
    }

    /*
     * @notice isUserInPenaltyPeriod checks if user will get withdraw fee
     * @params _user user address
     * @returns penalty is user in penalty period
     */
    function isUserInPenaltyPeriod(address _user) public view returns (bool penalty) {
        UserInfo storage user = userInfo[_user];
        penalty = (block.number <= user.depositBlock.add(penaltyPeriodBlocks));
    }

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

        if (hasUserLimit) {
            require(
                _amount.add(user.amount) <= poolLimitPerUser,
                "User amount above limit"
            );
        }

        _updatePool();

        if (user.amount > 0) {
            uint256 pending = user.amount
                .mul(accTokenPerShare)
                .div(PRECISION_FACTOR)
                .sub(user.rewardDebt);

            if (pending > 0) {
                rewardToken.safeTransfer(msg.sender, pending);
            }
        }

        if (_amount > 0) {
            user.amount = user.amount.add(_amount);
            stakingCount = stakingCount.add(_amount);

            stakedToken.safeTransferFrom(
                msg.sender,
                address(this),
                _amount
            );
        }

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

        emit Deposit(msg.sender, _amount);
    }

    /*
     * @notice Deposit reward by admin
     * @param _amount: amount to deposit
     */
    function depositReward(uint256 _amount) external nonReentrant onlyOwner {
        require(rewardToken.balanceOf(msg.sender) >= _amount, "DiamondHandInitializable::depositReward: Insufficient balance");
        rewardToken.safeTransferFrom(msg.sender, address(this), _amount);

        emit DepositReward(_amount);
    }

    /*
     * @notice Harvest reward
     */
    function harvest() 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) {
                rewardToken.safeTransfer(msg.sender, pending);
            }
        }

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

        emit Harvest(msg.sender);
    }

    /*
     * @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, "DiamondHandInitializable::withdraw: Amount to withdraw too high");

        _updatePool();

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

        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            if (isUserInPenaltyPeriod(msg.sender)) {
                uint256 withdrawAmount = _amount.mul(uint256(1e18).sub(penaltyPercentage)).div(1e18);
                
                // transfer remainning amount to user
                stakedToken.safeTransfer(msg.sender, withdrawAmount);

                // transfer fee to feeTo
                stakedToken.safeTransfer(feeTo, _amount.sub(withdrawAmount));
            } else {
                stakedToken.safeTransfer(msg.sender, _amount);
            }

            stakingCount = stakingCount.sub(_amount);
        }

        if (pending > 0) {
            rewardToken.safeTransfer(msg.sender, pending);
        }

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

        emit Withdraw(msg.sender, _amount);
    }

    /*
     * @notice Admin withdraw only reward token in emergency case. 
     * @notice Admin cannot withdraw user's funds, SAFU!
     * @dev Needs to be for emergency.
     * @param _amount amount to withdraw
     */
    function adminWithdraw(uint256 _amount) external nonReentrant onlyOwner {
        require(_amount > 0, "DiamondHandInitializable::adminWithdraw: _amount should be higher than 0");
        require(_amount <= getTotalRemainingReward(), "DiamondHandInitializable::adminWithdraw: _amount should be less than or equal the total remaining reward");
        rewardToken.safeTransfer(msg.sender, _amount);

        emit AdminWithdraw(_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) {
            if (isUserInPenaltyPeriod(msg.sender)) {
                uint256 withdrawAmount = amountToTransfer.mul(uint256(1e18).sub(penaltyPercentage)).div(1e18);
                
                // transfer remainning amount to user
                stakedToken.safeTransfer(msg.sender, withdrawAmount);

                // transfer fee to feeTo
                stakedToken.safeTransfer(feeTo, amountToTransfer.sub(withdrawAmount));
            } else {
                stakedToken.safeTransfer(msg.sender, amountToTransfer);
            }
            stakingCount = stakingCount.sub(amountToTransfer);
        }

        emit EmergencyWithdraw(msg.sender, user.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),
            "DiamondHandInitializable::recoverWrongTokens: Cannot be staked token"
        );
        require(
            _tokenAddress != address(rewardToken),
            "DiamondHandInitializable::recoverWrongTokens: Cannot be reward token"
        );

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

        emit AdminTokenRecovery(_tokenAddress, _tokenAmount);
    }

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

    /*
     * @notice Update pool limit per user
     * @dev Only callable by owner.
     * @param _hasUserLimit: whether the limit remains forced
     * @param _poolLimitPerUser: new pool limit per user
     */
    function updatePoolLimitPerUser(
        bool _hasUserLimit,
        uint256 _poolLimitPerUser
    ) external onlyOwner {
        require(hasUserLimit, "DiamondHandInitializable::updatePoolLimitPerUser: Must be set");
        if (_hasUserLimit) {
            require(
                _poolLimitPerUser > poolLimitPerUser,
                "DiamondHandInitializable::updatePoolLimitPerUser: New limit must be higher"
            );
            poolLimitPerUser = _poolLimitPerUser;
        } else {
            hasUserLimit = _hasUserLimit;
            poolLimitPerUser = 0;
        }
        emit NewPoolLimit(poolLimitPerUser);
    }

    /*
     * @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 {
        require(
            _startBlock < _bonusEndBlock,
            "DiamondHandInitializable::updateStartAndEndBlocks: New startBlock must be lower than new endBlock"
        );

        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) external view returns (uint256) {
        UserInfo storage user = userInfo[_user];
        uint256 stakedTokenSupply = stakingCount;
        if (block.number > lastRewardBlock && stakedTokenSupply != 0) {
            uint256 multiplier = _getMultiplier(lastRewardBlock, block.number);
            uint256 doppleReward = multiplier.mul(rewardPerBlock);
            uint256 adjustedTokenPerShare =
                accTokenPerShare.add(
                    doppleReward.mul(PRECISION_FACTOR).div(stakedTokenSupply)
                );
            return
                user
                    .amount
                    .mul(adjustedTokenPerShare)
                    .div(PRECISION_FACTOR)
                    .sub(user.rewardDebt);
        } else {
            return
                user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR).sub(
                    user.rewardDebt
                );
        }
    }

    /*
     * @notice Update reward variables of the given pool to be up-to-date.
     */
    function _updatePool() internal {
        if (block.number <= lastRewardBlock) {
            return;
        }

        uint256 stakedTokenSupply = stakingCount;

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

        uint256 multiplier = _getMultiplier(lastRewardBlock, block.number);
        uint256 doppleReward = multiplier.mul(rewardPerBlock);
        accTokenPerShare = accTokenPerShare.add(
            doppleReward.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);
        }
    }

    /*
     * @notice Return total remaining reward
     */
    function getTotalRemainingReward()
        public
        view
        returns (uint256 totalRemainingReward)
    {
        totalRemainingReward = rewardToken.balanceOf(address(this)).sub(stakingCount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AdminWithdraw","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":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DepositReward","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":"address","name":"user","type":"address"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"poolLimitPerUser","type":"uint256"}],"name":"NewPoolLimit","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":false,"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"RewardsStop","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"SetFeeTo","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldPercentage","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newPercentage","type":"uint256"}],"name":"SetPenaltyPercentage","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldBlocks","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBlocks","type":"uint256"}],"name":"SetPenaltyPeriodBlocks","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":"DIVIDEND_DEPLOYER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"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":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"adminWithdraw","outputs":[],"stateMutability":"nonpayable","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":"depositReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalRemainingReward","outputs":[{"internalType":"uint256","name":"totalRemainingReward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"hasUserLimit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint256","name":"_poolLimitPerUser","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":[{"internalType":"address","name":"_user","type":"address"}],"name":"isUserInPenaltyPeriod","outputs":[{"internalType":"bool","name":"penalty","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":[],"name":"penaltyPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"penaltyPeriodBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLimitPerUser","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":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"setFeeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percentage","type":"uint256"}],"name":"setPenaltyPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blocks","type":"uint256"}],"name":"setPenaltyPeriodBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakedToken","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_hasUserLimit","type":"bool"},{"internalType":"uint256","name":"_poolLimitPerUser","type":"uint256"}],"name":"updatePoolLimitPerUser","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":"depositBlock","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405234801561001057600080fd5b50600061001b610075565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180553360601b608052610079565b3390565b60805160601c61260c61009b60003980610644528061107f525061260c6000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c806383a5041c11610130578063b6b55f25116100b8578063e00e3ecd1161007c578063e00e3ecd146104ff578063f2fde38b1461051c578063f40f0f5214610542578063f46901ed14610568578063f7c618c11461058e57610232565b8063b6b55f25146104a4578063bdf4fd90146104c1578063cc7a262e146104e7578063ccd34cd5146104ef578063db2e21bc146104f757610232565b80638f662915116100ff5780638f6629151461044457806392e8990e1461044c5780639513997f14610454578063a0b4090514610477578063a9f8d1811461049c57610232565b806383a5041c146103dc5780638ae39cac1461042c5780638da5cb5b146104345780638e968a0b1461043c57610232565b80632e1a7d4d116101be57806348cd4cb11161018257806348cd4cb11461039f57806366fe9f8a146103a7578063715018a6146103af5780637c5b4a37146103b757806380dc0672146103d457610232565b80632e1a7d4d146103155780632f4d4e3114610332578063392e53cd1461034f5780633f138d4b1461036b5780634641257d1461039757610232565b80630c540e14116102055780630c540e141461029c57806315908d51146102a45780631959a002146102ac5780631aed6553146102f05780631e2720ff146102f857610232565b8063017e7e581461023757806301f8a9761461025b578063037624f31461027a5780630b71a37d14610282575b600080fd5b61023f610596565b604080516001600160a01b039092168252519081900360200190f35b6102786004803603602081101561027157600080fd5b50356105a5565b005b61023f610642565b61028a610666565b60408051918252519081900360200190f35b61028a61066c565b61028a610672565b6102d2600480360360208110156102c257600080fd5b50356001600160a01b0316610678565b60408051938452602084019290925282820152519081900360600190f35b61028a610699565b6102786004803603602081101561030e57600080fd5b503561069f565b6102786004803603602081101561032b57600080fd5b5035610851565b6102786004803603602081101561034857600080fd5b5035610a6e565b610357610b17565b604080519115158252519081900360200190f35b6102786004803603604081101561038157600080fd5b506001600160a01b038135169060200135610b27565b610278610c7f565b61028a610d88565b61028a610d8e565b610278610d94565b610278600480360360208110156103cd57600080fd5b5035610e40565b610278610fc3565b610278600480360360e08110156103f257600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359160c0909101351661102b565b61028a611245565b61023f61124b565b61028a61125a565b61028a6112e8565b6103576112ee565b6102786004803603604081101561046a57600080fd5b50803590602001356112fe565b6102786004803603604081101561048d57600080fd5b508035151590602001356113ec565b61028a61153c565b610278600480360360208110156104ba57600080fd5b5035611542565b610357600480360360208110156104d757600080fd5b50356001600160a01b0316611707565b61023f61173a565b61028a611749565b61027861174f565b6102786004803603602081101561051557600080fd5b50356118a2565b6102786004803603602081101561053257600080fd5b50356001600160a01b031661194b565b61028a6004803603602081101561055857600080fd5b50356001600160a01b0316611a4d565b6102786004803603602081101561057e57600080fd5b50356001600160a01b0316611b31565b61023f611bf6565b6002546001600160a01b031681565b6105ad611c05565b6001600160a01b03166105be61124b565b6001600160a01b031614610607576040805162461bcd60e51b81526020600482018190526024820152600080516020612369833981519152604482015290519081900360640190fd5b60088190556040805182815290517f0c4d677eef92893ac7ec52faf8140fc6c851ab4736302b4f3a89dfb20696a0df9181900360200190a150565b7f000000000000000000000000000000000000000000000000000000000000000081565b600d5481565b600c5481565b600e5481565b600f6020526000908152604090208054600182015460029092015490919083565b60045481565b600260015414156106e5576040805162461bcd60e51b815260206004820152601f60248201526000805160206121bd833981519152604482015290519081900360640190fd5b60026001556106f2611c05565b6001600160a01b031661070361124b565b6001600160a01b03161461074c576040805162461bcd60e51b81526020600482018190526024820152600080516020612369833981519152604482015290519081900360640190fd5b600a54604080516370a0823160e01b8152336004820152905183926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561079657600080fd5b505afa1580156107aa573d6000803e3d6000fd5b505050506040513d60208110156107c057600080fd5b505110156107ff5760405162461bcd60e51b815260040180806020018281038252603d8152602001806123c2603d913960400191505060405180910390fd5b600a54610817906001600160a01b0316333084611c09565b6040805182815290517f19d619b124479c2d70fdcdb33644246ae36f947e11b9612f998df529be9e54b69181900360200190a15060018055565b60026001541415610897576040805162461bcd60e51b815260206004820152601f60248201526000805160206121bd833981519152604482015290519081900360640190fd5b6002600155336000908152600f6020526040902080548211156108eb5760405162461bcd60e51b815260040180806020018281038252603f815260200180612275603f913960400191505060405180910390fd5b6108f3611c69565b6000610928826001015461092260095461091c6003548760000154611cdb90919063ffffffff16565b90611d3d565b90611da4565b905082156109f657815461093c9084611da4565b825561094733611707565b156109ce576000610981670de0b6b3a764000061091c61097a600e54670de0b6b3a7640000611da490919063ffffffff16565b8790611cdb565b600b5490915061099b906001600160a01b03163383611e01565b6002546109c8906001600160a01b03166109b58684611da4565b600b546001600160a01b03169190611e01565b506109e5565b600b546109e5906001600160a01b03163385611e01565b600c546109f29084611da4565b600c555b8015610a1357600a54610a13906001600160a01b03163383611e01565b6009546003548354610a2a929161091c9190611cdb565b600183015560408051848152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a250506001805550565b610a76611c05565b6001600160a01b0316610a8761124b565b6001600160a01b031614610ad0576040805162461bcd60e51b81526020600482018190526024820152600080516020612369833981519152604482015290519081900360640190fd5b600d805490829055604080518281526020810184905281517f127dc83d857a4bc6af9d4a38626330f1ffd556e597408dc310b9edfd5386a61b929181900390910190a15050565b600254600160a81b900460ff1681565b610b2f611c05565b6001600160a01b0316610b4061124b565b6001600160a01b031614610b89576040805162461bcd60e51b81526020600482018190526024820152600080516020612369833981519152604482015290519081900360640190fd5b600b546001600160a01b0383811691161415610bd65760405162461bcd60e51b81526004018080602001828103825260448152602001806125936044913960600191505060405180910390fd5b600a546001600160a01b0383811691161415610c235760405162461bcd60e51b81526004018080602001828103825260448152602001806125056044913960600191505060405180910390fd5b610c376001600160a01b0383163383611e01565b604080516001600160a01b03841681526020810183905281517f74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab78129929181900390910190a15050565b60026001541415610cc5576040805162461bcd60e51b815260206004820152601f60248201526000805160206121bd833981519152604482015290519081900360640190fd5b6002600155336000908152600f60205260409020610ce1611c69565b805415610d32576000610d11826001015461092260095461091c6003548760000154611cdb90919063ffffffff16565b90508015610d3057600a54610d30906001600160a01b03163383611e01565b505b6009546003548254610d49929161091c9190611cdb565b60018201556040805133815290517f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b9181900360200190a15060018055565b60055481565b60075481565b610d9c611c05565b6001600160a01b0316610dad61124b565b6001600160a01b031614610df6576040805162461bcd60e51b81526020600482018190526024820152600080516020612369833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60026001541415610e86576040805162461bcd60e51b815260206004820152601f60248201526000805160206121bd833981519152604482015290519081900360640190fd5b6002600155610e93611c05565b6001600160a01b0316610ea461124b565b6001600160a01b031614610eed576040805162461bcd60e51b81526020600482018190526024820152600080516020612369833981519152604482015290519081900360640190fd5b60008111610f2c5760405162461bcd60e51b815260040180806020018281038252604881526020018061222d6048913960600191505060405180910390fd5b610f3461125a565b811115610f725760405162461bcd60e51b81526004018080602001828103825260688152602001806123ff6068913960800191505060405180910390fd5b600a54610f89906001600160a01b03163383611e01565b6040805182815290517f0c19c6325aefe1fa748b9a79e9fc092a292bb370d2a5a0d13f138bb8f46429da9181900360200190a15060018055565b610fcb611c05565b6001600160a01b0316610fdc61124b565b6001600160a01b031614611025576040805162461bcd60e51b81526020600482018190526024820152600080516020612369833981519152604482015290519081900360640190fd5b43600455565b600254600160a81b900460ff16156110745760405162461bcd60e51b81526004018080602001828103825260398152602001806123896039913960400191505060405180910390fd5b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110db5760405162461bcd60e51b81526004018080602001828103825260328152602001806122da6032913960400191505060405180910390fd5b60028054600b80546001600160a01b03808c166001600160a01b031992831617909255600a80548b841690831617905560088990556005889055600487905590841660ff60a81b19909216600160a81b17161790556000600c5562062700600d55662386f26fc10000600e558115611166576002805460ff60a01b1916600160a01b17905560078290555b600a546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b1580156111ab57600080fd5b505afa1580156111bf573d6000803e3d6000fd5b505050506040513d60208110156111d557600080fd5b505160ff169050601e811061121b5760405162461bcd60e51b815260040180806020018281038252603c81526020018061230c603c913960400191505060405180910390fd5b611226601e82611da4565b600a0a60095560055460065561123b8261194b565b5050505050505050565b60085481565b6000546001600160a01b031690565b600c54600a54604080516370a0823160e01b815230600482015290516000936112e39390926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b1580156112b157600080fd5b505afa1580156112c5573d6000803e3d6000fd5b505050506040513d60208110156112db57600080fd5b505190611da4565b905090565b60035481565b600254600160a01b900460ff1681565b611306611c05565b6001600160a01b031661131761124b565b6001600160a01b031614611360576040805162461bcd60e51b81526020600482018190526024820152600080516020612369833981519152604482015290519081900360640190fd5b80821061139e5760405162461bcd60e51b81526004018080602001828103825260618152602001806124676061913960800191505060405180910390fd5b600582905560048190556006829055604080518381526020810183905281517f7cd0ab87d19036f3dfadadb232c78aa4879dda3f0c994a9d637532410ee2ce06929181900390910190a15050565b6113f4611c05565b6001600160a01b031661140561124b565b6001600160a01b03161461144e576040805162461bcd60e51b81526020600482018190526024820152600080516020612369833981519152604482015290519081900360640190fd5b600254600160a01b900460ff166114965760405162461bcd60e51b815260040180806020018281038252603d8152602001806124c8603d913960400191505060405180910390fd5b81156114e65760075481116114dc5760405162461bcd60e51b815260040180806020018281038252604a815260200180612549604a913960600191505060405180910390fd5b6007819055611503565b6002805460ff60a01b1916600160a01b8415150217905560006007555b60075460408051918252517f241f67ee5f41b7a5cabf911367329be7215900f602ebfc47f89dce2a6bcd847c9181900360200190a15050565b60065481565b60026001541415611588576040805162461bcd60e51b815260206004820152601f60248201526000805160206121bd833981519152604482015290519081900360640190fd5b60026001819055336000908152600f602052604090209054600160a01b900460ff16156116125760075481546115bf908490611e58565b1115611612576040805162461bcd60e51b815260206004820152601760248201527f5573657220616d6f756e742061626f7665206c696d6974000000000000000000604482015290519081900360640190fd5b61161a611c69565b80541561166b57600061164a826001015461092260095461091c6003548760000154611cdb90919063ffffffff16565b9050801561166957600a54611669906001600160a01b03163383611e01565b505b81156116a757805461167d9083611e58565b8155600c5461168c9083611e58565b600c55600b546116a7906001600160a01b0316333085611c09565b43600282015560095460035482546116c4929161091c9190611cdb565b600182015560408051838152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2505060018055565b6001600160a01b0381166000908152600f60205260408120600d54600282015461173091611e58565b4311159392505050565b600b546001600160a01b031681565b60095481565b60026001541415611795576040805162461bcd60e51b815260206004820152601f60248201526000805160206121bd833981519152604482015290519081900360640190fd5b60026001908155336000908152600f60205260408120805482825592810191909155908015611863576117c733611707565b1561183b576000611801670de0b6b3a764000061091c6117fa600e54670de0b6b3a7640000611da490919063ffffffff16565b8590611cdb565b600b5490915061181b906001600160a01b03163383611e01565b600254611835906001600160a01b03166109b58484611da4565b50611852565b600b54611852906001600160a01b03163383611e01565b600c5461185f9082611da4565b600c555b8154604080519182525133917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695919081900360200190a2505060018055565b6118aa611c05565b6001600160a01b03166118bb61124b565b6001600160a01b031614611904576040805162461bcd60e51b81526020600482018190526024820152600080516020612369833981519152604482015290519081900360640190fd5b600e805490829055604080518281526020810184905281517f67ac5c37abfa810c9a84c1050cdf000d57e46077319beb09fd91ee835b6d4418929181900390910190a15050565b611953611c05565b6001600160a01b031661196461124b565b6001600160a01b0316146119ad576040805162461bcd60e51b81526020600482018190526024820152600080516020612369833981519152604482015290519081900360640190fd5b6001600160a01b0381166119f25760405162461bcd60e51b81526004018080602001828103825260268152602001806122076026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0381166000908152600f60205260408120600c5460065443118015611a7857508015155b15611b00576000611a8b60065443611eb2565b90506000611aa460085483611cdb90919063ffffffff16565b90506000611acd611ac48561091c60095486611cdb90919063ffffffff16565b60035490611e58565b9050611af4856001015461092260095461091c858a60000154611cdb90919063ffffffff16565b95505050505050611b2c565b611b27826001015461092260095461091c6003548760000154611cdb90919063ffffffff16565b925050505b919050565b611b39611c05565b6001600160a01b0316611b4a61124b565b6001600160a01b031614611b93576040805162461bcd60e51b81526020600482018190526024820152600080516020612369833981519152604482015290519081900360640190fd5b600280546001600160a01b038381166001600160a01b0319831681179093556040805191909216808252602082019390935281517f41d2755f00068d89c23ebc6f1e73ce119a6236a44517ca061f544a3f91c9bca4929181900390910190a15050565b600a546001600160a01b031681565b3390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611c63908590611eec565b50505050565b6006544311611c7757611cd9565b600c5480611c89575043600655611cd9565b6000611c9760065443611eb2565b90506000611cb060085483611cdb90919063ffffffff16565b9050611cce611ac48461091c60095485611cdb90919063ffffffff16565b600355505043600655505b565b600082611cea57506000611d37565b82820282848281611cf757fe5b0414611d345760405162461bcd60e51b81526004018080602001828103825260218152602001806123486021913960400191505060405180910390fd5b90505b92915050565b6000808211611d93576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611d9c57fe5b049392505050565b600082821115611dfb576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611e53908490611eec565b505050565b600082820183811015611d34576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006004548211611ece57611ec78284611da4565b9050611d37565b6004548310611edf57506000611d37565b600454611ec79084611da4565b6060611f41826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611f9d9092919063ffffffff16565b805190915015611e5357808060200190516020811015611f6057600080fd5b5051611e535760405162461bcd60e51b815260040180806020018281038252602a8152602001806121dd602a913960400191505060405180910390fd5b6060611fac8484600085611fb6565b90505b9392505050565b606082471015611ff75760405162461bcd60e51b81526004018080602001828103825260268152602001806122b46026913960400191505060405180910390fd5b61200085612112565b612051576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106120905780518252601f199092019160209182019101612071565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146120f2576040519150601f19603f3d011682016040523d82523d6000602084013e6120f7565b606091505b5091509150612107828286612118565b979650505050505050565b3b151590565b60608315612127575081611faf565b8251156121375782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612181578181015183820152602001612169565b50505050905090810190601f1680156121ae5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5265656e7472616e637947756172643a207265656e7472616e742063616c6c005361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734469616d6f6e6448616e64496e697469616c697a61626c653a3a61646d696e57697468647261773a205f616d6f756e742073686f756c6420626520686967686572207468616e20304469616d6f6e6448616e64496e697469616c697a61626c653a3a77697468647261773a20416d6f756e7420746f20776974686472617720746f6f2068696768416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4469616d6f6e6448616e64496e697469616c697a61626c653a3a696e697469616c697a653a204e6f74206465706c6f7965724469616d6f6e6448616e64496e697469616c697a61626c653a3a696e697469616c697a653a204d75737420626520696e666572696f7220746f203330536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724469616d6f6e6448616e64496e697469616c697a61626c653a3a696e697469616c697a653a20416c726561647920696e697469616c697a65644469616d6f6e6448616e64496e697469616c697a61626c653a3a6465706f7369745265776172643a20496e73756666696369656e742062616c616e63654469616d6f6e6448616e64496e697469616c697a61626c653a3a61646d696e57697468647261773a205f616d6f756e742073686f756c64206265206c657373207468616e206f7220657175616c2074686520746f74616c2072656d61696e696e67207265776172644469616d6f6e6448616e64496e697469616c697a61626c653a3a7570646174655374617274416e64456e64426c6f636b733a204e6577207374617274426c6f636b206d757374206265206c6f776572207468616e206e657720656e64426c6f636b4469616d6f6e6448616e64496e697469616c697a61626c653a3a757064617465506f6f6c4c696d6974506572557365723a204d757374206265207365744469616d6f6e6448616e64496e697469616c697a61626c653a3a7265636f76657257726f6e67546f6b656e733a2043616e6e6f742062652072657761726420746f6b656e4469616d6f6e6448616e64496e697469616c697a61626c653a3a757064617465506f6f6c4c696d6974506572557365723a204e6577206c696d6974206d757374206265206869676865724469616d6f6e6448616e64496e697469616c697a61626c653a3a7265636f76657257726f6e67546f6b656e733a2043616e6e6f74206265207374616b656420746f6b656ea26469706673582212202c2ad7bc2609cba0e0b4881726864c0c5fecfecff390ff34ccdebade9a27eacc64736f6c634300060c0033

Deployed ByteCode Sourcemap

30374:17484:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30698:20;;;:::i;:::-;;;;-1:-1:-1;;;;;30698:20:0;;;;;;;;;;;;;;44222:175;;;;;;;;;;;;;;;;-1:-1:-1;44222:175:0;;:::i;:::-;;30556:42;;;:::i;31642:34::-;;;:::i;:::-;;;;;;;;;;;;;;;;31572:27;;;:::i;31716:32::-;;;:::i;31829:44::-;;;;;;;;;;;;;;;;-1:-1:-1;31829:44:0;-1:-1:-1;;;;;31829:44:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;30991:28;;;:::i;37886:324::-;;;;;;;;;;;;;;;;-1:-1:-1;37886:324:0;;:::i;39023:1341::-;;;;;;;;;;;;;;;;-1:-1:-1;39023:1341:0;;:::i;35100:228::-;;;;;;;;;;;;;;;;-1:-1:-1;35100:228:0;;:::i;30835:25::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;42421:593;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;42421:593:0;;;;;;;;:::i;38266:607::-;;;:::i;31080:25::-;;;:::i;31237:31::-;;;:::i;2898:148::-;;;:::i;40598:447::-;;;;;;;;;;;;;;;;-1:-1:-1;40598:447:0;;:::i;43104:88::-;;;:::i;33416:1544::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;33416:1544:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;31318:29::-;;;:::i;2247:87::-;;;:::i;47641:214::-;;;:::i;30901:31::-;;;:::i;30768:24::-;;;:::i;44641:556::-;;;;;;;;;;;;;;;;-1:-1:-1;44641:556:0;;;;;;;:::i;43418:649::-;;;;;;;;;;;;;;;;-1:-1:-1;43418:649:0;;;;;;;;;:::i;31163:30::-;;;:::i;36632:1147::-;;;;;;;;;;;;;;;;-1:-1:-1;36632:1147:0;;:::i;36254:220::-;;;;;;;;;;;;;;;;-1:-1:-1;36254:220:0;-1:-1:-1;;;;;36254:220:0;;:::i;31509:25::-;;;:::i;31385:31::-;;;:::i;41186:945::-;;;:::i;35517:240::-;;;;;;;;;;;;;;;;-1:-1:-1;35517:240:0;;:::i;3201:281::-;;;;;;;;;;;;;;;;-1:-1:-1;3201:281:0;-1:-1:-1;;;;;3201:281:0;;:::i;45370:976::-;;;;;;;;;;;;;;;;-1:-1:-1;45370:976:0;-1:-1:-1;;;;;45370:976:0;;:::i;35882:186::-;;;;;;;;;;;;;;;;-1:-1:-1;35882:186:0;-1:-1:-1;;;;;35882:186:0;;:::i;31450:25::-;;;:::i;30698:20::-;;;-1:-1:-1;;;;;30698:20:0;;:::o;44222:175::-;2478:12;:10;:12::i;:::-;-1:-1:-1;;;;;2467:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2467:23:0;;2459:68;;;;;-1:-1:-1;;;2459:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2459:68:0;;;;;;;;;;;;;;;44307:14:::1;:32:::0;;;44355:34:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;44222:175:::0;:::o;30556:42::-;;;:::o;31642:34::-;;;;:::o;31572:27::-;;;;:::o;31716:32::-;;;;:::o;31829:44::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;30991:28::-;;;;:::o;37886:324::-;5220:1;5825:7;;:19;;5817:63;;;;;-1:-1:-1;;;5817:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;5817:63:0;;;;;;;;;;;;;;;5220:1;5958:7;:18;2478:12:::1;:10;:12::i;:::-;-1:-1:-1::0;;;;;2467:23:0::1;:7;:5;:7::i;:::-;-1:-1:-1::0;;;;;2467:23:0::1;;2459:68;;;::::0;;-1:-1:-1;;;2459:68:0;;::::1;;::::0;::::1;::::0;;;;;;;-1:-1:-1;;;;;;;;;;;2459:68:0;;;;;;;;;;;;;::::1;;37977:11:::2;::::0;:33:::2;::::0;;-1:-1:-1;;;37977:33:0;;37999:10:::2;37977:33;::::0;::::2;::::0;;;38014:7;;-1:-1:-1;;;;;37977:11:0::2;::::0;:21:::2;::::0;:33;;;;;::::2;::::0;;;;;;;;:11;:33;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;37977:33:0;:44:::2;;37969:118;;;;-1:-1:-1::0;;;37969:118:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38098:11;::::0;:64:::2;::::0;-1:-1:-1;;;;;38098:11:0::2;38127:10;38147:4;38154:7:::0;38098:28:::2;:64::i;:::-;38180:22;::::0;;;;;;;::::2;::::0;;;;::::2;::::0;;::::2;-1:-1:-1::0;5176:1:0;6137:22;;37886:324::o;39023:1341::-;5220:1;5825:7;;:19;;5817:63;;;;;-1:-1:-1;;;5817:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;5817:63:0;;;;;;;;;;;;;;;5220:1;5958:7;:18;39124:10:::1;39091:21;39115:20:::0;;;:8:::1;:20;::::0;;;;39154:11;;:22;-1:-1:-1;39154:22:0::1;39146:98;;;;-1:-1:-1::0;;;39146:98:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39257:13;:11;:13::i;:::-;39283:15;39314:108;39392:4;:15;;;39314:55;39352:16;;39314:33;39330:16;;39314:4;:11;;;:15;;:33;;;;:::i;:::-;:37:::0;::::1;:55::i;:::-;:59:::0;::::1;:108::i;:::-;39283:139:::0;-1:-1:-1;39439:11:0;;39435:664:::1;;39481:11:::0;;:24:::1;::::0;39497:7;39481:15:::1;:24::i;:::-;39467:38:::0;;39524:33:::1;39546:10;39524:21;:33::i;:::-;39520:511;;;39578:22;39603:59;39657:4;39603:49;39615:36;39633:17;;39623:4;39615:17;;:36;;;;:::i;:::-;39603:7:::0;;:11:::1;:49::i;:59::-;39754:11;::::0;39578:84;;-1:-1:-1;39754:52:0::1;::::0;-1:-1:-1;;;;;39754:11:0::1;39779:10;39578:84:::0;39754:24:::1;:52::i;:::-;39894:5;::::0;39869:60:::1;::::0;-1:-1:-1;;;;;39894:5:0::1;39901:27;:7:::0;39913:14;39901:11:::1;:27::i;:::-;39869:11;::::0;-1:-1:-1;;;;;39869:11:0::1;::::0;:60;:24:::1;:60::i;:::-;39520:511;;;;39970:11;::::0;:45:::1;::::0;-1:-1:-1;;;;;39970:11:0::1;39995:10;40007:7:::0;39970:24:::1;:45::i;:::-;40062:12;::::0;:25:::1;::::0;40079:7;40062:16:::1;:25::i;:::-;40047:12;:40:::0;39435:664:::1;40115:11:::0;;40111:89:::1;;40143:11;::::0;:45:::1;::::0;-1:-1:-1;;;;;40143:11:0::1;40168:10;40180:7:::0;40143:24:::1;:45::i;:::-;40282:16;::::0;40246::::1;::::0;40230:11;;:79:::1;::::0;40282:16;40230:33:::1;::::0;:11;:15:::1;:33::i;:79::-;40212:15;::::0;::::1;:97:::0;40327:29:::1;::::0;;;;;;;40336:10:::1;::::0;40327:29:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;5176:1:0;6137:22;;-1:-1:-1;39023:1341:0:o;35100:228::-;2478:12;:10;:12::i;:::-;-1:-1:-1;;;;;2467:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2467:23:0;;2459:68;;;;;-1:-1:-1;;;2459:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2459:68:0;;;;;;;;;;;;;;;35200:19:::1;::::0;;35230:29;;;;35277:43:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;2538:1;35100:228:::0;:::o;30835:25::-;;;-1:-1:-1;;;30835:25:0;;;;;:::o;42421:593::-;2478:12;:10;:12::i;:::-;-1:-1:-1;;;;;2467:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2467:23:0;;2459:68;;;;;-1:-1:-1;;;2459:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2459:68:0;;;;;;;;;;;;;;;42594:11:::1;::::0;-1:-1:-1;;;;;42569:37:0;;::::1;42594:11:::0;::::1;42569:37;;42547:155;;;;-1:-1:-1::0;;;42547:155:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42760:11;::::0;-1:-1:-1;;;;;42735:37:0;;::::1;42760:11:::0;::::1;42735:37;;42713:155;;;;-1:-1:-1::0;;;42713:155:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42881:60;-1:-1:-1::0;;;;;42881:34:0;::::1;42916:10;42928:12:::0;42881:34:::1;:60::i;:::-;42959:47;::::0;;-1:-1:-1;;;;;42959:47:0;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;42421:593:::0;;:::o;38266:607::-;5220:1;5825:7;;:19;;5817:63;;;;;-1:-1:-1;;;5817:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;5817:63:0;;;;;;;;;;;;;;;5220:1;5958:7;:18;38351:10:::1;38318:21;38342:20:::0;;;:8:::1;:20;::::0;;;;38383:13:::1;:11;:13::i;:::-;38413:11:::0;;:15;38409:310:::1;;38445:15;38480:116;38562:4;:15;;;38480:55;38518:16;;38480:33;38496:16;;38480:4;:11;;;:15;;:33;;;;:::i;:116::-;38445:151:::0;-1:-1:-1;38615:11:0;;38611:97:::1;;38647:11;::::0;:45:::1;::::0;-1:-1:-1;;;;;38647:11:0::1;38672:10;38684:7:::0;38647:24:::1;:45::i;:::-;38409:310;;38801:16;::::0;38765::::1;::::0;38749:11;;:79:::1;::::0;38801:16;38749:33:::1;::::0;:11;:15:::1;:33::i;:79::-;38731:15;::::0;::::1;:97:::0;38846:19:::1;::::0;;38854:10:::1;38846:19:::0;;;;::::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;5176:1:0;6137:22;;38266:607::o;31080:25::-;;;;:::o;31237:31::-;;;;:::o;2898:148::-;2478:12;:10;:12::i;:::-;-1:-1:-1;;;;;2467:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2467:23:0;;2459:68;;;;;-1:-1:-1;;;2459:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2459:68:0;;;;;;;;;;;;;;;3005:1:::1;2989:6:::0;;2968:40:::1;::::0;-1:-1:-1;;;;;2989:6:0;;::::1;::::0;2968:40:::1;::::0;3005:1;;2968:40:::1;3036:1;3019:19:::0;;-1:-1:-1;;;;;;3019:19:0::1;::::0;;2898:148::o;40598:447::-;5220:1;5825:7;;:19;;5817:63;;;;;-1:-1:-1;;;5817:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;5817:63:0;;;;;;;;;;;;;;;5220:1;5958:7;:18;2478:12:::1;:10;:12::i;:::-;-1:-1:-1::0;;;;;2467:23:0::1;:7;:5;:7::i;:::-;-1:-1:-1::0;;;;;2467:23:0::1;;2459:68;;;::::0;;-1:-1:-1;;;2459:68:0;;::::1;;::::0;::::1;::::0;;;;;;;-1:-1:-1;;;;;;;;;;;2459:68:0;;;;;;;;;;;;;::::1;;40699:1:::2;40689:7;:11;40681:96;;;;-1:-1:-1::0;;;40681:96:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40807:25;:23;:25::i;:::-;40796:7;:36;;40788:153;;;;-1:-1:-1::0;;;40788:153:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40952:11;::::0;:45:::2;::::0;-1:-1:-1;;;;;40952:11:0::2;40977:10;40989:7:::0;40952:24:::2;:45::i;:::-;41015:22;::::0;;;;;;;::::2;::::0;;;;::::2;::::0;;::::2;-1:-1:-1::0;5176:1:0;6137:22;;40598:447::o;43104:88::-;2478:12;:10;:12::i;:::-;-1:-1:-1;;;;;2467:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2467:23:0;;2459:68;;;;;-1:-1:-1;;;2459:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2459:68:0;;;;;;;;;;;;;;;43172:12:::1;43156:13;:28:::0;43104:88::o;33416:1544::-;33690:13;;-1:-1:-1;;;33690:13:0;;;;33689:14;33681:84;;;;-1:-1:-1;;;33681:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33784:10;-1:-1:-1;;;;;33798:17:0;33784:31;;33776:94;;;;-1:-1:-1;;;33776:94:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33926:13;:20;;33959:11;:26;;-1:-1:-1;;;;;33959:26:0;;;-1:-1:-1;;;;;;33959:26:0;;;;;;;33996:11;:26;;;;;;;;;;;34033:14;:32;;;34076:10;:24;;;34111:13;:30;;;34152:14;;;-1:-1:-1;;;;33926:20:0;;;-1:-1:-1;;;33926:20:0;34152:14;;;;33926:20;34179:12;:16;34253:6;34231:19;:28;34301:17;34281;:37;34349:21;;34345:124;;34387:12;:19;;-1:-1:-1;;;;34387:19:0;-1:-1:-1;;;34387:19:0;;;34421:16;:36;;;34345:124;34519:11;;:22;;;-1:-1:-1;;;34519:22:0;;;;34481:27;;-1:-1:-1;;;;;34519:11:0;;:20;;:22;;;;;;;;;;;;;;:11;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34519:22:0;34511:31;;;-1:-1:-1;34583:2:0;34561:24;;34553:97;;;;-1:-1:-1;;;34553:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34695:36;34703:2;34711:19;34695:15;:36::i;:::-;34690:2;:42;34663:16;:70;34818:10;;34800:15;:28;34927:25;34945:6;34927:17;:25::i;:::-;33416:1544;;;;;;;;:::o;31318:29::-;;;;:::o;2247:87::-;2293:7;2320:6;-1:-1:-1;;;;;2320:6:0;2247:87;:::o;47641:214::-;47834:12;;47793:11;;:36;;;-1:-1:-1;;;47793:36:0;;47823:4;47793:36;;;;;;47724:28;;47793:54;;47834:12;;-1:-1:-1;;;;;47793:11:0;;;;:21;;:36;;;;;;;;;;;;;;;:11;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47793:36:0;;:40;:54::i;:::-;47770:77;;47641:214;:::o;30901:31::-;;;;:::o;30768:24::-;;;-1:-1:-1;;;30768:24:0;;;;;:::o;44641:556::-;2478:12;:10;:12::i;:::-;-1:-1:-1;;;;;2467:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2467:23:0;;2459:68;;;;;-1:-1:-1;;;2459:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2459:68:0;;;;;;;;;;;;;;;44810:14:::1;44796:11;:28;44774:175;;;;-1:-1:-1::0;;;44774:175:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44962:10;:24:::0;;;44997:13:::1;:30:::0;;;45094:15:::1;:28:::0;;;45140:49:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;44641:556:::0;;:::o;43418:649::-;2478:12;:10;:12::i;:::-;-1:-1:-1;;;;;2467:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2467:23:0;;2459:68;;;;;-1:-1:-1;;;2459:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2459:68:0;;;;;;;;;;;;;;;43560:12:::1;::::0;-1:-1:-1;;;43560:12:0;::::1;;;43552:86;;;;-1:-1:-1::0;;;43552:86:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43653:13;43649:365;;;43729:16;;43709:17;:36;43683:172;;;;-1:-1:-1::0;;;43683:172:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43870:16;:36:::0;;;43649:365:::1;;;43939:12;:28:::0;;-1:-1:-1;;;;43939:28:0::1;-1:-1:-1::0;;;43939:28:0;::::1;;;;::::0;;-1:-1:-1;43982:16:0::1;:20:::0;43649:365:::1;44042:16;::::0;44029:30:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;43418:649:::0;;:::o;31163:30::-;;;;:::o;36632:1147::-;5220:1;5825:7;;:19;;5817:63;;;;;-1:-1:-1;;;5817:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;5817:63:0;;;;;;;;;;;;;;;5220:1;5958:7;:18;;;36732:10:::1;36699:21;36723:20:::0;;;:8:::1;:20;::::0;;;;36760:12;;-1:-1:-1;;;36760:12:0;::::1;;;36756:174;;;36843:16;::::0;36827:11;;36815:24:::1;::::0;:7;;:11:::1;:24::i;:::-;:44;;36789:129;;;::::0;;-1:-1:-1;;;36789:129:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;36942:13;:11;:13::i;:::-;36972:11:::0;;:15;36968:309:::1;;37004:15;37022:130;37136:4;:15;;;37022:91;37096:16;;37022:51;37056:16;;37022:4;:11;;;:33;;:51;;;;:::i;:130::-;37004:148:::0;-1:-1:-1;37173:11:0;;37169:97:::1;;37205:11;::::0;:45:::1;::::0;-1:-1:-1;;;;;37205:11:0::1;37230:10;37242:7:::0;37205:24:::1;:45::i;:::-;36968:309;;37293:11:::0;;37289:284:::1;;37335:11:::0;;:24:::1;::::0;37351:7;37335:15:::1;:24::i;:::-;37321:38:::0;;37389:12:::1;::::0;:25:::1;::::0;37406:7;37389:16:::1;:25::i;:::-;37374:12;:40:::0;37431:11:::1;::::0;:130:::1;::::0;-1:-1:-1;;;;;37431:11:0::1;37478:10;37515:4;37539:7:::0;37431:28:::1;:130::i;:::-;37605:12;37585:17;::::0;::::1;:32:::0;37698:16:::1;::::0;37662::::1;::::0;37646:11;;:79:::1;::::0;37698:16;37646:33:::1;::::0;:11;:15:::1;:33::i;:79::-;37628:15;::::0;::::1;:97:::0;37743:28:::1;::::0;;;;;;;37751:10:::1;::::0;37743:28:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;5176:1:0;6137:22;;36632:1147::o;36254:220::-;-1:-1:-1;;;;;36370:15:0;;36321:12;36370:15;;;:8;:15;;;;;36445:19;;36423:17;;;;:42;;:21;:42::i;:::-;36407:12;:58;;;36254:220;-1:-1:-1;;;36254:220:0:o;31509:25::-;;;-1:-1:-1;;;;;31509:25:0;;:::o;31385:31::-;;;;:::o;41186:945::-;5220:1;5825:7;;:19;;5817:63;;;;;-1:-1:-1;;;5817:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;5817:63:0;;;;;;;;;;;;;;;5220:1;5958:7;:18;;;41281:10:::1;41248:21;41272:20:::0;;;:8:::1;:20;::::0;;;;41330:11;;41352:15;;;41378;;::::1;:19:::0;;;;41272:20;41414;;41410:654:::1;;41455:33;41477:10;41455:21;:33::i;:::-;41451:538;;;41509:22;41534:68;41597:4;41534:58;41555:36;41573:17;;41563:4;41555:17;;:36;;;;:::i;:::-;41534:16:::0;;:20:::1;:58::i;:68::-;41694:11;::::0;41509:93;;-1:-1:-1;41694:52:0::1;::::0;-1:-1:-1;;;;;41694:11:0::1;41719:10;41509:93:::0;41694:24:::1;:52::i;:::-;41834:5;::::0;41809:69:::1;::::0;-1:-1:-1;;;;;41834:5:0::1;41841:36;:16:::0;41862:14;41841:20:::1;:36::i;41809:69::-;41451:538;;;;41919:11;::::0;:54:::1;::::0;-1:-1:-1;;;;;41919:11:0::1;41944:10;41956:16:::0;41919:24:::1;:54::i;:::-;42018:12;::::0;:34:::1;::::0;42035:16;42018::::1;:34::i;:::-;42003:12;:49:::0;41410:654:::1;42111:11:::0;;42081:42:::1;::::0;;;;;;42099:10:::1;::::0;42081:42:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;5176:1:0;6137:22;;41186:945::o;35517:240::-;2478:12;:10;:12::i;:::-;-1:-1:-1;;;;;2467:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2467:23:0;;2459:68;;;;;-1:-1:-1;;;2459:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2459:68:0;;;;;;;;;;;;;;;35623:17:::1;::::0;;35651:31;;;;35700:49:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;2538:1;35517:240:::0;:::o;3201:281::-;2478:12;:10;:12::i;:::-;-1:-1:-1;;;;;2467:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2467:23:0;;2459:68;;;;;-1:-1:-1;;;2459:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2459:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;3304:22:0;::::1;3282:110;;;;-1:-1:-1::0;;;3282:110:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3429:6;::::0;;3408:38:::1;::::0;-1:-1:-1;;;;;3408:38:0;;::::1;::::0;3429:6;::::1;::::0;3408:38:::1;::::0;::::1;3457:6;:17:::0;;-1:-1:-1;;;;;;3457:17:0::1;-1:-1:-1::0;;;;;3457:17:0;;;::::1;::::0;;;::::1;::::0;;3201:281::o;45370:976::-;-1:-1:-1;;;;;45475:15:0;;45431:7;45475:15;;;:8;:15;;;;;45529:12;;45571:15;;45556:12;:30;:56;;;;-1:-1:-1;45590:22:0;;;45556:56;45552:787;;;45629:18;45650:45;45665:15;;45682:12;45650:14;:45::i;:::-;45629:66;;45710:20;45733:30;45748:14;;45733:10;:14;;:30;;;;:::i;:::-;45710:53;;45778:29;45827:119;45870:57;45909:17;45870:34;45887:16;;45870:12;:16;;:34;;;;:::i;:57::-;45827:16;;;:20;:119::i;:::-;45778:168;;45985:169;46138:4;:15;;;45985:126;46094:16;;45985:82;46045:21;45985:4;:33;;;:59;;:82;;;;:::i;:169::-;45961:193;;;;;;;;;45552:787;46211:116;46293:4;:15;;;46211:55;46249:16;;46211:33;46227:16;;46211:4;:11;;;:15;;:33;;;;:::i;:116::-;46187:140;;;;45370:976;;;;:::o;35882:186::-;2478:12;:10;:12::i;:::-;-1:-1:-1;;;;;2467:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2467:23:0;;2459:68;;;;;-1:-1:-1;;;2459:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2459:68:0;;;;;;;;;;;;;;;35973:5:::1;::::0;;-1:-1:-1;;;;;35989:19:0;;::::1;-1:-1:-1::0;;;;;;35989:19:0;::::1;::::0;::::1;::::0;;;36026:34:::1;::::0;;35973:5;;;::::1;36026:34:::0;;;::::1;::::0;::::1;::::0;;;;;;::::1;::::0;;;;;;;;;::::1;2538:1;35882:186:::0;:::o;31450:25::-;;;-1:-1:-1;;;;;31450:25:0;;:::o;780:106::-;868:10;780:106;:::o;26759:285::-;26957:68;;;-1:-1:-1;;;;;26957:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;26957:68:0;-1:-1:-1;;;26957:68:0;;;26903:133;;26937:5;;26903:19;:133::i;:::-;26759:285;;;;:::o;46447:608::-;46510:15;;46494:12;:31;46490:70;;46542:7;;46490:70;46600:12;;46629:22;46625:106;;-1:-1:-1;46686:12:0;46668:15;:30;46713:7;;46625:106;46743:18;46764:45;46779:15;;46796:12;46764:14;:45::i;:::-;46743:66;;46820:20;46843:30;46858:14;;46843:10;:14;;:30;;;;:::i;:::-;46820:53;;46903:103;46938:57;46977:17;46938:34;46955:16;;46938:12;:16;;:34;;;;:::i;46903:103::-;46884:16;:122;-1:-1:-1;;47035:12:0;47017:15;:30;-1:-1:-1;46447:608:0;:::o;9990:220::-;10048:7;10072:6;10068:20;;-1:-1:-1;10087:1:0;10080:8;;10068:20;10111:5;;;10115:1;10111;:5;:1;10135:5;;;;;:10;10127:56;;;;-1:-1:-1;;;10127:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10201:1;-1:-1:-1;9990:220:0;;;;;:::o;10688:153::-;10746:7;10778:1;10774;:5;10766:44;;;;;-1:-1:-1;;;10766:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;10832:1;10828;:5;;;;;;;10688:153;-1:-1:-1;;;10688:153:0:o;9573:158::-;9631:7;9664:1;9659;:6;;9651:49;;;;;-1:-1:-1;;;9651:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9718:5:0;;;9573:158::o;26503:248::-;26674:58;;;-1:-1:-1;;;;;26674:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;26674:58:0;-1:-1:-1;;;26674:58:0;;;26620:123;;26654:5;;26620:19;:123::i;:::-;26503:248;;;:::o;9111:179::-;9169:7;9201:5;;;9225:6;;;;9217:46;;;;;-1:-1:-1;;;9217:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;47229:341;47331:7;47367:13;;47360:3;:20;47356:207;;47404:14;:3;47412:5;47404:7;:14::i;:::-;47397:21;;;;47356:207;47449:13;;47440:5;:22;47436:127;;-1:-1:-1;47486:1:0;47479:8;;47436:127;47527:13;;:24;;47545:5;47527:17;:24::i;29393:885::-;29817:23;29856:118;29902:4;29856:118;;;;;;;;;;;;;;;;;29864:5;-1:-1:-1;;;;;29856:27:0;;;:118;;;;;:::i;:::-;29989:17;;29817:157;;-1:-1:-1;29989:21:0;29985:286;;30162:10;30151:30;;;;;;;;;;;;;;;-1:-1:-1;30151:30:0;30125:134;;;;-1:-1:-1;;;30125:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17670:229;17807:12;17839:52;17861:6;17869:4;17875:1;17878:12;17839:21;:52::i;:::-;17832:59;;17670:229;;;;;;:::o;18886:621::-;19056:12;19128:5;19103:21;:30;;19081:118;;;;-1:-1:-1;;;19081:118:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19218:18;19229:6;19218:10;:18::i;:::-;19210:60;;;;;-1:-1:-1;;;19210:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;19344:12;19358:23;19398:6;-1:-1:-1;;;;;19398:11:0;19417:5;19424:4;19398:31;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;19398:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19343:86;;;;19447:52;19465:7;19474:10;19486:12;19447:17;:52::i;:::-;19440:59;18886:621;-1:-1:-1;;;;;;;18886:621:0:o;14633:444::-;15013:20;15061:8;;;14633:444::o;21798:777::-;21948:12;21977:7;21973:595;;;-1:-1:-1;22008:10:0;22001:17;;21973:595;22122:17;;:21;22118:439;;22385:10;22379:17;22446:15;22433:10;22429:2;22425:19;22418:44;22333:148;22528:12;22521:20;;-1:-1:-1;;;22521:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://2c2ad7bc2609cba0e0b4881726864c0c5fecfecff390ff34ccdebade9a27eacc
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.