ETH Price: $1,794.16 (+10.17%)

Contract

0x727A2F78669F765DD3A721a8d6A2467B68Ba7E8e

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim1246113992024-08-28 5:06:15238 days ago1724821575IN
0x727A2F78...B68Ba7E8e
0 ETH0.000000055770.00021557
Rescue Funds1193912622024-04-29 9:01:41359 days ago1714381301IN
0x727A2F78...B68Ba7E8e
0 ETH0.0000026575980.06084439
Claim1165259982024-02-23 1:12:53425 days ago1708650773IN
0x727A2F78...B68Ba7E8e
0 ETH0.0003304143510.0040012
Claim1158421042024-02-07 5:16:25441 days ago1707282985IN
0x727A2F78...B68Ba7E8e
0 ETH0.0001890573640.00353107
Claim1158365592024-02-07 2:11:35441 days ago1707271895IN
0x727A2F78...B68Ba7E8e
0 ETH0.0002322491340.00354517
Claim1158346172024-02-07 1:06:51441 days ago1707268011IN
0x727A2F78...B68Ba7E8e
0 ETH0.0002569197020.010207
Claim1158305712024-02-06 22:51:59441 days ago1707259919IN
0x727A2F78...B68Ba7E8e
0 ETH0.0001781210970.00296272
Claim1158236042024-02-06 18:59:45441 days ago1707245985IN
0x727A2F78...B68Ba7E8e
0 ETH0.0002120355740.00554782
Claim1158236042024-02-06 18:59:45441 days ago1707245985IN
0x727A2F78...B68Ba7E8e
0 ETH0.0002118161210.00554782
Claim1158236022024-02-06 18:59:41441 days ago1707245981IN
0x727A2F78...B68Ba7E8e
0 ETH0.0002124679960.00549021
Claim1158233832024-02-06 18:52:23441 days ago1707245543IN
0x727A2F78...B68Ba7E8e
0 ETH0.0002106290080.00467585
Claim1157922052024-02-06 1:33:07442 days ago1707183187IN
0x727A2F78...B68Ba7E8e
0 ETH0.0001521375230.0055129
Claim1157881912024-02-05 23:19:19442 days ago1707175159IN
0x727A2F78...B68Ba7E8e
0 ETH0.0001715504860.0043259
Claim1157802222024-02-05 18:53:41442 days ago1707159221IN
0x727A2F78...B68Ba7E8e
0 ETH0.000134023510.00582886
Claim1157735322024-02-05 15:10:41442 days ago1707145841IN
0x727A2F78...B68Ba7E8e
0 ETH0.0002518881170.0067648
Claim1157659102024-02-05 10:56:37442 days ago1707130597IN
0x727A2F78...B68Ba7E8e
0 ETH0.0001053674660.00538626
Claim1157656252024-02-05 10:47:07442 days ago1707130027IN
0x727A2F78...B68Ba7E8e
0 ETH0.000139820130.00492894
Claim1157639782024-02-05 9:52:13443 days ago1707126733IN
0x727A2F78...B68Ba7E8e
0 ETH0.0001082468870.00558424
Claim1157620282024-02-05 8:47:13443 days ago1707122833IN
0x727A2F78...B68Ba7E8e
0 ETH0.0001189366260.004705
Claim1157611892024-02-05 8:19:15443 days ago1707121155IN
0x727A2F78...B68Ba7E8e
0 ETH0.0001013981680.0052793
Claim1157529782024-02-05 3:45:33443 days ago1707104733IN
0x727A2F78...B68Ba7E8e
0 ETH0.0001092762570.00457278
Claim1157357592024-02-04 18:11:35443 days ago1707070295IN
0x727A2F78...B68Ba7E8e
0 ETH0.0001095393920.00486278
Claim1157297252024-02-04 14:50:27443 days ago1707058227IN
0x727A2F78...B68Ba7E8e
0 ETH0.0001638942980.00515563
Claim1157238412024-02-04 11:34:19443 days ago1707046459IN
0x727A2F78...B68Ba7E8e
0 ETH0.000152343440.00544897
Claim1157197292024-02-04 9:17:15444 days ago1707038235IN
0x727A2F78...B68Ba7E8e
0 ETH0.0001310754530.00706924
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Loading...
Loading

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

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;

    // keccak256(abi.encodePacked("MERKLE_REWARDS_LEAF_HASH")) == 0xc25f889d60f4bc528f554912ac35e9e397b99db0e4dedf3f36bfbe75247f4c5a
    bytes32 public immutable LEAF_SALT = keccak256(abi.encodePacked("OP_REBATE"));
    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

