ETH Price: $3,275.48 (-3.96%)
Gas: 14 Gwei

Contract

0x84a3aaFa3a8fA48FA7Fc8AC720EbDce0E73510A3
 
Transaction Hash
Method
Block
From
To
Value
Claim Reward202252622024-07-03 10:03:2310 hrs ago1720001003IN
0x84a3aaFa...0E73510A3
0 ETH0.000734485.58953429
Claim Reward202221302024-07-02 23:32:5920 hrs ago1719963179IN
0x84a3aaFa...0E73510A3
0 ETH0.000642054.6137911
Claim Reward202221092024-07-02 23:28:4720 hrs ago1719962927IN
0x84a3aaFa...0E73510A3
0 ETH0.000286782.06078095
Claim Reward202220862024-07-02 23:24:1120 hrs ago1719962651IN
0x84a3aaFa...0E73510A3
0 ETH0.00058344.60489335
Claim Reward202210362024-07-02 19:52:5924 hrs ago1719949979IN
0x84a3aaFa...0E73510A3
0 ETH0.000703185.05259144
Claim Reward202206062024-07-02 18:25:5925 hrs ago1719944759IN
0x84a3aaFa...0E73510A3
0 ETH0.000922827.02343588
Claim Reward202206012024-07-02 18:24:5925 hrs ago1719944699IN
0x84a3aaFa...0E73510A3
0 ETH0.000806376.36480503
Claim Reward202183132024-07-02 10:43:4733 hrs ago1719917027IN
0x84a3aaFa...0E73510A3
0 ETH0.000484513.96941006
Claim Reward202178762024-07-02 9:16:1135 hrs ago1719911771IN
0x84a3aaFa...0E73510A3
0 ETH0.000407393.21533487
Claim Reward202178402024-07-02 9:08:5935 hrs ago1719911339IN
0x84a3aaFa...0E73510A3
0 ETH0.000416553.16975017
Claim Reward202177042024-07-02 8:41:4735 hrs ago1719909707IN
0x84a3aaFa...0E73510A3
0 ETH0.000532773.82845161
Claim Reward202174942024-07-02 7:59:4736 hrs ago1719907187IN
0x84a3aaFa...0E73510A3
0 ETH0.000629444.52313771
Claim Reward202174352024-07-02 7:47:4736 hrs ago1719906467IN
0x84a3aaFa...0E73510A3
0 ETH0.000836076.0084819
Claim Reward202167402024-07-02 5:27:1138 hrs ago1719898031IN
0x84a3aaFa...0E73510A3
0 ETH0.00065274.69068495
Claim Reward202070272024-06-30 20:55:232 days ago1719780923IN
0x84a3aaFa...0E73510A3
0 ETH0.00082376.17648078
Claim Reward202070002024-06-30 20:49:592 days ago1719780599IN
0x84a3aaFa...0E73510A3
0 ETH0.000672945.30608404
Claim Reward202069862024-06-30 20:47:112 days ago1719780431IN
0x84a3aaFa...0E73510A3
0 ETH0.000761225.16036257
Claim Reward202026382024-06-30 6:13:473 days ago1719728027IN
0x84a3aaFa...0E73510A3
0 ETH0.000235921.69532882
Claim Reward202025942024-06-30 6:04:593 days ago1719727499IN
0x84a3aaFa...0E73510A3
0 ETH0.000285311.93419675
Claim Reward202025872024-06-30 6:03:353 days ago1719727415IN
0x84a3aaFa...0E73510A3
0 ETH0.000261791.98690341
Claim Reward202025672024-06-30 5:59:353 days ago1719727175IN
0x84a3aaFa...0E73510A3
0 ETH0.000229261.80758506
Claim Reward202025562024-06-30 5:57:233 days ago1719727043IN
0x84a3aaFa...0E73510A3
0 ETH0.000219861.57996339
Claim Reward202007052024-06-29 23:44:353 days ago1719704675IN
0x84a3aaFa...0E73510A3
0 ETH0.000560683.80121857
Claim Reward202007012024-06-29 23:43:473 days ago1719704627IN
0x84a3aaFa...0E73510A3
0 ETH0.000470623.71044853
Claim Reward201970952024-06-29 11:38:114 days ago1719661091IN
0x84a3aaFa...0E73510A3
0 ETH0.000533914.05218513
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RewardPool

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 16 : RewardPool.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/access/Ownable2Step.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

/**
 * @title RewardPool
 * @dev Contract for managing ETH and ERC20 token rewards with deposit and withdraw functionality, including signature authorization. It allows users to deposit ETH or ERC20 tokens into the pool and claim their rewards based on external authorization.
 */
