ETH Price: $2,869.23 (-2.71%)

Contract

0x9310676BD598b4F736019Fc55FB2B75a204eA48C

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Stake4223079212026-01-17 12:38:328 days ago1768653512IN
0x9310676B...a204eA48C
0 ETH0.000002920.020042
Stake4223059262026-01-17 12:30:148 days ago1768653014IN
0x9310676B...a204eA48C
0 ETH0.000002910.02015
Stake4222674632026-01-17 9:50:008 days ago1768643400IN
0x9310676B...a204eA48C
0 ETH0.000002920.020004
Stake4222524502026-01-17 8:47:238 days ago1768639643IN
0x9310676B...a204eA48C
0 ETH0.000003020.020042
Stake4221530902026-01-17 1:52:519 days ago1768614771IN
0x9310676B...a204eA48C
0 ETH0.000002920.02002
Stake4221515852026-01-17 1:46:359 days ago1768614395IN
0x9310676B...a204eA48C
0 ETH0.000002920.020022
Stake4221498832026-01-17 1:39:319 days ago1768613971IN
0x9310676B...a204eA48C
0 ETH0.000002920.020042
Stake4221488002026-01-17 1:34:599 days ago1768613699IN
0x9310676B...a204eA48C
0 ETH0.000002930.020072
Stake4221478862026-01-17 1:31:129 days ago1768613472IN
0x9310676B...a204eA48C
0 ETH0.000002920.020044
Stake4221465632026-01-17 1:25:419 days ago1768613141IN
0x9310676B...a204eA48C
0 ETH0.000002920.020056
Stake4221456802026-01-17 1:22:009 days ago1768612920IN
0x9310676B...a204eA48C
0 ETH0.000002910.02
Stake4221442102026-01-17 1:15:519 days ago1768612551IN
0x9310676B...a204eA48C
0 ETH0.000002920.02002
Stake4221431322026-01-17 1:11:229 days ago1768612282IN
0x9310676B...a204eA48C
0 ETH0.000002910.02
Stake4221418572026-01-17 1:06:039 days ago1768611963IN
0x9310676B...a204eA48C
0 ETH0.000002930.020086
Stake4221411282026-01-17 1:03:009 days ago1768611780IN
0x9310676B...a204eA48C
0 ETH0.000002920.020014
Stake4220639212026-01-16 19:40:259 days ago1768592425IN
0x9310676B...a204eA48C
0 ETH0.000002910.02
Stake4220139592026-01-16 16:12:349 days ago1768579954IN
0x9310676B...a204eA48C
0 ETH0.000002910.02
Stake4219710322026-01-16 13:14:109 days ago1768569250IN
0x9310676B...a204eA48C
0 ETH0.000002920.02004
Stake4219499722026-01-16 11:46:309 days ago1768563990IN
0x9310676B...a204eA48C
0 ETH0.000002910.02
Stake4219489982026-01-16 11:42:269 days ago1768563746IN
0x9310676B...a204eA48C
0 ETH0.000002920.020034
Stake4219484562026-01-16 11:40:119 days ago1768563611IN
0x9310676B...a204eA48C
0 ETH0.000002910.02
Stake4219477342026-01-16 11:37:109 days ago1768563430IN
0x9310676B...a204eA48C
0 ETH0.000002910.02
Stake4219461982026-01-16 11:30:479 days ago1768563047IN
0x9310676B...a204eA48C
0 ETH0.000002970.020376
Stake4219435482026-01-16 11:19:459 days ago1768562385IN
0x9310676B...a204eA48C
0 ETH0.000002940.02016
Stake4219405222026-01-16 11:07:119 days ago1768561631IN
0x9310676B...a204eA48C
0 ETH0.000002910.02
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xbfe9675c...E0882F02C
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
TimelockStakingPool

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Arbiscan.io on 2026-01-10
*/

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
interface IERC20 {
    /**
     * @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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

// File: @openzeppelin/contracts/interfaces/IERC20.sol


// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)

pragma solidity >=0.4.16;


// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// File: @openzeppelin/contracts/interfaces/IERC165.sol


// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)

pragma solidity >=0.4.16;


// File: @openzeppelin/contracts/interfaces/IERC1363.sol


// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)

pragma solidity >=0.6.2;



/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}

// File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol


// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;



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

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            // bubble errors
            if iszero(success) {
                let ptr := mload(0x40)
                returndatacopy(ptr, 0, returndatasize())
                revert(ptr, returndatasize())
            }
            returnSize := returndatasize()
            returnValue := mload(0)
        }

        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0)
        }
        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
    }
}

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


// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

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


// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

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

// File: contracts/staking.sol


pragma solidity ^0.8.20;



contract TimelockStakingPool is Ownable {
    using SafeERC20 for IERC20;

    IERC20 public immutable STAKE_TOKEN;
    IERC20 public REWARD_TOKEN;
    uint256 public immutable LOCK_DURATION;
    uint256 public immutable APY;
    uint256 public constant SECONDS_IN_YEAR = 365 days;
    uint256 public constant MAX_APY = 1000;

    uint256 public totalStaked;
    uint256 public totalReservedRewards;

    struct StakeInfo {
        uint256 amount;
        uint256 startTime;
        bool withdrawn;
        uint256 endTime;
        uint256 expectedReward;
    }

    mapping(address => StakeInfo) public stakes;

    event Staked(address indexed user, uint256 amount, uint256 unlockTime, uint256 totalStaked);
    event Withdrawn(address indexed user, uint256 principal, uint256 reward);
    event RewardDeposited(address indexed token, uint256 amount);

    constructor(
        address token,
        address rewardToken,
        uint256 lockDuration,
        uint256 apy
    ) Ownable(msg.sender) {
        require(token != address(0), "Invalid token address");
        require(rewardToken != address(0), "Invalid reward token address");
        require(apy > 0 && apy <= MAX_APY, "APY invalid");

        STAKE_TOKEN = IERC20(token);
        REWARD_TOKEN = IERC20(rewardToken);
        LOCK_DURATION = lockDuration;
        APY = apy;
    }

    function depositRewardTokens(uint256 amount) external onlyOwner {
        require(amount > 0, "Amount must be > 0");
        REWARD_TOKEN.safeTransferFrom(msg.sender, address(this), amount);
        emit RewardDeposited(address(REWARD_TOKEN), amount);
    }

    function stake(uint256 amount) external {
        require(amount > 0, "Amount must be > 0");

        uint256 newAmount = stakes[msg.sender].amount + amount;
        uint256 expectedReward = _calculateExpectedReward(newAmount, LOCK_DURATION);

        // Subtract previous expected reward if exists
        uint256 previousExpectedReward = stakes[msg.sender].expectedReward;
        uint256 additionalRewardNeeded = expectedReward - previousExpectedReward;

        require(
            REWARD_TOKEN.balanceOf(address(this)) >= totalReservedRewards + additionalRewardNeeded,
            "Insufficient reward pool"
        );

        // Update stake info
        stakes[msg.sender] = StakeInfo({
            amount: newAmount,
            startTime: block.timestamp,
            endTime: block.timestamp + LOCK_DURATION,
            expectedReward: expectedReward,
            withdrawn: false
        });

        totalStaked += amount;
        totalReservedRewards += additionalRewardNeeded;

        STAKE_TOKEN.safeTransferFrom(msg.sender, address(this), amount);

        emit Staked(msg.sender, amount, block.timestamp + LOCK_DURATION, newAmount);
    }

    function withdraw() external {
        StakeInfo storage s = stakes[msg.sender];
        require(s.amount > 0, "No active stake");
        require(!s.withdrawn, "Already withdrawn");
        require(block.timestamp >= s.endTime, "Stake locked");

        uint256 reward = _calculateActualReward(s.amount, s.startTime, s.endTime);

        // Checks-Effects-Interactions pattern
        s.withdrawn = true;
        totalStaked -= s.amount;
        totalReservedRewards -= reward;
        uint256 principal = s.amount;
        s.amount = 0;
        s.expectedReward = 0;

        STAKE_TOKEN.safeTransfer(msg.sender, principal);
        REWARD_TOKEN.safeTransfer(msg.sender, reward);

        emit Withdrawn(msg.sender, principal, reward);
    }

    function _calculateExpectedReward(uint256 amount, uint256 duration) internal view returns (uint256) {
        return (amount * APY * duration) / (SECONDS_IN_YEAR * 10000);
    }

    function _calculateActualReward(uint256 amount, uint256 startTime, uint256 endTime) internal view returns (uint256) {
        uint256 stakedDuration = block.timestamp >= endTime ? LOCK_DURATION : (block.timestamp - startTime);
        return _calculateExpectedReward(amount, stakedDuration);
    }

    function pendingReward(address user) external view returns (uint256) {
        StakeInfo memory s = stakes[user];
        if (s.amount == 0) {
            return 0;
        }

        uint256 stakedDuration = block.timestamp >= s.endTime ?
            s.endTime - s.startTime :
            block.timestamp - s.startTime;

        return _calculateExpectedReward(s.amount, stakedDuration);
    }

    function recoverERC20(address token, uint256 amount) external onlyOwner {
        require(token != address(STAKE_TOKEN) && token != address(REWARD_TOKEN), "Cannot recover staking/reward tokens");
        IERC20(token).safeTransfer(owner(), amount);
    }

    function setRewardToken(address newRewardToken) external onlyOwner {
        require(newRewardToken != address(0), "Invalid token address");
        REWARD_TOKEN = IERC20(newRewardToken);
    }

    function getAPY() external view returns (uint256) {
        return APY;
    }

    function getLockDuration() external view returns (uint256) {
        return LOCK_DURATION;
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"rewardToken","type":"address"},{"internalType":"uint256","name":"lockDuration","type":"uint256"},{"internalType":"uint256","name":"apy","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardDeposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unlockTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalStaked","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"principal","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"APY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LOCK_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_APY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_TOKEN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SECONDS_IN_YEAR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAKE_TOKEN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositRewardTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAPY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLockDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRewardToken","type":"address"}],"name":"setRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakes","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"bool","name":"withdrawn","type":"bool"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"expectedReward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReservedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0x60e060405234801562000010575f80fd5b5060405162002143380380620021438339818101604052810190620000369190620003de565b335f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000aa575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000a191906200045e565b60405180910390fd5b620000bb816200028060201b60201c565b505f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036200012d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200012490620004d7565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036200019e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001959062000545565b60405180910390fd5b5f81118015620001b057506103e88111155b620001f2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001e990620005b3565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508260015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160a081815250508060c0818152505050505050620005d3565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620003708262000345565b9050919050565b620003828162000364565b81146200038d575f80fd5b50565b5f81519050620003a08162000377565b92915050565b5f819050919050565b620003ba81620003a6565b8114620003c5575f80fd5b50565b5f81519050620003d881620003af565b92915050565b5f805f8060808587031215620003f957620003f862000341565b5b5f620004088782880162000390565b94505060206200041b8782880162000390565b93505060406200042e87828801620003c8565b92505060606200044187828801620003c8565b91505092959194509250565b620004588162000364565b82525050565b5f602082019050620004735f8301846200044d565b92915050565b5f82825260208201905092915050565b7f496e76616c696420746f6b656e206164647265737300000000000000000000005f82015250565b5f620004bf60158362000479565b9150620004cc8262000489565b602082019050919050565b5f6020820190508181035f830152620004f081620004b1565b9050919050565b7f496e76616c69642072657761726420746f6b656e2061646472657373000000005f82015250565b5f6200052d601c8362000479565b91506200053a82620004f7565b602082019050919050565b5f6020820190508181035f8301526200055e816200051f565b9050919050565b7f41505920696e76616c69640000000000000000000000000000000000000000005f82015250565b5f6200059b600b8362000479565b9150620005a88262000565565b602082019050919050565b5f6020820190508181035f830152620005cc816200058d565b9050919050565b60805160a05160c051611aff620006445f395f8181610dc201528181610e0f015261125701525f818161077901528181610a8401528181610c0601528181610d7601528181610de901526110cb01525f81816104c60152818161068c015281816107c60152610cf60152611aff5ff3fe608060405234801561000f575f80fd5b506004361061012a575f3560e01c80638aee8127116100ab578063d2cbf7ad1161006f578063d2cbf7ad146102d6578063e239c400146102f4578063ef8bd30514610312578063f2fde38b14610330578063f40f0f521461034c5761012a565b80638aee8127146102445780638da5cb5b14610260578063969247b21461027e57806399248ea71461029c578063a694fc3a146102ba5761012a565b8063485d3834116100f2578063485d3834146101c45780635dcc9391146101e2578063715018a614610200578063817b1cd21461020a5780638980f11f146102285761012a565b806316934fc41461012e57806316c621e0146101625780631c39b6721461017e5780633ccfd60b1461019c5780633d92f4e2146101a6575b5f80fd5b6101486004803603810190610143919061139d565b61037c565b6040516101599594939291906113fa565b60405180910390f35b61017c60048036038101906101779190611475565b6103ba565b005b6101866104c4565b60405161019391906114fb565b60405180910390f35b6101a46104e8565b005b6101ae610771565b6040516101bb9190611514565b60405180910390f35b6101cc610777565b6040516101d99190611514565b60405180910390f35b6101ea61079b565b6040516101f79190611514565b60405180910390f35b6102086107a3565b005b6102126107b6565b60405161021f9190611514565b60405180910390f35b610242600480360381019061023d919061152d565b6107bc565b005b61025e6004803603810190610259919061139d565b6108e2565b005b61026861099b565b604051610275919061157a565b60405180910390f35b6102866109c2565b6040516102939190611514565b60405180910390f35b6102a46109c8565b6040516102b191906114fb565b60405180910390f35b6102d460048036038101906102cf9190611475565b6109ed565b005b6102de610dbf565b6040516102eb9190611514565b60405180910390f35b6102fc610de6565b6040516103099190611514565b60405180910390f35b61031a610e0d565b6040516103279190611514565b60405180910390f35b61034a6004803603810190610345919061139d565b610e31565b005b6103666004803603810190610361919061139d565b610eb5565b6040516103739190611514565b60405180910390f35b6004602052805f5260405f205f91509050805f015490806001015490806002015f9054906101000a900460ff16908060030154908060040154905085565b6103c2610fa5565b5f8111610404576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103fb906115ed565b60405180910390fd5b61045233308360015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661102c909392919063ffffffff16565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f7dbc080e4530c8bcf265eb5c9a35ae096ca1eb607b7e802b96581ef4c5e1a703826040516104b99190611514565b60405180910390a250565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f60045f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f815f01541161056d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056490611655565b60405180910390fd5b806002015f9054906101000a900460ff16156105be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b5906116bd565b60405180910390fd5b8060030154421015610605576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fc90611725565b60405180910390fd5b5f61061c825f0154836001015484600301546110ae565b90506001826002015f6101000a81548160ff021916908315150217905550815f015460025f82825461064e9190611770565b925050819055508060035f8282546106669190611770565b925050819055505f825f015490505f835f01819055505f83600401819055506106d033827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166111019092919063ffffffff16565b61071c338360015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166111019092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f92ccf450a286a957af52509bc1c9939d1a6a481783e142e41e2499f0bb66ebc682846040516107649291906117a3565b60405180910390a2505050565b6103e881565b7f000000000000000000000000000000000000000000000000000000000000000081565b6301e1338081565b6107ab610fa5565b6107b45f611180565b565b60025481565b6107c4610fa5565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415801561086d575060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b6108ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a39061183a565b60405180910390fd5b6108de6108b761099b565b828473ffffffffffffffffffffffffffffffffffffffff166111019092919063ffffffff16565b5050565b6108ea610fa5565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610958576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094f906118a2565b60405180910390fd5b8060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60035481565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f8111610a2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a26906115ed565b60405180910390fd5b5f8160045f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154610a7b91906118c0565b90505f610aa8827f0000000000000000000000000000000000000000000000000000000000000000611241565b90505f60045f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206004015490505f8183610afb9190611770565b905080600354610b0b91906118c0565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b65919061157a565b602060405180830381865afa158015610b80573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ba49190611907565b1015610be5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bdc9061197c565b60405180910390fd5b6040518060a001604052808581526020014281526020015f151581526020017f000000000000000000000000000000000000000000000000000000000000000042610c3091906118c0565b81526020018481525060045f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f820151815f0155602082015181600101556040820151816002015f6101000a81548160ff02191690831515021790555060608201518160030155608082015181600401559050508460025f828254610ccf91906118c0565b925050819055508060035f828254610ce791906118c0565b92505081905550610d3b3330877f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661102c909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fb4caaf29adda3eefee3ad552a8e85058589bf834c7466cae4ee58787f70589ed867f000000000000000000000000000000000000000000000000000000000000000042610da091906118c0565b87604051610db09392919061199a565b60405180910390a25050505050565b5f7f0000000000000000000000000000000000000000000000000000000000000000905090565b5f7f0000000000000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b610e39610fa5565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ea9575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610ea0919061157a565b60405180910390fd5b610eb281611180565b50565b5f8060045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206040518060a00160405290815f820154815260200160018201548152602001600282015f9054906101000a900460ff161515151581526020016003820154815260200160048201548152505090505f815f015103610f55575f915050610fa0565b5f8160600151421015610f7757816020015142610f729190611770565b610f8c565b81602001518260600151610f8b9190611770565b5b9050610f9b825f015182611241565b925050505b919050565b610fad61129d565b73ffffffffffffffffffffffffffffffffffffffff16610fcb61099b565b73ffffffffffffffffffffffffffffffffffffffff161461102a57610fee61129d565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611021919061157a565b60405180910390fd5b565b6110a8848573ffffffffffffffffffffffffffffffffffffffff166323b872dd868686604051602401611061939291906119cf565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506112a4565b50505050565b5f80824210156110c95783426110c49190611770565b6110eb565b7f00000000000000000000000000000000000000000000000000000000000000005b90506110f78582611241565b9150509392505050565b61117b838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401611134929190611a04565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506112a4565b505050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f6127106301e133806112549190611a2b565b827f0000000000000000000000000000000000000000000000000000000000000000856112819190611a2b565b61128b9190611a2b565b6112959190611a99565b905092915050565b5f33905090565b5f8060205f8451602086015f885af1806112c3576040513d5f823e3d81fd5b3d92505f519150505f82146112dc5760018114156112f7565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b1561133957836040517f5274afe7000000000000000000000000000000000000000000000000000000008152600401611330919061157a565b60405180910390fd5b50505050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61136c82611343565b9050919050565b61137c81611362565b8114611386575f80fd5b50565b5f8135905061139781611373565b92915050565b5f602082840312156113b2576113b161133f565b5b5f6113bf84828501611389565b91505092915050565b5f819050919050565b6113da816113c8565b82525050565b5f8115159050919050565b6113f4816113e0565b82525050565b5f60a08201905061140d5f8301886113d1565b61141a60208301876113d1565b61142760408301866113eb565b61143460608301856113d1565b61144160808301846113d1565b9695505050505050565b611454816113c8565b811461145e575f80fd5b50565b5f8135905061146f8161144b565b92915050565b5f6020828403121561148a5761148961133f565b5b5f61149784828501611461565b91505092915050565b5f819050919050565b5f6114c36114be6114b984611343565b6114a0565b611343565b9050919050565b5f6114d4826114a9565b9050919050565b5f6114e5826114ca565b9050919050565b6114f5816114db565b82525050565b5f60208201905061150e5f8301846114ec565b92915050565b5f6020820190506115275f8301846113d1565b92915050565b5f80604083850312156115435761154261133f565b5b5f61155085828601611389565b925050602061156185828601611461565b9150509250929050565b61157481611362565b82525050565b5f60208201905061158d5f83018461156b565b92915050565b5f82825260208201905092915050565b7f416d6f756e74206d757374206265203e203000000000000000000000000000005f82015250565b5f6115d7601283611593565b91506115e2826115a3565b602082019050919050565b5f6020820190508181035f830152611604816115cb565b9050919050565b7f4e6f20616374697665207374616b6500000000000000000000000000000000005f82015250565b5f61163f600f83611593565b915061164a8261160b565b602082019050919050565b5f6020820190508181035f83015261166c81611633565b9050919050565b7f416c72656164792077697468647261776e0000000000000000000000000000005f82015250565b5f6116a7601183611593565b91506116b282611673565b602082019050919050565b5f6020820190508181035f8301526116d48161169b565b9050919050565b7f5374616b65206c6f636b656400000000000000000000000000000000000000005f82015250565b5f61170f600c83611593565b915061171a826116db565b602082019050919050565b5f6020820190508181035f83015261173c81611703565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61177a826113c8565b9150611785836113c8565b925082820390508181111561179d5761179c611743565b5b92915050565b5f6040820190506117b65f8301856113d1565b6117c360208301846113d1565b9392505050565b7f43616e6e6f74207265636f766572207374616b696e672f72657761726420746f5f8201527f6b656e7300000000000000000000000000000000000000000000000000000000602082015250565b5f611824602483611593565b915061182f826117ca565b604082019050919050565b5f6020820190508181035f83015261185181611818565b9050919050565b7f496e76616c696420746f6b656e206164647265737300000000000000000000005f82015250565b5f61188c601583611593565b915061189782611858565b602082019050919050565b5f6020820190508181035f8301526118b981611880565b9050919050565b5f6118ca826113c8565b91506118d5836113c8565b92508282019050808211156118ed576118ec611743565b5b92915050565b5f815190506119018161144b565b92915050565b5f6020828403121561191c5761191b61133f565b5b5f611929848285016118f3565b91505092915050565b7f496e73756666696369656e742072657761726420706f6f6c00000000000000005f82015250565b5f611966601883611593565b915061197182611932565b602082019050919050565b5f6020820190508181035f8301526119938161195a565b9050919050565b5f6060820190506119ad5f8301866113d1565b6119ba60208301856113d1565b6119c760408301846113d1565b949350505050565b5f6060820190506119e25f83018661156b565b6119ef602083018561156b565b6119fc60408301846113d1565b949350505050565b5f604082019050611a175f83018561156b565b611a2460208301846113d1565b9392505050565b5f611a35826113c8565b9150611a40836113c8565b9250828202611a4e816113c8565b91508282048414831517611a6557611a64611743565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f611aa3826113c8565b9150611aae836113c8565b925082611abe57611abd611a6c565b5b82820490509291505056fea2646970667358221220a245048c0d095a989cf4888337c490e66e46347354e5932b97c3b0ff488e1d8364736f6c6343000814003300000000000000000000000064eea6154c645bac1a948a17ab9017e5ccc0720e00000000000000000000000064eea6154c645bac1a948a17ab9017e5ccc0720e0000000000000000000000000000000000000000000000000000000001e133800000000000000000000000000000000000000000000000000000000000000190

Deployed Bytecode

0x608060405234801561000f575f80fd5b506004361061012a575f3560e01c80638aee8127116100ab578063d2cbf7ad1161006f578063d2cbf7ad146102d6578063e239c400146102f4578063ef8bd30514610312578063f2fde38b14610330578063f40f0f521461034c5761012a565b80638aee8127146102445780638da5cb5b14610260578063969247b21461027e57806399248ea71461029c578063a694fc3a146102ba5761012a565b8063485d3834116100f2578063485d3834146101c45780635dcc9391146101e2578063715018a614610200578063817b1cd21461020a5780638980f11f146102285761012a565b806316934fc41461012e57806316c621e0146101625780631c39b6721461017e5780633ccfd60b1461019c5780633d92f4e2146101a6575b5f80fd5b6101486004803603810190610143919061139d565b61037c565b6040516101599594939291906113fa565b60405180910390f35b61017c60048036038101906101779190611475565b6103ba565b005b6101866104c4565b60405161019391906114fb565b60405180910390f35b6101a46104e8565b005b6101ae610771565b6040516101bb9190611514565b60405180910390f35b6101cc610777565b6040516101d99190611514565b60405180910390f35b6101ea61079b565b6040516101f79190611514565b60405180910390f35b6102086107a3565b005b6102126107b6565b60405161021f9190611514565b60405180910390f35b610242600480360381019061023d919061152d565b6107bc565b005b61025e6004803603810190610259919061139d565b6108e2565b005b61026861099b565b604051610275919061157a565b60405180910390f35b6102866109c2565b6040516102939190611514565b60405180910390f35b6102a46109c8565b6040516102b191906114fb565b60405180910390f35b6102d460048036038101906102cf9190611475565b6109ed565b005b6102de610dbf565b6040516102eb9190611514565b60405180910390f35b6102fc610de6565b6040516103099190611514565b60405180910390f35b61031a610e0d565b6040516103279190611514565b60405180910390f35b61034a6004803603810190610345919061139d565b610e31565b005b6103666004803603810190610361919061139d565b610eb5565b6040516103739190611514565b60405180910390f35b6004602052805f5260405f205f91509050805f015490806001015490806002015f9054906101000a900460ff16908060030154908060040154905085565b6103c2610fa5565b5f8111610404576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103fb906115ed565b60405180910390fd5b61045233308360015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661102c909392919063ffffffff16565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f7dbc080e4530c8bcf265eb5c9a35ae096ca1eb607b7e802b96581ef4c5e1a703826040516104b99190611514565b60405180910390a250565b7f00000000000000000000000064eea6154c645bac1a948a17ab9017e5ccc0720e81565b5f60045f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f815f01541161056d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056490611655565b60405180910390fd5b806002015f9054906101000a900460ff16156105be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b5906116bd565b60405180910390fd5b8060030154421015610605576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fc90611725565b60405180910390fd5b5f61061c825f0154836001015484600301546110ae565b90506001826002015f6101000a81548160ff021916908315150217905550815f015460025f82825461064e9190611770565b925050819055508060035f8282546106669190611770565b925050819055505f825f015490505f835f01819055505f83600401819055506106d033827f00000000000000000000000064eea6154c645bac1a948a17ab9017e5ccc0720e73ffffffffffffffffffffffffffffffffffffffff166111019092919063ffffffff16565b61071c338360015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166111019092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f92ccf450a286a957af52509bc1c9939d1a6a481783e142e41e2499f0bb66ebc682846040516107649291906117a3565b60405180910390a2505050565b6103e881565b7f0000000000000000000000000000000000000000000000000000000001e1338081565b6301e1338081565b6107ab610fa5565b6107b45f611180565b565b60025481565b6107c4610fa5565b7f00000000000000000000000064eea6154c645bac1a948a17ab9017e5ccc0720e73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415801561086d575060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b6108ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a39061183a565b60405180910390fd5b6108de6108b761099b565b828473ffffffffffffffffffffffffffffffffffffffff166111019092919063ffffffff16565b5050565b6108ea610fa5565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610958576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094f906118a2565b60405180910390fd5b8060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60035481565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f8111610a2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a26906115ed565b60405180910390fd5b5f8160045f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154610a7b91906118c0565b90505f610aa8827f0000000000000000000000000000000000000000000000000000000001e13380611241565b90505f60045f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206004015490505f8183610afb9190611770565b905080600354610b0b91906118c0565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b65919061157a565b602060405180830381865afa158015610b80573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ba49190611907565b1015610be5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bdc9061197c565b60405180910390fd5b6040518060a001604052808581526020014281526020015f151581526020017f0000000000000000000000000000000000000000000000000000000001e1338042610c3091906118c0565b81526020018481525060045f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f820151815f0155602082015181600101556040820151816002015f6101000a81548160ff02191690831515021790555060608201518160030155608082015181600401559050508460025f828254610ccf91906118c0565b925050819055508060035f828254610ce791906118c0565b92505081905550610d3b3330877f00000000000000000000000064eea6154c645bac1a948a17ab9017e5ccc0720e73ffffffffffffffffffffffffffffffffffffffff1661102c909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fb4caaf29adda3eefee3ad552a8e85058589bf834c7466cae4ee58787f70589ed867f0000000000000000000000000000000000000000000000000000000001e1338042610da091906118c0565b87604051610db09392919061199a565b60405180910390a25050505050565b5f7f0000000000000000000000000000000000000000000000000000000000000190905090565b5f7f0000000000000000000000000000000000000000000000000000000001e13380905090565b7f000000000000000000000000000000000000000000000000000000000000019081565b610e39610fa5565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ea9575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610ea0919061157a565b60405180910390fd5b610eb281611180565b50565b5f8060045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206040518060a00160405290815f820154815260200160018201548152602001600282015f9054906101000a900460ff161515151581526020016003820154815260200160048201548152505090505f815f015103610f55575f915050610fa0565b5f8160600151421015610f7757816020015142610f729190611770565b610f8c565b81602001518260600151610f8b9190611770565b5b9050610f9b825f015182611241565b925050505b919050565b610fad61129d565b73ffffffffffffffffffffffffffffffffffffffff16610fcb61099b565b73ffffffffffffffffffffffffffffffffffffffff161461102a57610fee61129d565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611021919061157a565b60405180910390fd5b565b6110a8848573ffffffffffffffffffffffffffffffffffffffff166323b872dd868686604051602401611061939291906119cf565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506112a4565b50505050565b5f80824210156110c95783426110c49190611770565b6110eb565b7f0000000000000000000000000000000000000000000000000000000001e133805b90506110f78582611241565b9150509392505050565b61117b838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401611134929190611a04565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506112a4565b505050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f6127106301e133806112549190611a2b565b827f0000000000000000000000000000000000000000000000000000000000000190856112819190611a2b565b61128b9190611a2b565b6112959190611a99565b905092915050565b5f33905090565b5f8060205f8451602086015f885af1806112c3576040513d5f823e3d81fd5b3d92505f519150505f82146112dc5760018114156112f7565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b1561133957836040517f5274afe7000000000000000000000000000000000000000000000000000000008152600401611330919061157a565b60405180910390fd5b50505050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61136c82611343565b9050919050565b61137c81611362565b8114611386575f80fd5b50565b5f8135905061139781611373565b92915050565b5f602082840312156113b2576113b161133f565b5b5f6113bf84828501611389565b91505092915050565b5f819050919050565b6113da816113c8565b82525050565b5f8115159050919050565b6113f4816113e0565b82525050565b5f60a08201905061140d5f8301886113d1565b61141a60208301876113d1565b61142760408301866113eb565b61143460608301856113d1565b61144160808301846113d1565b9695505050505050565b611454816113c8565b811461145e575f80fd5b50565b5f8135905061146f8161144b565b92915050565b5f6020828403121561148a5761148961133f565b5b5f61149784828501611461565b91505092915050565b5f819050919050565b5f6114c36114be6114b984611343565b6114a0565b611343565b9050919050565b5f6114d4826114a9565b9050919050565b5f6114e5826114ca565b9050919050565b6114f5816114db565b82525050565b5f60208201905061150e5f8301846114ec565b92915050565b5f6020820190506115275f8301846113d1565b92915050565b5f80604083850312156115435761154261133f565b5b5f61155085828601611389565b925050602061156185828601611461565b9150509250929050565b61157481611362565b82525050565b5f60208201905061158d5f83018461156b565b92915050565b5f82825260208201905092915050565b7f416d6f756e74206d757374206265203e203000000000000000000000000000005f82015250565b5f6115d7601283611593565b91506115e2826115a3565b602082019050919050565b5f6020820190508181035f830152611604816115cb565b9050919050565b7f4e6f20616374697665207374616b6500000000000000000000000000000000005f82015250565b5f61163f600f83611593565b915061164a8261160b565b602082019050919050565b5f6020820190508181035f83015261166c81611633565b9050919050565b7f416c72656164792077697468647261776e0000000000000000000000000000005f82015250565b5f6116a7601183611593565b91506116b282611673565b602082019050919050565b5f6020820190508181035f8301526116d48161169b565b9050919050565b7f5374616b65206c6f636b656400000000000000000000000000000000000000005f82015250565b5f61170f600c83611593565b915061171a826116db565b602082019050919050565b5f6020820190508181035f83015261173c81611703565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61177a826113c8565b9150611785836113c8565b925082820390508181111561179d5761179c611743565b5b92915050565b5f6040820190506117b65f8301856113d1565b6117c360208301846113d1565b9392505050565b7f43616e6e6f74207265636f766572207374616b696e672f72657761726420746f5f8201527f6b656e7300000000000000000000000000000000000000000000000000000000602082015250565b5f611824602483611593565b915061182f826117ca565b604082019050919050565b5f6020820190508181035f83015261185181611818565b9050919050565b7f496e76616c696420746f6b656e206164647265737300000000000000000000005f82015250565b5f61188c601583611593565b915061189782611858565b602082019050919050565b5f6020820190508181035f8301526118b981611880565b9050919050565b5f6118ca826113c8565b91506118d5836113c8565b92508282019050808211156118ed576118ec611743565b5b92915050565b5f815190506119018161144b565b92915050565b5f6020828403121561191c5761191b61133f565b5b5f611929848285016118f3565b91505092915050565b7f496e73756666696369656e742072657761726420706f6f6c00000000000000005f82015250565b5f611966601883611593565b915061197182611932565b602082019050919050565b5f6020820190508181035f8301526119938161195a565b9050919050565b5f6060820190506119ad5f8301866113d1565b6119ba60208301856113d1565b6119c760408301846113d1565b949350505050565b5f6060820190506119e25f83018661156b565b6119ef602083018561156b565b6119fc60408301846113d1565b949350505050565b5f604082019050611a175f83018561156b565b611a2460208301846113d1565b9392505050565b5f611a35826113c8565b9150611a40836113c8565b9250828202611a4e816113c8565b91508282048414831517611a6557611a64611743565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f611aa3826113c8565b9150611aae836113c8565b925082611abe57611abd611a6c565b5b82820490509291505056fea2646970667358221220a245048c0d095a989cf4888337c490e66e46347354e5932b97c3b0ff488e1d8364736f6c63430008140033

Deployed Bytecode Sourcemap

23148:5195:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23736:43;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;:::i;:::-;;;;;;;;24541:261;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;23230:35;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;26007:763;;;:::i;:::-;;23442:38;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;23305;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;23385:50;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;22244:103;;;:::i;:::-;;23489:26;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;27686:257;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;27951:196;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;21569:87;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;23522:35;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;23272:26;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;24810:1189;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;28155:79;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;28242:98;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;23350:28;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;22502:220;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;27273:405;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;23736:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;24541:261::-;21455:13;:11;:13::i;:::-;24633:1:::1;24624:6;:10;24616:41;;;;;;;;;;;;:::i;:::-;;;;;;;;;24668:64;24698:10;24718:4;24725:6;24668:12;;;;;;;;;;;:29;;;;:64;;;;;;:::i;:::-;24772:12;;;;;;;;;;;24748:46;;;24787:6;24748:46;;;;;;:::i;:::-;;;;;;;;24541:261:::0;:::o;23230:35::-;;;:::o;26007:763::-;26047:19;26069:6;:18;26076:10;26069:18;;;;;;;;;;;;;;;26047:40;;26117:1;26106;:8;;;:12;26098:40;;;;;;;;;;;;:::i;:::-;;;;;;;;;26158:1;:11;;;;;;;;;;;;26157:12;26149:42;;;;;;;;;;;;:::i;:::-;;;;;;;;;26229:1;:9;;;26210:15;:28;;26202:53;;;;;;;;;;;;:::i;:::-;;;;;;;;;26268:14;26285:56;26308:1;:8;;;26318:1;:11;;;26331:1;:9;;;26285:22;:56::i;:::-;26268:73;;26416:4;26402:1;:11;;;:18;;;;;;;;;;;;;;;;;;26446:1;:8;;;26431:11;;:23;;;;;;;:::i;:::-;;;;;;;;26489:6;26465:20;;:30;;;;;;;:::i;:::-;;;;;;;;26506:17;26526:1;:8;;;26506:28;;26556:1;26545;:8;;:12;;;;26587:1;26568;:16;;:20;;;;26601:47;26626:10;26638:9;26601:11;:24;;;;:47;;;;;:::i;:::-;26659:45;26685:10;26697:6;26659:12;;;;;;;;;;;:25;;;;:45;;;;;:::i;:::-;26732:10;26722:40;;;26744:9;26755:6;26722:40;;;;;;;:::i;:::-;;;;;;;;26036:734;;;26007:763::o;23442:38::-;23476:4;23442:38;:::o;23305:::-;;;:::o;23385:50::-;23427:8;23385:50;:::o;22244:103::-;21455:13;:11;:13::i;:::-;22309:30:::1;22336:1;22309:18;:30::i;:::-;22244:103::o:0;23489:26::-;;;;:::o;27686:257::-;21455:13;:11;:13::i;:::-;27794:11:::1;27777:29;;:5;:29;;;;:63;;;;;27827:12;;;;;;;;;;;27810:30;;:5;:30;;;;27777:63;27769:112;;;;;;;;;;;;:::i;:::-;;;;;;;;;27892:43;27919:7;:5;:7::i;:::-;27928:6;27899:5;27892:26;;;;:43;;;;;:::i;:::-;27686:257:::0;;:::o;27951:196::-;21455:13;:11;:13::i;:::-;28063:1:::1;28037:28;;:14;:28;;::::0;28029:62:::1;;;;;;;;;;;;:::i;:::-;;;;;;;;;28124:14;28102:12;;:37;;;;;;;;;;;;;;;;;;27951:196:::0;:::o;21569:87::-;21615:7;21642:6;;;;;;;;;;;21635:13;;21569:87;:::o;23522:35::-;;;;:::o;23272:26::-;;;;;;;;;;;;;:::o;24810:1189::-;24878:1;24869:6;:10;24861:41;;;;;;;;;;;;:::i;:::-;;;;;;;;;24915:17;24963:6;24935;:18;24942:10;24935:18;;;;;;;;;;;;;;;:25;;;:34;;;;:::i;:::-;24915:54;;24980:22;25005:50;25030:9;25041:13;25005:24;:50::i;:::-;24980:75;;25124:30;25157:6;:18;25164:10;25157:18;;;;;;;;;;;;;;;:33;;;25124:66;;25201:30;25251:22;25234:14;:39;;;;:::i;:::-;25201:72;;25372:22;25349:20;;:45;;;;:::i;:::-;25308:12;;;;;;;;;;;:22;;;25339:4;25308:37;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:86;;25286:160;;;;;;;;;;;;:::i;:::-;;;;;;;;;25510:226;;;;;;;;25543:9;25510:226;;;;25578:15;25510:226;;;;25719:5;25510:226;;;;;;25635:13;25617:15;:31;;;;:::i;:::-;25510:226;;;;25679:14;25510:226;;;25489:6;:18;25496:10;25489:18;;;;;;;;;;;;;;;:247;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25764:6;25749:11;;:21;;;;;;;:::i;:::-;;;;;;;;25805:22;25781:20;;:46;;;;;;;:::i;:::-;;;;;;;;25840:63;25869:10;25889:4;25896:6;25840:11;:28;;;;:63;;;;;;:::i;:::-;25928:10;25921:70;;;25940:6;25966:13;25948:15;:31;;;;:::i;:::-;25981:9;25921:70;;;;;;;;:::i;:::-;;;;;;;;24850:1149;;;;24810:1189;:::o;28155:79::-;28196:7;28223:3;28216:10;;28155:79;:::o;28242:98::-;28292:7;28319:13;28312:20;;28242:98;:::o;23350:28::-;;;:::o;22502:220::-;21455:13;:11;:13::i;:::-;22607:1:::1;22587:22;;:8;:22;;::::0;22583:93:::1;;22661:1;22633:31;;;;;;;;;;;:::i;:::-;;;;;;;;22583:93;22686:28;22705:8;22686:18;:28::i;:::-;22502:220:::0;:::o;27273:405::-;27333:7;27353:18;27374:6;:12;27381:4;27374:12;;;;;;;;;;;;;;;27353:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27413:1;27401;:8;;;:13;27397:54;;27438:1;27431:8;;;;;27397:54;27463:22;27507:1;:9;;;27488:15;:28;;:112;;27589:1;:11;;;27571:15;:29;;;;:::i;:::-;27488:112;;;27544:1;:11;;;27532:1;:9;;;:23;;;;:::i;:::-;27488:112;27463:137;;27620:50;27645:1;:8;;;27655:14;27620:24;:50::i;:::-;27613:57;;;;27273:405;;;;:::o;21734:166::-;21805:12;:10;:12::i;:::-;21794:23;;:7;:5;:7::i;:::-;:23;;;21790:103;;21868:12;:10;:12::i;:::-;21841:40;;;;;;;;;;;:::i;:::-;;;;;;;;21790:103;21734:166::o;10252:190::-;10353:81;10373:5;10395;:18;;;10416:4;10422:2;10426:5;10380:53;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10353:19;:81::i;:::-;10252:190;;;;:::o;26965:300::-;27072:7;27092:22;27136:7;27117:15;:26;;:74;;27181:9;27163:15;:27;;;;:::i;:::-;27117:74;;;27146:13;27117:74;27092:99;;27209:48;27234:6;27242:14;27209:24;:48::i;:::-;27202:55;;;26965:300;;;;;:::o;9845:162::-;9928:71;9948:5;9970;:14;;;9987:2;9991:5;9955:43;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9928:19;:71::i;:::-;9845:162;;;:::o;22882:191::-;22956:16;22975:6;;;;;;;;;;;22956:25;;23001:8;22992:6;;:17;;;;;;;;;;;;;;;;;;23056:8;23025:40;;23046:8;23025:40;;;;;;;;;;;;22945:128;22882:191;:::o;26778:179::-;26869:7;26943:5;23427:8;26925:23;;;;:::i;:::-;26912:8;26906:3;26897:6;:12;;;;:::i;:::-;:23;;;;:::i;:::-;26896:53;;;;:::i;:::-;26889:60;;26778:179;;;;:::o;19578:98::-;19631:7;19658:10;19651:17;;19578:98;:::o;17136:738::-;17217:18;17246:19;17386:4;17383:1;17376:4;17370:11;17363:4;17357;17353:15;17350:1;17343:5;17336;17331:60;17445:7;17435:180;;17490:4;17484:11;17536:16;17533:1;17528:3;17513:40;17583:16;17578:3;17571:29;17435:180;17643:16;17629:30;;17694:1;17688:8;17673:23;;17301:406;17737:1;17723:10;:15;:68;;17790:1;17775:11;:16;;17723:68;;;17771:1;17749:5;17741:26;;;:31;17723:68;17719:148;;;17848:5;17815:40;;;;;;;;;;;:::i;:::-;;;;;;;;17719:148;17206:668;;17136:738;;:::o;88:117:1:-;197:1;194;187:12;334:126;371:7;411:42;404:5;400:54;389:65;;334:126;;;:::o;466:96::-;503:7;532:24;550:5;532:24;:::i;:::-;521:35;;466:96;;;:::o;568:122::-;641:24;659:5;641:24;:::i;:::-;634:5;631:35;621:63;;680:1;677;670:12;621:63;568:122;:::o;696:139::-;742:5;780:6;767:20;758:29;;796:33;823:5;796:33;:::i;:::-;696:139;;;;:::o;841:329::-;900:6;949:2;937:9;928:7;924:23;920:32;917:119;;;955:79;;:::i;:::-;917:119;1075:1;1100:53;1145:7;1136:6;1125:9;1121:22;1100:53;:::i;:::-;1090:63;;1046:117;841:329;;;;:::o;1176:77::-;1213:7;1242:5;1231:16;;1176:77;;;:::o;1259:118::-;1346:24;1364:5;1346:24;:::i;:::-;1341:3;1334:37;1259:118;;:::o;1383:90::-;1417:7;1460:5;1453:13;1446:21;1435:32;;1383:90;;;:::o;1479:109::-;1560:21;1575:5;1560:21;:::i;:::-;1555:3;1548:34;1479:109;;:::o;1594:652::-;1793:4;1831:3;1820:9;1816:19;1808:27;;1845:71;1913:1;1902:9;1898:17;1889:6;1845:71;:::i;:::-;1926:72;1994:2;1983:9;1979:18;1970:6;1926:72;:::i;:::-;2008:66;2070:2;2059:9;2055:18;2046:6;2008:66;:::i;:::-;2084:72;2152:2;2141:9;2137:18;2128:6;2084:72;:::i;:::-;2166:73;2234:3;2223:9;2219:19;2210:6;2166:73;:::i;:::-;1594:652;;;;;;;;:::o;2252:122::-;2325:24;2343:5;2325:24;:::i;:::-;2318:5;2315:35;2305:63;;2364:1;2361;2354:12;2305:63;2252:122;:::o;2380:139::-;2426:5;2464:6;2451:20;2442:29;;2480:33;2507:5;2480:33;:::i;:::-;2380:139;;;;:::o;2525:329::-;2584:6;2633:2;2621:9;2612:7;2608:23;2604:32;2601:119;;;2639:79;;:::i;:::-;2601:119;2759:1;2784:53;2829:7;2820:6;2809:9;2805:22;2784:53;:::i;:::-;2774:63;;2730:117;2525:329;;;;:::o;2860:60::-;2888:3;2909:5;2902:12;;2860:60;;;:::o;2926:142::-;2976:9;3009:53;3027:34;3036:24;3054:5;3036:24;:::i;:::-;3027:34;:::i;:::-;3009:53;:::i;:::-;2996:66;;2926:142;;;:::o;3074:126::-;3124:9;3157:37;3188:5;3157:37;:::i;:::-;3144:50;;3074:126;;;:::o;3206:139::-;3269:9;3302:37;3333:5;3302:37;:::i;:::-;3289:50;;3206:139;;;:::o;3351:157::-;3451:50;3495:5;3451:50;:::i;:::-;3446:3;3439:63;3351:157;;:::o;3514:248::-;3620:4;3658:2;3647:9;3643:18;3635:26;;3671:84;3752:1;3741:9;3737:17;3728:6;3671:84;:::i;:::-;3514:248;;;;:::o;3768:222::-;3861:4;3899:2;3888:9;3884:18;3876:26;;3912:71;3980:1;3969:9;3965:17;3956:6;3912:71;:::i;:::-;3768:222;;;;:::o;3996:474::-;4064:6;4072;4121:2;4109:9;4100:7;4096:23;4092:32;4089:119;;;4127:79;;:::i;:::-;4089:119;4247:1;4272:53;4317:7;4308:6;4297:9;4293:22;4272:53;:::i;:::-;4262:63;;4218:117;4374:2;4400:53;4445:7;4436:6;4425:9;4421:22;4400:53;:::i;:::-;4390:63;;4345:118;3996:474;;;;;:::o;4476:118::-;4563:24;4581:5;4563:24;:::i;:::-;4558:3;4551:37;4476:118;;:::o;4600:222::-;4693:4;4731:2;4720:9;4716:18;4708:26;;4744:71;4812:1;4801:9;4797:17;4788:6;4744:71;:::i;:::-;4600:222;;;;:::o;4828:169::-;4912:11;4946:6;4941:3;4934:19;4986:4;4981:3;4977:14;4962:29;;4828:169;;;;:::o;5003:168::-;5143:20;5139:1;5131:6;5127:14;5120:44;5003:168;:::o;5177:366::-;5319:3;5340:67;5404:2;5399:3;5340:67;:::i;:::-;5333:74;;5416:93;5505:3;5416:93;:::i;:::-;5534:2;5529:3;5525:12;5518:19;;5177:366;;;:::o;5549:419::-;5715:4;5753:2;5742:9;5738:18;5730:26;;5802:9;5796:4;5792:20;5788:1;5777:9;5773:17;5766:47;5830:131;5956:4;5830:131;:::i;:::-;5822:139;;5549:419;;;:::o;5974:165::-;6114:17;6110:1;6102:6;6098:14;6091:41;5974:165;:::o;6145:366::-;6287:3;6308:67;6372:2;6367:3;6308:67;:::i;:::-;6301:74;;6384:93;6473:3;6384:93;:::i;:::-;6502:2;6497:3;6493:12;6486:19;;6145:366;;;:::o;6517:419::-;6683:4;6721:2;6710:9;6706:18;6698:26;;6770:9;6764:4;6760:20;6756:1;6745:9;6741:17;6734:47;6798:131;6924:4;6798:131;:::i;:::-;6790:139;;6517:419;;;:::o;6942:167::-;7082:19;7078:1;7070:6;7066:14;7059:43;6942:167;:::o;7115:366::-;7257:3;7278:67;7342:2;7337:3;7278:67;:::i;:::-;7271:74;;7354:93;7443:3;7354:93;:::i;:::-;7472:2;7467:3;7463:12;7456:19;;7115:366;;;:::o;7487:419::-;7653:4;7691:2;7680:9;7676:18;7668:26;;7740:9;7734:4;7730:20;7726:1;7715:9;7711:17;7704:47;7768:131;7894:4;7768:131;:::i;:::-;7760:139;;7487:419;;;:::o;7912:162::-;8052:14;8048:1;8040:6;8036:14;8029:38;7912:162;:::o;8080:366::-;8222:3;8243:67;8307:2;8302:3;8243:67;:::i;:::-;8236:74;;8319:93;8408:3;8319:93;:::i;:::-;8437:2;8432:3;8428:12;8421:19;;8080:366;;;:::o;8452:419::-;8618:4;8656:2;8645:9;8641:18;8633:26;;8705:9;8699:4;8695:20;8691:1;8680:9;8676:17;8669:47;8733:131;8859:4;8733:131;:::i;:::-;8725:139;;8452:419;;;:::o;8877:180::-;8925:77;8922:1;8915:88;9022:4;9019:1;9012:15;9046:4;9043:1;9036:15;9063:194;9103:4;9123:20;9141:1;9123:20;:::i;:::-;9118:25;;9157:20;9175:1;9157:20;:::i;:::-;9152:25;;9201:1;9198;9194:9;9186:17;;9225:1;9219:4;9216:11;9213:37;;;9230:18;;:::i;:::-;9213:37;9063:194;;;;:::o;9263:332::-;9384:4;9422:2;9411:9;9407:18;9399:26;;9435:71;9503:1;9492:9;9488:17;9479:6;9435:71;:::i;:::-;9516:72;9584:2;9573:9;9569:18;9560:6;9516:72;:::i;:::-;9263:332;;;;;:::o;9601:223::-;9741:34;9737:1;9729:6;9725:14;9718:58;9810:6;9805:2;9797:6;9793:15;9786:31;9601:223;:::o;9830:366::-;9972:3;9993:67;10057:2;10052:3;9993:67;:::i;:::-;9986:74;;10069:93;10158:3;10069:93;:::i;:::-;10187:2;10182:3;10178:12;10171:19;;9830:366;;;:::o;10202:419::-;10368:4;10406:2;10395:9;10391:18;10383:26;;10455:9;10449:4;10445:20;10441:1;10430:9;10426:17;10419:47;10483:131;10609:4;10483:131;:::i;:::-;10475:139;;10202:419;;;:::o;10627:171::-;10767:23;10763:1;10755:6;10751:14;10744:47;10627:171;:::o;10804:366::-;10946:3;10967:67;11031:2;11026:3;10967:67;:::i;:::-;10960:74;;11043:93;11132:3;11043:93;:::i;:::-;11161:2;11156:3;11152:12;11145:19;;10804:366;;;:::o;11176:419::-;11342:4;11380:2;11369:9;11365:18;11357:26;;11429:9;11423:4;11419:20;11415:1;11404:9;11400:17;11393:47;11457:131;11583:4;11457:131;:::i;:::-;11449:139;;11176:419;;;:::o;11601:191::-;11641:3;11660:20;11678:1;11660:20;:::i;:::-;11655:25;;11694:20;11712:1;11694:20;:::i;:::-;11689:25;;11737:1;11734;11730:9;11723:16;;11758:3;11755:1;11752:10;11749:36;;;11765:18;;:::i;:::-;11749:36;11601:191;;;;:::o;11798:143::-;11855:5;11886:6;11880:13;11871:22;;11902:33;11929:5;11902:33;:::i;:::-;11798:143;;;;:::o;11947:351::-;12017:6;12066:2;12054:9;12045:7;12041:23;12037:32;12034:119;;;12072:79;;:::i;:::-;12034:119;12192:1;12217:64;12273:7;12264:6;12253:9;12249:22;12217:64;:::i;:::-;12207:74;;12163:128;11947:351;;;;:::o;12304:174::-;12444:26;12440:1;12432:6;12428:14;12421:50;12304:174;:::o;12484:366::-;12626:3;12647:67;12711:2;12706:3;12647:67;:::i;:::-;12640:74;;12723:93;12812:3;12723:93;:::i;:::-;12841:2;12836:3;12832:12;12825:19;;12484:366;;;:::o;12856:419::-;13022:4;13060:2;13049:9;13045:18;13037:26;;13109:9;13103:4;13099:20;13095:1;13084:9;13080:17;13073:47;13137:131;13263:4;13137:131;:::i;:::-;13129:139;;12856:419;;;:::o;13281:442::-;13430:4;13468:2;13457:9;13453:18;13445:26;;13481:71;13549:1;13538:9;13534:17;13525:6;13481:71;:::i;:::-;13562:72;13630:2;13619:9;13615:18;13606:6;13562:72;:::i;:::-;13644;13712:2;13701:9;13697:18;13688:6;13644:72;:::i;:::-;13281:442;;;;;;:::o;13729:::-;13878:4;13916:2;13905:9;13901:18;13893:26;;13929:71;13997:1;13986:9;13982:17;13973:6;13929:71;:::i;:::-;14010:72;14078:2;14067:9;14063:18;14054:6;14010:72;:::i;:::-;14092;14160:2;14149:9;14145:18;14136:6;14092:72;:::i;:::-;13729:442;;;;;;:::o;14177:332::-;14298:4;14336:2;14325:9;14321:18;14313:26;;14349:71;14417:1;14406:9;14402:17;14393:6;14349:71;:::i;:::-;14430:72;14498:2;14487:9;14483:18;14474:6;14430:72;:::i;:::-;14177:332;;;;;:::o;14515:410::-;14555:7;14578:20;14596:1;14578:20;:::i;:::-;14573:25;;14612:20;14630:1;14612:20;:::i;:::-;14607:25;;14667:1;14664;14660:9;14689:30;14707:11;14689:30;:::i;:::-;14678:41;;14868:1;14859:7;14855:15;14852:1;14849:22;14829:1;14822:9;14802:83;14779:139;;14898:18;;:::i;:::-;14779:139;14563:362;14515:410;;;;:::o;14931:180::-;14979:77;14976:1;14969:88;15076:4;15073:1;15066:15;15100:4;15097:1;15090:15;15117:185;15157:1;15174:20;15192:1;15174:20;:::i;:::-;15169:25;;15208:20;15226:1;15208:20;:::i;:::-;15203:25;;15247:1;15237:35;;15252:18;;:::i;:::-;15237:35;15294:1;15291;15287:9;15282:14;;15117:185;;;;:::o

Swarm Source

ipfs://a245048c0d095a989cf4888337c490e66e46347354e5932b97c3b0ff488e1d83

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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