ETH Price: $3,526.79 (+0.36%)

Contract

0x57EbD2607Fc4fB6E9820476b54E077368b10a6F6
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Claim1214192072024-06-15 7:39:5110 mins ago1718437191IN
0x57EbD260...68b10a6F6
0 ETH0.000000090.00081756
Claim1214177392024-06-15 6:50:551 hrs ago1718434255IN
0x57EbD260...68b10a6F6
0 ETH0.000006950.05079107
Claim1214147852024-06-15 5:12:272 hrs ago1718428347IN
0x57EbD260...68b10a6F6
0 ETH0.000000120.00105161
Claim1214132122024-06-15 4:20:013 hrs ago1718425201IN
0x57EbD260...68b10a6F6
0 ETH0.000000180.00132124
Claim1214123252024-06-15 3:50:274 hrs ago1718423427IN
0x57EbD260...68b10a6F6
0 ETH0.00000020.0017499
Claim1214006212024-06-14 21:20:1910 hrs ago1718400019IN
0x57EbD260...68b10a6F6
0 ETH0.000000190.00201286
Claim1213953352024-06-14 18:24:0713 hrs ago1718389447IN
0x57EbD260...68b10a6F6
0 ETH0.00000090.00874424
Claim1213953272024-06-14 18:23:5113 hrs ago1718389431IN
0x57EbD260...68b10a6F6
0 ETH0.00000090.00873432
Claim1213952502024-06-14 18:21:1713 hrs ago1718389277IN
0x57EbD260...68b10a6F6
0 ETH0.000000680.00660003
Claim1213951832024-06-14 18:19:0313 hrs ago1718389143IN
0x57EbD260...68b10a6F6
0 ETH0.000000710.00693402
Claim1213951802024-06-14 18:18:5713 hrs ago1718389137IN
0x57EbD260...68b10a6F6
0 ETH0.000000710.00693825
Claim1213950912024-06-14 18:15:5913 hrs ago1718388959IN
0x57EbD260...68b10a6F6
0 ETH0.00000090.00876407
Claim1213949712024-06-14 18:11:5913 hrs ago1718388719IN
0x57EbD260...68b10a6F6
0 ETH0.000000920.00891833
Claim1213947842024-06-14 18:05:4513 hrs ago1718388345IN
0x57EbD260...68b10a6F6
0 ETH0.000000620.00603213
Claim1213947642024-06-14 18:05:0513 hrs ago1718388305IN
0x57EbD260...68b10a6F6
0 ETH0.000000610.0060908
Claim1213947612024-06-14 18:04:5913 hrs ago1718388299IN
0x57EbD260...68b10a6F6
0 ETH0.000000630.00611004
Claim1213943292024-06-14 17:50:3513 hrs ago1718387435IN
0x57EbD260...68b10a6F6
0 ETH0.000000820.0079325
Claim1213942082024-06-14 17:46:3314 hrs ago1718387193IN
0x57EbD260...68b10a6F6
0 ETH0.000000880.00852857
Claim1213941442024-06-14 17:44:2514 hrs ago1718387065IN
0x57EbD260...68b10a6F6
0 ETH0.000001280.01239148
Claim1213940882024-06-14 17:42:3314 hrs ago1718386953IN
0x57EbD260...68b10a6F6
0 ETH0.000001320.01280552
Claim1213896892024-06-14 15:15:5516 hrs ago1718378155IN
0x57EbD260...68b10a6F6
0 ETH0.000000180.00180052
Claim1213896562024-06-14 15:14:4916 hrs ago1718378089IN
0x57EbD260...68b10a6F6
0 ETH0.00000020.00201565
Claim1213877352024-06-14 14:10:4717 hrs ago1718374247IN
0x57EbD260...68b10a6F6
0 ETH0.00000010.00118825
Claim1213851032024-06-14 12:43:0319 hrs ago1718368983IN
0x57EbD260...68b10a6F6
0 ETH0.000000170.0014222
Claim1213849452024-06-14 12:37:4719 hrs ago1718368667IN
0x57EbD260...68b10a6F6
0 ETH0.000000050.00067608
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:
MerkleRewards

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : MerkleRewards.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.2;

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./IMerkleRewards.sol";