contract RewardPool is Ownable2Step, ReentrancyGuard, Pausable {
    using SafeERC20 for IERC20;
    using ECDSA for bytes32;

    address public authorizedSigner;
    address public taxRecipient;

    struct REWARD_INFO {
        uint256 amount;
        address tokenAddress;
        address ownerAddress;
        mapping(address => uint256) claimed;
    }

    mapping(uint256 => REWARD_INFO) public campaignRewards;
    mapping(bytes32 => bool) private usedSignatures;

    event RewardDeposited(
        address indexed depositor,
        uint256 indexed amount,
        uint256 indexed campaignId
    );
    event RewardClaimed(
        address indexed claimant,
        uint256 indexed amount,
        uint256 indexed campaignId
    );
    event WithdrawRewardPool(
        address indexed withdrawer,
        uint256 indexed amount,
        uint256 indexed campaignId
    );

    constructor() {
        taxRecipient = msg.sender;
    }

    fallback() external payable {
        revert();
    }

    receive() external payable {
        revert();
    }

    function depositReward(
        address tokenAddress,
        uint256 campaignId,
        uint256 campaignAmount,
        uint256 feeAmount,
        bytes calldata signature
    ) external nonReentrant whenNotPaused {
        _depositReward(
            tokenAddress,
            campaignId,
            campaignAmount,
            feeAmount,
            signature
        );
    }

    function _depositReward(
        address tokenAddress,
        uint256 campaignId,
        uint256 campaignAmount,
        uint256 feeAmount,
        bytes memory signature
    ) private {
        bytes32 messageHash = keccak256(
            abi.encodePacked(
                tokenAddress,
                msg.sender,
                campaignId,
                campaignAmount,
                feeAmount,
                address(this)
            )
        );
        bytes32 ethSignedMessageHash = messageHash.toEthSignedMessageHash();
        require(
            !usedSignatures[ethSignedMessageHash],
            "Signature already used"
        );
        usedSignatures[ethSignedMessageHash] = true;
        require(
            SignatureChecker.isValidSignatureNow(
                authorizedSigner,
                ethSignedMessageHash,
                signature
            ),
            "Invalid signature"
        );
        require(
            campaignRewards[campaignId].tokenAddress == address(0),
            "Campaign already exists"
        );

        uint256 balanceBefore = IERC20(tokenAddress).balanceOf(address(this));
        IERC20(tokenAddress).safeTransferFrom(
            msg.sender,
            taxRecipient,
            feeAmount
        );
        IERC20(tokenAddress).safeTransferFrom(
            msg.sender,
            address(this),
            campaignAmount
        );
        uint256 balanceAfter = IERC20(tokenAddress).balanceOf(address(this));
        uint256 actualAmountDeposited = balanceAfter - balanceBefore;
        require(
            actualAmountDeposited == campaignAmount,
            "Actual deposit does not match expected"
        );

        REWARD_INFO storage info = campaignRewards[campaignId];
        info.amount = campaignAmount;
        info.tokenAddress = tokenAddress;
        info.ownerAddress = msg.sender;

        emit RewardDeposited(msg.sender, campaignAmount, campaignId);
    }

    function claimReward(
        uint256 campaignId,
        uint256 amount,
        bytes calldata signature
    ) external nonReentrant whenNotPaused {
        _claimReward(campaignId, amount, signature);
    }

    function _claimReward(
        uint256 campaignId,
        uint256 amount,
        bytes memory signature
    ) private {
        bytes32 messageHash = keccak256(
            abi.encodePacked(msg.sender, campaignId, amount, address(this))
        );
        bytes32 ethSignedMessageHash = messageHash.toEthSignedMessageHash();
        require(
            !usedSignatures[ethSignedMessageHash],
            "Signature already used"
        );
        usedSignatures[ethSignedMessageHash] = true;
        require(
            SignatureChecker.isValidSignatureNow(
                authorizedSigner,
                ethSignedMessageHash,
                signature
            ),
            "Invalid signature"
        );

        REWARD_INFO storage info = campaignRewards[campaignId];
        require(amount <= info.amount, "Not enough reward in the pool");
        require(info.claimed[msg.sender] == 0, "Already claimed");
        require(
            info.claimed[msg.sender] + amount <= info.amount,
            "Claim amount exceeds allowed balance"
        );

        info.claimed[msg.sender] += amount;
        info.amount -= amount;

        uint256 balanceBefore = IERC20(info.tokenAddress).balanceOf(msg.sender);

        IERC20(info.tokenAddress).safeTransfer(msg.sender, amount);

        uint256 balanceAfter = IERC20(info.tokenAddress).balanceOf(msg.sender);
        uint256 actualAmountTransferred = balanceAfter - balanceBefore;

        require(
            actualAmountTransferred == amount,
            "Actual transfer does not match expected"
        );

        emit RewardClaimed(msg.sender, amount, campaignId);
    }

    function withdrawRewardPool(
        uint256 campaignId,
        uint256 amount,
        bytes calldata signature
    ) external nonReentrant whenNotPaused {
        _withdrawRewardPool(campaignId, amount, signature);
    }

    function _withdrawRewardPool(
        uint256 campaignId,
        uint256 amount,
        bytes memory signature
    ) private {
        bytes32 messageHash = keccak256(
            abi.encodePacked(msg.sender, campaignId, amount, address(this))
        );
        bytes32 ethSignedMessageHash = messageHash.toEthSignedMessageHash();
        require(
            !usedSignatures[ethSignedMessageHash],
            "Signature already used"
        );
        usedSignatures[ethSignedMessageHash] = true;
        require(
            SignatureChecker.isValidSignatureNow(
                authorizedSigner,
                ethSignedMessageHash,
                signature
            ),
            "Invalid signature"
        );

        REWARD_INFO storage info = campaignRewards[campaignId];
        require(amount <= info.amount, "Not enough reward in the pool");
        require(
            msg.sender == info.ownerAddress,
            "Only campaign creator allowed"
        );

        info.amount -= amount;
        IERC20(info.tokenAddress).safeTransfer(msg.sender, amount);

        emit WithdrawRewardPool(msg.sender, amount, campaignId);
    }

    function getClaimedAmount(
        uint256 campaignId,
        address claimant
    ) public view returns (uint256) {
        return campaignRewards[campaignId].claimed[claimant];
    }

    function setTaxRecipient(address newTaxRecipient) external onlyOwner {
        require(
            newTaxRecipient != address(0),
            "Invalid address: cannot be the zero address"
        );
        taxRecipient = newTaxRecipient;
    }

    function setAuthorizedSigner(address _signer) external onlyOwner {
        require(_signer != address(0), "Invalid signer address");
        authorizedSigner = _signer;
    }

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

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

File 2 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 3 of 16 : Ownable2Step.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.0;

import "./Ownable.sol";

/**
 * @dev Contract module which provides access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

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

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

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() public virtual {
        address sender = _msgSender();
        require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner");
        _transferOwnership(sender);
    }
}

File 4 of 16 : IERC1271.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC1271 standard signature validation method for
 * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
 *
 * _Available since v4.1._
 */
interface IERC1271 {
    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param hash      Hash of the data to be signed
     * @param signature Signature byte array associated with _data
     */
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}

File 5 of 16 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    bool private _paused;

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

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

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

File 6 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _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 Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 7 of 16 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/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.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @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].
     *
     * CAUTION: See Security Considerations above.
     */
    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 8 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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 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 9 of 16 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.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 SafeERC20 {
    using Address for address;

    /**
     * @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.encodeWithSelector(token.transfer.selector, 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.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

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

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @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.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

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

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit 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(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation 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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 10 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/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 Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(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 11 of 16 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

File 12 of 16 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32")
            mstore(0x1c, hash)
            message := keccak256(0x00, 0x3c)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}

File 13 of 16 : SignatureChecker.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/SignatureChecker.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";
import "../../interfaces/IERC1271.sol";

/**
 * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA
 * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like
 * Argent and Gnosis Safe.
 *
 * _Available since v4.1._
 */
library SignatureChecker {
    /**
     * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the
     * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`.
     *
     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
     * change through time. It could return true at block N and false at block N+1 (or the opposite).
     */
    function isValidSignatureNow(address signer, bytes32 hash, bytes memory signature) internal view returns (bool) {
        (address recovered, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature);
        return
            (error == ECDSA.RecoverError.NoError && recovered == signer) ||
            isValidERC1271SignatureNow(signer, hash, signature);
    }

    /**
     * @dev Checks if a signature is valid for a given signer and data hash. The signature is validated
     * against the signer smart contract using ERC1271.
     *
     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
     * change through time. It could return true at block N and false at block N+1 (or the opposite).
     */
    function isValidERC1271SignatureNow(
        address signer,
        bytes32 hash,
        bytes memory signature
    ) internal view returns (bool) {
        (bool success, bytes memory result) = signer.staticcall(
            abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature)
        );
        return (success &&
            result.length >= 32 &&
            abi.decode(result, (bytes32)) == bytes32(IERC1271.isValidSignature.selector));
    }
}