API
[{"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"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100b45760003560e01c80637c382d0b116100715780637c382d0b146101675780638da5cb5b146101835780639d5f9174146101a1578063d1af0c7d146101bf578063df58c316146101dd578063f2fde38b146101f9576100b4565b80632a6ce866146100b95780632eb4a7ab146100d75780633d13f874146100f55780636ccae054146101115780636ef610921461012d578063715018a61461015d575b600080fd5b6100c1610215565b6040516100ce9190611e61565b60405180910390f35b6100df61021b565b6040516100ec9190611c89565b60405180910390f35b61010f600480360381019061010a919061175c565b610221565b005b61012b6004803603810190610126919061170d565b6102ce565b005b610147600480360381019061014291906116e4565b610306565b6040516101549190611e61565b60405180910390f35b61016561031e565b005b610181600480360381019061017c91906118ef565b610332565b005b61018b610558565b6040516101989190611c0e565b60405180910390f35b6101a9610581565b6040516101b69190611c89565b60405180910390f35b6101c76105a5565b6040516101d49190611ca4565b60405180910390f35b6101f760048036038101906101f291906117c8565b6105c9565b005b610213600480360381019061020e91906116e4565b6108dd565b005b60025481565b60015481565b60007fc1cb640b1b768c3805538f35fcedccf2c9a8f8187d89ff492980a47001c22ffe858560405160200161025893929190611bba565b60405160208183030381529060405280519060200120905061027e838360015484610961565b6102bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102b490611ce1565b60405180910390fd5b6102c7858561097a565b5050505050565b6102d6610aec565b61030182828573ffffffffffffffffffffffffffffffffffffffff16610b6a9092919063ffffffff16565b505050565b60036020528060005260406000206000915090505481565b610326610aec565b6103306000610bf0565b565b61033a610aec565b6000801b821415610380576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161037790611d61565b60405180910390fd5b8160015414156103c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103bc90611dc1565b60405180910390fd5b6002548111610409576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161040090611d41565b60405180910390fd5b6000600254820390508160028190555082600181905550827fc34c51f14a1ba51ad7984f0e9ce0ef7a0e18364f76ba670ee057653f719d9a69836040516104509190611e61565b60405180910390a27f000000000000000000000000420000000000000000000000000000000000004273ffffffffffffffffffffffffffffffffffffffff1663095ea7b330836040518363ffffffff1660e01b81526004016104b3929190611c60565b602060405180830381600087803b1580156104cd57600080fd5b505af11580156104e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050591906118c6565b506105533330837f000000000000000000000000420000000000000000000000000000000000004273ffffffffffffffffffffffffffffffffffffffff16610cb4909392919063ffffffff16565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7fc1cb640b1b768c3805538f35fcedccf2c9a8f8187d89ff492980a47001c22ffe81565b7f000000000000000000000000420000000000000000000000000000000000004281565b6000888890509050868690508114610616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060d90611e01565b60405180910390fd5b60007fc1cb640b1b768c3805538f35fcedccf2c9a8f8187d89ff492980a47001c22ffe905060008a8a905067ffffffffffffffff811115610680577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156106ae5781602001602082028036833780820191505090505b50905060005b838110156107cb57828c8c838181106106f6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061070b91906116e4565b8b8b84818110610744577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013560405160200161075d93929190611bba565b604051602081830303815290604052805190602001208282815181106107ac577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080806107c39061200a565b9150506106b4565b506107dc8787878760015486610d3d565b61081b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081290611ce1565b60405180910390fd5b60005b838110156108cf576108bc8c8c83818110610862577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061087791906116e4565b8b8b848181106108b0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013561097a565b80806108c79061200a565b91505061081e565b505050505050505050505050565b6108e5610aec565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610955576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094c90611d21565b60405180910390fd5b61095e81610bf0565b50565b60008261096f868685610d5a565b149050949350505050565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050808211610a00576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f790611da1565b60405180910390fd5b81600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600081830390508373ffffffffffffffffffffffffffffffffffffffff167f987d620f307ff6b94d58743cb7a7509f24071586a77759b77c2d4e29f75a2f9a8285604051610a93929190611e7c565b60405180910390a2610ae684827f000000000000000000000000420000000000000000000000000000000000004273ffffffffffffffffffffffffffffffffffffffff16610b6a9092919063ffffffff16565b50505050565b610af4610dd8565b73ffffffffffffffffffffffffffffffffffffffff16610b12610558565b73ffffffffffffffffffffffffffffffffffffffff1614610b68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5f90611de1565b60405180910390fd5b565b610beb8363a9059cbb60e01b8484604051602401610b89929190611c60565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610de0565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610d37846323b872dd60e01b858585604051602401610cd593929190611c29565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610de0565b50505050565b600082610d4d8888888887610ea8565b1490509695505050505050565b60008082905060005b85859050811015610dcc57610db782878784818110610dab577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135611343565b91508080610dc49061200a565b915050610d63565b50809150509392505050565b600033905090565b6000610e42826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661136e9092919063ffffffff16565b9050600081511480610e64575080806020019051810190610e6391906118c6565b5b610ea3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9a90611e41565b60405180910390fd5b505050565b60008082519050600087879050905060008686905090508060018385610ece9190611ed7565b610ed89190611f2d565b14610f18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0f90611d01565b60405180910390fd5b60008167ffffffffffffffff811115610f5a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610f885781602001602082028036833780820191505090505b5090506000806000805b858110156111f8576000888510610ff557858480610faf9061200a565b955081518110610fe8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611043565b8a85806110019061200a565b96508151811061103a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101515b905060008d8d84818110611080577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190611095919061189d565b6110ea578f8f85806110a69061200a565b96508181106110de577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135611192565b898610611143578685806110fd9061200a565b965081518110611136577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611191565b8b868061114f9061200a565b975081518110611188577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101515b5b905061119e8282611343565b8784815181106111d7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050505080806111f09061200a565b915050610f92565b50600085111561129657858114611244576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123b90611d01565b60405180910390fd5b836001860381518110611280577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015197505050505050505061133a565b60008711156112ef57886000815181106112d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015197505050505050505061133a565b8c8c6000818110611329577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201359750505050505050505b95945050505050565b600081831061135b576113568284611386565b611366565b6113658383611386565b5b905092915050565b606061137d848460008561139d565b90509392505050565b600082600052816020526040600020905092915050565b6060824710156113e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d990611d81565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161140b9190611bf7565b60006040518083038185875af1925050503d8060008114611448576040519150601f19603f3d011682016040523d82523d6000602084013e61144d565b606091505b509150915061145e8783838761146a565b92505050949350505050565b606083156114cd576000835114156114c557611485856114e0565b6114c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bb90611e21565b60405180910390fd5b5b8290506114d8565b6114d78383611503565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156115165781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154a9190611cbf565b60405180910390fd5b600081359050611562816123a8565b92915050565b60008083601f84011261157a57600080fd5b8235905067ffffffffffffffff81111561159357600080fd5b6020830191508360208202830111156115ab57600080fd5b9250929050565b60008083601f8401126115c457600080fd5b8235905067ffffffffffffffff8111156115dd57600080fd5b6020830191508360208202830111156115f557600080fd5b9250929050565b60008083601f84011261160e57600080fd5b8235905067ffffffffffffffff81111561162757600080fd5b60208301915083602082028301111561163f57600080fd5b9250929050565b60008083601f84011261165857600080fd5b8235905067ffffffffffffffff81111561167157600080fd5b60208301915083602082028301111561168957600080fd5b9250929050565b60008135905061169f816123bf565b92915050565b6000815190506116b4816123bf565b92915050565b6000813590506116c9816123d6565b92915050565b6000813590506116de816123ed565b92915050565b6000602082840312156116f657600080fd5b600061170484828501611553565b91505092915050565b60008060006060848603121561172257600080fd5b600061173086828701611553565b935050602061174186828701611553565b9250506040611752868287016116cf565b9150509250925092565b6000806000806060858703121561177257600080fd5b600061178087828801611553565b9450506020611791878288016116cf565b935050604085013567ffffffffffffffff8111156117ae57600080fd5b6117ba878288016115fc565b925092505092959194509250565b6000806000806000806000806080898b0312156117e457600080fd5b600089013567ffffffffffffffff8111156117fe57600080fd5b61180a8b828c01611568565b9850985050602089013567ffffffffffffffff81111561182957600080fd5b6118358b828c01611646565b9650965050604089013567ffffffffffffffff81111561185457600080fd5b6118608b828c016115fc565b9450945050606089013567ffffffffffffffff81111561187f57600080fd5b61188b8b828c016115b2565b92509250509295985092959890939650565b6000602082840312156118af57600080fd5b60006118bd84828501611690565b91505092915050565b6000602082840312156118d857600080fd5b60006118e6848285016116a5565b91505092915050565b6000806040838503121561190257600080fd5b6000611910858286016116ba565b9250506020611921858286016116cf565b9150509250929050565b61193481611f61565b82525050565b61194b61194682611f61565b612053565b82525050565b61195a81611f7f565b82525050565b61197161196c82611f7f565b612065565b82525050565b600061198282611ea5565b61198c8185611ebb565b935061199c818560208601611fd7565b80840191505092915050565b6119b181611fb3565b82525050565b60006119c282611eb0565b6119cc8185611ec6565b93506119dc818560208601611fd7565b6119e5816120ba565b840191505092915050565b60006119fd601183611ec6565b9150611a08826120d8565b602082019050919050565b6000611a20601f83611ec6565b9150611a2b82612101565b602082019050919050565b6000611a43602683611ec6565b9150611a4e8261212a565b604082019050919050565b6000611a66602e83611ec6565b9150611a7182612179565b604082019050919050565b6000611a89602083611ec6565b9150611a94826121c8565b602082019050919050565b6000611aac602683611ec6565b9150611ab7826121f1565b604082019050919050565b6000611acf602183611ec6565b9150611ada82612240565b604082019050919050565b6000611af2601c83611ec6565b9150611afd8261228f565b602082019050919050565b6000611b15602083611ec6565b9150611b20826122b8565b602082019050919050565b6000611b38603183611ec6565b9150611b43826122e1565b604082019050919050565b6000611b5b601d83611ec6565b9150611b6682612330565b602082019050919050565b6000611b7e602a83611ec6565b9150611b8982612359565b604082019050919050565b611b9d81611fa9565b82525050565b611bb4611baf82611fa9565b612081565b82525050565b6000611bc68286611960565b602082019150611bd6828561193a565b601482019150611be68284611ba3565b602082019150819050949350505050565b6000611c038284611977565b915081905092915050565b6000602082019050611c23600083018461192b565b92915050565b6000606082019050611c3e600083018661192b565b611c4b602083018561192b565b611c586040830184611b94565b949350505050565b6000604082019050611c75600083018561192b565b611c826020830184611b94565b9392505050565b6000602082019050611c9e6000830184611951565b92915050565b6000602082019050611cb960008301846119a8565b92915050565b60006020820190508181036000830152611cd981846119b7565b905092915050565b60006020820190508181036000830152611cfa816119f0565b9050919050565b60006020820190508181036000830152611d1a81611a13565b9050919050565b60006020820190508181036000830152611d3a81611a36565b9050919050565b60006020820190508181036000830152611d5a81611a59565b9050919050565b60006020820190508181036000830152611d7a81611a7c565b9050919050565b60006020820190508181036000830152611d9a81611a9f565b9050919050565b60006020820190508181036000830152611dba81611ac2565b9050919050565b60006020820190508181036000830152611dda81611ae5565b9050919050565b60006020820190508181036000830152611dfa81611b08565b9050919050565b60006020820190508181036000830152611e1a81611b2b565b9050919050565b60006020820190508181036000830152611e3a81611b4e565b9050919050565b60006020820190508181036000830152611e5a81611b71565b9050919050565b6000602082019050611e766000830184611b94565b92915050565b6000604082019050611e916000830185611b94565b611e9e6020830184611b94565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000611ee282611fa9565b9150611eed83611fa9565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611f2257611f2161208b565b5b828201905092915050565b6000611f3882611fa9565b9150611f4383611fa9565b925082821015611f5657611f5561208b565b5b828203905092915050565b6000611f6c82611f89565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000611fbe82611fc5565b9050919050565b6000611fd082611f89565b9050919050565b60005b83811015611ff5578082015181840152602081019050611fda565b83811115612004576000848401525b50505050565b600061201582611fa9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156120485761204761208b565b5b600182019050919050565b600061205e8261206f565b9050919050565b6000819050919050565b600061207a826120cb565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4d523a20496e76616c69642070726f6f66000000000000000000000000000000600082015250565b7f4d65726b6c6550726f6f663a20696e76616c6964206d756c746970726f6f6600600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4d523a20746f74616c52657761726473206d757374206265203e20637572726560008201527f6e74546f74616c52657761726473000000000000000000000000000000000000602082015250565b7f4d523a205f6d65726b6c65526f6f74206d757374206265206e6f6e2d7a65726f600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f4d523a20746f74616c416d6f756e7420616c726561647920776974686472617760008201527f6e00000000000000000000000000000000000000000000000000000000000000602082015250565b7f4d523a204d75737420757365206e6577204d65726b6c6520726f6f7400000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4d523a206163636f756e747320616e6420746f74616c416d6f756e7473206d7560008201527f73742062652073616d65206c656e677468000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6123b181611f61565b81146123bc57600080fd5b50565b6123c881611f73565b81146123d357600080fd5b50565b6123df81611f7f565b81146123ea57600080fd5b50565b6123f681611fa9565b811461240157600080fd5b5056fea2646970667358221220d6d070a2d5afccc2ee6002a73c648f25ce1d348765aca63b1756e0f67401bea664736f6c63430008040033

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