contract MerkleRewards is IMerkleRewards, Ownable {
    using SafeERC20 for IERC20;

    bytes32 public immutable LEAF_SALT = keccak256(abi.encodePacked("SOCKET_REWARDS"));
    IERC20 public immutable override rewardsToken;
    bytes32 public override merkleRoot;
    uint256 public override currentTotalRewards;
    mapping(address => uint256) public override withdrawn;

    constructor(IERC20 _rewardsToken) {
        require(address(_rewardsToken) != address(0), "MR: _rewardsToken must be non-zero");
        rewardsToken = _rewardsToken;
    }

    /**
     * @dev Set a new merkleRoot and deposit the additional rewards
     */
    function setMerkleRoot(bytes32 _merkleRoot, uint256 totalRewards) external override onlyOwner {
        require(_merkleRoot != bytes32(0), "MR: _merkleRoot must be non-zero");
        require(merkleRoot != _merkleRoot, "MR: Must use new Merkle root");
        require(totalRewards > currentTotalRewards, "MR: totalRewards must be > currentTotalRewards");

        uint256 additionalRewards;
        unchecked {
            additionalRewards = totalRewards - currentTotalRewards;
        }
        currentTotalRewards = totalRewards;

        merkleRoot = _merkleRoot;
        emit MerkleRootSet(_merkleRoot, totalRewards);

        rewardsToken.approve(address(this), additionalRewards);
        
        rewardsToken.safeTransferFrom(msg.sender, address(this), additionalRewards);
    }

    /**
     * @dev Claim all available rewards for `account`.
     * @notice `totalAmount` must be the exact amount set in the latest `merkleRoot`.
     */
    function claim(address account, uint256 totalAmount, bytes32[] calldata proof) external override {
        // Verify Merkle proof
        bytes32 leaf = keccak256(abi.encodePacked(LEAF_SALT, account, totalAmount));
        require(MerkleProof.verifyCalldata(proof, merkleRoot, leaf), "MR: Invalid proof");

        _distribute(account, totalAmount);
    }

    /**
     * @dev Claim all available rewards for `accounts`.
     * @notice `totalAmounts` must be the exact amount set in the latest `merkleRoot`.
     */
    function claimMultiple(
        address[] calldata accounts,
        uint256[] calldata totalAmounts,
        bytes32[] calldata proof,
        bool[] calldata proofFlags
    )
        external
        override
    {
        uint256 numAccounts = accounts.length;
        require(numAccounts == totalAmounts.length, "MR: accounts and totalAmounts must be same length");

        // Verify Merkle proof
        bytes32 leafSalt = LEAF_SALT;
        bytes32[] memory leaves = new bytes32[](accounts.length);
        for (uint256 i = 0; i < numAccounts; i++) {
            leaves[i] = keccak256(abi.encodePacked(leafSalt, accounts[i], totalAmounts[i]));
        }
        require(MerkleProof.multiProofVerifyCalldata(proof, proofFlags, merkleRoot, leaves), "MR: Invalid proof");

        for (uint256 i = 0; i < numAccounts; i++) {
            _distribute(accounts[i], totalAmounts[i]);
        }
    }

    function _distribute(address account, uint256 totalAmount) private {
        uint256 withdrawnAmount = withdrawn[account];
        require(totalAmount > withdrawnAmount, "MR: totalAmount already withdrawn");

        withdrawn[account] = totalAmount;
        // Transfer the available amount
        uint256 availableAmount;
        unchecked {
            availableAmount = totalAmount - withdrawnAmount;
        }
        emit Claimed(account, availableAmount, totalAmount);

        rewardsToken.safeTransfer(account, availableAmount);
    }

    function rescueFunds(
        address _token,
        address _receiverAddress,
        uint256 _amount
    ) external onlyOwner {
        IERC20(_token).safeTransfer(_receiverAddress, _amount);
    }
}

File 2 of 9 : 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 9 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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.
 */
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].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

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

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