File 14 of 16 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

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

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

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

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

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 15 of 16 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 16 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimant","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"campaignId","type":"uint256"}],"name":"RewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"depositor","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"campaignId","type":"uint256"}],"name":"RewardDeposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"withdrawer","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"campaignId","type":"uint256"}],"name":"WithdrawRewardPool","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"authorizedSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"campaignRewards","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"ownerAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"campaignId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"campaignId","type":"uint256"},{"internalType":"uint256","name":"campaignAmount","type":"uint256"},{"internalType":"uint256","name":"feeAmount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"depositReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"campaignId","type":"uint256"},{"internalType":"address","name":"claimant","type":"address"}],"name":"getClaimedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setAuthorizedSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTaxRecipient","type":"address"}],"name":"setTaxRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"taxRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"campaignId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"withdrawRewardPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5062000032620000266200009c60201b60201c565b620000a460201b60201c565b60016002819055506000600360006101000a81548160ff02191690831515021790555033600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001a1565b600033905090565b600160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055620000da81620000dd60201b60201c565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61323b80620001b16000396000f3fe6080604052600436106101025760003560e01c80638456cb5911610095578063b9e814d911610064578063b9e814d9146102cf578063c771909c1461030e578063d279b0ca14610339578063e30c397814610362578063f2fde38b1461038d5761010c565b80638456cb591461023b5780638da5cb5b146102525780639ed9b4771461027d578063a836e416146102a65761010c565b8063737ea06e116100d1578063737ea06e146101a757806376618f27146101d257806378e3079e146101fb57806379ba5097146102245761010c565b80633f4ba83a146101115780634867b6db146101285780635c975abb14610165578063715018a6146101905761010c565b3661010c57600080fd5b600080fd5b34801561011d57600080fd5b506101266103b6565b005b34801561013457600080fd5b5061014f600480360381019061014a91906120e4565b6103c8565b60405161015c9190612133565b60405180910390f35b34801561017157600080fd5b5061017a610426565b6040516101879190612169565b60405180910390f35b34801561019c57600080fd5b506101a561043d565b005b3480156101b357600080fd5b506101bc610451565b6040516101c99190612193565b60405180910390f35b3480156101de57600080fd5b506101f960048036038101906101f49190612213565b610477565b005b34801561020757600080fd5b50610222600480360381019061021d9190612287565b6104e4565b005b34801561023057600080fd5b5061023961059f565b005b34801561024757600080fd5b5061025061062c565b005b34801561025e57600080fd5b5061026761063e565b6040516102749190612193565b60405180910390f35b34801561028957600080fd5b506102a4600480360381019061029f91906122b4565b610667565b005b3480156102b257600080fd5b506102cd60048036038101906102c89190612213565b6106d8565b005b3480156102db57600080fd5b506102f660048036038101906102f1919061234e565b610745565b6040516103059392919061237b565b60405180910390f35b34801561031a57600080fd5b506103236107af565b6040516103309190612193565b60405180910390f35b34801561034557600080fd5b50610360600480360381019061035b9190612287565b6107d5565b005b34801561036e57600080fd5b50610377610890565b6040516103849190612193565b60405180910390f35b34801561039957600080fd5b506103b460048036038101906103af9190612287565b6108ba565b005b6103be610967565b6103c66109e5565b565b60006005600084815260200190815260200160002060030160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000600360009054906101000a900460ff16905090565b610445610967565b61044f6000610a48565b565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61047f610a79565b610487610ac6565b6104d6848484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610b10565b6104de611064565b50505050565b6104ec610967565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361055b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055290612435565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006105a961106e565b90508073ffffffffffffffffffffffffffffffffffffffff166105ca610890565b73ffffffffffffffffffffffffffffffffffffffff1614610620576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610617906124c7565b60405180910390fd5b61062981610a48565b50565b610634610967565b61063c611076565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61066f610a79565b610677610ac6565b6106c88686868686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506110d9565b6106d0611064565b505050505050565b6106e0610a79565b6106e8610ac6565b610737848484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061157b565b61073f611064565b50505050565b60056020528060005260406000206000915090508060000154908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905083565b600360019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6107dd610967565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361084c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084390612533565b60405180910390fd5b80600360016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6108c2610967565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1661092261063e565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b61096f61106e565b73ffffffffffffffffffffffffffffffffffffffff1661098d61063e565b73ffffffffffffffffffffffffffffffffffffffff16146109e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109da9061259f565b60405180910390fd5b565b6109ed611859565b6000600360006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610a3161106e565b604051610a3e9190612193565b60405180910390a1565b600160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055610a76816118a2565b50565b6002805403610abd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab49061260b565b60405180910390fd5b60028081905550565b610ace610426565b15610b0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0590612677565b60405180910390fd5b565b600033848430604051602001610b299493929190612700565b6040516020818303038152906040528051906020012090506000610b4c82611966565b90506006600082815260200190815260200160002060009054906101000a900460ff1615610baf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba69061279a565b60405180910390fd5b60016006600083815260200190815260200160002060006101000a81548160ff021916908315150217905550610c08600360019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828561199c565b610c47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3e90612806565b60405180910390fd5b60006005600087815260200190815260200160002090508060000154851115610ca5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9c90612872565b60405180910390fd5b60008160030160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414610d29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d20906128de565b60405180910390fd5b8060000154858260030160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610d7b919061292d565b1115610dbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db3906129d3565b60405180910390fd5b848160030160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e0d919061292d565b9250508190555084816000016000828254610e2891906129f3565b9250508190555060008160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610e8e9190612193565b602060405180830381865afa158015610eab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecf9190612a3c565b9050610f2033878460010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611a2b9092919063ffffffff16565b60008260010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610f7f9190612193565b602060405180830381865afa158015610f9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc09190612a3c565b905060008282610fd091906129f3565b9050878114611014576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100b90612adb565b60405180910390fd5b88883373ffffffffffffffffffffffffffffffffffffffff167ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e273174360405160405180910390a4505050505050505050565b6001600281905550565b600033905090565b61107e610ac6565b6001600360006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110c261106e565b6040516110cf9190612193565b60405180910390a1565b60008533868686306040516020016110f696959493929190612afb565b604051602081830303815290604052805190602001209050600061111982611966565b90506006600082815260200190815260200160002060009054906101000a900460ff161561117c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111739061279a565b60405180910390fd5b60016006600083815260200190815260200160002060006101000a81548160ff0219169083151502179055506111d5600360019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828561199c565b611214576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120b90612806565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166005600088815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146112b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b090612bb7565b60405180910390fd5b60008773ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016112f49190612193565b602060405180830381865afa158015611311573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113359190612a3c565b905061138633600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16878b73ffffffffffffffffffffffffffffffffffffffff16611ab1909392919063ffffffff16565b6113b33330888b73ffffffffffffffffffffffffffffffffffffffff16611ab1909392919063ffffffff16565b60008873ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016113ee9190612193565b602060405180830381865afa15801561140b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142f9190612a3c565b90506000828261143f91906129f3565b9050878114611483576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147a90612c49565b60405180910390fd5b6000600560008b815260200190815260200160002090508881600001819055508a8160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550338160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555089893373ffffffffffffffffffffffffffffffffffffffff167f630e4c9c62b2386aa5f29def4bdcf3208d4a77aa359ce0414aaddde09ba039a960405160405180910390a45050505050505050505050565b6000338484306040516020016115949493929190612700565b60405160208183030381529060405280519060200120905060006115b782611966565b90506006600082815260200190815260200160002060009054906101000a900460ff161561161a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116119061279a565b60405180910390fd5b60016006600083815260200190815260200160002060006101000a81548160ff021916908315150217905550611673600360019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828561199c565b6116b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a990612806565b60405180910390fd5b60006005600087815260200190815260200160002090508060000154851115611710576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170790612872565b60405180910390fd5b8060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146117a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179990612cb5565b60405180910390fd5b848160000160008282546117b691906129f3565b9250508190555061180c33868360010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611a2b9092919063ffffffff16565b85853373ffffffffffffffffffffffffffffffffffffffff167ff9c686405e11f813bc6e030514fc82d1d3c11082146248e16c5c70b31440d61260405160405180910390a4505050505050565b611861610426565b6118a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189790612d21565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60007f19457468657265756d205369676e6564204d6573736167653a0a33320000000060005281601c52603c6000209050919050565b60008060006119ab8585611b3a565b91509150600060048111156119c3576119c2612d41565b5b8160048111156119d6576119d5612d41565b5b148015611a0e57508573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b80611a205750611a1f868686611b8b565b5b925050509392505050565b611aac8363a9059cbb60e01b8484604051602401611a4a929190612d70565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611ccf565b505050565b611b34846323b872dd60e01b858585604051602401611ad293929190612d99565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611ccf565b50505050565b6000806041835103611b7b5760008060006020860151925060408601519150606086015160001a9050611b6f87828585611d97565b94509450505050611b84565b60006002915091505b9250929050565b60008060008573ffffffffffffffffffffffffffffffffffffffff16631626ba7e60e01b8686604051602401611bc2929190612e79565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051611c2c9190612ee5565b600060405180830381855afa9150503d8060008114611c67576040519150601f19603f3d011682016040523d82523d6000602084013e611c6c565b606091505b5091509150818015611c8057506020815110155b8015611cc45750631626ba7e60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681806020019051810190611cc29190612f28565b145b925050509392505050565b6000611d31826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611e799092919063ffffffff16565b9050600081511480611d53575080806020019051810190611d529190612f81565b5b611d92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8990613020565b60405180910390fd5b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115611dd2576000600391509150611e70565b600060018787878760405160008152602001604052604051611df7949392919061305c565b6020604051602081039080840390855afa158015611e19573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e6757600060019250925050611e70565b80600092509250505b94509492505050565b6060611e888484600085611e91565b90509392505050565b606082471015611ed6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ecd90613113565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611eff9190612ee5565b60006040518083038185875af1925050503d8060008114611f3c576040519150601f19603f3d011682016040523d82523d6000602084013e611f41565b606091505b5091509150611f5287838387611f5e565b92505050949350505050565b60608315611fc0576000835103611fb857611f7885611fd3565b611fb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fae9061317f565b60405180910390fd5b5b829050611fcb565b611fca8383611ff6565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156120095781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203d91906131e3565b60405180910390fd5b600080fd5b600080fd5b6000819050919050565b61206381612050565b811461206e57600080fd5b50565b6000813590506120808161205a565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006120b182612086565b9050919050565b6120c1816120a6565b81146120cc57600080fd5b50565b6000813590506120de816120b8565b92915050565b600080604083850312156120fb576120fa612046565b5b600061210985828601612071565b925050602061211a858286016120cf565b9150509250929050565b61212d81612050565b82525050565b60006020820190506121486000830184612124565b92915050565b60008115159050919050565b6121638161214e565b82525050565b600060208201905061217e600083018461215a565b92915050565b61218d816120a6565b82525050565b60006020820190506121a86000830184612184565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126121d3576121d26121ae565b5b8235905067ffffffffffffffff8111156121f0576121ef6121b3565b5b60208301915083600182028301111561220c5761220b6121b8565b5b9250929050565b6000806000806060858703121561222d5761222c612046565b5b600061223b87828801612071565b945050602061224c87828801612071565b935050604085013567ffffffffffffffff81111561226d5761226c61204b565b5b612279878288016121bd565b925092505092959194509250565b60006020828403121561229d5761229c612046565b5b60006122ab848285016120cf565b91505092915050565b60008060008060008060a087890312156122d1576122d0612046565b5b60006122df89828a016120cf565b96505060206122f089828a01612071565b955050604061230189828a01612071565b945050606061231289828a01612071565b935050608087013567ffffffffffffffff8111156123335761233261204b565b5b61233f89828a016121bd565b92509250509295509295509295565b60006020828403121561236457612363612046565b5b600061237284828501612071565b91505092915050565b60006060820190506123906000830186612124565b61239d6020830185612184565b6123aa6040830184612184565b949350505050565b600082825260208201905092915050565b7f496e76616c696420616464726573733a2063616e6e6f7420626520746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b600061241f602b836123b2565b915061242a826123c3565b604082019050919050565b6000602082019050818103600083015261244e81612412565b9050919050565b7f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060008201527f6e6577206f776e65720000000000000000000000000000000000000000000000602082015250565b60006124b16029836123b2565b91506124bc82612455565b604082019050919050565b600060208201905081810360008301526124e0816124a4565b9050919050565b7f496e76616c6964207369676e6572206164647265737300000000000000000000600082015250565b600061251d6016836123b2565b9150612528826124e7565b602082019050919050565b6000602082019050818103600083015261254c81612510565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006125896020836123b2565b915061259482612553565b602082019050919050565b600060208201905081810360008301526125b88161257c565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006125f5601f836123b2565b9150612600826125bf565b602082019050919050565b60006020820190508181036000830152612624816125e8565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006126616010836123b2565b915061266c8261262b565b602082019050919050565b6000602082019050818103600083015261269081612654565b9050919050565b60008160601b9050919050565b60006126af82612697565b9050919050565b60006126c1826126a4565b9050919050565b6126d96126d4826120a6565b6126b6565b82525050565b6000819050919050565b6126fa6126f582612050565b6126df565b82525050565b600061270c82876126c8565b60148201915061271c82866126e9565b60208201915061272c82856126e9565b60208201915061273c82846126c8565b60148201915081905095945050505050565b7f5369676e617475726520616c7265616479207573656400000000000000000000600082015250565b60006127846016836123b2565b915061278f8261274e565b602082019050919050565b600060208201905081810360008301526127b381612777565b9050919050565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b60006127f06011836123b2565b91506127fb826127ba565b602082019050919050565b6000602082019050818103600083015261281f816127e3565b9050919050565b7f4e6f7420656e6f7567682072657761726420696e2074686520706f6f6c000000600082015250565b600061285c601d836123b2565b915061286782612826565b602082019050919050565b6000602082019050818103600083015261288b8161284f565b9050919050565b7f416c726561647920636c61696d65640000000000000000000000000000000000600082015250565b60006128c8600f836123b2565b91506128d382612892565b602082019050919050565b600060208201905081810360008301526128f7816128bb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061293882612050565b915061294383612050565b925082820190508082111561295b5761295a6128fe565b5b92915050565b7f436c61696d20616d6f756e74206578636565647320616c6c6f7765642062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b60006129bd6024836123b2565b91506129c882612961565b604082019050919050565b600060208201905081810360008301526129ec816129b0565b9050919050565b60006129fe82612050565b9150612a0983612050565b9250828203905081811115612a2157612a206128fe565b5b92915050565b600081519050612a368161205a565b92915050565b600060208284031215612a5257612a51612046565b5b6000612a6084828501612a27565b91505092915050565b7f41637475616c207472616e7366657220646f6573206e6f74206d61746368206560008201527f7870656374656400000000000000000000000000000000000000000000000000602082015250565b6000612ac56027836123b2565b9150612ad082612a69565b604082019050919050565b60006020820190508181036000830152612af481612ab8565b9050919050565b6000612b0782896126c8565b601482019150612b1782886126c8565b601482019150612b2782876126e9565b602082019150612b3782866126e9565b602082019150612b4782856126e9565b602082019150612b5782846126c8565b601482019150819050979650505050505050565b7f43616d706169676e20616c726561647920657869737473000000000000000000600082015250565b6000612ba16017836123b2565b9150612bac82612b6b565b602082019050919050565b60006020820190508181036000830152612bd081612b94565b9050919050565b7f41637475616c206465706f73697420646f6573206e6f74206d6174636820657860008201527f7065637465640000000000000000000000000000000000000000000000000000602082015250565b6000612c336026836123b2565b9150612c3e82612bd7565b604082019050919050565b60006020820190508181036000830152612c6281612c26565b9050919050565b7f4f6e6c792063616d706169676e2063726561746f7220616c6c6f776564000000600082015250565b6000612c9f601d836123b2565b9150612caa82612c69565b602082019050919050565b60006020820190508181036000830152612cce81612c92565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000612d0b6014836123b2565b9150612d1682612cd5565b602082019050919050565b60006020820190508181036000830152612d3a81612cfe565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000604082019050612d856000830185612184565b612d926020830184612124565b9392505050565b6000606082019050612dae6000830186612184565b612dbb6020830185612184565b612dc86040830184612124565b949350505050565b6000819050919050565b612de381612dd0565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612e23578082015181840152602081019050612e08565b60008484015250505050565b6000601f19601f8301169050919050565b6000612e4b82612de9565b612e558185612df4565b9350612e65818560208601612e05565b612e6e81612e2f565b840191505092915050565b6000604082019050612e8e6000830185612dda565b8181036020830152612ea08184612e40565b90509392505050565b600081905092915050565b6000612ebf82612de9565b612ec98185612ea9565b9350612ed9818560208601612e05565b80840191505092915050565b6000612ef18284612eb4565b915081905092915050565b612f0581612dd0565b8114612f1057600080fd5b50565b600081519050612f2281612efc565b92915050565b600060208284031215612f3e57612f3d612046565b5b6000612f4c84828501612f13565b91505092915050565b612f5e8161214e565b8114612f6957600080fd5b50565b600081519050612f7b81612f55565b92915050565b600060208284031215612f9757612f96612046565b5b6000612fa584828501612f6c565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061300a602a836123b2565b915061301582612fae565b604082019050919050565b6000602082019050818103600083015261303981612ffd565b9050919050565b600060ff82169050919050565b61305681613040565b82525050565b60006080820190506130716000830187612dda565b61307e602083018661304d565b61308b6040830185612dda565b6130986060830184612dda565b95945050505050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006130fd6026836123b2565b9150613108826130a1565b604082019050919050565b6000602082019050818103600083015261312c816130f0565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613169601d836123b2565b915061317482613133565b602082019050919050565b600060208201905081810360008301526131988161315c565b9050919050565b600081519050919050565b60006131b58261319f565b6131bf81856123b2565b93506131cf818560208601612e05565b6131d881612e2f565b840191505092915050565b600060208201905081810360008301526131fd81846131aa565b90509291505056fea2646970667358221220ec1380682f8e9b35cd31ce334a818a1771b5843882a808bad59cf7b36f17aca564736f6c63430008140033

