Contract 0x0f6cc2b96e1cdaff4bdb794b6cd9b6175d491aea

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x8371ea300e7fe9f4c8a4329fa1a301e9d099116a40343af7f18f02ad3bd2a97eInitialize71544512023-02-27 4:39:04450 days 22 hrs agoFulcrom: Deployer IN  0x0f6cc2b96e1cdaff4bdb794b6cd9b6175d491aea0 CRO0.659226766180
0x630f548bda34acdcafbae07a99d1b2e86d0c9a6f55d1152c75cd57b0c7d1b65c0x6080604071544472023-02-27 4:38:41450 days 22 hrs agoFulcrom: Deployer IN  Create: RewardTracker0 CRO11.1180106573370
[ Download CSV Export 
Parent Txn Hash Block From To Value
Index Block
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RewardTracker

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion
File 1 of 10 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
     * constructor.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: setting the version to 255 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized < type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }

    /**
     * @dev Internal function that returns the initialized version. Returns `_initialized`
     */
    function _getInitializedVersion() internal view returns (uint8) {
        return _initialized;
    }

    /**
     * @dev Internal function that returns the initialized version. Returns `_initializing`
     */
    function _isInitializing() internal view returns (bool) {
        return _initializing;
    }
}

File 2 of 10 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuardUpgradeable is Initializable {
    // 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;

    function __ReentrancyGuard_init() internal onlyInitializing {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _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() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 3 of 10 : draft-IERC20PermitUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20PermitUpgradeable {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 4 of 10 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

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

File 5 of 10 : SafeERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20Upgradeable.sol";
import "../extensions/draft-IERC20PermitUpgradeable.sol";
import "../../../utils/AddressUpgradeable.sol";

/**
 * @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 SafeERC20Upgradeable {
    using AddressUpgradeable for address;

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

    function safeTransferFrom(
        IERC20Upgradeable 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(
        IERC20Upgradeable 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(
        IERC20Upgradeable 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(
        IERC20Upgradeable 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));
        }
    }

    function safePermit(
        IERC20PermitUpgradeable token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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(IERC20Upgradeable 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 6 of 10 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 7 of 10 : Governable.sol
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

pragma solidity ^0.8.0;

abstract contract Governable is Initializable {
    address public gov;

    event UpdateGov(address gov);

    function __Governable_init() internal onlyInitializing {
        gov = msg.sender;
    }

    modifier onlyGov() {
        require(msg.sender == gov, "Governable: forbidden");
        _;
    }

    function setGov(address _gov) external onlyGov {
        require(_gov != address(0), "Governable: zero address");
        gov = _gov;
        emit UpdateGov(gov);
    }
}

File 8 of 10 : IRewardDistributor.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IRewardDistributor {
    function rewardToken() external view returns (address);
    function tokensPerInterval() external view returns (uint256);
    function pendingRewards() external view returns (uint256);
    function distribute() external returns (uint256);
}

File 9 of 10 : IRewardTracker.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IRewardTracker {
    function depositBalances(address _account, address _depositToken) external view returns (uint256);
    function stakedAmounts(address _account) external view returns (uint256);
    function updateRewards() external;
    function stake(address _depositToken, uint256 _amount) external;
    function stakeForAccount(address _fundingAccount, address _account, address _depositToken, uint256 _amount) external;
    function unstake(address _depositToken, uint256 _amount) external;
    function unstakeForAccount(address _account, address _depositToken, uint256 _amount, address _receiver) external;
    function tokensPerInterval() external view returns (uint256);
    function claim(address _receiver) external returns (uint256);
    function claimForAccount(address _account, address _receiver) external returns (uint256);
    function claimable(address _account) external view returns (uint256);
    function averageStakedAmounts(address _account) external view returns (uint256);
    function cumulativeRewards(address _account) external view returns (uint256);
}

File 10 of 10 : RewardTracker.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";

import "./interfaces/IRewardDistributor.sol";
import "./interfaces/IRewardTracker.sol";
import "../access/Governable.sol";

contract RewardTracker is IERC20Upgradeable, ReentrancyGuardUpgradeable, IRewardTracker, Governable {
    using SafeERC20Upgradeable for IERC20Upgradeable;

    uint256 public constant BASIS_POINTS_DIVISOR = 10000;
    uint256 public constant PRECISION = 1e30;

    uint8 public constant decimals = 18;

    bool public isInitialized;

    string public name;
    string public symbol;

    address public distributor;
    mapping (address => bool) public isDepositToken;
    mapping (address => mapping (address => uint256)) public override depositBalances;
    mapping (address => uint256) public totalDepositSupply;

    uint256 public override totalSupply;
    mapping (address => uint256) public balances;
    mapping (address => mapping (address => uint256)) public allowances;

    uint256 public cumulativeRewardPerToken;
    mapping (address => uint256) public override stakedAmounts;
    mapping (address => uint256) public claimableReward;
    mapping (address => uint256) public previousCumulatedRewardPerToken;
    mapping (address => uint256) public override cumulativeRewards;
    mapping (address => uint256) public override averageStakedAmounts;

    bool public inPrivateTransferMode;
    bool public inPrivateStakingMode;
    bool public inPrivateClaimingMode;
    mapping (address => bool) public isHandler;

    event Claim(address receiver, uint256 amount);

    function initialize(string memory _name, string memory _symbol) public initializer {
        __ReentrancyGuard_init();
        __Governable_init();
        name = _name;
        symbol = _symbol;
    }

    function initRewardTracker(
        address[] memory _depositTokens,
        address _distributor
    ) external onlyGov {
        require(!isInitialized, "RewardTracker: already initialized");
        isInitialized = true;

        for (uint256 i = 0; i < _depositTokens.length; i++) {
            address depositToken = _depositTokens[i];
            isDepositToken[depositToken] = true;
        }

        distributor = _distributor;
    }

    function setDepositToken(address _depositToken, bool _isDepositToken) external onlyGov {
        isDepositToken[_depositToken] = _isDepositToken;
    }

    function setInPrivateTransferMode(bool _inPrivateTransferMode) external onlyGov {
        inPrivateTransferMode = _inPrivateTransferMode;
    }

    function setInPrivateStakingMode(bool _inPrivateStakingMode) external onlyGov {
        inPrivateStakingMode = _inPrivateStakingMode;
    }

    function setInPrivateClaimingMode(bool _inPrivateClaimingMode) external onlyGov {
        inPrivateClaimingMode = _inPrivateClaimingMode;
    }

    function setHandler(address _handler, bool _isActive) external onlyGov {
        isHandler[_handler] = _isActive;
    }

    // to help users who accidentally send their tokens to this contract
    function withdrawToken(address _token, address _account, uint256 _amount) external onlyGov {
        IERC20Upgradeable(_token).safeTransfer(_account, _amount);
    }

    function balanceOf(address _account) external view override returns (uint256) {
        return balances[_account];
    }

    function stake(address _depositToken, uint256 _amount) external override nonReentrant {
        if (inPrivateStakingMode) { revert("RewardTracker: action not enabled"); }
        _stake(msg.sender, msg.sender, _depositToken, _amount);
    }

    function stakeForAccount(address _fundingAccount, address _account, address _depositToken, uint256 _amount) external override nonReentrant {
        _validateHandler();
        _stake(_fundingAccount, _account, _depositToken, _amount);
    }

    function unstake(address _depositToken, uint256 _amount) external override nonReentrant {
        if (inPrivateStakingMode) { revert("RewardTracker: action not enabled"); }
        _unstake(msg.sender, _depositToken, _amount, msg.sender);
    }

    function unstakeForAccount(address _account, address _depositToken, uint256 _amount, address _receiver) external override nonReentrant {
        _validateHandler();
        _unstake(_account, _depositToken, _amount, _receiver);
    }

    function transfer(address _recipient, uint256 _amount) external override returns (bool) {
        _transfer(msg.sender, _recipient, _amount);
        return true;
    }

    function allowance(address _owner, address _spender) external view override returns (uint256) {
        return allowances[_owner][_spender];
    }

    function approve(address _spender, uint256 _amount) external override returns (bool) {
        _approve(msg.sender, _spender, _amount);
        return true;
    }

    function transferFrom(address _sender, address _recipient, uint256 _amount) external override returns (bool) {
        if (isHandler[msg.sender]) {
            _transfer(_sender, _recipient, _amount);
            return true;
        }

        require(allowances[_sender][msg.sender] >= _amount, "RewardTracker: transfer amount exceeds allowance");
        uint256 nextAllowance = allowances[_sender][msg.sender] - _amount;
        _approve(_sender, msg.sender, nextAllowance);
        _transfer(_sender, _recipient, _amount);
        return true;
    }

    function tokensPerInterval() external override view returns (uint256) {
        return IRewardDistributor(distributor).tokensPerInterval();
    }

    function updateRewards() external override nonReentrant {
        _updateRewards(address(0));
    }

    function claim(address _receiver) external override nonReentrant returns (uint256) {
        if (inPrivateClaimingMode) { revert("RewardTracker: action not enabled"); }
        return _claim(msg.sender, _receiver);
    }

    function claimForAccount(address _account, address _receiver) external override nonReentrant returns (uint256) {
        _validateHandler();
        return _claim(_account, _receiver);
    }

    function claimable(address _account) public override view returns (uint256) {
        uint256 stakedAmount = stakedAmounts[_account];
        if (stakedAmount == 0) {
            return claimableReward[_account];
        }
        uint256 supply = totalSupply;
        uint256 pendingRewards = IRewardDistributor(distributor).pendingRewards() * PRECISION;
        uint256 nextCumulativeRewardPerToken = cumulativeRewardPerToken + (pendingRewards / supply);
        return claimableReward[_account] + (
            stakedAmount * (nextCumulativeRewardPerToken - previousCumulatedRewardPerToken[_account]) / PRECISION);
    }

    function rewardToken() public view returns (address) {
        return IRewardDistributor(distributor).rewardToken();
    }

    function _claim(address _account, address _receiver) private returns (uint256) {
        _updateRewards(_account);

        uint256 tokenAmount = claimableReward[_account];
        claimableReward[_account] = 0;

        if (tokenAmount > 0) {
            IERC20Upgradeable(rewardToken()).safeTransfer(_receiver, tokenAmount);
            emit Claim(_account, tokenAmount);
        }

        return tokenAmount;
    }

    function _mint(address _account, uint256 _amount) internal {
        require(_account != address(0), "RewardTracker: mint to the zero address");

        totalSupply = totalSupply + _amount;
        balances[_account] = balances[_account] + _amount;

        emit Transfer(address(0), _account, _amount);
    }

    function _burn(address _account, uint256 _amount) internal {
        require(_account != address(0), "RewardTracker: burn from the zero address");

        require(balances[_account] >= _amount, "RewardTracker: burn amount exceeds balance");
        balances[_account] = balances[_account] - _amount;
        totalSupply = totalSupply - _amount;

        emit Transfer(_account, address(0), _amount);
    }

    function _transfer(address _sender, address _recipient, uint256 _amount) private {
        require(_sender != address(0), "RewardTracker: transfer from the zero address");
        require(_recipient != address(0), "RewardTracker: transfer to the zero address");

        if (inPrivateTransferMode) { _validateHandler(); }

        require(balances[_sender] >= _amount, "RewardTracker: transfer amount exceeds balance");
        balances[_sender] = balances[_sender] - _amount;
        balances[_recipient] = balances[_recipient] + _amount;

        emit Transfer(_sender, _recipient,_amount);
    }

    function _approve(address _owner, address _spender, uint256 _amount) private {
        require(_owner != address(0), "RewardTracker: approve from the zero address");
        require(_spender != address(0), "RewardTracker: approve to the zero address");

        allowances[_owner][_spender] = _amount;

        emit Approval(_owner, _spender, _amount);
    }

    function _validateHandler() private view {
        require(isHandler[msg.sender], "RewardTracker: forbidden");
    }

    function _stake(address _fundingAccount, address _account, address _depositToken, uint256 _amount) private {
        require(_amount > 0, "RewardTracker: invalid _amount");
        require(isDepositToken[_depositToken], "RewardTracker: invalid _depositToken");

        IERC20Upgradeable(_depositToken).safeTransferFrom(_fundingAccount, address(this), _amount);

        _updateRewards(_account);

        stakedAmounts[_account] = stakedAmounts[_account] + _amount;
        depositBalances[_account][_depositToken] = depositBalances[_account][_depositToken] + _amount;
        totalDepositSupply[_depositToken] = totalDepositSupply[_depositToken] + _amount;

        _mint(_account, _amount);
    }

    function _unstake(address _account, address _depositToken, uint256 _amount, address _receiver) private {
        require(_amount > 0, "RewardTracker: invalid _amount");
        require(isDepositToken[_depositToken], "RewardTracker: invalid _depositToken");

        _updateRewards(_account);

        uint256 stakedAmount = stakedAmounts[_account];
        require(stakedAmounts[_account] >= _amount, "RewardTracker: _amount exceeds stakedAmount");

        stakedAmounts[_account] = stakedAmount - _amount;

        uint256 depositBalance = depositBalances[_account][_depositToken];
        require(depositBalance >= _amount, "RewardTracker: _amount exceeds depositBalance");
        depositBalances[_account][_depositToken] = depositBalance - _amount;
        totalDepositSupply[_depositToken] = totalDepositSupply[_depositToken] - _amount;

        _burn(_account, _amount);
        IERC20Upgradeable(_depositToken).safeTransfer(_receiver, _amount);
    }

    function _updateRewards(address _account) private {
        uint256 blockReward = IRewardDistributor(distributor).distribute();

        uint256 supply = totalSupply;
        uint256 _cumulativeRewardPerToken = cumulativeRewardPerToken;
        if (supply > 0 && blockReward > 0) {
            _cumulativeRewardPerToken = _cumulativeRewardPerToken + (blockReward * PRECISION / supply);
            cumulativeRewardPerToken = _cumulativeRewardPerToken;
        }

        // cumulativeRewardPerToken can only increase
        // so if cumulativeRewardPerToken is zero, it means there are no rewards yet
        if (_cumulativeRewardPerToken == 0) {
            return;
        }

        if (_account != address(0)) {
            uint256 stakedAmount = stakedAmounts[_account];
            uint256 accountReward = stakedAmount * (_cumulativeRewardPerToken - previousCumulatedRewardPerToken[_account]) / PRECISION;
            uint256 _claimableReward = claimableReward[_account] + accountReward;

            claimableReward[_account] = _claimableReward;
            previousCumulatedRewardPerToken[_account] = _cumulativeRewardPerToken;

            if (_claimableReward > 0 && stakedAmounts[_account] > 0) {
                uint256 nextCumulativeReward = cumulativeRewards[_account] + accountReward;

                averageStakedAmounts[_account] = averageStakedAmounts[_account] * cumulativeRewards[_account] / nextCumulativeReward
                     + (stakedAmount * accountReward / nextCumulativeReward);

                cumulativeRewards[_account] = nextCumulativeReward;
            }
        }
    }
}

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"gov","type":"address"}],"name":"UpdateGov","type":"event"},{"inputs":[],"name":"BASIS_POINTS_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"averageStakedAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"claim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"claimForAccount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"claimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimableReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cumulativeRewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"cumulativeRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"depositBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inPrivateClaimingMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inPrivateStakingMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inPrivateTransferMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_depositTokens","type":"address[]"},{"internalType":"address","name":"_distributor","type":"address"}],"name":"initRewardTracker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isDepositToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isHandler","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"previousCumulatedRewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"bool","name":"_isDepositToken","type":"bool"}],"name":"setDepositToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_handler","type":"address"},{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"setHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_inPrivateClaimingMode","type":"bool"}],"name":"setInPrivateClaimingMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_inPrivateStakingMode","type":"bool"}],"name":"setInPrivateStakingMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_inPrivateTransferMode","type":"bool"}],"name":"setInPrivateTransferMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fundingAccount","type":"address"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stakeForAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakedAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensPerInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalDepositSupply","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":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"unstakeForAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506128e6806100206000396000f3fe608060405234801561001057600080fd5b50600436106102305760003560e01c806301e336671461023557806306fdde031461024a578063095ea7b314610268578063098bf59d1461028b57806310c1c1031461029e578063126082cf146102cc57806312d43a51146102d557806313e82e7a146102f557806318160ddd146103085780631d30d5bc146103115780631e83409a1461032457806323b872dd1461033757806327e235e31461034a578063313ce5671461036a5780633792def314610384578063392e53cd146103a45780633cd7f700146103b85780633e158b0c146103cb578063402914f5146103d357806344a08411146103e657806346ea87af146104065780634cd88b7614610429578063552ce1dc1461043c57806355b6ed5c1461045c5780635a47a1a7146104875780636c4a916c1461049a57806370a08231146104ad578063790b5a6c146104d657806395d89b41146104e95780639cb7de4b146104f1578063a318021714610504578063a8d9362714610524578063a9059cbb1461052c578063aaf5eb681461053f578063adc9772e14610552578063b89e45b314610565578063bfe1092814610588578063c2a672e01461059b578063c5fa2730146105ae578063cfad57a2146105c0578063dd62ed3e146105d3578063dfbaefb11461060c578063e44b755814610619578063e95034251461062c578063f5d9d63e1461064c578063f5fc507614610677578063f76033d314610680578063f7c618c114610693575b600080fd5b6102486102433660046120c9565b61069b565b005b6102526106e7565b60405161025f919061212e565b60405180910390f35b61027b610276366004612161565b610775565b604051901515815260200161025f565b61024861029936600461218d565b61078c565b6102be6102ac3660046121e0565b603e6020526000908152604090205481565b60405190815260200161025f565b6102be61271081565b6033546102e8906001600160a01b031681565b60405161025f91906121fd565b6102be610303366004612211565b6107b7565b6102be603a5481565b61024861031f366004612258565b6107de565b6102be6103323660046121e0565b610822565b61027b6103453660046120c9565b61086f565b6102be6103583660046121e0565b603b6020526000908152604090205481565b610372601281565b60405160ff909116815260200161025f565b6102be6103923660046121e0565b60416020526000908152604090205481565b60335461027b90600160a01b900460ff1681565b6102486103c6366004612258565b610968565b6102486109ae565b6102be6103e13660046121e0565b6109cb565b6102be6103f43660046121e0565b60406020819052600091825290205481565b61027b6104143660046121e0565b60446020526000908152604090205460ff1681565b61024861043736600461232a565b610b24565b6102be61044a3660046121e0565b60396020526000908152604090205481565b6102be61046a366004612211565b603c60209081526000928352604080842090915290825290205481565b610248610495366004612258565b610c5f565b6102486104a836600461238d565b610c9c565b6102be6104bb3660046121e0565b6001600160a01b03166000908152603b602052604090205490565b6102486104e4366004612450565b610dc3565b610252610ddf565b6102486104ff3660046124a1565b610dec565b6102be6105123660046121e0565b60426020526000908152604090205481565b6102be610e41565b61027b61053a366004612161565b610eb4565b6102be68327cb2734119d3b7a9601e1b81565b610248610560366004612161565b610ec1565b61027b6105733660046121e0565b60376020526000908152604090205460ff1681565b6036546102e8906001600160a01b031681565b6102486105a9366004612161565b610f0a565b60435461027b90610100900460ff1681565b6102486105ce3660046121e0565b610f46565b6102be6105e1366004612211565b6001600160a01b039182166000908152603c6020908152604080832093909416825291909152205490565b60435461027b9060ff1681565b6102486106273660046124a1565b611018565b6102be61063a3660046121e0565b603f6020526000908152604090205481565b6102be61065a366004612211565b603860209081526000928352604080842090915290825290205481565b6102be603d5481565b60435461027b9062010000900460ff1681565b6102e861106d565b6033546001600160a01b031633146106ce5760405162461bcd60e51b81526004016106c5906124cf565b60405180910390fd5b6106e26001600160a01b03841683836110db565b505050565b603480546106f4906124fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610720906124fe565b801561076d5780601f106107425761010080835404028352916020019161076d565b820191906000526020600020905b81548152906001019060200180831161075057829003601f168201915b505050505081565b6000610782338484611131565b5060015b92915050565b610794611267565b61079c6112c0565b6107a88484848461131a565b6107b160018055565b50505050565b60006107c1611267565b6107c96112c0565b6107d38383611527565b905061078660018055565b6033546001600160a01b031633146108085760405162461bcd60e51b81526004016106c5906124cf565b604380549115156101000261ff0019909216919091179055565b600061082c611267565b60435462010000900460ff16156108555760405162461bcd60e51b81526004016106c590612538565b61085f3383611527565b905061086a60018055565b919050565b3360009081526044602052604081205460ff161561089a576108928484846115b2565b506001610961565b6001600160a01b0384166000908152603c602090815260408083203384529091529020548211156109145760405162461bcd60e51b8152602060048201526030602482015260008051602061287183398151915260448201526f78636565647320616c6c6f77616e636560801b60648201526084016106c5565b6001600160a01b0384166000908152603c6020908152604080832033845290915281205461094390849061258f565b9050610950853383611131565b61095b8585856115b2565b60019150505b9392505050565b6033546001600160a01b031633146109925760405162461bcd60e51b81526004016106c5906124cf565b60438054911515620100000262ff000019909216919091179055565b6109b6611267565b6109c0600061179e565b6109c960018055565b565b6001600160a01b0381166000908152603e6020526040812054808203610a085750506001600160a01b03166000908152603f602052604090205490565b603a54603654604080516376f69fed60e11b8152905160009268327cb2734119d3b7a9601e1b926001600160a01b039091169163eded3fda916004808201926020929091908290030181865afa158015610a66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8a91906125a2565b610a9491906125bb565b90506000610aa283836125d2565b603d54610aaf91906125f4565b6001600160a01b03871660009081526040602081905290205490915068327cb2734119d3b7a9601e1b90610ae3908361258f565b610aed90866125bb565b610af791906125d2565b6001600160a01b0387166000908152603f6020526040902054610b1a91906125f4565b9695505050505050565b600054610100900460ff1615808015610b445750600054600160ff909116105b80610b655750610b53306119f7565b158015610b65575060005460ff166001145b610bc85760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016106c5565b6000805460ff191660011790558015610beb576000805461ff0019166101001790555b610bf3611a06565b610bfb611a35565b6034610c07848261264d565b506035610c14838261264d565b5080156106e2576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a1505050565b6033546001600160a01b03163314610c895760405162461bcd60e51b81526004016106c5906124cf565b6043805460ff1916911515919091179055565b6033546001600160a01b03163314610cc65760405162461bcd60e51b81526004016106c5906124cf565b603354600160a01b900460ff1615610d2b5760405162461bcd60e51b815260206004820152602260248201527f526577617264547261636b65723a20616c726561647920696e697469616c697a604482015261195960f21b60648201526084016106c5565b6033805460ff60a01b1916600160a01b17905560005b8251811015610d9f576000838281518110610d5e57610d5e61270c565b6020908102919091018101516001600160a01b03166000908152603790915260409020805460ff191660011790555080610d9781612722565b915050610d41565b50603680546001600160a01b0319166001600160a01b039290921691909117905550565b610dcb611267565b610dd36112c0565b6107a884848484611a70565b603580546106f4906124fe565b6033546001600160a01b03163314610e165760405162461bcd60e51b81526004016106c5906124cf565b6001600160a01b03919091166000908152604460205260409020805460ff1916911515919091179055565b6036546040805163a8d9362760e01b815290516000926001600160a01b03169163a8d936279160048083019260209291908290030181865afa158015610e8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eaf91906125a2565b905090565b60006107823384846115b2565b610ec9611267565b604354610100900460ff1615610ef15760405162461bcd60e51b81526004016106c590612538565b610efd33338484611a70565b610f0660018055565b5050565b610f12611267565b604354610100900460ff1615610f3a5760405162461bcd60e51b81526004016106c590612538565b610efd3383833361131a565b6033546001600160a01b03163314610f705760405162461bcd60e51b81526004016106c5906124cf565b6001600160a01b038116610fc15760405162461bcd60e51b8152602060048201526018602482015277476f7665726e61626c653a207a65726f206164647265737360401b60448201526064016106c5565b603380546001600160a01b0319166001600160a01b0383169081179091556040517fe24c39186e9137521953beaa8446e71f55b8f12296984f9d4273ceb1af728d909161100d916121fd565b60405180910390a150565b6033546001600160a01b031633146110425760405162461bcd60e51b81526004016106c5906124cf565b6001600160a01b03919091166000908152603760205260409020805460ff1916911515919091179055565b6036546040805163f7c618c160e01b815290516000926001600160a01b03169163f7c618c19160048083019260209291908290030181865afa1580156110b7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eaf919061273b565b6106e28363a9059cbb60e01b84846040516024016110fa929190612758565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611ba8565b6001600160a01b03831661119c5760405162461bcd60e51b815260206004820152602c60248201527f526577617264547261636b65723a20617070726f76652066726f6d207468652060448201526b7a65726f206164647265737360a01b60648201526084016106c5565b6001600160a01b0382166112055760405162461bcd60e51b815260206004820152602a60248201527f526577617264547261636b65723a20617070726f766520746f20746865207a65604482015269726f206164647265737360b01b60648201526084016106c5565b6001600160a01b038381166000818152603c602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6002600154036112b95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106c5565b6002600155565b3360009081526044602052604090205460ff166109c95760405162461bcd60e51b81526020600482015260186024820152772932bbb0b9322a3930b1b5b2b91d103337b93134b23232b760411b60448201526064016106c5565b6000821161133a5760405162461bcd60e51b81526004016106c590612771565b6001600160a01b03831660009081526037602052604090205460ff166113725760405162461bcd60e51b81526004016106c5906127a8565b61137b8461179e565b6001600160a01b0384166000908152603e6020526040902054828110156113f85760405162461bcd60e51b815260206004820152602b60248201527f526577617264547261636b65723a205f616d6f756e742065786365656473207360448201526a1d185ad959105b5bdd5b9d60aa1b60648201526084016106c5565b611402838261258f565b6001600160a01b038087166000908152603e60209081526040808320949094556038815283822092881682529190915220548381101561149a5760405162461bcd60e51b815260206004820152602d60248201527f526577617264547261636b65723a205f616d6f756e742065786365656473206460448201526c65706f73697442616c616e636560981b60648201526084016106c5565b6114a4848261258f565b6001600160a01b038088166000908152603860209081526040808320938a1683529281528282209390935560399092529020546114e290859061258f565b6001600160a01b0386166000908152603960205260409020556115058685611c7a565b6115196001600160a01b03861684866110db565b505050505050565b60018055565b60006115328361179e565b6001600160a01b0383166000908152603f602052604081208054919055801561096157611572838261156261106d565b6001600160a01b031691906110db565b7f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d484826040516115a3929190612758565b60405180910390a19392505050565b6001600160a01b03831661161e5760405162461bcd60e51b815260206004820152602d60248201527f526577617264547261636b65723a207472616e736665722066726f6d2074686560448201526c207a65726f206164647265737360981b60648201526084016106c5565b6001600160a01b0382166116885760405162461bcd60e51b815260206004820152602b60248201527f526577617264547261636b65723a207472616e7366657220746f20746865207a60448201526a65726f206164647265737360a81b60648201526084016106c5565b60435460ff161561169b5761169b6112c0565b6001600160a01b0383166000908152603b60205260409020548111156117085760405162461bcd60e51b815260206004820152602e602482015260008051602061287183398151915260448201526d7863656564732062616c616e636560901b60648201526084016106c5565b6001600160a01b0383166000908152603b602052604090205461172c90829061258f565b6001600160a01b038085166000908152603b6020526040808220939093559084168152205461175c9082906125f4565b6001600160a01b038084166000818152603b602052604090819020939093559151908516906000805160206128918339815191529061125a9085815260200190565b6036546040805163e4fc6b6d60e01b815290516000926001600160a01b03169163e4fc6b6d916004808301926020929190829003018187875af11580156117e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180d91906125a2565b603a54603d549192509081158015906118265750600083115b1561185e578161184268327cb2734119d3b7a9601e1b856125bb565b61184c91906125d2565b61185690826125f4565b603d81905590505b8060000361186c5750505050565b6001600160a01b038416156107b1576001600160a01b0384166000908152603e60209081526040808320549181905282205490919068327cb2734119d3b7a9601e1b906118b9908561258f565b6118c390846125bb565b6118cd91906125d2565b6001600160a01b0387166000908152603f6020526040812054919250906118f59083906125f4565b6001600160a01b0388166000908152603f602090815260408083208490559081905290208590559050801580159061194457506001600160a01b0387166000908152603e602052604090205415155b156119ee576001600160a01b03871660009081526041602052604081205461196d9084906125f4565b90508061197a84866125bb565b61198491906125d2565b6001600160a01b03891660009081526041602090815260408083205460429092529091205483916119b4916125bb565b6119be91906125d2565b6119c891906125f4565b6001600160a01b0389166000908152604260209081526040808320939093556041905220555b50505050505050565b6001600160a01b03163b151590565b600054610100900460ff16611a2d5760405162461bcd60e51b81526004016106c5906127ec565b6109c9611ddf565b600054610100900460ff16611a5c5760405162461bcd60e51b81526004016106c5906127ec565b603380546001600160a01b03191633179055565b60008111611a905760405162461bcd60e51b81526004016106c590612771565b6001600160a01b03821660009081526037602052604090205460ff16611ac85760405162461bcd60e51b81526004016106c5906127a8565b611add6001600160a01b038316853084611e06565b611ae68361179e565b6001600160a01b0383166000908152603e6020526040902054611b0a9082906125f4565b6001600160a01b038085166000908152603e6020908152604080832094909455603881528382209286168252919091522054611b479082906125f4565b6001600160a01b0380851660009081526038602090815260408083209387168352928152828220939093556039909252902054611b859082906125f4565b6001600160a01b0383166000908152603960205260409020556107b18382611e3e565b6000611bfd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611f189092919063ffffffff16565b8051909150156106e25780806020019051810190611c1b9190612837565b6106e25760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016106c5565b6001600160a01b038216611ce25760405162461bcd60e51b815260206004820152602960248201527f526577617264547261636b65723a206275726e2066726f6d20746865207a65726044820152686f206164647265737360b81b60648201526084016106c5565b6001600160a01b0382166000908152603b6020526040902054811115611d5d5760405162461bcd60e51b815260206004820152602a60248201527f526577617264547261636b65723a206275726e20616d6f756e7420657863656560448201526964732062616c616e636560b01b60648201526084016106c5565b6001600160a01b0382166000908152603b6020526040902054611d8190829061258f565b6001600160a01b0383166000908152603b6020526040902055603a54611da890829061258f565b603a556040518181526000906001600160a01b03841690600080516020612891833981519152906020015b60405180910390a35050565b600054610100900460ff166115215760405162461bcd60e51b81526004016106c5906127ec565b6040516001600160a01b03808516602483015283166044820152606481018290526107b19085906323b872dd60e01b906084016110fa565b6001600160a01b038216611ea45760405162461bcd60e51b815260206004820152602760248201527f526577617264547261636b65723a206d696e7420746f20746865207a65726f206044820152666164647265737360c81b60648201526084016106c5565b80603a54611eb291906125f4565b603a556001600160a01b0382166000908152603b6020526040902054611ed99082906125f4565b6001600160a01b0383166000818152603b602052604080822093909355915190919060008051602061289183398151915290611dd39085815260200190565b6060611f278484600085611f2f565b949350505050565b606082471015611f905760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016106c5565b600080866001600160a01b03168587604051611fac9190612854565b60006040518083038185875af1925050503d8060008114611fe9576040519150601f19603f3d011682016040523d82523d6000602084013e611fee565b606091505b5091509150611fff8783838761200a565b979650505050505050565b6060831561207757825160000361207057612024856119f7565b6120705760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106c5565b5081611f27565b611f27838381511561208c5781518083602001fd5b8060405162461bcd60e51b81526004016106c5919061212e565b6001600160a01b03811681146120bb57600080fd5b50565b803561086a816120a6565b6000806000606084860312156120de57600080fd5b83356120e9816120a6565b925060208401356120f9816120a6565b929592945050506040919091013590565b60005b8381101561212557818101518382015260200161210d565b50506000910152565b602081526000825180602084015261214d81604085016020870161210a565b601f01601f19169190910160400192915050565b6000806040838503121561217457600080fd5b823561217f816120a6565b946020939093013593505050565b600080600080608085870312156121a357600080fd5b84356121ae816120a6565b935060208501356121be816120a6565b92506040850135915060608501356121d5816120a6565b939692955090935050565b6000602082840312156121f257600080fd5b8135610961816120a6565b6001600160a01b0391909116815260200190565b6000806040838503121561222457600080fd5b823561222f816120a6565b9150602083013561223f816120a6565b809150509250929050565b80151581146120bb57600080fd5b60006020828403121561226a57600080fd5b81356109618161224a565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156122b3576122b3612275565b604052919050565b600082601f8301126122cc57600080fd5b81356001600160401b038111156122e5576122e5612275565b6122f8601f8201601f191660200161228b565b81815284602083860101111561230d57600080fd5b816020850160208301376000918101602001919091529392505050565b6000806040838503121561233d57600080fd5b82356001600160401b038082111561235457600080fd5b612360868387016122bb565b9350602085013591508082111561237657600080fd5b50612383858286016122bb565b9150509250929050565b600080604083850312156123a057600080fd5b82356001600160401b03808211156123b757600080fd5b818501915085601f8301126123cb57600080fd5b81356020828211156123df576123df612275565b8160051b92506123f081840161228b565b828152928401810192818101908985111561240a57600080fd5b948201945b848610156124345785359350612424846120a6565b838252948201949082019061240f565b965061244390508782016120be565b9450505050509250929050565b6000806000806080858703121561246657600080fd5b8435612471816120a6565b93506020850135612481816120a6565b92506040850135612491816120a6565b9396929550929360600135925050565b600080604083850312156124b457600080fd5b82356124bf816120a6565b9150602083013561223f8161224a565b60208082526015908201527423b7bb32b93730b136329d103337b93134b23232b760591b604082015260600190565b600181811c9082168061251257607f821691505b60208210810361253257634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526021908201527f526577617264547261636b65723a20616374696f6e206e6f7420656e61626c656040820152601960fa1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8181038181111561078657610786612579565b6000602082840312156125b457600080fd5b5051919050565b808202811582820484141761078657610786612579565b6000826125ef57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561078657610786612579565b601f8211156106e257600081815260208120601f850160051c8101602086101561262e5750805b601f850160051c820191505b818110156115195782815560010161263a565b81516001600160401b0381111561266657612666612275565b61267a8161267484546124fe565b84612607565b602080601f8311600181146126af57600084156126975750858301515b600019600386901b1c1916600185901b178555611519565b600085815260208120601f198616915b828110156126de578886015182559484019460019091019084016126bf565b50858210156126fc5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b60006001820161273457612734612579565b5060010190565b60006020828403121561274d57600080fd5b8151610961816120a6565b6001600160a01b03929092168252602082015260400190565b6020808252601e908201527f526577617264547261636b65723a20696e76616c6964205f616d6f756e740000604082015260600190565b60208082526024908201527f526577617264547261636b65723a20696e76616c6964205f6465706f7369745460408201526337b5b2b760e11b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006020828403121561284957600080fd5b81516109618161224a565b6000825161286681846020870161210a565b919091019291505056fe526577617264547261636b65723a207472616e7366657220616d6f756e742065ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122074f8845fe211aaa2a913678120b4ee9ad3ca95f6210ebd0201bd5f9b6757e01a64736f6c63430008110033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102305760003560e01c806301e336671461023557806306fdde031461024a578063095ea7b314610268578063098bf59d1461028b57806310c1c1031461029e578063126082cf146102cc57806312d43a51146102d557806313e82e7a146102f557806318160ddd146103085780631d30d5bc146103115780631e83409a1461032457806323b872dd1461033757806327e235e31461034a578063313ce5671461036a5780633792def314610384578063392e53cd146103a45780633cd7f700146103b85780633e158b0c146103cb578063402914f5146103d357806344a08411146103e657806346ea87af146104065780634cd88b7614610429578063552ce1dc1461043c57806355b6ed5c1461045c5780635a47a1a7146104875780636c4a916c1461049a57806370a08231146104ad578063790b5a6c146104d657806395d89b41146104e95780639cb7de4b146104f1578063a318021714610504578063a8d9362714610524578063a9059cbb1461052c578063aaf5eb681461053f578063adc9772e14610552578063b89e45b314610565578063bfe1092814610588578063c2a672e01461059b578063c5fa2730146105ae578063cfad57a2146105c0578063dd62ed3e146105d3578063dfbaefb11461060c578063e44b755814610619578063e95034251461062c578063f5d9d63e1461064c578063f5fc507614610677578063f76033d314610680578063f7c618c114610693575b600080fd5b6102486102433660046120c9565b61069b565b005b6102526106e7565b60405161025f919061212e565b60405180910390f35b61027b610276366004612161565b610775565b604051901515815260200161025f565b61024861029936600461218d565b61078c565b6102be6102ac3660046121e0565b603e6020526000908152604090205481565b60405190815260200161025f565b6102be61271081565b6033546102e8906001600160a01b031681565b60405161025f91906121fd565b6102be610303366004612211565b6107b7565b6102be603a5481565b61024861031f366004612258565b6107de565b6102be6103323660046121e0565b610822565b61027b6103453660046120c9565b61086f565b6102be6103583660046121e0565b603b6020526000908152604090205481565b610372601281565b60405160ff909116815260200161025f565b6102be6103923660046121e0565b60416020526000908152604090205481565b60335461027b90600160a01b900460ff1681565b6102486103c6366004612258565b610968565b6102486109ae565b6102be6103e13660046121e0565b6109cb565b6102be6103f43660046121e0565b60406020819052600091825290205481565b61027b6104143660046121e0565b60446020526000908152604090205460ff1681565b61024861043736600461232a565b610b24565b6102be61044a3660046121e0565b60396020526000908152604090205481565b6102be61046a366004612211565b603c60209081526000928352604080842090915290825290205481565b610248610495366004612258565b610c5f565b6102486104a836600461238d565b610c9c565b6102be6104bb3660046121e0565b6001600160a01b03166000908152603b602052604090205490565b6102486104e4366004612450565b610dc3565b610252610ddf565b6102486104ff3660046124a1565b610dec565b6102be6105123660046121e0565b60426020526000908152604090205481565b6102be610e41565b61027b61053a366004612161565b610eb4565b6102be68327cb2734119d3b7a9601e1b81565b610248610560366004612161565b610ec1565b61027b6105733660046121e0565b60376020526000908152604090205460ff1681565b6036546102e8906001600160a01b031681565b6102486105a9366004612161565b610f0a565b60435461027b90610100900460ff1681565b6102486105ce3660046121e0565b610f46565b6102be6105e1366004612211565b6001600160a01b039182166000908152603c6020908152604080832093909416825291909152205490565b60435461027b9060ff1681565b6102486106273660046124a1565b611018565b6102be61063a3660046121e0565b603f6020526000908152604090205481565b6102be61065a366004612211565b603860209081526000928352604080842090915290825290205481565b6102be603d5481565b60435461027b9062010000900460ff1681565b6102e861106d565b6033546001600160a01b031633146106ce5760405162461bcd60e51b81526004016106c5906124cf565b60405180910390fd5b6106e26001600160a01b03841683836110db565b505050565b603480546106f4906124fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610720906124fe565b801561076d5780601f106107425761010080835404028352916020019161076d565b820191906000526020600020905b81548152906001019060200180831161075057829003601f168201915b505050505081565b6000610782338484611131565b5060015b92915050565b610794611267565b61079c6112c0565b6107a88484848461131a565b6107b160018055565b50505050565b60006107c1611267565b6107c96112c0565b6107d38383611527565b905061078660018055565b6033546001600160a01b031633146108085760405162461bcd60e51b81526004016106c5906124cf565b604380549115156101000261ff0019909216919091179055565b600061082c611267565b60435462010000900460ff16156108555760405162461bcd60e51b81526004016106c590612538565b61085f3383611527565b905061086a60018055565b919050565b3360009081526044602052604081205460ff161561089a576108928484846115b2565b506001610961565b6001600160a01b0384166000908152603c602090815260408083203384529091529020548211156109145760405162461bcd60e51b8152602060048201526030602482015260008051602061287183398151915260448201526f78636565647320616c6c6f77616e636560801b60648201526084016106c5565b6001600160a01b0384166000908152603c6020908152604080832033845290915281205461094390849061258f565b9050610950853383611131565b61095b8585856115b2565b60019150505b9392505050565b6033546001600160a01b031633146109925760405162461bcd60e51b81526004016106c5906124cf565b60438054911515620100000262ff000019909216919091179055565b6109b6611267565b6109c0600061179e565b6109c960018055565b565b6001600160a01b0381166000908152603e6020526040812054808203610a085750506001600160a01b03166000908152603f602052604090205490565b603a54603654604080516376f69fed60e11b8152905160009268327cb2734119d3b7a9601e1b926001600160a01b039091169163eded3fda916004808201926020929091908290030181865afa158015610a66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a8a91906125a2565b610a9491906125bb565b90506000610aa283836125d2565b603d54610aaf91906125f4565b6001600160a01b03871660009081526040602081905290205490915068327cb2734119d3b7a9601e1b90610ae3908361258f565b610aed90866125bb565b610af791906125d2565b6001600160a01b0387166000908152603f6020526040902054610b1a91906125f4565b9695505050505050565b600054610100900460ff1615808015610b445750600054600160ff909116105b80610b655750610b53306119f7565b158015610b65575060005460ff166001145b610bc85760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016106c5565b6000805460ff191660011790558015610beb576000805461ff0019166101001790555b610bf3611a06565b610bfb611a35565b6034610c07848261264d565b506035610c14838261264d565b5080156106e2576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a1505050565b6033546001600160a01b03163314610c895760405162461bcd60e51b81526004016106c5906124cf565b6043805460ff1916911515919091179055565b6033546001600160a01b03163314610cc65760405162461bcd60e51b81526004016106c5906124cf565b603354600160a01b900460ff1615610d2b5760405162461bcd60e51b815260206004820152602260248201527f526577617264547261636b65723a20616c726561647920696e697469616c697a604482015261195960f21b60648201526084016106c5565b6033805460ff60a01b1916600160a01b17905560005b8251811015610d9f576000838281518110610d5e57610d5e61270c565b6020908102919091018101516001600160a01b03166000908152603790915260409020805460ff191660011790555080610d9781612722565b915050610d41565b50603680546001600160a01b0319166001600160a01b039290921691909117905550565b610dcb611267565b610dd36112c0565b6107a884848484611a70565b603580546106f4906124fe565b6033546001600160a01b03163314610e165760405162461bcd60e51b81526004016106c5906124cf565b6001600160a01b03919091166000908152604460205260409020805460ff1916911515919091179055565b6036546040805163a8d9362760e01b815290516000926001600160a01b03169163a8d936279160048083019260209291908290030181865afa158015610e8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eaf91906125a2565b905090565b60006107823384846115b2565b610ec9611267565b604354610100900460ff1615610ef15760405162461bcd60e51b81526004016106c590612538565b610efd33338484611a70565b610f0660018055565b5050565b610f12611267565b604354610100900460ff1615610f3a5760405162461bcd60e51b81526004016106c590612538565b610efd3383833361131a565b6033546001600160a01b03163314610f705760405162461bcd60e51b81526004016106c5906124cf565b6001600160a01b038116610fc15760405162461bcd60e51b8152602060048201526018602482015277476f7665726e61626c653a207a65726f206164647265737360401b60448201526064016106c5565b603380546001600160a01b0319166001600160a01b0383169081179091556040517fe24c39186e9137521953beaa8446e71f55b8f12296984f9d4273ceb1af728d909161100d916121fd565b60405180910390a150565b6033546001600160a01b031633146110425760405162461bcd60e51b81526004016106c5906124cf565b6001600160a01b03919091166000908152603760205260409020805460ff1916911515919091179055565b6036546040805163f7c618c160e01b815290516000926001600160a01b03169163f7c618c19160048083019260209291908290030181865afa1580156110b7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eaf919061273b565b6106e28363a9059cbb60e01b84846040516024016110fa929190612758565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611ba8565b6001600160a01b03831661119c5760405162461bcd60e51b815260206004820152602c60248201527f526577617264547261636b65723a20617070726f76652066726f6d207468652060448201526b7a65726f206164647265737360a01b60648201526084016106c5565b6001600160a01b0382166112055760405162461bcd60e51b815260206004820152602a60248201527f526577617264547261636b65723a20617070726f766520746f20746865207a65604482015269726f206164647265737360b01b60648201526084016106c5565b6001600160a01b038381166000818152603c602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6002600154036112b95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106c5565b6002600155565b3360009081526044602052604090205460ff166109c95760405162461bcd60e51b81526020600482015260186024820152772932bbb0b9322a3930b1b5b2b91d103337b93134b23232b760411b60448201526064016106c5565b6000821161133a5760405162461bcd60e51b81526004016106c590612771565b6001600160a01b03831660009081526037602052604090205460ff166113725760405162461bcd60e51b81526004016106c5906127a8565b61137b8461179e565b6001600160a01b0384166000908152603e6020526040902054828110156113f85760405162461bcd60e51b815260206004820152602b60248201527f526577617264547261636b65723a205f616d6f756e742065786365656473207360448201526a1d185ad959105b5bdd5b9d60aa1b60648201526084016106c5565b611402838261258f565b6001600160a01b038087166000908152603e60209081526040808320949094556038815283822092881682529190915220548381101561149a5760405162461bcd60e51b815260206004820152602d60248201527f526577617264547261636b65723a205f616d6f756e742065786365656473206460448201526c65706f73697442616c616e636560981b60648201526084016106c5565b6114a4848261258f565b6001600160a01b038088166000908152603860209081526040808320938a1683529281528282209390935560399092529020546114e290859061258f565b6001600160a01b0386166000908152603960205260409020556115058685611c7a565b6115196001600160a01b03861684866110db565b505050505050565b60018055565b60006115328361179e565b6001600160a01b0383166000908152603f602052604081208054919055801561096157611572838261156261106d565b6001600160a01b031691906110db565b7f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d484826040516115a3929190612758565b60405180910390a19392505050565b6001600160a01b03831661161e5760405162461bcd60e51b815260206004820152602d60248201527f526577617264547261636b65723a207472616e736665722066726f6d2074686560448201526c207a65726f206164647265737360981b60648201526084016106c5565b6001600160a01b0382166116885760405162461bcd60e51b815260206004820152602b60248201527f526577617264547261636b65723a207472616e7366657220746f20746865207a60448201526a65726f206164647265737360a81b60648201526084016106c5565b60435460ff161561169b5761169b6112c0565b6001600160a01b0383166000908152603b60205260409020548111156117085760405162461bcd60e51b815260206004820152602e602482015260008051602061287183398151915260448201526d7863656564732062616c616e636560901b60648201526084016106c5565b6001600160a01b0383166000908152603b602052604090205461172c90829061258f565b6001600160a01b038085166000908152603b6020526040808220939093559084168152205461175c9082906125f4565b6001600160a01b038084166000818152603b602052604090819020939093559151908516906000805160206128918339815191529061125a9085815260200190565b6036546040805163e4fc6b6d60e01b815290516000926001600160a01b03169163e4fc6b6d916004808301926020929190829003018187875af11580156117e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180d91906125a2565b603a54603d549192509081158015906118265750600083115b1561185e578161184268327cb2734119d3b7a9601e1b856125bb565b61184c91906125d2565b61185690826125f4565b603d81905590505b8060000361186c5750505050565b6001600160a01b038416156107b1576001600160a01b0384166000908152603e60209081526040808320549181905282205490919068327cb2734119d3b7a9601e1b906118b9908561258f565b6118c390846125bb565b6118cd91906125d2565b6001600160a01b0387166000908152603f6020526040812054919250906118f59083906125f4565b6001600160a01b0388166000908152603f602090815260408083208490559081905290208590559050801580159061194457506001600160a01b0387166000908152603e602052604090205415155b156119ee576001600160a01b03871660009081526041602052604081205461196d9084906125f4565b90508061197a84866125bb565b61198491906125d2565b6001600160a01b03891660009081526041602090815260408083205460429092529091205483916119b4916125bb565b6119be91906125d2565b6119c891906125f4565b6001600160a01b0389166000908152604260209081526040808320939093556041905220555b50505050505050565b6001600160a01b03163b151590565b600054610100900460ff16611a2d5760405162461bcd60e51b81526004016106c5906127ec565b6109c9611ddf565b600054610100900460ff16611a5c5760405162461bcd60e51b81526004016106c5906127ec565b603380546001600160a01b03191633179055565b60008111611a905760405162461bcd60e51b81526004016106c590612771565b6001600160a01b03821660009081526037602052604090205460ff16611ac85760405162461bcd60e51b81526004016106c5906127a8565b611add6001600160a01b038316853084611e06565b611ae68361179e565b6001600160a01b0383166000908152603e6020526040902054611b0a9082906125f4565b6001600160a01b038085166000908152603e6020908152604080832094909455603881528382209286168252919091522054611b479082906125f4565b6001600160a01b0380851660009081526038602090815260408083209387168352928152828220939093556039909252902054611b859082906125f4565b6001600160a01b0383166000908152603960205260409020556107b18382611e3e565b6000611bfd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611f189092919063ffffffff16565b8051909150156106e25780806020019051810190611c1b9190612837565b6106e25760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016106c5565b6001600160a01b038216611ce25760405162461bcd60e51b815260206004820152602960248201527f526577617264547261636b65723a206275726e2066726f6d20746865207a65726044820152686f206164647265737360b81b60648201526084016106c5565b6001600160a01b0382166000908152603b6020526040902054811115611d5d5760405162461bcd60e51b815260206004820152602a60248201527f526577617264547261636b65723a206275726e20616d6f756e7420657863656560448201526964732062616c616e636560b01b60648201526084016106c5565b6001600160a01b0382166000908152603b6020526040902054611d8190829061258f565b6001600160a01b0383166000908152603b6020526040902055603a54611da890829061258f565b603a556040518181526000906001600160a01b03841690600080516020612891833981519152906020015b60405180910390a35050565b600054610100900460ff166115215760405162461bcd60e51b81526004016106c5906127ec565b6040516001600160a01b03808516602483015283166044820152606481018290526107b19085906323b872dd60e01b906084016110fa565b6001600160a01b038216611ea45760405162461bcd60e51b815260206004820152602760248201527f526577617264547261636b65723a206d696e7420746f20746865207a65726f206044820152666164647265737360c81b60648201526084016106c5565b80603a54611eb291906125f4565b603a556001600160a01b0382166000908152603b6020526040902054611ed99082906125f4565b6001600160a01b0383166000818152603b602052604080822093909355915190919060008051602061289183398151915290611dd39085815260200190565b6060611f278484600085611f2f565b949350505050565b606082471015611f905760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016106c5565b600080866001600160a01b03168587604051611fac9190612854565b60006040518083038185875af1925050503d8060008114611fe9576040519150601f19603f3d011682016040523d82523d6000602084013e611fee565b606091505b5091509150611fff8783838761200a565b979650505050505050565b6060831561207757825160000361207057612024856119f7565b6120705760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106c5565b5081611f27565b611f27838381511561208c5781518083602001fd5b8060405162461bcd60e51b81526004016106c5919061212e565b6001600160a01b03811681146120bb57600080fd5b50565b803561086a816120a6565b6000806000606084860312156120de57600080fd5b83356120e9816120a6565b925060208401356120f9816120a6565b929592945050506040919091013590565b60005b8381101561212557818101518382015260200161210d565b50506000910152565b602081526000825180602084015261214d81604085016020870161210a565b601f01601f19169190910160400192915050565b6000806040838503121561217457600080fd5b823561217f816120a6565b946020939093013593505050565b600080600080608085870312156121a357600080fd5b84356121ae816120a6565b935060208501356121be816120a6565b92506040850135915060608501356121d5816120a6565b939692955090935050565b6000602082840312156121f257600080fd5b8135610961816120a6565b6001600160a01b0391909116815260200190565b6000806040838503121561222457600080fd5b823561222f816120a6565b9150602083013561223f816120a6565b809150509250929050565b80151581146120bb57600080fd5b60006020828403121561226a57600080fd5b81356109618161224a565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156122b3576122b3612275565b604052919050565b600082601f8301126122cc57600080fd5b81356001600160401b038111156122e5576122e5612275565b6122f8601f8201601f191660200161228b565b81815284602083860101111561230d57600080fd5b816020850160208301376000918101602001919091529392505050565b6000806040838503121561233d57600080fd5b82356001600160401b038082111561235457600080fd5b612360868387016122bb565b9350602085013591508082111561237657600080fd5b50612383858286016122bb565b9150509250929050565b600080604083850312156123a057600080fd5b82356001600160401b03808211156123b757600080fd5b818501915085601f8301126123cb57600080fd5b81356020828211156123df576123df612275565b8160051b92506123f081840161228b565b828152928401810192818101908985111561240a57600080fd5b948201945b848610156124345785359350612424846120a6565b838252948201949082019061240f565b965061244390508782016120be565b9450505050509250929050565b6000806000806080858703121561246657600080fd5b8435612471816120a6565b93506020850135612481816120a6565b92506040850135612491816120a6565b9396929550929360600135925050565b600080604083850312156124b457600080fd5b82356124bf816120a6565b9150602083013561223f8161224a565b60208082526015908201527423b7bb32b93730b136329d103337b93134b23232b760591b604082015260600190565b600181811c9082168061251257607f821691505b60208210810361253257634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526021908201527f526577617264547261636b65723a20616374696f6e206e6f7420656e61626c656040820152601960fa1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8181038181111561078657610786612579565b6000602082840312156125b457600080fd5b5051919050565b808202811582820484141761078657610786612579565b6000826125ef57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561078657610786612579565b601f8211156106e257600081815260208120601f850160051c8101602086101561262e5750805b601f850160051c820191505b818110156115195782815560010161263a565b81516001600160401b0381111561266657612666612275565b61267a8161267484546124fe565b84612607565b602080601f8311600181146126af57600084156126975750858301515b600019600386901b1c1916600185901b178555611519565b600085815260208120601f198616915b828110156126de578886015182559484019460019091019084016126bf565b50858210156126fc5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b60006001820161273457612734612579565b5060010190565b60006020828403121561274d57600080fd5b8151610961816120a6565b6001600160a01b03929092168252602082015260400190565b6020808252601e908201527f526577617264547261636b65723a20696e76616c6964205f616d6f756e740000604082015260600190565b60208082526024908201527f526577617264547261636b65723a20696e76616c6964205f6465706f7369745460408201526337b5b2b760e11b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006020828403121561284957600080fd5b81516109618161224a565b6000825161286681846020870161210a565b919091019291505056fe526577617264547261636b65723a207472616e7366657220616d6f756e742065ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122074f8845fe211aaa2a913678120b4ee9ad3ca95f6210ebd0201bd5f9b6757e01a64736f6c63430008110033

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
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.