Address io127suua5x7we2kc04ryw8vdslnpd40c86lym3nn

Contract Overview

Balance:
0 IOTX

IOTX Value:
$ 0

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
b699fef0e2bfedf0b813728a7767cdbd4c52118b492990fdd104223899debfb3 29600933 2024-04-21 21:32:15 +0000 UTC 4 days ago io1zytpw72u2f2463w0zqxse0cpeqhp2l5p9mqse7  IN    Contract: SingleStakingRewards 0 IOTX 0.12401
c8ab5112ea19e026d592ae91be6a439ac2cef51421312da8eb4f63d890f501b5 29600928 2024-04-21 21:31:50 +0000 UTC 4 days ago io1zytpw72u2f2463w0zqxse0cpeqhp2l5p9mqse7  IN    Contract: SingleStakingRewards 0 IOTX 0.113828
2cca9e2cf1bffb633a85585d152624b4283ed3657098fdc7f92c48a2dafcddd8 29537427 2024-04-18 05:19:45 +0000 UTC 7 days ago io1le3czuq7w76a7uxhs4wfljllauct6qz6rra9xh  IN    Contract: SingleStakingRewards 0 IOTX 0.170816
f00007a0a0416877ed5a39379ccc751d36f3422cd6cad1529f4b16a814d75709 29527254 2024-04-17 15:11:55 +0000 UTC 8 days ago io13365eqwlwgllssyhx4hz5utzp79ku26zqz2uw0  IN    Contract: SingleStakingRewards 0 IOTX 0.28506
5b63083ad74fa045143de513c24f82778056a268c654dc79f5215a7bf76a4363 29478882 2024-04-14 20:00:40 +0000 UTC 11 days ago io1j8k3f8nwhwmrg4p6vsspusls59aqknurhj3ns8  IN    Contract: SingleStakingRewards 0 IOTX 0.20232
572add564744f2db69a844f4ea7b0926759ac4d28d1b9a61a055b13f98a37e0e 29421010 2024-04-11 11:33:40 +0000 UTC 14 days ago io1sxqlf8c6usw4sqdmjgua90kg3rnqlq7l8kdl7x  IN    Contract: SingleStakingRewards 0 IOTX 0.20232
b972f5af87baf01625201c9c3430e012e7379aeefbe4c66f4524c2a041ad6687 29246702 2024-04-01 09:08:00 +0000 UTC 24 days ago io1hj0hulmc5slurd66jllgeeqjerp0ljtg4g9eqz  IN    Contract: SingleStakingRewards 0 IOTX 0.28506
26ba04542ae4e65b823d043fc1301cf8c0f0c8d3b7fb05be8403b3f6951af16d 29201441 2024-03-29 18:16:00 +0000 UTC 27 days ago io1808dut8747y7qw43chfl98pjl9x7w9leuu8llu  IN    Contract: SingleStakingRewards 0 IOTX 0.112704
5a8509719e62c3f9dbfab8509e2907445e0301cb8ba4b4baf53ea1ebc5a83d60 29201434 2024-03-29 18:15:25 +0000 UTC 27 days ago io1808dut8747y7qw43chfl98pjl9x7w9leuu8llu  IN    Contract: SingleStakingRewards 0 IOTX 0.285202
9780c830faeae37ec6c6b87343983610d3b62a9035c31724dbb829aa3cb71a4f 29059788 2024-03-21 13:10:05 +0000 UTC one month ago io1a0ulnfvkfwyufvxyn3hedtvlfhy0k6wqp0fyk5  IN    Contract: SingleStakingRewards 0 IOTX 0.16412
e256623065356e05c5d00a7195cb5e3d8bf0756a7301911369ccfd7fe41382cb 28974793 2024-03-16 15:06:55 +0000 UTC one month ago io19wr859ec6q8lvhk59us8h0ftd86urr8amf7vds  IN    Contract: SingleStakingRewards 0 IOTX 0.28106
f627e1177e7a5d9bed01eea51d803176ba46897c4c996f50dad6b6a4d3c71d51 28897262 2024-03-12 03:24:20 +0000 UTC one month ago io1j8k3f8nwhwmrg4p6vsspusls59aqknurhj3ns8  IN    Contract: SingleStakingRewards 0 IOTX 1.06345
90be2376a167fb8a6f34cd618d4a535670c0e6483f40e4df94f689d7a1637497 28875805 2024-03-10 21:36:10 +0000 UTC 2 months ago io1zytpw72u2f2463w0zqxse0cpeqhp2l5p9mqse7  IN    Contract: SingleStakingRewards 0 IOTX 0.120110
2c141f3512b8bc609123d288225fac336a894c439bd57607b1c14f0dd1a97281 28875800 2024-03-10 21:35:45 +0000 UTC 2 months ago io1zytpw72u2f2463w0zqxse0cpeqhp2l5p9mqse7  IN    Contract: SingleStakingRewards 0 IOTX 0.122498
100c018024e88bdd4c16e6da02d18c1230c66fa6156654e1209b43721275e801 28852719 2024-03-09 13:27:15 +0000 UTC 2 months ago io1le3czuq7w76a7uxhs4wfljllauct6qz6rra9xh  IN    Contract: SingleStakingRewards 0 IOTX 0.311312
0b9a829afc75630bd9b3677ed8b0fea5a1a264d782d1abebd4b6e85c396386a2 28789443 2024-03-05 21:33:40 +0000 UTC 2 months ago io1xw08rp9q9fmqmf4v2af46kd56w3k89v8dv0pm8  IN    Contract: SingleStakingRewards 0 IOTX 0.645795
16bf2c96980e36106c52be6f6e997b9f46e1086b714c0c72173a9ea1c10c6ffe 28789374 2024-03-05 21:27:55 +0000 UTC 2 months ago io1xw08rp9q9fmqmf4v2af46kd56w3k89v8dv0pm8  IN    Contract: SingleStakingRewards 0 IOTX 0.14253
88ec525ffd5d8577032fc5700bbb48c2d03be3030fdfc70814bbf960bc048be4 28787092 2024-03-05 18:17:45 +0000 UTC 2 months ago io1xdmw0723pdtxlrxx4w0y73vgm9q6v359kz4s8q  IN    Contract: SingleStakingRewards 0 IOTX 0.126950
be6449a9e4eecae65c28eed24e2f0b60ebef8abcb56f3217a50cd920271a6136 28776582 2024-03-05 03:41:55 +0000 UTC 2 months ago io1yr3fwxlq8syjk6dq8l5uywxmcerqt79j4yv76p  IN    Contract: SingleStakingRewards 0 IOTX 0.73155
87176c28ae309c6a2b985a997676b5f232c4e3e183672ada806d7b025d453d9f 28776575 2024-03-05 03:41:20 +0000 UTC 2 months ago io1yr3fwxlq8syjk6dq8l5uywxmcerqt79j4yv76p  IN    Contract: SingleStakingRewards 0 IOTX 0.4103
33f23a4470402f918aae90a03fbff2ecd02592830ebd73288b9613635c982dcd 28733583 2024-03-02 15:48:40 +0000 UTC 2 months ago io1sxqlf8c6usw4sqdmjgua90kg3rnqlq7l8kdl7x  IN    Contract: SingleStakingRewards 0 IOTX 0.71755
adacae6b0ea93986afa0be4360c7fbb5bdc19b4ab24d9467ebd52d5dc528fd87 28405571 2024-02-12 14:39:30 +0000 UTC 2 months ago io1le3czuq7w76a7uxhs4wfljllauct6qz6rra9xh  IN    Contract: SingleStakingRewards 0 IOTX 0.5058
f2dccb601b3a9844f382927c35a01efdff462f7c287b2ad5e569ba4e5835b4c1 28367669 2024-02-10 10:01:00 +0000 UTC 3 months ago io19wr859ec6q8lvhk59us8h0ftd86urr8amf7vds  IN    Contract: SingleStakingRewards 0 IOTX 0.73155
657d1c0d364a665174490630253c84a61ef87018cbe07c98232d9cc76137daf2 28367650 2024-02-10 09:59:25 +0000 UTC 3 months ago io19wr859ec6q8lvhk59us8h0ftd86urr8amf7vds  IN    Contract: SingleStakingRewards 0 IOTX 0.42704
08c3fbfd10a27cf62c5c73b4754bd8859c57f9dd9c3587d69d0afc3a6e98db66 28268041 2024-02-04 15:38:20 +0000 UTC 3 months ago io1gl6qhljh5s696c6jjs0kgkll9wevnqjleemcgs  IN    Contract: SingleStakingRewards 0 IOTX 0.42704
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SingleStakingRewards

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