Deployed Bytecode

0x6080604052600436106101025760003560e01c80638456cb5911610095578063b9e814d911610064578063b9e814d9146102cf578063c771909c1461030e578063d279b0ca14610339578063e30c397814610362578063f2fde38b1461038d5761010c565b80638456cb591461023b5780638da5cb5b146102525780639ed9b4771461027d578063a836e416146102a65761010c565b8063737ea06e116100d1578063737ea06e146101a757806376618f27146101d257806378e3079e146101fb57806379ba5097146102245761010c565b80633f4ba83a146101115780634867b6db146101285780635c975abb14610165578063715018a6146101905761010c565b3661010c57600080fd5b600080fd5b34801561011d57600080fd5b506101266103b6565b005b34801561013457600080fd5b5061014f600480360381019061014a91906120e4565b6103c8565b60405161015c9190612133565b60405180910390f35b34801561017157600080fd5b5061017a610426565b6040516101879190612169565b60405180910390f35b34801561019c57600080fd5b506101a561043d565b005b3480156101b357600080fd5b506101bc610451565b6040516101c99190612193565b60405180910390f35b3480156101de57600080fd5b506101f960048036038101906101f49190612213565b610477565b005b34801561020757600080fd5b50610222600480360381019061021d9190612287565b6104e4565b005b34801561023057600080fd5b5061023961059f565b005b34801561024757600080fd5b5061025061062c565b005b34801561025e57600080fd5b5061026761063e565b6040516102749190612193565b60405180910390f35b34801561028957600080fd5b506102a4600480360381019061029f91906122b4565b610667565b005b3480156102b257600080fd5b506102cd60048036038101906102c89190612213565b6106d8565b005b3480156102db57600080fd5b506102f660048036038101906102f1919061234e565b610745565b6040516103059392919061237b565b60405180910390f35b34801561031a57600080fd5b506103236107af565b6040516103309190612193565b60405180910390f35b34801561034557600080fd5b50610360600480360381019061035b9190612287565b6107d5565b005b34801561036e57600080fd5b50610377610890565b6040516103849190612193565b60405180910390f35b34801561039957600080fd5b506103b460048036038101906103af9190612287565b6108ba565b005b6103be610967565b6103c66109e5565b565b60006005600084815260200190815260200160002060030160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000600360009054906101000a900460ff16905090565b610445610967565b61044f6000610a48565b565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61047f610a79565b610487610ac6565b6104d6848484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610b10565b6104de611064565b50505050565b6104ec610967565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361055b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055290612435565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006105a961106e565b90508073ffffffffffffffffffffffffffffffffffffffff166105ca610890565b73ffffffffffffffffffffffffffffffffffffffff1614610620576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610617906124c7565b60405180910390fd5b61062981610a48565b50565b610634610967565b61063c611076565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61066f610a79565b610677610ac6565b6106c88686868686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506110d9565b6106d0611064565b505050505050565b6106e0610a79565b6106e8610ac6565b610737848484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061157b565b61073f611064565b50505050565b60056020528060005260406000206000915090508060000154908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905083565b600360019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6107dd610967565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361084c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084390612533565b60405180910390fd5b80600360016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6108c2610967565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1661092261063e565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b61096f61106e565b73ffffffffffffffffffffffffffffffffffffffff1661098d61063e565b73ffffffffffffffffffffffffffffffffffffffff16146109e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109da9061259f565b60405180910390fd5b565b6109ed611859565b6000600360006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610a3161106e565b604051610a3e9190612193565b60405180910390a1565b600160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055610a76816118a2565b50565b6002805403610abd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab49061260b565b60405180910390fd5b60028081905550565b610ace610426565b15610b0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0590612677565b60405180910390fd5b565b600033848430604051602001610b299493929190612700565b6040516020818303038152906040528051906020012090506000610b4c82611966565b90506006600082815260200190815260200160002060009054906101000a900460ff1615610baf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba69061279a565b60405180910390fd5b60016006600083815260200190815260200160002060006101000a81548160ff021916908315150217905550610c08600360019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828561199c565b610c47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3e90612806565b60405180910390fd5b60006005600087815260200190815260200160002090508060000154851115610ca5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9c90612872565b60405180910390fd5b60008160030160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414610d29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d20906128de565b60405180910390fd5b8060000154858260030160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610d7b919061292d565b1115610dbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db3906129d3565b60405180910390fd5b848160030160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e0d919061292d565b9250508190555084816000016000828254610e2891906129f3565b9250508190555060008160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610e8e9190612193565b602060405180830381865afa158015610eab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecf9190612a3c565b9050610f2033878460010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611a2b9092919063ffffffff16565b60008260010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610f7f9190612193565b602060405180830381865afa158015610f9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc09190612a3c565b905060008282610fd091906129f3565b9050878114611014576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100b90612adb565b60405180910390fd5b88883373ffffffffffffffffffffffffffffffffffffffff167ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e273174360405160405180910390a4505050505050505050565b6001600281905550565b600033905090565b61107e610ac6565b6001600360006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110c261106e565b6040516110cf9190612193565b60405180910390a1565b60008533868686306040516020016110f696959493929190612afb565b604051602081830303815290604052805190602001209050600061111982611966565b90506006600082815260200190815260200160002060009054906101000a900460ff161561117c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111739061279a565b60405180910390fd5b60016006600083815260200190815260200160002060006101000a81548160ff0219169083151502179055506111d5600360019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828561199c565b611214576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120b90612806565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166005600088815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146112b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b090612bb7565b60405180910390fd5b60008773ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016112f49190612193565b602060405180830381865afa158015611311573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113359190612a3c565b905061138633600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16878b73ffffffffffffffffffffffffffffffffffffffff16611ab1909392919063ffffffff16565b6113b33330888b73ffffffffffffffffffffffffffffffffffffffff16611ab1909392919063ffffffff16565b60008873ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016113ee9190612193565b602060405180830381865afa15801561140b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142f9190612a3c565b90506000828261143f91906129f3565b9050878114611483576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147a90612c49565b60405180910390fd5b6000600560008b815260200190815260200160002090508881600001819055508a8160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550338160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555089893373ffffffffffffffffffffffffffffffffffffffff167f630e4c9c62b2386aa5f29def4bdcf3208d4a77aa359ce0414aaddde09ba039a960405160405180910390a45050505050505050505050565b6000338484306040516020016115949493929190612700565b60405160208183030381529060405280519060200120905060006115b782611966565b90506006600082815260200190815260200160002060009054906101000a900460ff161561161a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116119061279a565b60405180910390fd5b60016006600083815260200190815260200160002060006101000a81548160ff021916908315150217905550611673600360019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828561199c565b6116b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a990612806565b60405180910390fd5b60006005600087815260200190815260200160002090508060000154851115611710576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170790612872565b60405180910390fd5b8060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146117a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179990612cb5565b60405180910390fd5b848160000160008282546117b691906129f3565b9250508190555061180c33868360010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611a2b9092919063ffffffff16565b85853373ffffffffffffffffffffffffffffffffffffffff167ff9c686405e11f813bc6e030514fc82d1d3c11082146248e16c5c70b31440d61260405160405180910390a4505050505050565b611861610426565b6118a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189790612d21565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60007f19457468657265756d205369676e6564204d6573736167653a0a33320000000060005281601c52603c6000209050919050565b60008060006119ab8585611b3a565b91509150600060048111156119c3576119c2612d41565b5b8160048111156119d6576119d5612d41565b5b148015611a0e57508573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b80611a205750611a1f868686611b8b565b5b925050509392505050565b611aac8363a9059cbb60e01b8484604051602401611a4a929190612d70565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611ccf565b505050565b611b34846323b872dd60e01b858585604051602401611ad293929190612d99565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611ccf565b50505050565b6000806041835103611b7b5760008060006020860151925060408601519150606086015160001a9050611b6f87828585611d97565b94509450505050611b84565b60006002915091505b9250929050565b60008060008573ffffffffffffffffffffffffffffffffffffffff16631626ba7e60e01b8686604051602401611bc2929190612e79565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051611c2c9190612ee5565b600060405180830381855afa9150503d8060008114611c67576040519150601f19603f3d011682016040523d82523d6000602084013e611c6c565b606091505b5091509150818015611c8057506020815110155b8015611cc45750631626ba7e60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681806020019051810190611cc29190612f28565b145b925050509392505050565b6000611d31826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611e799092919063ffffffff16565b9050600081511480611d53575080806020019051810190611d529190612f81565b5b611d92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8990613020565b60405180910390fd5b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115611dd2576000600391509150611e70565b600060018787878760405160008152602001604052604051611df7949392919061305c565b6020604051602081039080840390855afa158015611e19573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e6757600060019250925050611e70565b80600092509250505b94509492505050565b6060611e888484600085611e91565b90509392505050565b606082471015611ed6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ecd90613113565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611eff9190612ee5565b60006040518083038185875af1925050503d8060008114611f3c576040519150601f19603f3d011682016040523d82523d6000602084013e611f41565b606091505b5091509150611f5287838387611f5e565b92505050949350505050565b60608315611fc0576000835103611fb857611f7885611fd3565b611fb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fae9061317f565b60405180910390fd5b5b829050611fcb565b611fca8383611ff6565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156120095781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203d91906131e3565b60405180910390fd5b600080fd5b600080fd5b6000819050919050565b61206381612050565b811461206e57600080fd5b50565b6000813590506120808161205a565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006120b182612086565b9050919050565b6120c1816120a6565b81146120cc57600080fd5b50565b6000813590506120de816120b8565b92915050565b600080604083850312156120fb576120fa612046565b5b600061210985828601612071565b925050602061211a858286016120cf565b9150509250929050565b61212d81612050565b82525050565b60006020820190506121486000830184612124565b92915050565b60008115159050919050565b6121638161214e565b82525050565b600060208201905061217e600083018461215a565b92915050565b61218d816120a6565b82525050565b60006020820190506121a86000830184612184565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126121d3576121d26121ae565b5b8235905067ffffffffffffffff8111156121f0576121ef6121b3565b5b60208301915083600182028301111561220c5761220b6121b8565b5b9250929050565b6000806000806060858703121561222d5761222c612046565b5b600061223b87828801612071565b945050602061224c87828801612071565b935050604085013567ffffffffffffffff81111561226d5761226c61204b565b5b612279878288016121bd565b925092505092959194509250565b60006020828403121561229d5761229c612046565b5b60006122ab848285016120cf565b91505092915050565b60008060008060008060a087890312156122d1576122d0612046565b5b60006122df89828a016120cf565b96505060206122f089828a01612071565b955050604061230189828a01612071565b945050606061231289828a01612071565b935050608087013567ffffffffffffffff8111156123335761233261204b565b5b61233f89828a016121bd565b92509250509295509295509295565b60006020828403121561236457612363612046565b5b600061237284828501612071565b91505092915050565b60006060820190506123906000830186612124565b61239d6020830185612184565b6123aa6040830184612184565b949350505050565b600082825260208201905092915050565b7f496e76616c696420616464726573733a2063616e6e6f7420626520746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b600061241f602b836123b2565b915061242a826123c3565b604082019050919050565b6000602082019050818103600083015261244e81612412565b9050919050565b7f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060008201527f6e6577206f776e65720000000000000000000000000000000000000000000000602082015250565b60006124b16029836123b2565b91506124bc82612455565b604082019050919050565b600060208201905081810360008301526124e0816124a4565b9050919050565b7f496e76616c6964207369676e6572206164647265737300000000000000000000600082015250565b600061251d6016836123b2565b9150612528826124e7565b602082019050919050565b6000602082019050818103600083015261254c81612510565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006125896020836123b2565b915061259482612553565b602082019050919050565b600060208201905081810360008301526125b88161257c565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006125f5601f836123b2565b9150612600826125bf565b602082019050919050565b60006020820190508181036000830152612624816125e8565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006126616010836123b2565b915061266c8261262b565b602082019050919050565b6000602082019050818103600083015261269081612654565b9050919050565b60008160601b9050919050565b60006126af82612697565b9050919050565b60006126c1826126a4565b9050919050565b6126d96126d4826120a6565b6126b6565b82525050565b6000819050919050565b6126fa6126f582612050565b6126df565b82525050565b600061270c82876126c8565b60148201915061271c82866126e9565b60208201915061272c82856126e9565b60208201915061273c82846126c8565b60148201915081905095945050505050565b7f5369676e617475726520616c7265616479207573656400000000000000000000600082015250565b60006127846016836123b2565b915061278f8261274e565b602082019050919050565b600060208201905081810360008301526127b381612777565b9050919050565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b60006127f06011836123b2565b91506127fb826127ba565b602082019050919050565b6000602082019050818103600083015261281f816127e3565b9050919050565b7f4e6f7420656e6f7567682072657761726420696e2074686520706f6f6c000000600082015250565b600061285c601d836123b2565b915061286782612826565b602082019050919050565b6000602082019050818103600083015261288b8161284f565b9050919050565b7f416c726561647920636c61696d65640000000000000000000000000000000000600082015250565b60006128c8600f836123b2565b91506128d382612892565b602082019050919050565b600060208201905081810360008301526128f7816128bb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061293882612050565b915061294383612050565b925082820190508082111561295b5761295a6128fe565b5b92915050565b7f436c61696d20616d6f756e74206578636565647320616c6c6f7765642062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b60006129bd6024836123b2565b91506129c882612961565b604082019050919050565b600060208201905081810360008301526129ec816129b0565b9050919050565b60006129fe82612050565b9150612a0983612050565b9250828203905081811115612a2157612a206128fe565b5b92915050565b600081519050612a368161205a565b92915050565b600060208284031215612a5257612a51612046565b5b6000612a6084828501612a27565b91505092915050565b7f41637475616c207472616e7366657220646f6573206e6f74206d61746368206560008201527f7870656374656400000000000000000000000000000000000000000000000000602082015250565b6000612ac56027836123b2565b9150612ad082612a69565b604082019050919050565b60006020820190508181036000830152612af481612ab8565b9050919050565b6000612b0782896126c8565b601482019150612b1782886126c8565b601482019150612b2782876126e9565b602082019150612b3782866126e9565b602082019150612b4782856126e9565b602082019150612b5782846126c8565b601482019150819050979650505050505050565b7f43616d706169676e20616c726561647920657869737473000000000000000000600082015250565b6000612ba16017836123b2565b9150612bac82612b6b565b602082019050919050565b60006020820190508181036000830152612bd081612b94565b9050919050565b7f41637475616c206465706f73697420646f6573206e6f74206d6174636820657860008201527f7065637465640000000000000000000000000000000000000000000000000000602082015250565b6000612c336026836123b2565b9150612c3e82612bd7565b604082019050919050565b60006020820190508181036000830152612c6281612c26565b9050919050565b7f4f6e6c792063616d706169676e2063726561746f7220616c6c6f776564000000600082015250565b6000612c9f601d836123b2565b9150612caa82612c69565b602082019050919050565b60006020820190508181036000830152612cce81612c92565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000612d0b6014836123b2565b9150612d1682612cd5565b602082019050919050565b60006020820190508181036000830152612d3a81612cfe565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000604082019050612d856000830185612184565b612d926020830184612124565b9392505050565b6000606082019050612dae6000830186612184565b612dbb6020830185612184565b612dc86040830184612124565b949350505050565b6000819050919050565b612de381612dd0565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612e23578082015181840152602081019050612e08565b60008484015250505050565b6000601f19601f8301169050919050565b6000612e4b82612de9565b612e558185612df4565b9350612e65818560208601612e05565b612e6e81612e2f565b840191505092915050565b6000604082019050612e8e6000830185612dda565b8181036020830152612ea08184612e40565b90509392505050565b600081905092915050565b6000612ebf82612de9565b612ec98185612ea9565b9350612ed9818560208601612e05565b80840191505092915050565b6000612ef18284612eb4565b915081905092915050565b612f0581612dd0565b8114612f1057600080fd5b50565b600081519050612f2281612efc565b92915050565b600060208284031215612f3e57612f3d612046565b5b6000612f4c84828501612f13565b91505092915050565b612f5e8161214e565b8114612f6957600080fd5b50565b600081519050612f7b81612f55565b92915050565b600060208284031215612f9757612f96612046565b5b6000612fa584828501612f6c565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061300a602a836123b2565b915061301582612fae565b604082019050919050565b6000602082019050818103600083015261303981612ffd565b9050919050565b600060ff82169050919050565b61305681613040565b82525050565b60006080820190506130716000830187612dda565b61307e602083018661304d565b61308b6040830185612dda565b6130986060830184612dda565b95945050505050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006130fd6026836123b2565b9150613108826130a1565b604082019050919050565b6000602082019050818103600083015261312c816130f0565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613169601d836123b2565b915061317482613133565b602082019050919050565b600060208201905081810360008301526131988161315c565b9050919050565b600081519050919050565b60006131b58261319f565b6131bf81856123b2565b93506131cf818560208601612e05565b6131d881612e2f565b840191505092915050565b600060208201905081810360008301526131fd81846131aa565b90509291505056fea2646970667358221220ec1380682f8e9b35cd31ce334a818a1771b5843882a808bad59cf7b36f17aca564736f6c63430008140033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Chain Token Portfolio % Price Amount Value
ETH30.33%$0.001143983,159.2151$1,124.11
ETH24.15%$0.999599895.4564$895.1
ETH6.14%$0.00339267,033.1472$227.35
ETH5.68%$0.01035520,334.8539$210.56
ETH4.42%$0.222318737.2048$163.89
ETH3.45%$3,274.80.039$127.68
ETH3.40%$0.209421601.3023$125.93
ETH2.13%$4.4717.6761$79.01
MATIC15.70%$0.00638591,113.5959$581.72
MATIC1.06%$0.99851939.1975$39.14
BASE2.39%$0.54514162.6111$88.65
BASE0.69%$0.0081393,121.7784$25.41
BASE0.28%$0.14594971.0439$10.37
BASE0.18%$0.009831695.0214$6.83
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.