File 4 of 9 : 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 5 of 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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. Compatible with tokens that require the approval to be set to
     * 0 before setting it to a non-zero value.
     */
    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 6 of 9 : 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 7 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 8 of 9 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.2) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proofLen - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            require(proofPos == proofLen, "MerkleProof: invalid multiproof");
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proofLen - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            require(proofPos == proofLen, "MerkleProof: invalid multiproof");
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 9 of 9 : IMerkleRewards.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IMerkleRewards {
    event Claimed(address indexed account, uint256 amount, uint256 totalAmount);
    event MerkleRootSet(bytes32 indexed merkleRoot, uint256 totalRewards);

    function rewardsToken() external view returns (IERC20);
    function merkleRoot() external view returns (bytes32);
    function currentTotalRewards() external view returns (uint256);
    function withdrawn(address account) external view returns (uint256);
    function setMerkleRoot(bytes32 _merkleRoot, uint256 totalRewards) external;
    function claim(address account, uint256 totalAmount, bytes32[] calldata proof) external;
    function claimMultiple(
        address[] calldata accounts,
        uint256[] calldata totalAmounts,
        bytes32[] calldata proof,
        bool[] calldata proofFlags
    ) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_rewardsToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAmount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"totalRewards","type":"uint256"}],"name":"MerkleRootSet","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"},{"inputs":[],"name":"LEAF_SALT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"totalAmounts","type":"uint256[]"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"bool[]","name":"proofFlags","type":"bool[]"}],"name":"claimMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentTotalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_receiverAddress","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescueFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"totalRewards","type":"uint256"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"withdrawn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60c0604052604051602001620000159062000292565b604051602081830303815290604052805190602001206080908152503480156200003e57600080fd5b506040516200284738038062002847833981810160405281019062000064919062000218565b62000084620000786200013560201b60201c565b6200013d60201b60201c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415620000f7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000ee90620002a9565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b8152505050620003c1565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000815190506200021281620003a7565b92915050565b6000602082840312156200022b57600080fd5b60006200023b8482850162000201565b91505092915050565b600062000253602283620002cb565b915062000260826200032f565b604082019050919050565b60006200027a600e83620002dc565b915062000287826200037e565b600e82019050919050565b60006200029f826200026b565b9150819050919050565b60006020820190508181036000830152620002c48162000244565b9050919050565b600082825260208201905092915050565b600081905092915050565b6000620002f4826200030f565b9050919050565b60006200030882620002e7565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b7f4d523a205f72657761726473546f6b656e206d757374206265206e6f6e2d7a6560008201527f726f000000000000000000000000000000000000000000000000000000000000602082015250565b7f534f434b45545f52455741524453000000000000000000000000000000000000600082015250565b620003b281620002fb565b8114620003be57600080fd5b50565b60805160a05160601c61243a6200040d6000396000818161045a0152818161050e015281816105a70152610aa201526000818161022501528181610583015261061a015261243a6000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80637c382d0b116100715780637c382d0b146101675780638da5cb5b146101835780639d5f9174146101a1578063d1af0c7d146101bf578063df58c316146101dd578063f2fde38b146101f9576100b4565b80632a6ce866146100b95780632eb4a7ab146100d75780633d13f874146100f55780636ccae054146101115780636ef610921461012d578063715018a61461015d575b600080fd5b6100c1610215565b6040516100ce9190611e61565b60405180910390f35b6100df61021b565b6040516100ec9190611c89565b60405180910390f35b61010f600480360381019061010a919061175c565b610221565b005b61012b6004803603810190610126919061170d565b6102ce565b005b610147600480360381019061014291906116e4565b610306565b6040516101549190611e61565b60405180910390f35b61016561031e565b005b610181600480360381019061017c91906118ef565b610332565b005b61018b610558565b6040516101989190611c0e565b60405180910390f35b6101a9610581565b6040516101b69190611c89565b60405180910390f35b6101c76105a5565b6040516101d49190611ca4565b60405180910390f35b6101f760048036038101906101f291906117c8565b6105c9565b005b610213600480360381019061020e91906116e4565b6108dd565b005b60025481565b60015481565b60007f0000000000000000000000000000000000000000000000000000000000000000858560405160200161025893929190611bba565b60405160208183030381529060405280519060200120905061027e838360015484610961565b6102bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102b490611ce1565b60405180910390fd5b6102c7858561097a565b5050505050565b6102d6610aec565b61030182828573ffffffffffffffffffffffffffffffffffffffff16610b6a9092919063ffffffff16565b505050565b60036020528060005260406000206000915090505481565b610326610aec565b6103306000610bf0565b565b61033a610aec565b6000801b821415610380576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161037790611d61565b60405180910390fd5b8160015414156103c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103bc90611dc1565b60405180910390fd5b6002548111610409576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161040090611d41565b60405180910390fd5b6000600254820390508160028190555082600181905550827fc34c51f14a1ba51ad7984f0e9ce0ef7a0e18364f76ba670ee057653f719d9a69836040516104509190611e61565b60405180910390a27f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b330836040518363ffffffff1660e01b81526004016104b3929190611c60565b602060405180830381600087803b1580156104cd57600080fd5b505af11580156104e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050591906118c6565b506105533330837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610cb4909392919063ffffffff16565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000888890509050868690508114610616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060d90611e01565b60405180910390fd5b60007f0000000000000000000000000000000000000000000000000000000000000000905060008a8a905067ffffffffffffffff811115610680577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156106ae5781602001602082028036833780820191505090505b50905060005b838110156107cb57828c8c838181106106f6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061070b91906116e4565b8b8b84818110610744577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013560405160200161075d93929190611bba565b604051602081830303815290604052805190602001208282815181106107ac577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080806107c39061200a565b9150506106b4565b506107dc8787878760015486610d3d565b61081b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081290611ce1565b60405180910390fd5b60005b838110156108cf576108bc8c8c83818110610862577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061087791906116e4565b8b8b848181106108b0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013561097a565b80806108c79061200a565b91505061081e565b505050505050505050505050565b6108e5610aec565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610955576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094c90611d21565b60405180910390fd5b61095e81610bf0565b50565b60008261096f868685610d5a565b149050949350505050565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050808211610a00576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f790611da1565b60405180910390fd5b81600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600081830390508373ffffffffffffffffffffffffffffffffffffffff167f987d620f307ff6b94d58743cb7a7509f24071586a77759b77c2d4e29f75a2f9a8285604051610a93929190611e7c565b60405180910390a2610ae684827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610b6a9092919063ffffffff16565b50505050565b610af4610dd8565b73ffffffffffffffffffffffffffffffffffffffff16610b12610558565b73ffffffffffffffffffffffffffffffffffffffff1614610b68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5f90611de1565b60405180910390fd5b565b610beb8363a9059cbb60e01b8484604051602401610b89929190611c60565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610de0565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610d37846323b872dd60e01b858585604051602401610cd593929190611c29565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610de0565b50505050565b600082610d4d8888888887610ea8565b1490509695505050505050565b60008082905060005b85859050811015610dcc57610db782878784818110610dab577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135611343565b91508080610dc49061200a565b915050610d63565b50809150509392505050565b600033905090565b6000610e42826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661136e9092919063ffffffff16565b9050600081511480610e64575080806020019051810190610e6391906118c6565b5b610ea3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9a90611e41565b60405180910390fd5b505050565b60008082519050600087879050905060008686905090508060018385610ece9190611ed7565b610ed89190611f2d565b14610f18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0f90611d01565b60405180910390fd5b60008167ffffffffffffffff811115610f5a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610f885781602001602082028036833780820191505090505b5090506000806000805b858110156111f8576000888510610ff557858480610faf9061200a565b955081518110610fe8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611043565b8a85806110019061200a565b96508151811061103a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101515b905060008d8d84818110611080577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190611095919061189d565b6110ea578f8f85806110a69061200a565b96508181106110de577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135611192565b898610611143578685806110fd9061200a565b965081518110611136577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611191565b8b868061114f9061200a565b975081518110611188577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101515b5b905061119e8282611343565b8784815181106111d7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050505080806111f09061200a565b915050610f92565b50600085111561129657858114611244576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123b90611d01565b60405180910390fd5b836001860381518110611280577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015197505050505050505061133a565b60008711156112ef57886000815181106112d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015197505050505050505061133a565b8c8c6000818110611329577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201359750505050505050505b95945050505050565b600081831061135b576113568284611386565b611366565b6113658383611386565b5b905092915050565b606061137d848460008561139d565b90509392505050565b600082600052816020526040600020905092915050565b6060824710156113e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d990611d81565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161140b9190611bf7565b60006040518083038185875af1925050503d8060008114611448576040519150601f19603f3d011682016040523d82523d6000602084013e61144d565b606091505b509150915061145e8783838761146a565b92505050949350505050565b606083156114cd576000835114156114c557611485856114e0565b6114c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bb90611e21565b60405180910390fd5b5b8290506114d8565b6114d78383611503565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156115165781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154a9190611cbf565b60405180910390fd5b600081359050611562816123a8565b92915050565b60008083601f84011261157a57600080fd5b8235905067ffffffffffffffff81111561159357600080fd5b6020830191508360208202830111156115ab57600080fd5b9250929050565b60008083601f8401126115c457600080fd5b8235905067ffffffffffffffff8111156115dd57600080fd5b6020830191508360208202830111156115f557600080fd5b9250929050565b60008083601f84011261160e57600080fd5b8235905067ffffffffffffffff81111561162757600080fd5b60208301915083602082028301111561163f57600080fd5b9250929050565b60008083601f84011261165857600080fd5b8235905067ffffffffffffffff81111561167157600080fd5b60208301915083602082028301111561168957600080fd5b9250929050565b60008135905061169f816123bf565b92915050565b6000815190506116b4816123bf565b92915050565b6000813590506116c9816123d6565b92915050565b6000813590506116de816123ed565b92915050565b6000602082840312156116f657600080fd5b600061170484828501611553565b91505092915050565b60008060006060848603121561172257600080fd5b600061173086828701611553565b935050602061174186828701611553565b9250506040611752868287016116cf565b9150509250925092565b6000806000806060858703121561177257600080fd5b600061178087828801611553565b9450506020611791878288016116cf565b935050604085013567ffffffffffffffff8111156117ae57600080fd5b6117ba878288016115fc565b925092505092959194509250565b6000806000806000806000806080898b0312156117e457600080fd5b600089013567ffffffffffffffff8111156117fe57600080fd5b61180a8b828c01611568565b9850985050602089013567ffffffffffffffff81111561182957600080fd5b6118358b828c01611646565b9650965050604089013567ffffffffffffffff81111561185457600080fd5b6118608b828c016115fc565b9450945050606089013567ffffffffffffffff81111561187f57600080fd5b61188b8b828c016115b2565b92509250509295985092959890939650565b6000602082840312156118af57600080fd5b60006118bd84828501611690565b91505092915050565b6000602082840312156118d857600080fd5b60006118e6848285016116a5565b91505092915050565b6000806040838503121561190257600080fd5b6000611910858286016116ba565b9250506020611921858286016116cf565b9150509250929050565b61193481611f61565b82525050565b61194b61194682611f61565b612053565b82525050565b61195a81611f7f565b82525050565b61197161196c82611f7f565b612065565b82525050565b600061198282611ea5565b61198c8185611ebb565b935061199c818560208601611fd7565b80840191505092915050565b6119b181611fb3565b82525050565b60006119c282611eb0565b6119cc8185611ec6565b93506119dc818560208601611fd7565b6119e5816120ba565b840191505092915050565b60006119fd601183611ec6565b9150611a08826120d8565b602082019050919050565b6000611a20601f83611ec6565b9150611a2b82612101565b602082019050919050565b6000611a43602683611ec6565b9150611a4e8261212a565b604082019050919050565b6000611a66602e83611ec6565b9150611a7182612179565b604082019050919050565b6000611a89602083611ec6565b9150611a94826121c8565b602082019050919050565b6000611aac602683611ec6565b9150611ab7826121f1565b604082019050919050565b6000611acf602183611ec6565b9150611ada82612240565b604082019050919050565b6000611af2601c83611ec6565b9150611afd8261228f565b602082019050919050565b6000611b15602083611ec6565b9150611b20826122b8565b602082019050919050565b6000611b38603183611ec6565b9150611b43826122e1565b604082019050919050565b6000611b5b601d83611ec6565b9150611b6682612330565b602082019050919050565b6000611b7e602a83611ec6565b9150611b8982612359565b604082019050919050565b611b9d81611fa9565b82525050565b611bb4611baf82611fa9565b612081565b82525050565b6000611bc68286611960565b602082019150611bd6828561193a565b601482019150611be68284611ba3565b602082019150819050949350505050565b6000611c038284611977565b915081905092915050565b6000602082019050611c23600083018461192b565b92915050565b6000606082019050611c3e600083018661192b565b611c4b602083018561192b565b611c586040830184611b94565b949350505050565b6000604082019050611c75600083018561192b565b611c826020830184611b94565b9392505050565b6000602082019050611c9e6000830184611951565b92915050565b6000602082019050611cb960008301846119a8565b92915050565b60006020820190508181036000830152611cd981846119b7565b905092915050565b60006020820190508181036000830152611cfa816119f0565b9050919050565b60006020820190508181036000830152611d1a81611a13565b9050919050565b60006020820190508181036000830152611d3a81611a36565b9050919050565b60006020820190508181036000830152611d5a81611a59565b9050919050565b60006020820190508181036000830152611d7a81611a7c565b9050919050565b60006020820190508181036000830152611d9a81611a9f565b9050919050565b60006020820190508181036000830152611dba81611ac2565b9050919050565b60006020820190508181036000830152611dda81611ae5565b9050919050565b60006020820190508181036000830152611dfa81611b08565b9050919050565b60006020820190508181036000830152611e1a81611b2b565b9050919050565b60006020820190508181036000830152611e3a81611b4e565b9050919050565b60006020820190508181036000830152611e5a81611b71565b9050919050565b6000602082019050611e766000830184611b94565b92915050565b6000604082019050611e916000830185611b94565b611e9e6020830184611b94565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000611ee282611fa9565b9150611eed83611fa9565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611f2257611f2161208b565b5b828201905092915050565b6000611f3882611fa9565b9150611f4383611fa9565b925082821015611f5657611f5561208b565b5b828203905092915050565b6000611f6c82611f89565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000611fbe82611fc5565b9050919050565b6000611fd082611f89565b9050919050565b60005b83811015611ff5578082015181840152602081019050611fda565b83811115612004576000848401525b50505050565b600061201582611fa9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156120485761204761208b565b5b600182019050919050565b600061205e8261206f565b9050919050565b6000819050919050565b600061207a826120cb565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4d523a20496e76616c69642070726f6f66000000000000000000000000000000600082015250565b7f4d65726b6c6550726f6f663a20696e76616c6964206d756c746970726f6f6600600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4d523a20746f74616c52657761726473206d757374206265203e20637572726560008201527f6e74546f74616c52657761726473000000000000000000000000000000000000602082015250565b7f4d523a205f6d65726b6c65526f6f74206d757374206265206e6f6e2d7a65726f600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f4d523a20746f74616c416d6f756e7420616c726561647920776974686472617760008201527f6e00000000000000000000000000000000000000000000000000000000000000602082015250565b7f4d523a204d75737420757365206e6577204d65726b6c6520726f6f7400000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4d523a206163636f756e747320616e6420746f74616c416d6f756e7473206d7560008201527f73742062652073616d65206c656e677468000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6123b181611f61565b81146123bc57600080fd5b50565b6123c881611f73565b81146123d357600080fd5b50565b6123df81611f7f565b81146123ea57600080fd5b50565b6123f681611fa9565b811461240157600080fd5b5056fea2646970667358221220535fa2a68342ef89f3c9a05faf56d790ca921831dc0a00d632e17467c2345de164736f6c634300080400330000000000000000000000004200000000000000000000000000000000000042

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100b45760003560e01c80637c382d0b116100715780637c382d0b146101675780638da5cb5b146101835780639d5f9174146101a1578063d1af0c7d146101bf578063df58c316146101dd578063f2fde38b146101f9576100b4565b80632a6ce866146100b95780632eb4a7ab146100d75780633d13f874146100f55780636ccae054146101115780636ef610921461012d578063715018a61461015d575b600080fd5b6100c1610215565b6040516100ce9190611e61565b60405180910390f35b6100df61021b565b6040516100ec9190611c89565b60405180910390f35b61010f600480360381019061010a919061175c565b610221565b005b61012b6004803603810190610126919061170d565b6102ce565b005b610147600480360381019061014291906116e4565b610306565b6040516101549190611e61565b60405180910390f35b61016561031e565b005b610181600480360381019061017c91906118ef565b610332565b005b61018b610558565b6040516101989190611c0e565b60405180910390f35b6101a9610581565b6040516101b69190611c89565b60405180910390f35b6101c76105a5565b6040516101d49190611ca4565b60405180910390f35b6101f760048036038101906101f291906117c8565b6105c9565b005b610213600480360381019061020e91906116e4565b6108dd565b005b60025481565b60015481565b60007fb2bc16461d823ed03cddc990f77c1423ebc9c78bb71fa29de60e7e2d4e5b61b0858560405160200161025893929190611bba565b60405160208183030381529060405280519060200120905061027e838360015484610961565b6102bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102b490611ce1565b60405180910390fd5b6102c7858561097a565b5050505050565b6102d6610aec565b61030182828573ffffffffffffffffffffffffffffffffffffffff16610b6a9092919063ffffffff16565b505050565b60036020528060005260406000206000915090505481565b610326610aec565b6103306000610bf0565b565b61033a610aec565b6000801b821415610380576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161037790611d61565b60405180910390fd5b8160015414156103c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103bc90611dc1565b60405180910390fd5b6002548111610409576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161040090611d41565b60405180910390fd5b6000600254820390508160028190555082600181905550827fc34c51f14a1ba51ad7984f0e9ce0ef7a0e18364f76ba670ee057653f719d9a69836040516104509190611e61565b60405180910390a27f000000000000000000000000420000000000000000000000000000000000004273ffffffffffffffffffffffffffffffffffffffff1663095ea7b330836040518363ffffffff1660e01b81526004016104b3929190611c60565b602060405180830381600087803b1580156104cd57600080fd5b505af11580156104e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050591906118c6565b506105533330837f000000000000000000000000420000000000000000000000000000000000004273ffffffffffffffffffffffffffffffffffffffff16610cb4909392919063ffffffff16565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7fb2bc16461d823ed03cddc990f77c1423ebc9c78bb71fa29de60e7e2d4e5b61b081565b7f000000000000000000000000420000000000000000000000000000000000004281565b6000888890509050868690508114610616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060d90611e01565b60405180910390fd5b60007fb2bc16461d823ed03cddc990f77c1423ebc9c78bb71fa29de60e7e2d4e5b61b0905060008a8a905067ffffffffffffffff811115610680577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156106ae5781602001602082028036833780820191505090505b50905060005b838110156107cb57828c8c838181106106f6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061070b91906116e4565b8b8b84818110610744577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013560405160200161075d93929190611bba565b604051602081830303815290604052805190602001208282815181106107ac577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080806107c39061200a565b9150506106b4565b506107dc8787878760015486610d3d565b61081b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081290611ce1565b60405180910390fd5b60005b838110156108cf576108bc8c8c83818110610862577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061087791906116e4565b8b8b848181106108b0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013561097a565b80806108c79061200a565b91505061081e565b505050505050505050505050565b6108e5610aec565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610955576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094c90611d21565b60405180910390fd5b61095e81610bf0565b50565b60008261096f868685610d5a565b149050949350505050565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050808211610a00576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f790611da1565b60405180910390fd5b81600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600081830390508373ffffffffffffffffffffffffffffffffffffffff167f987d620f307ff6b94d58743cb7a7509f24071586a77759b77c2d4e29f75a2f9a8285604051610a93929190611e7c565b60405180910390a2610ae684827f000000000000000000000000420000000000000000000000000000000000004273ffffffffffffffffffffffffffffffffffffffff16610b6a9092919063ffffffff16565b50505050565b610af4610dd8565b73ffffffffffffffffffffffffffffffffffffffff16610b12610558565b73ffffffffffffffffffffffffffffffffffffffff1614610b68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5f90611de1565b60405180910390fd5b565b610beb8363a9059cbb60e01b8484604051602401610b89929190611c60565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610de0565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610d37846323b872dd60e01b858585604051602401610cd593929190611c29565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610de0565b50505050565b600082610d4d8888888887610ea8565b1490509695505050505050565b60008082905060005b85859050811015610dcc57610db782878784818110610dab577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135611343565b91508080610dc49061200a565b915050610d63565b50809150509392505050565b600033905090565b6000610e42826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661136e9092919063ffffffff16565b9050600081511480610e64575080806020019051810190610e6391906118c6565b5b610ea3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9a90611e41565b60405180910390fd5b505050565b60008082519050600087879050905060008686905090508060018385610ece9190611ed7565b610ed89190611f2d565b14610f18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0f90611d01565b60405180910390fd5b60008167ffffffffffffffff811115610f5a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610f885781602001602082028036833780820191505090505b5090506000806000805b858110156111f8576000888510610ff557858480610faf9061200a565b955081518110610fe8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611043565b8a85806110019061200a565b96508151811061103a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101515b905060008d8d84818110611080577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190611095919061189d565b6110ea578f8f85806110a69061200a565b96508181106110de577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135611192565b898610611143578685806110fd9061200a565b965081518110611136577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611191565b8b868061114f9061200a565b975081518110611188577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101515b5b905061119e8282611343565b8784815181106111d7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050505080806111f09061200a565b915050610f92565b50600085111561129657858114611244576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123b90611d01565b60405180910390fd5b836001860381518110611280577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015197505050505050505061133a565b60008711156112ef57886000815181106112d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015197505050505050505061133a565b8c8c6000818110611329577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201359750505050505050505b95945050505050565b600081831061135b576113568284611386565b611366565b6113658383611386565b5b905092915050565b606061137d848460008561139d565b90509392505050565b600082600052816020526040600020905092915050565b6060824710156113e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d990611d81565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161140b9190611bf7565b60006040518083038185875af1925050503d8060008114611448576040519150601f19603f3d011682016040523d82523d6000602084013e61144d565b606091505b509150915061145e8783838761146a565b92505050949350505050565b606083156114cd576000835114156114c557611485856114e0565b6114c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bb90611e21565b60405180910390fd5b5b8290506114d8565b6114d78383611503565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156115165781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154a9190611cbf565b60405180910390fd5b600081359050611562816123a8565b92915050565b60008083601f84011261157a57600080fd5b8235905067ffffffffffffffff81111561159357600080fd5b6020830191508360208202830111156115ab57600080fd5b9250929050565b60008083601f8401126115c457600080fd5b8235905067ffffffffffffffff8111156115dd57600080fd5b6020830191508360208202830111156115f557600080fd5b9250929050565b60008083601f84011261160e57600080fd5b8235905067ffffffffffffffff81111561162757600080fd5b60208301915083602082028301111561163f57600080fd5b9250929050565b60008083601f84011261165857600080fd5b8235905067ffffffffffffffff81111561167157600080fd5b60208301915083602082028301111561168957600080fd5b9250929050565b60008135905061169f816123bf565b92915050565b6000815190506116b4816123bf565b92915050565b6000813590506116c9816123d6565b92915050565b6000813590506116de816123ed565b92915050565b6000602082840312156116f657600080fd5b600061170484828501611553565b91505092915050565b60008060006060848603121561172257600080fd5b600061173086828701611553565b935050602061174186828701611553565b9250506040611752868287016116cf565b9150509250925092565b6000806000806060858703121561177257600080fd5b600061178087828801611553565b9450506020611791878288016116cf565b935050604085013567ffffffffffffffff8111156117ae57600080fd5b6117ba878288016115fc565b925092505092959194509250565b6000806000806000806000806080898b0312156117e457600080fd5b600089013567ffffffffffffffff8111156117fe57600080fd5b61180a8b828c01611568565b9850985050602089013567ffffffffffffffff81111561182957600080fd5b6118358b828c01611646565b9650965050604089013567ffffffffffffffff81111561185457600080fd5b6118608b828c016115fc565b9450945050606089013567ffffffffffffffff81111561187f57600080fd5b61188b8b828c016115b2565b92509250509295985092959890939650565b6000602082840312156118af57600080fd5b60006118bd84828501611690565b91505092915050565b6000602082840312156118d857600080fd5b60006118e6848285016116a5565b91505092915050565b6000806040838503121561190257600080fd5b6000611910858286016116ba565b9250506020611921858286016116cf565b9150509250929050565b61193481611f61565b82525050565b61194b61194682611f61565b612053565b82525050565b61195a81611f7f565b82525050565b61197161196c82611f7f565b612065565b82525050565b600061198282611ea5565b61198c8185611ebb565b935061199c818560208601611fd7565b80840191505092915050565b6119b181611fb3565b82525050565b60006119c282611eb0565b6119cc8185611ec6565b93506119dc818560208601611fd7565b6119e5816120ba565b840191505092915050565b60006119fd601183611ec6565b9150611a08826120d8565b602082019050919050565b6000611a20601f83611ec6565b9150611a2b82612101565b602082019050919050565b6000611a43602683611ec6565b9150611a4e8261212a565b604082019050919050565b6000611a66602e83611ec6565b9150611a7182612179565b604082019050919050565b6000611a89602083611ec6565b9150611a94826121c8565b602082019050919050565b6000611aac602683611ec6565b9150611ab7826121f1565b604082019050919050565b6000611acf602183611ec6565b9150611ada82612240565b604082019050919050565b6000611af2601c83611ec6565b9150611afd8261228f565b602082019050919050565b6000611b15602083611ec6565b9150611b20826122b8565b602082019050919050565b6000611b38603183611ec6565b9150611b43826122e1565b604082019050919050565b6000611b5b601d83611ec6565b9150611b6682612330565b602082019050919050565b6000611b7e602a83611ec6565b9150611b8982612359565b604082019050919050565b611b9d81611fa9565b82525050565b611bb4611baf82611fa9565b612081565b82525050565b6000611bc68286611960565b602082019150611bd6828561193a565b601482019150611be68284611ba3565b602082019150819050949350505050565b6000611c038284611977565b915081905092915050565b6000602082019050611c23600083018461192b565b92915050565b6000606082019050611c3e600083018661192b565b611c4b602083018561192b565b611c586040830184611b94565b949350505050565b6000604082019050611c75600083018561192b565b611c826020830184611b94565b9392505050565b6000602082019050611c9e6000830184611951565b92915050565b6000602082019050611cb960008301846119a8565b92915050565b60006020820190508181036000830152611cd981846119b7565b905092915050565b60006020820190508181036000830152611cfa816119f0565b9050919050565b60006020820190508181036000830152611d1a81611a13565b9050919050565b60006020820190508181036000830152611d3a81611a36565b9050919050565b60006020820190508181036000830152611d5a81611a59565b9050919050565b60006020820190508181036000830152611d7a81611a7c565b9050919050565b60006020820190508181036000830152611d9a81611a9f565b9050919050565b60006020820190508181036000830152611dba81611ac2565b9050919050565b60006020820190508181036000830152611dda81611ae5565b9050919050565b60006020820190508181036000830152611dfa81611b08565b9050919050565b60006020820190508181036000830152611e1a81611b2b565b9050919050565b60006020820190508181036000830152611e3a81611b4e565b9050919050565b60006020820190508181036000830152611e5a81611b71565b9050919050565b6000602082019050611e766000830184611b94565b92915050565b6000604082019050611e916000830185611b94565b611e9e6020830184611b94565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000611ee282611fa9565b9150611eed83611fa9565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611f2257611f2161208b565b5b828201905092915050565b6000611f3882611fa9565b9150611f4383611fa9565b925082821015611f5657611f5561208b565b5b828203905092915050565b6000611f6c82611f89565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000611fbe82611fc5565b9050919050565b6000611fd082611f89565b9050919050565b60005b83811015611ff5578082015181840152602081019050611fda565b83811115612004576000848401525b50505050565b600061201582611fa9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156120485761204761208b565b5b600182019050919050565b600061205e8261206f565b9050919050565b6000819050919050565b600061207a826120cb565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4d523a20496e76616c69642070726f6f66000000000000000000000000000000600082015250565b7f4d65726b6c6550726f6f663a20696e76616c6964206d756c746970726f6f6600600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4d523a20746f74616c52657761726473206d757374206265203e20637572726560008201527f6e74546f74616c52657761726473000000000000000000000000000000000000602082015250565b7f4d523a205f6d65726b6c65526f6f74206d757374206265206e6f6e2d7a65726f600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f4d523a20746f74616c416d6f756e7420616c726561647920776974686472617760008201527f6e00000000000000000000000000000000000000000000000000000000000000602082015250565b7f4d523a204d75737420757365206e6577204d65726b6c6520726f6f7400000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4d523a206163636f756e747320616e6420746f74616c416d6f756e7473206d7560008201527f73742062652073616d65206c656e677468000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6123b181611f61565b81146123bc57600080fd5b50565b6123c881611f73565b81146123d357600080fd5b50565b6123df81611f7f565b81146123ea57600080fd5b50565b6123f681611fa9565b811461240157600080fd5b5056fea2646970667358221220535fa2a68342ef89f3c9a05faf56d790ca921831dc0a00d632e17467c2345de164736f6c63430008040033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000004200000000000000000000000000000000000042

-----Decoded View---------------
Arg [0] : _rewardsToken (address): 0x4200000000000000000000000000000000000042

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000004200000000000000000000000000000000000042


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
[ 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.