// SPDX-License-Identifier: BUSL-1.1
// File: contracts/interfaces/IElkERC20.sol



pragma solidity >=0.5.0;

interface IElkERC20 {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
}

// File: @openzeppelin/[email protected]/utils/Address.sol


// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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");

        (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");

        (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");

        (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");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/[email protected]/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

// File: @openzeppelin/[email protected]/token/ERC20/utils/SafeERC20.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;



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

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

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

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

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

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

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

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

// File: @openzeppelin/[email protected]/security/ReentrancyGuard.sol


// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^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() {
        _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 making 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: @openzeppelin/[email protected]/utils/math/Math.sol


// OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}

// File: @openzeppelin/[email protected]/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/[email protected]/security/Pausable.sol


// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;


/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// File: @openzeppelin/[email protected]/access/Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: contracts/SingleStakingRewardsNewNew.sol


pragma solidity >=0.8.0;








contract SingleStakingRewards is ReentrancyGuard, Ownable, Pausable {
    using SafeERC20 for IERC20;

    /* ========== STATE VARIABLES ========== */

    IERC20 public immutable rewardsToken;
    IERC20 public immutable stakingToken;
    uint256 public periodFinish;
    uint256 public rewardRate;
    uint256 public rewardsDuration;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;

    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;

    IERC20 public boosterToken;
    uint256 public boosterRewardRate;
    uint256 public boosterRewardPerTokenStored;

    mapping(address => uint256) public userBoosterRewardPerTokenPaid;
    mapping(address => uint256) public boosterRewards;

    uint256[] public feeSchedule;
    uint256[] public withdrawalFeesPct;
    uint256 public withdrawalFeesUnit = 10000; // unit for fees
    uint256 public maxWithdrawalFee = 1000;    // max withdrawal fee (here, 10%)
    mapping(address => uint256) public lastStakedTime;
    uint256 public totalFees;

    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

    /* ========== CONSTRUCTOR ========== */

    constructor(
        address _rewardsToken,
        address _stakingToken,
        address _boosterToken,
        uint256 _rewardsDuration,
        uint256[] memory _feeSchedule,       // assumes a sorted array
        uint256[] memory _withdrawalFeesPct  // aligned to fee schedule
    ) {
        require(_boosterToken != _rewardsToken, "The booster token must be different from the reward token");
        require(_boosterToken != _stakingToken, "The booster token must be different from the staking token");
        require(_rewardsDuration > 0, "Rewards duration cannot be zero");
        rewardsToken = IERC20(_rewardsToken);
        stakingToken = IERC20(_stakingToken);
        boosterToken = IERC20(_boosterToken);
        rewardsDuration = _rewardsDuration;
        _setWithdrawalFees(_feeSchedule, _withdrawalFeesPct);
    }

    /* ========== VIEWS ========== */

    function totalSupply() external view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) external view returns (uint256) {
        return _balances[account];
    }

    function lastTimeRewardApplicable() public view returns (uint256) {
        return Math.min(block.timestamp, periodFinish);
    }

    function rewardPerToken() public view returns (uint256) {
        if (_totalSupply == 0) {
            return rewardPerTokenStored;
        }
        return
            rewardPerTokenStored + (lastTimeRewardApplicable() - lastUpdateTime) * rewardRate * 1e18 / _totalSupply;
    }

    function earned(address account) public view returns (uint256) {
        return _balances[account] * (rewardPerToken() - userRewardPerTokenPaid[account]) / 1e18 + rewards[account];
    }

    function getRewardForDuration() external view returns (uint256) {
        return rewardRate * rewardsDuration;
    }

    function boosterRewardPerToken() public view returns (uint256) {
        if (_totalSupply == 0) {
            return boosterRewardPerTokenStored;
        }
        return boosterRewardPerTokenStored + (lastTimeRewardApplicable() - lastUpdateTime) * boosterRewardRate * 1e18 / _totalSupply;
    }

    function boosterEarned(address account) public view returns (uint256) {
        return _balances[account] * (boosterRewardPerToken() - userBoosterRewardPerTokenPaid[account]) / 1e18 + boosterRewards[account];
    }

    function getBoosterRewardForDuration() external view returns (uint256) {
        return boosterRewardRate * rewardsDuration;
    }

    function exitFee(address account) external view returns (uint256) {
        return fee(account, _balances[account]);
    }

    function fee(address account, uint256 withdrawalAmount) public view returns (uint256) {
        for (uint i=0; i < feeSchedule.length; ++i) {
            if (block.timestamp - lastStakedTime[account] < feeSchedule[i]) {
                return withdrawalAmount * withdrawalFeesPct[i] / withdrawalFeesUnit;
            }
        }
        return 0;
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

    function stake(uint256 amount) external nonReentrant whenNotPaused updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");
        _totalSupply = _totalSupply + amount;
        _balances[msg.sender] = _balances[msg.sender] + amount;
        lastStakedTime[msg.sender] = block.timestamp;
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(msg.sender, amount);
    }

    function stakeWithPermit(uint256 amount, uint deadline, uint8 v, bytes32 r, bytes32 s) external nonReentrant whenNotPaused updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");
        _totalSupply = _totalSupply + amount;
        _balances[msg.sender] = _balances[msg.sender] + amount;

        // permit
        IElkERC20(address(stakingToken)).permit(msg.sender, address(this), amount, deadline, v, r, s);

        lastStakedTime[msg.sender] = block.timestamp;

        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount) public nonReentrant updateReward(msg.sender) {
        _withdraw(amount);
    }

    function emergencyWithdraw(uint256 amount) external nonReentrant {
        _withdraw(amount);
    }

    function _withdraw(uint256 amount) private {
        require(amount > 0, "Cannot withdraw 0");
        uint256 balance = _balances[msg.sender];
        require(amount <= balance, "Cannot withdraw more than account balance");
        _totalSupply = _totalSupply - amount;
        uint256 collectedFee = fee(msg.sender, amount);
        _balances[msg.sender] = balance - amount;
        uint256 withdrawableBalance = amount - collectedFee;
        stakingToken.safeTransfer(msg.sender, withdrawableBalance);
        emit Withdrawn(msg.sender, withdrawableBalance);
        if (collectedFee > 0) {
            emit FeesCollected(msg.sender, collectedFee);
            totalFees = totalFees + collectedFee;
        }
    }

    function getReward() public nonReentrant updateReward(msg.sender) {
        uint256 reward = rewards[msg.sender];
        if (reward > 0) {
            rewards[msg.sender] = 0;
            rewardsToken.safeTransfer(msg.sender, reward);
            emit RewardPaid(msg.sender, reward);
        }
    }

    function getBoosterReward() public nonReentrant updateReward(msg.sender) {
        if (address(boosterToken) != address(0)) {
            uint256 reward = boosterRewards[msg.sender];
            if (reward > 0) {
                boosterRewards[msg.sender] = 0;
                boosterToken.safeTransfer(msg.sender, reward);
                emit BoosterRewardPaid(msg.sender, reward);
            }
        }
    }

    function exit() external {
        withdraw(_balances[msg.sender]);
        getReward();
        getBoosterReward();
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    function sendRewardsAndStartEmission(uint256 reward, uint256 boosterReward, uint256 duration) external onlyOwner {
        rewardsToken.safeTransferFrom(msg.sender, address(this), reward);
        if (address(boosterToken) != address(0) && boosterReward > 0) {
            boosterToken.safeTransferFrom(owner(), address(this), boosterReward);
        }
        _startEmission(reward, boosterReward, duration);
    }

    function startEmission(uint256 reward, uint256 boosterReward, uint256 duration) external onlyOwner {
        _startEmission(reward, boosterReward, duration);
    }

    function stopEmission() external onlyOwner {
        require(block.timestamp < periodFinish, "Cannot stop rewards emissions if not started or already finished");

        uint256 tokensToBurn;
        uint256 boosterTokensToBurn;

        if (_totalSupply == 0) {
            tokensToBurn = rewardsToken.balanceOf(address(this));
            if (address(boosterToken) != address(0)) {
                boosterTokensToBurn = boosterToken.balanceOf(address(this));
            } else {
                boosterTokensToBurn = 0;
            }
        } else {
            uint256 remaining = periodFinish - block.timestamp;
            tokensToBurn = rewardRate * remaining;
            boosterTokensToBurn = boosterRewardRate * remaining;
        }

        periodFinish = block.timestamp;
        if (tokensToBurn > 0) {
            rewardsToken.safeTransfer(owner(), tokensToBurn);
        }
        if (address(boosterToken) != address(0) && boosterTokensToBurn > 0) {
            boosterToken.safeTransfer(owner(), boosterTokensToBurn);
        }

        emit RewardsEmissionEnded(tokensToBurn);
    }

    function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner {
        IERC20(tokenAddress).safeTransfer(msg.sender, tokenAmount);
        emit Recovered(tokenAddress, tokenAmount);
    }

    function recoverLeftoverReward() external onlyOwner {
        require(_totalSupply == 0 && rewardsToken == stakingToken, "Cannot recover leftover reward if it is not the staking token or there are still staked tokens");
        uint256 tokensToBurn = rewardsToken.balanceOf(address(this));
        if (tokensToBurn > 0) {
            rewardsToken.safeTransfer(msg.sender, tokensToBurn);
        }
        emit LeftoverRewardRecovered(tokensToBurn);
    }

    function recoverLeftoverBooster() external onlyOwner {
        require(address(boosterToken) != address(0), "Cannot recover leftover booster if there was no booster token set");
        require(_totalSupply == 0, "Cannot recover leftover booster if there are still staked tokens");
        uint256 tokensToBurn = boosterToken.balanceOf(address(this));
        if (tokensToBurn > 0) {
            boosterToken.safeTransfer(msg.sender, tokensToBurn);
        }
        emit LeftoverBoosterRecovered(tokensToBurn);
    }

    function recoverFees() external onlyOwner {
        uint256 previousFees = totalFees;
        totalFees = 0;
        stakingToken.safeTransfer(owner(), previousFees);
        emit FeesRecovered(previousFees);
    }

    function setRewardsDuration(uint256 duration) external onlyOwner {
        require(
            block.timestamp > periodFinish,
            "Previous rewards period must be complete before changing the duration for the new period"
        );
        _setRewardsDuration(duration);
    }

    // Booster Rewards

    function setBoosterToken(address _boosterToken) external onlyOwner {
        require(_boosterToken != address(rewardsToken), "The booster token must be different from the reward token");
        require(_boosterToken != address(stakingToken), "The booster token must be different from the staking token");
        boosterToken = IERC20(_boosterToken);
        emit BoosterRewardSet(_boosterToken);
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    // Withdrawal Fees

    function setWithdrawalFees(uint256[] memory _feeSchedule, uint256[] memory _withdrawalFees) external onlyOwner {
        _setWithdrawalFees(_feeSchedule, _withdrawalFees);
    }

    // Private functions

    function _setRewardsDuration(uint256 duration) private {
        rewardsDuration = duration;
        emit RewardsDurationUpdated(rewardsDuration);
    }

    function _setWithdrawalFees(uint256[] memory _feeSchedule, uint256[] memory _withdrawalFeesPct) private {
        require(_feeSchedule.length == _withdrawalFeesPct.length, "Fee schedule and withdrawal fees arrays must be the same length!");
        require(_feeSchedule.length <= 10, "Fee schedule and withdrawal fees arrays lengths cannot be larger than 10!");
        uint256 lastFeeSchedule = 0;
        uint256 lastWithdrawalFee = maxWithdrawalFee + 1;
        for(uint256 i = 0; i < _feeSchedule.length; ++i) {
           require(_feeSchedule[i] > lastFeeSchedule, "Fee schedule must be ascending!");
           require(_withdrawalFeesPct[i] < lastWithdrawalFee, "Withdrawal fees must be descending and lower than maximum!");
           lastFeeSchedule = _feeSchedule[i];
           lastWithdrawalFee = _withdrawalFeesPct[i];
        }
        feeSchedule = _feeSchedule;
        withdrawalFeesPct = _withdrawalFeesPct;
        emit WithdrawalFeesSet(_feeSchedule, _withdrawalFeesPct);
    }

    // Must send reward before calling this!
    function _startEmission(uint256 reward, uint256 boosterReward, uint256 duration) private updateReward(address(0)) {
        if (duration > 0) {
            _setRewardsDuration(duration);
        }

        if (block.timestamp >= periodFinish) {
            rewardRate = reward / rewardsDuration;
            boosterRewardRate = boosterReward / rewardsDuration;
        } else {
            uint256 remaining = periodFinish - block.timestamp;
            uint256 leftover = remaining * rewardRate;
            rewardRate = (reward + leftover) / rewardsDuration;
            uint256 boosterLeftover = remaining * boosterRewardRate;
            boosterRewardRate = (boosterReward + boosterLeftover) / rewardsDuration;
        }

        // Ensure the provided reward amount is not more than the balance in the contract.
        // This keeps the reward rate in the right range, preventing overflows due to
        // very high values of rewardRate in the earned and rewardsPerToken functions;
        // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
        uint balance = rewardsToken.balanceOf(address(this));
        if (rewardsToken != stakingToken) {
            require(rewardRate <= balance / rewardsDuration, "Provided reward too high");
        } else { // Handle care where rewardsToken is the same as stakingToken (need to subtract total supply)
            require(rewardRate <= (balance - _totalSupply) / rewardsDuration, "Provided reward too high");
        }

        if (address(boosterToken) != address(0)) {
            uint boosterBalance = boosterToken.balanceOf(address(this));
            require(boosterRewardRate <= boosterBalance / rewardsDuration, "Provided booster reward too high");
        }

        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp + rewardsDuration;

        emit RewardsEmissionStarted(reward, boosterReward, duration);
    }

    /* ========== MODIFIERS ========== */

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        boosterRewardPerTokenStored = boosterRewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            rewards[account] = earned(account);
            userRewardPerTokenPaid[account] = rewardPerTokenStored;
            boosterRewards[account] = boosterEarned(account);
            userBoosterRewardPerTokenPaid[account] = boosterRewardPerTokenStored;
        }
        _;
    }

    /* ========== EVENTS ========== */

    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
    event BoosterRewardPaid(address indexed user, uint256 reward);
    event RewardsDurationUpdated(uint256 newDuration);
    event Recovered(address token, uint256 amount);
    event LeftoverRewardRecovered(uint256 amount);
    event LeftoverBoosterRecovered(uint256 amount);
    event RewardsEmissionStarted(uint256 reward, uint256 boosterReward, uint256 duration);
    event RewardsEmissionEnded(uint256 amount);
    event BoosterRewardSet(address token);
    event WithdrawalFeesSet(uint256[] _feeSchedule, uint256[] _withdrawalFees);
    event FeesCollected(address indexed user, uint256 amount);
    event FeesRecovered(uint256 amount);
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_boosterToken","type":"address"},{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"},{"internalType":"uint256[]","name":"_feeSchedule","type":"uint256[]"},{"internalType":"uint256[]","name":"_withdrawalFeesPct","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"BoosterRewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"BoosterRewardSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeesCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeesRecovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LeftoverBoosterRecovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LeftoverRewardRecovered","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":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardsDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardsEmissionEnded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"boosterReward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"RewardsEmissionStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"_feeSchedule","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"_withdrawalFees","type":"uint256[]"}],"name":"WithdrawalFeesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"boosterEarned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boosterRewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boosterRewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boosterRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"boosterRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boosterToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"exitFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"withdrawalAmount","type":"uint256"}],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"feeSchedule","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBoosterReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getBoosterRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastStakedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWithdrawalFee","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"recoverFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"recoverLeftoverBooster","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"recoverLeftoverReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"boosterReward","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"sendRewardsAndStartEmission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_boosterToken","type":"address"}],"name":"setBoosterToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_feeSchedule","type":"uint256[]"},{"internalType":"uint256[]","name":"_withdrawalFees","type":"uint256[]"}],"name":"setWithdrawalFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"stakeWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"boosterReward","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"startEmission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopEmission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userBoosterRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawalFeesPct","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawalFeesUnit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

Contract Creation Code

608060405234801561001057600080fd5b50600436106103615760003560e01c80637b0a47ee116101c8578063c8f33c9111610104578063ebe2b12b116100a2578063f22797d81161007c578063f22797d8146106c5578063f2fde38b146106e5578063f3f0ffda146106f8578063faef375e1461070057600080fd5b8063ebe2b12b146106a0578063ec1c0a99146106a9578063ecd9ba82146106b257600080fd5b8063cdeae371116100de578063cdeae37114610660578063d1af0c7d14610668578063df136d651461068f578063e9fad8ee1461069857600080fd5b8063c8f33c911461063c578063cc1a378f14610645578063cd3daf9d1461065857600080fd5b80638da5cb5b116101715780639e6eda181161014b5780639e6eda18146105ed578063a694fc3a14610600578063be0bf75114610613578063c57a202c1461061c57600080fd5b80638da5cb5b146105b65780638f0bb79c146105c75780639465d4a1146105da57600080fd5b80638980f11f116101a25780638980f11f146105705780638b876347146105835780638bb95b45146105a357600080fd5b80637b0a47ee1461055757806380faa57d146105605780638456cb591461056857600080fd5b80633b8e4f7e116102a25780636439ea4c11610240578063715018a61161021a578063715018a61461050257806372f702f31461050a5780637707513014610531578063771916051461054457600080fd5b80636439ea4c146104c857806366a03c7f146104d057806370a08231146104d957600080fd5b80635312ea8e1161027c5780635312ea8e1461044d578063576c23ab146104605780635c975abb1461048b5780635d129544146104a857600080fd5b80633b8e4f7e1461042a5780633d18b9121461043d5780633f4ba83a1461044557600080fd5b80631c1f78eb1161030f5780632e1a7d4d116102e95780632e1a7d4d146103f257806335ceec0f14610405578063386a9525146104185780633b7d27fe1461042157600080fd5b80631c1f78eb146103da5780632459a699146103e25780632cbe61d3146103ea57600080fd5b806310cbbe381161034057806310cbbe38146103b657806313114a9d146103c957806318160ddd146103d257600080fd5b80628cc262146103665780630700037d1461038c5780630e9bb0a3146103ac575b600080fd5b610379610374366004613117565b610708565b6040519081526020015b60405180910390f35b61037961039a366004613117565b60086020526000908152604090205481565b6103b4610785565b005b6103796103c4366004613117565b610a72565b61037960135481565b601454610379565b610379610a96565b6103b4610aad565b6103b4610c2f565b6103b4610400366004613132565b610e6e565b610379610413366004613132565b610f68565b61037960045481565b61037960105481565b610379610438366004613117565b610f89565b6103b4610fbf565b6103b461113d565b6103b461045b366004613132565b61118f565b600954610473906001600160a01b031681565b6040516001600160a01b039091168152602001610383565b600154600160a01b900460ff166040519015158152602001610383565b6103796104b6366004613117565b600c6020526000908152604090205481565b6103796111ef565b610379600b5481565b6103796104e7366004613117565b6001600160a01b031660009081526015602052604090205490565b6103b4611250565b6104737f000000000000000000000000000000000000000000000000000000000000000081565b6103b461053f3660046131f1565b6112a2565b6103b4610552366004613255565b6112f8565b61037960035481565b6103796113cd565b6103b46113db565b6103b461057e366004613281565b61142b565b610379610591366004613117565b60076020526000908152604090205481565b6103b46105b1366004613255565b6114c6565b6001546001600160a01b0316610473565b6103796105d5366004613132565b61150e565b6103b46105e8366004613117565b61151e565b6103796105fb366004613281565b61170f565b6103b461060e366004613132565b6117bd565b610379600a5481565b61037961062a366004613117565b60126020526000908152604090205481565b61037960055481565b6103b4610653366004613132565b611a00565b610379611af1565b6103b4611b52565b6104737f000000000000000000000000000000000000000000000000000000000000000081565b61037960065481565b6103b4611c19565b61037960025481565b61037960115481565b6103b46106c03660046132ab565b611c42565b6103796106d3366004613117565b600d6020526000908152604090205481565b6103b46106f3366004613117565b611f59565b610379612026565b6103b4612038565b6001600160a01b0381166000908152600860209081526040808320546007909252822054670de0b6b3a76400009061073e611af1565b6107489190613310565b6001600160a01b03851660009081526015602052604090205461076b9190613327565b6107759190613346565b61077f9190613368565b92915050565b6001546001600160a01b031633146107d25760405162461bcd60e51b815260206004820181905260248201526000805160206134cf83398151915260448201526064015b60405180910390fd5b600254421061084b576040805162461bcd60e51b81526020600482015260248101919091527f43616e6e6f742073746f70207265776172647320656d697373696f6e7320696660448201527f206e6f742073746172746564206f7220616c72656164792066696e697368656460648201526084016107c9565b60008060145460000361096f576040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156108bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e09190613380565b6009549092506001600160a01b031615610967576009546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561093c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109609190613380565b90506109a3565b5060006109a3565b60004260025461097f9190613310565b90508060035461098f9190613327565b925080600a5461099f9190613327565b9150505b4260025581156109f3576109f36109c26001546001600160a01b031690565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169084612258565b6009546001600160a01b031615801590610a0d5750600081115b15610a3a57610a3a610a276001546001600160a01b031690565b6009546001600160a01b03169083612258565b6040518281527f6d815f6a8a51efb6f4140923189859b9e9caaa228c9334179e8eb7edefc6838e906020015b60405180910390a15050565b6001600160a01b03811660009081526015602052604081205461077f90839061170f565b6000600454600354610aa89190613327565b905090565b600260005403610aff5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107c9565b600260005533610b0d611af1565b600655610b186111ef565b600b55610b236113cd565b6005556001600160a01b03811615610b9e57610b3e81610708565b6001600160a01b038216600090815260086020908152604080832093909355600654600790915291902055610b7281610f89565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b6009546001600160a01b031615610c2757336000908152600d60205260409020548015610c2557336000818152600d6020526040812055600954610bee916001600160a01b039091169083612258565b60405181815233907fd1e5531ac01ffc9c7971b52c82806a6e5ae8907ddedd2e3153afaafcfdf175d6906020015b60405180910390a25b505b506001600055565b6001546001600160a01b03163314610c775760405162461bcd60e51b815260206004820181905260248201526000805160206134cf83398151915260448201526064016107c9565b601454158015610cd857507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316145b610d705760405162461bcd60e51b815260206004820152605e60248201527f43616e6e6f74207265636f766572206c6566746f76657220726577617264206960448201527f66206974206973206e6f7420746865207374616b696e6720746f6b656e206f7260648201527f20746865726520617265207374696c6c207374616b656420746f6b656e730000608482015260a4016107c9565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610dd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfb9190613380565b90508015610e3757610e376001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383612258565b6040518181527ff6d91c6a1bf05d7c0f2c157905a97d3bc2f860a1402d71dd52a27fabb5bcaf8d906020015b60405180910390a150565b600260005403610ec05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107c9565b600260005533610ece611af1565b600655610ed96111ef565b600b55610ee46113cd565b6005556001600160a01b03811615610f5f57610eff81610708565b6001600160a01b038216600090815260086020908152604080832093909355600654600790915291902055610f3381610f89565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b610c2582612301565b600e8181548110610f7857600080fd5b600091825260209091200154905081565b6001600160a01b0381166000908152600d6020908152604080832054600c909252822054670de0b6b3a76400009061073e6111ef565b6002600054036110115760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107c9565b60026000553361101f611af1565b60065561102a6111ef565b600b556110356113cd565b6005556001600160a01b038116156110b05761105081610708565b6001600160a01b03821660009081526008602090815260408083209390935560065460079091529190205561108481610f89565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b336000908152600860205260409020548015610c25573360008181526008602052604081205561110b907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169083612258565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048690602001610c1c565b6001546001600160a01b031633146111855760405162461bcd60e51b815260206004820181905260248201526000805160206134cf83398151915260448201526064016107c9565b61118d6124db565b565b6002600054036111e15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107c9565b6002600055610c2781612301565b60006014546000036112025750600b5490565b601454600a546005546112136113cd565b61121d9190613310565b6112279190613327565b61123990670de0b6b3a7640000613327565b6112439190613346565b600b54610aa89190613368565b6001546001600160a01b031633146112985760405162461bcd60e51b815260206004820181905260248201526000805160206134cf83398151915260448201526064016107c9565b61118d6000612581565b6001546001600160a01b031633146112ea5760405162461bcd60e51b815260206004820181905260248201526000805160206134cf83398151915260448201526064016107c9565b6112f482826125e0565b5050565b6001546001600160a01b031633146113405760405162461bcd60e51b815260206004820181905260248201526000805160206134cf83398151915260448201526064016107c9565b6113756001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330866128be565b6009546001600160a01b03161580159061138f5750600082115b156113bd576113bd6113a96001546001600160a01b031690565b6009546001600160a01b03169030856128be565b6113c883838361290f565b505050565b6000610aa842600254612d49565b6001546001600160a01b031633146114235760405162461bcd60e51b815260206004820181905260248201526000805160206134cf83398151915260448201526064016107c9565b61118d612d61565b6001546001600160a01b031633146114735760405162461bcd60e51b815260206004820181905260248201526000805160206134cf83398151915260448201526064016107c9565b6114876001600160a01b0383163383612258565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa289101610a66565b6001546001600160a01b031633146113bd5760405162461bcd60e51b815260206004820181905260248201526000805160206134cf83398151915260448201526064016107c9565b600f8181548110610f7857600080fd5b6001546001600160a01b031633146115665760405162461bcd60e51b815260206004820181905260248201526000805160206134cf83398151915260448201526064016107c9565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b03160361160d5760405162461bcd60e51b815260206004820152603960248201527f54686520626f6f7374657220746f6b656e206d7573742062652064696666657260448201527f656e742066726f6d207468652072657761726420746f6b656e0000000000000060648201526084016107c9565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b0316036116b45760405162461bcd60e51b815260206004820152603a60248201527f54686520626f6f7374657220746f6b656e206d7573742062652064696666657260448201527f656e742066726f6d20746865207374616b696e6720746f6b656e00000000000060648201526084016107c9565b6009805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040519081527f0c6fec5b80219c372da56cb4d1ef3e172069953fa5c72ececf0d0dfe1109260b90602001610e63565b6000805b600e548110156117b357600e818154811061173057611730613399565b60009182526020808320909101546001600160a01b0387168352601290915260409091205461175f9042613310565b10156117a357601054600f828154811061177b5761177b613399565b9060005260206000200154846117919190613327565b61179b9190613346565b91505061077f565b6117ac816133af565b9050611713565b5060009392505050565b60026000540361180f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107c9565b6002600055600154600160a01b900460ff16156118615760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107c9565b3361186a611af1565b6006556118756111ef565b600b556118806113cd565b6005556001600160a01b038116156118fb5761189b81610708565b6001600160a01b0382166000908152600860209081526040808320939093556006546007909152919020556118cf81610f89565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b6000821161194b5760405162461bcd60e51b815260206004820152600e60248201527f43616e6e6f74207374616b65203000000000000000000000000000000000000060448201526064016107c9565b816014546119599190613368565b60145533600090815260156020526040902054611977908390613368565b3360008181526015602090815260408083209490945560129052919091204290556119ce907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169030856128be565b60405182815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90602001610c1c565b6001546001600160a01b03163314611a485760405162461bcd60e51b815260206004820181905260248201526000805160206134cf83398151915260448201526064016107c9565b6002544211611ae55760405162461bcd60e51b815260206004820152605860248201527f50726576696f7573207265776172647320706572696f64206d7573742062652060448201527f636f6d706c657465206265666f7265206368616e67696e67207468652064757260648201527f6174696f6e20666f7220746865206e657720706572696f640000000000000000608482015260a4016107c9565b611aee81612de9565b50565b6000601454600003611b04575060065490565b601454600354600554611b156113cd565b611b1f9190613310565b611b299190613327565b611b3b90670de0b6b3a7640000613327565b611b459190613346565b600654610aa89190613368565b6001546001600160a01b03163314611b9a5760405162461bcd60e51b815260206004820181905260248201526000805160206134cf83398151915260448201526064016107c9565b601380546000909155611be9611bb86001546001600160a01b031690565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169083612258565b6040518181527f6857c770f3cb43e9c19050a37dd914ec876241c1f4b487d26a1d4f5d3054f49b90602001610e63565b33600090815260156020526040902054611c3290610e6e565b611c3a610fbf565b61118d610aad565b600260005403611c945760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107c9565b6002600055600154600160a01b900460ff1615611ce65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107c9565b33611cef611af1565b600655611cfa6111ef565b600b55611d056113cd565b6005556001600160a01b03811615611d8057611d2081610708565b6001600160a01b038216600090815260086020908152604080832093909355600654600790915291902055611d5481610f89565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b60008611611dd05760405162461bcd60e51b815260206004820152600e60248201527f43616e6e6f74207374616b65203000000000000000000000000000000000000060448201526064016107c9565b85601454611dde9190613368565b60145533600090815260156020526040902054611dfc908790613368565b33600081815260156020526040908190209290925590517fd505accf0000000000000000000000000000000000000000000000000000000081526004810191909152306024820152604481018790526064810186905260ff8516608482015260a4810184905260c481018390526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d505accf9060e401600060405180830381600087803b158015611eb757600080fd5b505af1158015611ecb573d6000803e3d6000fd5b5050336000818152601260205260409020429055611f1792507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316915030896128be565b60405186815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9060200160405180910390a25050600160005550505050565b6001546001600160a01b03163314611fa15760405162461bcd60e51b815260206004820181905260248201526000805160206134cf83398151915260448201526064016107c9565b6001600160a01b03811661201d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107c9565b611aee81612581565b6000600454600a54610aa89190613327565b6001546001600160a01b031633146120805760405162461bcd60e51b815260206004820181905260248201526000805160206134cf83398151915260448201526064016107c9565b6009546001600160a01b03166121245760405162461bcd60e51b815260206004820152604160248201527f43616e6e6f74207265636f766572206c6566746f76657220626f6f737465722060448201527f696620746865726520776173206e6f20626f6f7374657220746f6b656e20736560648201527f7400000000000000000000000000000000000000000000000000000000000000608482015260a4016107c9565b6014541561219c576040805162461bcd60e51b81526020600482015260248101919091527f43616e6e6f74207265636f766572206c6566746f76657220626f6f737465722060448201527f696620746865726520617265207374696c6c207374616b656420746f6b656e7360648201526084016107c9565b6009546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156121e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122099190613380565b9050801561222857600954612228906001600160a01b03163383612258565b6040518181527fa075ee3dcd38efb87f0f97160a935b6a43768378263338beea06b9681f66151d90602001610e63565b6040516001600160a01b0383166024820152604481018290526113c89084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152612e1e565b600081116123515760405162461bcd60e51b815260206004820152601160248201527f43616e6e6f74207769746864726177203000000000000000000000000000000060448201526064016107c9565b33600090815260156020526040902054808211156123d75760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f74207769746864726177206d6f7265207468616e206163636f756e60448201527f742062616c616e6365000000000000000000000000000000000000000000000060648201526084016107c9565b816014546123e59190613310565b60145560006123f4338461170f565b90506124008383613310565b3360009081526015602052604081209190915561241d8285613310565b90506124536001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383612258565b60405181815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d59060200160405180910390a281156124d55760405182815233907f9dc46f23cfb5ddcad0ae7ea2be38d47fec07bb9382ec7e564efc69e036dd66ce9060200160405180910390a2816013546124d19190613368565b6013555b50505050565b600154600160a01b900460ff166125345760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016107c9565b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600180546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8051825114612659576040805162461bcd60e51b81526020600482015260248101919091527f466565207363686564756c6520616e64207769746864726177616c206665657360448201527f20617272617973206d757374206265207468652073616d65206c656e6774682160648201526084016107c9565b600a825111156126f75760405162461bcd60e51b815260206004820152604960248201527f466565207363686564756c6520616e64207769746864726177616c206665657360448201527f20617272617973206c656e677468732063616e6e6f74206265206c617267657260648201527f207468616e203130210000000000000000000000000000000000000000000000608482015260a4016107c9565b60008060115460016127099190613368565b905060005b8451811015612856578285828151811061272a5761272a613399565b60200260200101511161277f5760405162461bcd60e51b815260206004820152601f60248201527f466565207363686564756c65206d75737420626520617363656e64696e67210060448201526064016107c9565b8184828151811061279257612792613399565b60200260200101511061280d5760405162461bcd60e51b815260206004820152603a60248201527f5769746864726177616c2066656573206d7573742062652064657363656e646960448201527f6e6720616e64206c6f776572207468616e206d6178696d756d2100000000000060648201526084016107c9565b84818151811061281f5761281f613399565b6020026020010151925083818151811061283b5761283b613399565b602002602001015191508061284f906133af565b905061270e565b50835161286a90600e90602087019061309b565b50825161287e90600f90602086019061309b565b507fe5a2c1e4acf2a2da539a1183c56fbbcec4b66dbc828b76f1c1bf365f1887886b84846040516128b0929190613403565b60405180910390a150505050565b6040516001600160a01b03808516602483015283166044820152606481018290526124d59085907f23b872dd000000000000000000000000000000000000000000000000000000009060840161229d565b6000612919611af1565b6006556129246111ef565b600b5561292f6113cd565b6005556001600160a01b038116156129aa5761294a81610708565b6001600160a01b03821660009081526008602090815260408083209390935560065460079091529190205561297e81610f89565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b81156129b9576129b982612de9565b60025442106129e7576004546129cf9085613346565b6003556004546129df9084613346565b600a55612a57565b6000426002546129f79190613310565b9050600060035482612a099190613327565b600454909150612a198288613368565b612a239190613346565b600355600a54600090612a369084613327565b600454909150612a468288613368565b612a509190613346565b600a555050505b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015612abe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae29190613380565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614612ba057600454612b4a9082613346565b6003541115612b9b5760405162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f2068696768000000000000000060448201526064016107c9565b612c0b565b600454601454612bb09083613310565b612bba9190613346565b6003541115612c0b5760405162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f2068696768000000000000000060448201526064016107c9565b6009546001600160a01b031615612cec576009546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612c65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c899190613380565b905060045481612c999190613346565b600a541115612cea5760405162461bcd60e51b815260206004820181905260248201527f50726f766964656420626f6f737465722072657761726420746f6f206869676860448201526064016107c9565b505b426005819055600454612cfe91613368565b60025560408051868152602081018690529081018490527f748824204e79acdab8f1a9977cbc584250e206ad90d05ef198799f9d6ee93a7d9060600160405180910390a15050505050565b6000818310612d585781612d5a565b825b9392505050565b600154600160a01b900460ff1615612dae5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107c9565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125643390565b60048190556040518181527ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d390602001610e63565b6000612e73826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612f039092919063ffffffff16565b8051909150156113c85780806020019051810190612e919190613431565b6113c85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016107c9565b6060612f128484600085612f1a565b949350505050565b606082471015612f925760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016107c9565b6001600160a01b0385163b612fe95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016107c9565b600080866001600160a01b03168587604051613005919061347f565b60006040518083038185875af1925050503d8060008114613042576040519150601f19603f3d011682016040523d82523d6000602084013e613047565b606091505b5091509150613057828286613062565b979650505050505050565b60608315613071575081612d5a565b8251156130815782518084602001fd5b8160405162461bcd60e51b81526004016107c9919061349b565b8280548282559060005260206000209081019282156130d6579160200282015b828111156130d65782518255916020019190600101906130bb565b506130e29291506130e6565b5090565b5b808211156130e257600081556001016130e7565b80356001600160a01b038116811461311257600080fd5b919050565b60006020828403121561312957600080fd5b612d5a826130fb565b60006020828403121561314457600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261317257600080fd5b8135602067ffffffffffffffff8083111561318f5761318f61314b565b8260051b604051601f19603f830116810181811084821117156131b4576131b461314b565b6040529384528581018301938381019250878511156131d257600080fd5b83870191505b84821015613057578135835291830191908301906131d8565b6000806040838503121561320457600080fd5b823567ffffffffffffffff8082111561321c57600080fd5b61322886838701613161565b9350602085013591508082111561323e57600080fd5b5061324b85828601613161565b9150509250929050565b60008060006060848603121561326a57600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561329457600080fd5b61329d836130fb565b946020939093013593505050565b600080600080600060a086880312156132c357600080fd5b8535945060208601359350604086013560ff811681146132e257600080fd5b94979396509394606081013594506080013592915050565b634e487b7160e01b600052601160045260246000fd5b600082821015613322576133226132fa565b500390565b6000816000190483118215151615613341576133416132fa565b500290565b60008261336357634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111561337b5761337b6132fa565b500190565b60006020828403121561339257600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000600182016133c1576133c16132fa565b5060010190565b600081518084526020808501945080840160005b838110156133f8578151875295820195908201906001016133dc565b509495945050505050565b60408152600061341660408301856133c8565b828103602084015261342881856133c8565b95945050505050565b60006020828403121561344357600080fd5b81518015158114612d5a57600080fd5b60005b8381101561346e578181015183820152602001613456565b838111156124d55750506000910152565b60008251613491818460208701613453565b9190910192915050565b60208152600082518060208401526134ba816040850160208701613453565b601f01601f1916919091016040019291505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212207f8225d5d0dc4309a6a240289e3b0bf47212276b1ff6c1b57c69fcae544b474864736f6c634300080d0033

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.