ETH Price: $3,233.88 (-0.26%)

Contract

0x59F3B62FE70aD19B67C0a09Deb76dda4516C5387
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim Rewards196817482024-04-18 10:28:35268 days ago1713436115IN
0x59F3B62F...4516C5387
0 ETH0.0017851115.7819533
Claim Rewards196668632024-04-16 8:30:23271 days ago1713256223IN
0x59F3B62F...4516C5387
0 ETH0.001102539.74821618
Claim Rewards196666622024-04-16 7:49:59271 days ago1713253799IN
0x59F3B62F...4516C5387
0 ETH0.001039099.18782866
Claim Rewards196361462024-04-12 1:07:35275 days ago1712884055IN
0x59F3B62F...4516C5387
0 ETH0.0012060510.66128818
Claim Rewards196320332024-04-11 11:18:11275 days ago1712834291IN
0x59F3B62F...4516C5387
0 ETH0.0016968715
Claim Rewards196320022024-04-11 11:11:59275 days ago1712833919IN
0x59F3B62F...4516C5387
0 ETH0.0014017114.60312589
Claim Rewards196194492024-04-09 17:03:35277 days ago1712682215IN
0x59F3B62F...4516C5387
0 ETH0.0041854543.61892259
Claim Rewards195939562024-04-06 3:18:47281 days ago1712373527IN
0x59F3B62F...4516C5387
0 ETH0.0012386810.95166538
Claim Rewards195881752024-04-05 7:52:47282 days ago1712303567IN
0x59F3B62F...4516C5387
0 ETH0.0015629613.82306538
Claim Rewards195816392024-04-04 9:54:23282 days ago1712224463IN
0x59F3B62F...4516C5387
0 ETH0.0022169919.59948851
Claim Rewards195811752024-04-04 8:21:23283 days ago1712218883IN
0x59F3B62F...4516C5387
0 ETH0.0018220516.11140222
Claim Rewards195746852024-04-03 10:35:11283 days ago1712140511IN
0x59F3B62F...4516C5387
0 ETH0.0026815723.70912646
Claim Rewards195381172024-03-29 7:16:35289 days ago1711696595IN
0x59F3B62F...4516C5387
0 ETH0.0023925821.1521973
Claim Rewards195239022024-03-27 6:28:59291 days ago1711520939IN
0x59F3B62F...4516C5387
0 ETH0.0026083423.06171354
Claim Rewards195238652024-03-27 6:21:11291 days ago1711520471IN
0x59F3B62F...4516C5387
0 ETH0.0027707524.50026572
Claim Rewards195175442024-03-26 8:51:47292 days ago1711443107IN
0x59F3B62F...4516C5387
0 ETH0.0024304621.4870786
Claim Rewards195167712024-03-26 6:15:35292 days ago1711433735IN
0x59F3B62F...4516C5387
0 ETH0.0021054118.61138876
Claim Rewards195134692024-03-25 19:10:23292 days ago1711393823IN
0x59F3B62F...4516C5387
0 ETH0.0036059431.88591419
Claim Rewards195126792024-03-25 16:30:23292 days ago1711384223IN
0x59F3B62F...4516C5387
0 ETH0.004340838.38465452
Claim Rewards195116382024-03-25 12:57:23292 days ago1711371443IN
0x59F3B62F...4516C5387
0 ETH0.0025502722.54582827
Claim Rewards195110672024-03-25 11:01:47292 days ago1711364507IN
0x59F3B62F...4516C5387
0 ETH0.0019963217.6502114
Claim Rewards195103182024-03-25 8:28:59293 days ago1711355339IN
0x59F3B62F...4516C5387
0 ETH0.0017392215.37462295
Claim Rewards195098242024-03-25 6:48:35293 days ago1711349315IN
0x59F3B62F...4516C5387
0 ETH0.0018257516.13980786
Claim Rewards195098192024-03-25 6:47:35293 days ago1711349255IN
0x59F3B62F...4516C5387
0 ETH0.0018076915.98102137
Claim Rewards195098122024-03-25 6:46:11293 days ago1711349171IN
0x59F3B62F...4516C5387
0 ETH0.0016276414.39212061
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:
ClaimRewards

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 12 : ClaimRewards.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;

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

contract ClaimRewards is Ownable, ReentrancyGuard{
    using SafeERC20 for IERC20;
    
    //PURSE (BSC mainnet): 0x29a63F4B209C29B4DC47f06FFA896F32667DAD2C
    //PURSE (ETH mainnet): 0x95987b0cdC7F65d989A30B3B7132a38388c548Eb
    address public constant PURSE = 0x95987b0cdC7F65d989A30B3B7132a38388c548Eb;
    bytes32 public merkleRoot;
    uint256 public currentRewardPeriodId;
    struct RewardPeriod {
        uint128 startTime;
        uint128 endTime;
    }
    mapping(uint256 => RewardPeriod) public rewardPeriods;

    //address => rewardPeriodId => isClaim
    mapping(address => mapping(uint256 => bool)) public isClaim;

    event Claim(address indexed user, uint256 indexed id, uint256 amount);
    event UpdateMerkleRoot(bytes32 indexed merkleRoot);
    event UpdateRewardPeriodTime(uint256 indexed id, uint128 indexed startTime, uint128 indexed endTime);
    event UpdateRewardPeriodId(uint256 indexed id, uint128 indexed startTime, uint128 indexed endTime);
    event ReturnToken(address indexed token, uint256 indexed amount, address indexed to);

    constructor(bytes32 _merkleRoot) {
        merkleRoot = _merkleRoot;
        currentRewardPeriodId = 0;
        rewardPeriods[currentRewardPeriodId] = RewardPeriod(
            uint128(block.timestamp), 
            uint128(block.timestamp + 1 days)
        );
    }

    function updateMerkleRoot(bytes32 _newMerkleRoot) external onlyOwner {
        require(_newMerkleRoot != merkleRoot, "New merkle root must not be equal to existing merkle root");
        merkleRoot = _newMerkleRoot;

        emit UpdateMerkleRoot(merkleRoot);
    }

    //Updates to the next rewards period id, with the given start time and end time
    function updateRewardPeriodId(uint128 _startTime, uint128 _endTime) external onlyOwner {
        require(_endTime > _startTime, "End time must be greater than start time");
        require(_endTime > block.timestamp, "Invalid timestamp");

        currentRewardPeriodId++;
        rewardPeriods[currentRewardPeriodId] = RewardPeriod(_startTime, _endTime);

        emit UpdateRewardPeriodId(currentRewardPeriodId, _startTime, _endTime);
    }

    function updateCurrentRewardPeriodTimes(uint256 _id, uint128 _startTime, uint128 _endTime) external onlyOwner {
        require(_id == currentRewardPeriodId, "Only current reward period id");
        require(_endTime > _startTime, "End time must be greater than start time");
        require(_endTime > block.timestamp, "Invalid timestamp");

        RewardPeriod storage rewardPeriod = rewardPeriods[_id];
        rewardPeriod.startTime = _startTime;
        rewardPeriod.endTime = _endTime;

        emit UpdateRewardPeriodTime(_id, _startTime, _endTime);
    }

    function claimRewards(uint256 _amount, bytes32[] calldata _merkleProof) external nonReentrant {
        RewardPeriod memory rewardPeriod = rewardPeriods[currentRewardPeriodId];
        
        require(block.timestamp >= rewardPeriod.startTime, "Claim not started");
        require(block.timestamp <= rewardPeriod.endTime, "Claim ended");
        require(!isClaim[msg.sender][currentRewardPeriodId], "Already claimed");

        bytes32 node = keccak256(abi.encodePacked(msg.sender, _amount));
        require(MerkleProof.verifyCalldata(_merkleProof, merkleRoot, node), 'Invalid proof.');
        isClaim[msg.sender][currentRewardPeriodId] = true;

        emit Claim(msg.sender, currentRewardPeriodId, _amount);
        IERC20(PURSE).safeTransfer(msg.sender, _amount);
    }

    function returnToken(address token, uint256 amount, address to) external onlyOwner {
        require(to != address(0), "Zero address");
        require(amount > 0, "Amount must be greater than 0");
        emit ReturnToken(token, amount, to);
        IERC20(token).safeTransfer(to, amount);
    }
}

File 2 of 12 : 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 12 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

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

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 4 of 12 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(address from, address to, uint256 amount) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}

File 5 of 12 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 6 of 12 : 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 7 of 12 : 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 8 of 12 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

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

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

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

File 9 of 12 : 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 10 of 12 : 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 11 of 12 : 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 12 of 12 : MockERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.18;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract MockERC20 is ERC20 {
    constructor() ERC20("MockERC20", "MOCK") {
        _mint(msg.sender, 1_000_000_000e18);
    }

    function mint(address to, uint256 amount) external {
        _mint(to, amount);
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ReturnToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"UpdateMerkleRoot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"uint128","name":"startTime","type":"uint128"},{"indexed":true,"internalType":"uint128","name":"endTime","type":"uint128"}],"name":"UpdateRewardPeriodId","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"uint128","name":"startTime","type":"uint128"},{"indexed":true,"internalType":"uint128","name":"endTime","type":"uint128"}],"name":"UpdateRewardPeriodTime","type":"event"},{"inputs":[],"name":"PURSE","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentRewardPeriodId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"isClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"returnToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardPeriods","outputs":[{"internalType":"uint128","name":"startTime","type":"uint128"},{"internalType":"uint128","name":"endTime","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint128","name":"_startTime","type":"uint128"},{"internalType":"uint128","name":"_endTime","type":"uint128"}],"name":"updateCurrentRewardPeriodTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newMerkleRoot","type":"bytes32"}],"name":"updateMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"_startTime","type":"uint128"},{"internalType":"uint128","name":"_endTime","type":"uint128"}],"name":"updateRewardPeriodId","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506040516111ac3803806111ac83398101604081905261002f91610100565b610038336100b0565b600180556002819055600060035560408051808201909152426001600160801b0381168252602082019061006f9062015180610119565b6001600160801b039081169091526003546000908152600460209081526040909120835193909101518216600160801b029290911691909117905550610140565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561011257600080fd5b5051919050565b8082018082111561013a57634e487b7160e01b600052601160045260246000fd5b92915050565b61105d8061014f6000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638783cc0e1161008c578063abd40e1e11610066578063abd40e1e146101c8578063cb9a1d76146101db578063e83bf0ed146101f6578063f2fde38b1461023457600080fd5b80638783cc0e146101875780638da5cb5b146101905780639ff29a6b146101b557600080fd5b806303a02698146100d45780630ad2584d146100e95780632eb4a7ab146100fc5780634783f0ef14610118578063715018a61461012b5780638252097d14610133575b600080fd5b6100e76100e2366004610d77565b610247565b005b6100e76100f7366004610dca565b61037c565b61010560025481565b6040519081526020015b60405180910390f35b6100e7610126366004610dfd565b610473565b6100e7610525565b610167610141366004610dfd565b6004602052600090815260409020546001600160801b0380821691600160801b90041682565b604080516001600160801b0393841681529290911660208301520161010f565b61010560035481565b6000546001600160a01b03165b6040516001600160a01b03909116815260200161010f565b6100e76101c3366004610e16565b610539565b6100e76101d6366004610e49565b61064c565b61019d7395987b0cdc7f65d989a30b3b7132a38388c548eb81565b610224610204366004610ec8565b600560209081526000928352604080842090915290825290205460ff1681565b604051901515815260200161010f565b6100e7610242366004610ef2565b610898565b61024f610911565b60035483146102a55760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c792063757272656e742072657761726420706572696f6420696400000060448201526064015b60405180910390fd5b816001600160801b0316816001600160801b0316116102d65760405162461bcd60e51b815260040161029c90610f0d565b42816001600160801b0316116103225760405162461bcd60e51b81526020600482015260116024820152700496e76616c69642074696d657374616d7607c1b604482015260640161029c565b6000838152600460205260408082206001600160801b03848116600160801b8102918716918217835592519193909187917f36c0f0981bb170a87639a397ab5178d3328dc9609c19ecbea4e7f57921797c1691a450505050565b610384610911565b6001600160a01b0381166103c95760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b604482015260640161029c565b600082116104195760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e2030000000604482015260640161029c565b806001600160a01b031682846001600160a01b03167fbe9056c42c308ef07129f8304fd81625be0c16b6772cb50390ae46d06353e83460405160405180910390a461046e6001600160a01b038416828461096b565b505050565b61047b610911565b60025481036104f25760405162461bcd60e51b815260206004820152603960248201527f4e6577206d65726b6c6520726f6f74206d757374206e6f74206265206571756160448201527f6c20746f206578697374696e67206d65726b6c6520726f6f7400000000000000606482015260840161029c565b600281905560405181907fae8bdbc15b982b030d313524fca26f653a8826332c662cb93c670068172d217e90600090a250565b61052d610911565b61053760006109bd565b565b610541610911565b816001600160801b0316816001600160801b0316116105725760405162461bcd60e51b815260040161029c90610f0d565b42816001600160801b0316116105be5760405162461bcd60e51b81526020600482015260116024820152700496e76616c69642074696d657374616d7607c1b604482015260640161029c565b600380549060006105ce83610f55565b90915550506040805180820182526001600160801b0380851680835284821660208085018281526003805460009081526004909352878320965191518616600160801b029190951617909455915493519193909290917f2650672ce4d3552cc938d946166c3a87f555c388bae341dde4db200272fb52059190a45050565b610654610a0d565b6003546000908152600460209081526040918290208251808401909352546001600160801b03808216808552600160801b90920416918301919091524210156106d35760405162461bcd60e51b815260206004820152601160248201527010db185a5b481b9bdd081cdd185c9d1959607a1b604482015260640161029c565b80602001516001600160801b031642111561071e5760405162461bcd60e51b815260206004820152600b60248201526a10db185a5b48195b99195960aa1b604482015260640161029c565b336000908152600560209081526040808320600354845290915290205460ff161561077d5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b604482015260640161029c565b6040516bffffffffffffffffffffffff193360601b166020820152603481018590526000906054016040516020818303038152906040528051906020012090506107cb848460025484610a66565b6108085760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b210383937b7b31760911b604482015260640161029c565b336000818152600560209081526040808320600380548552925291829020805460ff191660011790555490519091907f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf7906108669089815260200190565b60405180910390a361088d7395987b0cdc7f65d989a30b3b7132a38388c548eb338761096b565b505061046e60018055565b6108a0610911565b6001600160a01b0381166109055760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161029c565b61090e816109bd565b50565b6000546001600160a01b031633146105375760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161029c565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261046e908490610a80565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260015403610a5f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161029c565b6002600155565b600082610a74868685610b55565b1490505b949350505050565b6000610ad5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ba19092919063ffffffff16565b9050805160001480610af6575080806020019051810190610af69190610f7c565b61046e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161029c565b600081815b84811015610b9857610b8482878784818110610b7857610b78610f9e565b90506020020135610bb0565b915080610b9081610f55565b915050610b5a565b50949350505050565b6060610a788484600085610be2565b6000818310610bcc576000828152602084905260409020610bdb565b60008381526020839052604090205b9392505050565b606082471015610c435760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161029c565b600080866001600160a01b03168587604051610c5f9190610fd8565b60006040518083038185875af1925050503d8060008114610c9c576040519150601f19603f3d011682016040523d82523d6000602084013e610ca1565b606091505b5091509150610cb287838387610cbd565b979650505050505050565b60608315610d2c578251600003610d25576001600160a01b0385163b610d255760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161029c565b5081610a78565b610a788383815115610d415781518083602001fd5b8060405162461bcd60e51b815260040161029c9190610ff4565b80356001600160801b0381168114610d7257600080fd5b919050565b600080600060608486031215610d8c57600080fd5b83359250610d9c60208501610d5b565b9150610daa60408501610d5b565b90509250925092565b80356001600160a01b0381168114610d7257600080fd5b600080600060608486031215610ddf57600080fd5b610de884610db3565b925060208401359150610daa60408501610db3565b600060208284031215610e0f57600080fd5b5035919050565b60008060408385031215610e2957600080fd5b610e3283610d5b565b9150610e4060208401610d5b565b90509250929050565b600080600060408486031215610e5e57600080fd5b83359250602084013567ffffffffffffffff80821115610e7d57600080fd5b818601915086601f830112610e9157600080fd5b813581811115610ea057600080fd5b8760208260051b8501011115610eb557600080fd5b6020830194508093505050509250925092565b60008060408385031215610edb57600080fd5b610ee483610db3565b946020939093013593505050565b600060208284031215610f0457600080fd5b610bdb82610db3565b60208082526028908201527f456e642074696d65206d7573742062652067726561746572207468616e2073746040820152676172742074696d6560c01b606082015260800190565b600060018201610f7557634e487b7160e01b600052601160045260246000fd5b5060010190565b600060208284031215610f8e57600080fd5b81518015158114610bdb57600080fd5b634e487b7160e01b600052603260045260246000fd5b60005b83811015610fcf578181015183820152602001610fb7565b50506000910152565b60008251610fea818460208701610fb4565b9190910192915050565b6020815260008251806020840152611013816040850160208701610fb4565b601f01601f1916919091016040019291505056fea264697066735822122084659f3a1936ef3c5f514bcd254185c9af346fe99541a239b1f8134be66d848f64736f6c63430008120033db1690bf8137c2777f2b6d9869508111057cb7cb60beebe7c9db7c793cd3cd67

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638783cc0e1161008c578063abd40e1e11610066578063abd40e1e146101c8578063cb9a1d76146101db578063e83bf0ed146101f6578063f2fde38b1461023457600080fd5b80638783cc0e146101875780638da5cb5b146101905780639ff29a6b146101b557600080fd5b806303a02698146100d45780630ad2584d146100e95780632eb4a7ab146100fc5780634783f0ef14610118578063715018a61461012b5780638252097d14610133575b600080fd5b6100e76100e2366004610d77565b610247565b005b6100e76100f7366004610dca565b61037c565b61010560025481565b6040519081526020015b60405180910390f35b6100e7610126366004610dfd565b610473565b6100e7610525565b610167610141366004610dfd565b6004602052600090815260409020546001600160801b0380821691600160801b90041682565b604080516001600160801b0393841681529290911660208301520161010f565b61010560035481565b6000546001600160a01b03165b6040516001600160a01b03909116815260200161010f565b6100e76101c3366004610e16565b610539565b6100e76101d6366004610e49565b61064c565b61019d7395987b0cdc7f65d989a30b3b7132a38388c548eb81565b610224610204366004610ec8565b600560209081526000928352604080842090915290825290205460ff1681565b604051901515815260200161010f565b6100e7610242366004610ef2565b610898565b61024f610911565b60035483146102a55760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c792063757272656e742072657761726420706572696f6420696400000060448201526064015b60405180910390fd5b816001600160801b0316816001600160801b0316116102d65760405162461bcd60e51b815260040161029c90610f0d565b42816001600160801b0316116103225760405162461bcd60e51b81526020600482015260116024820152700496e76616c69642074696d657374616d7607c1b604482015260640161029c565b6000838152600460205260408082206001600160801b03848116600160801b8102918716918217835592519193909187917f36c0f0981bb170a87639a397ab5178d3328dc9609c19ecbea4e7f57921797c1691a450505050565b610384610911565b6001600160a01b0381166103c95760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b604482015260640161029c565b600082116104195760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e2030000000604482015260640161029c565b806001600160a01b031682846001600160a01b03167fbe9056c42c308ef07129f8304fd81625be0c16b6772cb50390ae46d06353e83460405160405180910390a461046e6001600160a01b038416828461096b565b505050565b61047b610911565b60025481036104f25760405162461bcd60e51b815260206004820152603960248201527f4e6577206d65726b6c6520726f6f74206d757374206e6f74206265206571756160448201527f6c20746f206578697374696e67206d65726b6c6520726f6f7400000000000000606482015260840161029c565b600281905560405181907fae8bdbc15b982b030d313524fca26f653a8826332c662cb93c670068172d217e90600090a250565b61052d610911565b61053760006109bd565b565b610541610911565b816001600160801b0316816001600160801b0316116105725760405162461bcd60e51b815260040161029c90610f0d565b42816001600160801b0316116105be5760405162461bcd60e51b81526020600482015260116024820152700496e76616c69642074696d657374616d7607c1b604482015260640161029c565b600380549060006105ce83610f55565b90915550506040805180820182526001600160801b0380851680835284821660208085018281526003805460009081526004909352878320965191518616600160801b029190951617909455915493519193909290917f2650672ce4d3552cc938d946166c3a87f555c388bae341dde4db200272fb52059190a45050565b610654610a0d565b6003546000908152600460209081526040918290208251808401909352546001600160801b03808216808552600160801b90920416918301919091524210156106d35760405162461bcd60e51b815260206004820152601160248201527010db185a5b481b9bdd081cdd185c9d1959607a1b604482015260640161029c565b80602001516001600160801b031642111561071e5760405162461bcd60e51b815260206004820152600b60248201526a10db185a5b48195b99195960aa1b604482015260640161029c565b336000908152600560209081526040808320600354845290915290205460ff161561077d5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b604482015260640161029c565b6040516bffffffffffffffffffffffff193360601b166020820152603481018590526000906054016040516020818303038152906040528051906020012090506107cb848460025484610a66565b6108085760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b210383937b7b31760911b604482015260640161029c565b336000818152600560209081526040808320600380548552925291829020805460ff191660011790555490519091907f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf7906108669089815260200190565b60405180910390a361088d7395987b0cdc7f65d989a30b3b7132a38388c548eb338761096b565b505061046e60018055565b6108a0610911565b6001600160a01b0381166109055760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161029c565b61090e816109bd565b50565b6000546001600160a01b031633146105375760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161029c565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261046e908490610a80565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260015403610a5f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161029c565b6002600155565b600082610a74868685610b55565b1490505b949350505050565b6000610ad5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ba19092919063ffffffff16565b9050805160001480610af6575080806020019051810190610af69190610f7c565b61046e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161029c565b600081815b84811015610b9857610b8482878784818110610b7857610b78610f9e565b90506020020135610bb0565b915080610b9081610f55565b915050610b5a565b50949350505050565b6060610a788484600085610be2565b6000818310610bcc576000828152602084905260409020610bdb565b60008381526020839052604090205b9392505050565b606082471015610c435760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161029c565b600080866001600160a01b03168587604051610c5f9190610fd8565b60006040518083038185875af1925050503d8060008114610c9c576040519150601f19603f3d011682016040523d82523d6000602084013e610ca1565b606091505b5091509150610cb287838387610cbd565b979650505050505050565b60608315610d2c578251600003610d25576001600160a01b0385163b610d255760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161029c565b5081610a78565b610a788383815115610d415781518083602001fd5b8060405162461bcd60e51b815260040161029c9190610ff4565b80356001600160801b0381168114610d7257600080fd5b919050565b600080600060608486031215610d8c57600080fd5b83359250610d9c60208501610d5b565b9150610daa60408501610d5b565b90509250925092565b80356001600160a01b0381168114610d7257600080fd5b600080600060608486031215610ddf57600080fd5b610de884610db3565b925060208401359150610daa60408501610db3565b600060208284031215610e0f57600080fd5b5035919050565b60008060408385031215610e2957600080fd5b610e3283610d5b565b9150610e4060208401610d5b565b90509250929050565b600080600060408486031215610e5e57600080fd5b83359250602084013567ffffffffffffffff80821115610e7d57600080fd5b818601915086601f830112610e9157600080fd5b813581811115610ea057600080fd5b8760208260051b8501011115610eb557600080fd5b6020830194508093505050509250925092565b60008060408385031215610edb57600080fd5b610ee483610db3565b946020939093013593505050565b600060208284031215610f0457600080fd5b610bdb82610db3565b60208082526028908201527f456e642074696d65206d7573742062652067726561746572207468616e2073746040820152676172742074696d6560c01b606082015260800190565b600060018201610f7557634e487b7160e01b600052601160045260246000fd5b5060010190565b600060208284031215610f8e57600080fd5b81518015158114610bdb57600080fd5b634e487b7160e01b600052603260045260246000fd5b60005b83811015610fcf578181015183820152602001610fb7565b50506000910152565b60008251610fea818460208701610fb4565b9190910192915050565b6020815260008251806020840152611013816040850160208701610fb4565b601f01601f1916919091016040019291505056fea264697066735822122084659f3a1936ef3c5f514bcd254185c9af346fe99541a239b1f8134be66d848f64736f6c63430008120033

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

db1690bf8137c2777f2b6d9869508111057cb7cb60beebe7c9db7c793cd3cd67

-----Decoded View---------------
Arg [0] : _merkleRoot (bytes32): 0xdb1690bf8137c2777f2b6d9869508111057cb7cb60beebe7c9db7c793cd3cd67

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


Deployed Bytecode Sourcemap

366:3794:10:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2511:563;;;;;;:::i;:::-;;:::i;:::-;;3862:296;;;;;;:::i;:::-;;:::i;678:25::-;;;;;;;;;1197::12;;;1185:2;1170:18;678:25:10;;;;;;;;1708:265;;;;;;:::i;:::-;;:::i;1824:101:0:-;;;:::i;835:53:10:-;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;835:53:10;;;;-1:-1:-1;;;835:53:10;;;;;;;;;-1:-1:-1;;;;;1848:15:12;;;1830:34;;1900:15;;;;1895:2;1880:18;;1873:43;1750:18;835:53:10;1603:319:12;709:36:10;;;;;;1201:85:0;1247:7;1273:6;-1:-1:-1;;;;;1273:6:0;1201:85;;;-1:-1:-1;;;;;2273:32:12;;;2255:51;;2243:2;2228:18;1201:85:0;2109:203:12;2063:442:10;;;;;;:::i;:::-;;:::i;3080:776::-;;;;;;:::i;:::-;;:::i;598:74::-;;630:42;598:74;;938:59;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3694:14:12;;3687:22;3669:41;;3657:2;3642:18;938:59:10;3529:187:12;2074:198:0;;;;;;:::i;:::-;;:::i;2511:563:10:-;1094:13:0;:11;:13::i;:::-;2646:21:10::1;;2639:3;:28;2631:70;;;::::0;-1:-1:-1;;;2631:70:10;;4114:2:12;2631:70:10::1;::::0;::::1;4096:21:12::0;4153:2;4133:18;;;4126:30;4192:31;4172:18;;;4165:59;4241:18;;2631:70:10::1;;;;;;;;;2730:10;-1:-1:-1::0;;;;;2719:21:10::1;:8;-1:-1:-1::0;;;;;2719:21:10::1;;2711:74;;;;-1:-1:-1::0;;;2711:74:10::1;;;;;;;:::i;:::-;2814:15;2803:8;-1:-1:-1::0;;;;;2803:26:10::1;;2795:56;;;::::0;-1:-1:-1;;;2795:56:10;;4881:2:12;2795:56:10::1;::::0;::::1;4863:21:12::0;4920:2;4900:18;;;4893:30;-1:-1:-1;;;4939:18:12;;;4932:47;4996:18;;2795:56:10::1;4679:341:12::0;2795:56:10::1;2862:33;2898:18:::0;;;:13:::1;:18;::::0;;;;;-1:-1:-1;;;;;2971:31:10;;::::1;-1:-1:-1::0;;;2971:31:10;::::1;2926:35:::0;;::::1;2971:31:::0;;::::1;::::0;;3018:49;;2898:18;;2926:35;;2912:3;;3018:49:::1;::::0;::::1;2621:453;2511:563:::0;;;:::o;3862:296::-;1094:13:0;:11;:13::i;:::-;-1:-1:-1;;;;;3963:16:10;::::1;3955:41;;;::::0;-1:-1:-1;;;3955:41:10;;5227:2:12;3955:41:10::1;::::0;::::1;5209:21:12::0;5266:2;5246:18;;;5239:30;-1:-1:-1;;;5285:18:12;;;5278:42;5337:18;;3955:41:10::1;5025:336:12::0;3955:41:10::1;4023:1;4014:6;:10;4006:52;;;::::0;-1:-1:-1;;;4006:52:10;;5568:2:12;4006:52:10::1;::::0;::::1;5550:21:12::0;5607:2;5587:18;;;5580:30;5646:31;5626:18;;;5619:59;5695:18;;4006:52:10::1;5366:353:12::0;4006:52:10::1;4100:2;-1:-1:-1::0;;;;;4073:30:10::1;4092:6;4085:5;-1:-1:-1::0;;;;;4073:30:10::1;;;;;;;;;;;4113:38;-1:-1:-1::0;;;;;4113:26:10;::::1;4140:2:::0;4144:6;4113:26:::1;:38::i;:::-;3862:296:::0;;;:::o;1708:265::-;1094:13:0;:11;:13::i;:::-;1813:10:10::1;;1795:14;:28:::0;1787:98:::1;;;::::0;-1:-1:-1;;;1787:98:10;;5926:2:12;1787:98:10::1;::::0;::::1;5908:21:12::0;5965:2;5945:18;;;5938:30;6004:34;5984:18;;;5977:62;6075:27;6055:18;;;6048:55;6120:19;;1787:98:10::1;5724:421:12::0;1787:98:10::1;1895:10;:27:::0;;;1938:28:::1;::::0;1908:14;;1938:28:::1;::::0;;;::::1;1708:265:::0;:::o;1824:101:0:-;1094:13;:11;:13::i;:::-;1888:30:::1;1915:1;1888:18;:30::i;:::-;1824:101::o:0;2063:442:10:-;1094:13:0;:11;:13::i;:::-;2179:10:10::1;-1:-1:-1::0;;;;;2168:21:10::1;:8;-1:-1:-1::0;;;;;2168:21:10::1;;2160:74;;;;-1:-1:-1::0;;;2160:74:10::1;;;;;;;:::i;:::-;2263:15;2252:8;-1:-1:-1::0;;;;;2252:26:10::1;;2244:56;;;::::0;-1:-1:-1;;;2244:56:10;;4881:2:12;2244:56:10::1;::::0;::::1;4863:21:12::0;4920:2;4900:18;;;4893:30;-1:-1:-1;;;4939:18:12;;;4932:47;4996:18;;2244:56:10::1;4679:341:12::0;2244:56:10::1;2311:21;:23:::0;;;:21:::1;:23;::::0;::::1;:::i;:::-;::::0;;;-1:-1:-1;;2383:34:10::1;::::0;;;;::::1;::::0;;-1:-1:-1;;;;;2383:34:10;;::::1;::::0;;;;;::::1;;::::0;;::::1;::::0;;;2358:21:::1;::::0;;-1:-1:-1;2344:36:10;;;:13:::1;:36:::0;;;;;;:73;;;;;::::1;-1:-1:-1::0;;;2344:73:10::1;::::0;;;::::1;;::::0;;;2454:21;;2433:65;;2383:34;;;;2454:21;;2433:65:::1;::::0;-1:-1:-1;2433:65:10::1;2063:442:::0;;:::o;3080:776::-;2261:21:1;:19;:21::i;:::-;3233::10::1;::::0;3184:32:::1;3219:36:::0;;;:13:::1;:36;::::0;;;;;;;;3184:71;;;;::::1;::::0;;;;-1:-1:-1;;;;;3184:71:10;;::::1;::::0;;;-1:-1:-1;;;3184:71:10;;::::1;;::::0;;::::1;::::0;;;;3282:15:::1;:41;;3274:71;;;::::0;-1:-1:-1;;;3274:71:10;;6589:2:12;3274:71:10::1;::::0;::::1;6571:21:12::0;6628:2;6608:18;;;6601:30;-1:-1:-1;;;6647:18:12;;;6640:47;6704:18;;3274:71:10::1;6387:341:12::0;3274:71:10::1;3382:12;:20;;;-1:-1:-1::0;;;;;3363:39:10::1;:15;:39;;3355:63;;;::::0;-1:-1:-1;;;3355:63:10;;6935:2:12;3355:63:10::1;::::0;::::1;6917:21:12::0;6974:2;6954:18;;;6947:30;-1:-1:-1;;;6993:18:12;;;6986:41;7044:18;;3355:63:10::1;6733:335:12::0;3355:63:10::1;3445:10;3437:19;::::0;;;:7:::1;:19;::::0;;;;;;;3457:21:::1;::::0;3437:42;;;;;;;;::::1;;3436:43;3428:71;;;::::0;-1:-1:-1;;;3428:71:10;;7275:2:12;3428:71:10::1;::::0;::::1;7257:21:12::0;7314:2;7294:18;;;7287:30;-1:-1:-1;;;7333:18:12;;;7326:45;7388:18;;3428:71:10::1;7073:339:12::0;3428:71:10::1;3535:37;::::0;-1:-1:-1;;3552:10:10::1;7594:2:12::0;7590:15;7586:53;3535:37:10::1;::::0;::::1;7574:66:12::0;7656:12;;;7649:28;;;3510:12:10::1;::::0;7693::12;;3535:37:10::1;;;;;;;;;;;;3525:48;;;;;;3510:63;;3591:58;3618:12;;3632:10;;3644:4;3591:26;:58::i;:::-;3583:85;;;::::0;-1:-1:-1;;;3583:85:10;;7918:2:12;3583:85:10::1;::::0;::::1;7900:21:12::0;7957:2;7937:18;;;7930:30;-1:-1:-1;;;7976:18:12;;;7969:44;8030:18;;3583:85:10::1;7716:338:12::0;3583:85:10::1;3686:10;3678:19;::::0;;;:7:::1;:19;::::0;;;;;;;3698:21:::1;::::0;;3678:42;;;;;;;;:49;;-1:-1:-1;;3678:49:10::1;3723:4;3678:49;::::0;;3761:21;3743:49;;3761:21;;3686:10;3743:49:::1;::::0;::::1;::::0;3784:7;1197:25:12;;1185:2;1170:18;;1051:177;3743:49:10::1;;;;;;;;3802:47;630:42;3829:10;3841:7:::0;3802:26:::1;:47::i;:::-;3174:682;;2303:20:1::0;1716:1;2809:22;;2629:209;2074:198:0;1094:13;:11;:13::i;:::-;-1:-1:-1;;;;;2162:22:0;::::1;2154:73;;;::::0;-1:-1:-1;;;2154:73:0;;8261:2:12;2154:73:0::1;::::0;::::1;8243:21:12::0;8300:2;8280:18;;;8273:30;8339:34;8319:18;;;8312:62;-1:-1:-1;;;8390:18:12;;;8383:36;8436:19;;2154:73:0::1;8059:402:12::0;2154:73:0::1;2237:28;2256:8;2237:18;:28::i;:::-;2074:198:::0;:::o;1359:130::-;1247:7;1273:6;-1:-1:-1;;;;;1273:6:0;719:10:8;1422:23:0;1414:68;;;;-1:-1:-1;;;1414:68:0;;8668:2:12;1414:68:0;;;8650:21:12;;;8687:18;;;8680:30;8746:34;8726:18;;;8719:62;8798:18;;1414:68:0;8466:356:12;941:175:6;1050:58;;;-1:-1:-1;;;;;9019:32:12;;1050:58:6;;;9001:51:12;9068:18;;;;9061:34;;;1050:58:6;;;;;;;;;;8974:18:12;;;;1050:58:6;;;;;;;;-1:-1:-1;;;;;1050:58:6;-1:-1:-1;;;1050:58:6;;;1023:86;;1043:5;;1023:19;:86::i;2426:187:0:-;2499:16;2518:6;;-1:-1:-1;;;;;2534:17:0;;;-1:-1:-1;;;;;;2534:17:0;;;;;;2566:40;;2518:6;;;;;;;2566:40;;2499:16;2566:40;2489:124;2426:187;:::o;2336:287:1:-;1759:1;2468:7;;:19;2460:63;;;;-1:-1:-1;;;2460:63:1;;9308:2:12;2460:63:1;;;9290:21:12;9347:2;9327:18;;;9320:30;9386:33;9366:18;;;9359:61;9437:18;;2460:63:1;9106:355:12;2460:63:1;1759:1;2598:7;:18;2336:287::o;1411:172:9:-;1512:4;1572;1535:33;1556:5;;1563:4;1535:20;:33::i;:::-;:41;1528:48;;1411:172;;;;;;;:::o;5196:642:6:-;5615:23;5641:69;5669:4;5641:69;;;;;;;;;;;;;;;;;5649:5;-1:-1:-1;;;;;5641:27:6;;;:69;;;;;:::i;:::-;5615:95;;5728:10;:17;5749:1;5728:22;:56;;;;5765:10;5754:30;;;;;;;;;;;;:::i;:::-;5720:111;;;;-1:-1:-1;;;5720:111:6;;9950:2:12;5720:111:6;;;9932:21:12;9989:2;9969:18;;;9962:30;10028:34;10008:18;;;10001:62;-1:-1:-1;;;10079:18:12;;;10072:40;10129:19;;5720:111:6;9748:406:12;2331:300:9;2424:7;2466:4;2424:7;2480:116;2500:16;;;2480:116;;;2552:33;2562:12;2576:5;;2582:1;2576:8;;;;;;;:::i;:::-;;;;;;;2552:9;:33::i;:::-;2537:48;-1:-1:-1;2518:3:9;;;;:::i;:::-;;;;2480:116;;;-1:-1:-1;2612:12:9;2331:300;-1:-1:-1;;;;2331:300:9:o;4108:223:7:-;4241:12;4272:52;4294:6;4302:4;4308:1;4311:12;4272:21;:52::i;9205:147:9:-;9268:7;9298:1;9294;:5;:51;;9426:13;9517:15;;;9552:4;9545:15;;;9598:4;9582:21;;9294:51;;;9426:13;9517:15;;;9552:4;9545:15;;;9598:4;9582:21;;9302:20;9287:58;9205:147;-1:-1:-1;;;9205:147:9:o;5165:446:7:-;5330:12;5387:5;5362:21;:30;;5354:81;;;;-1:-1:-1;;;5354:81:7;;10493:2:12;5354:81:7;;;10475:21:12;10532:2;10512:18;;;10505:30;10571:34;10551:18;;;10544:62;-1:-1:-1;;;10622:18:12;;;10615:36;10668:19;;5354:81:7;10291:402:12;5354:81:7;5446:12;5460:23;5487:6;-1:-1:-1;;;;;5487:11:7;5506:5;5513:4;5487:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5445:73;;;;5535:69;5562:6;5570:7;5579:10;5591:12;5535:26;:69::i;:::-;5528:76;5165:446;-1:-1:-1;;;;;;;5165:446:7:o;7671:628::-;7851:12;7879:7;7875:418;;;7906:10;:17;7927:1;7906:22;7902:286;;-1:-1:-1;;;;;1702:19:7;;;8113:60;;;;-1:-1:-1;;;8113:60:7;;11447:2:12;8113:60:7;;;11429:21:12;11486:2;11466:18;;;11459:30;11525:31;11505:18;;;11498:59;11574:18;;8113:60:7;11245:353:12;8113:60:7;-1:-1:-1;8208:10:7;8201:17;;7875:418;8249:33;8257:10;8269:12;8980:17;;:21;8976:379;;9208:10;9202:17;9264:15;9251:10;9247:2;9243:19;9236:44;8976:379;9331:12;9324:20;;-1:-1:-1;;;9324:20:7;;;;;;;;:::i;14:188:12:-;82:20;;-1:-1:-1;;;;;131:46:12;;121:57;;111:85;;192:1;189;182:12;111:85;14:188;;;:::o;207:328::-;284:6;292;300;353:2;341:9;332:7;328:23;324:32;321:52;;;369:1;366;359:12;321:52;405:9;392:23;382:33;;434:38;468:2;457:9;453:18;434:38;:::i;:::-;424:48;;491:38;525:2;514:9;510:18;491:38;:::i;:::-;481:48;;207:328;;;;;:::o;540:173::-;608:20;;-1:-1:-1;;;;;657:31:12;;647:42;;637:70;;703:1;700;693:12;718:328;795:6;803;811;864:2;852:9;843:7;839:23;835:32;832:52;;;880:1;877;870:12;832:52;903:29;922:9;903:29;:::i;:::-;893:39;;979:2;968:9;964:18;951:32;941:42;;1002:38;1036:2;1025:9;1021:18;1002:38;:::i;1233:180::-;1292:6;1345:2;1333:9;1324:7;1320:23;1316:32;1313:52;;;1361:1;1358;1351:12;1313:52;-1:-1:-1;1384:23:12;;1233:180;-1:-1:-1;1233:180:12:o;2317:260::-;2385:6;2393;2446:2;2434:9;2425:7;2421:23;2417:32;2414:52;;;2462:1;2459;2452:12;2414:52;2485:29;2504:9;2485:29;:::i;:::-;2475:39;;2533:38;2567:2;2556:9;2552:18;2533:38;:::i;:::-;2523:48;;2317:260;;;;;:::o;2582:683::-;2677:6;2685;2693;2746:2;2734:9;2725:7;2721:23;2717:32;2714:52;;;2762:1;2759;2752:12;2714:52;2798:9;2785:23;2775:33;;2859:2;2848:9;2844:18;2831:32;2882:18;2923:2;2915:6;2912:14;2909:34;;;2939:1;2936;2929:12;2909:34;2977:6;2966:9;2962:22;2952:32;;3022:7;3015:4;3011:2;3007:13;3003:27;2993:55;;3044:1;3041;3034:12;2993:55;3084:2;3071:16;3110:2;3102:6;3099:14;3096:34;;;3126:1;3123;3116:12;3096:34;3179:7;3174:2;3164:6;3161:1;3157:14;3153:2;3149:23;3145:32;3142:45;3139:65;;;3200:1;3197;3190:12;3139:65;3231:2;3227;3223:11;3213:21;;3253:6;3243:16;;;;;2582:683;;;;;:::o;3270:254::-;3338:6;3346;3399:2;3387:9;3378:7;3374:23;3370:32;3367:52;;;3415:1;3412;3405:12;3367:52;3438:29;3457:9;3438:29;:::i;:::-;3428:39;3514:2;3499:18;;;;3486:32;;-1:-1:-1;;;3270:254:12:o;3721:186::-;3780:6;3833:2;3821:9;3812:7;3808:23;3804:32;3801:52;;;3849:1;3846;3839:12;3801:52;3872:29;3891:9;3872:29;:::i;4270:404::-;4472:2;4454:21;;;4511:2;4491:18;;;4484:30;4550:34;4545:2;4530:18;;4523:62;-1:-1:-1;;;4616:2:12;4601:18;;4594:38;4664:3;4649:19;;4270:404::o;6150:232::-;6189:3;6210:17;;;6207:140;;6269:10;6264:3;6260:20;6257:1;6250:31;6304:4;6301:1;6294:15;6332:4;6329:1;6322:15;6207:140;-1:-1:-1;6374:1:12;6363:13;;6150:232::o;9466:277::-;9533:6;9586:2;9574:9;9565:7;9561:23;9557:32;9554:52;;;9602:1;9599;9592:12;9554:52;9634:9;9628:16;9687:5;9680:13;9673:21;9666:5;9663:32;9653:60;;9709:1;9706;9699:12;10159:127;10220:10;10215:3;10211:20;10208:1;10201:31;10251:4;10248:1;10241:15;10275:4;10272:1;10265:15;10698:250;10783:1;10793:113;10807:6;10804:1;10801:13;10793:113;;;10883:11;;;10877:18;10864:11;;;10857:39;10829:2;10822:10;10793:113;;;-1:-1:-1;;10940:1:12;10922:16;;10915:27;10698:250::o;10953:287::-;11082:3;11120:6;11114:13;11136:66;11195:6;11190:3;11183:4;11175:6;11171:17;11136:66;:::i;:::-;11218:16;;;;;10953:287;-1:-1:-1;;10953:287:12:o;11603:396::-;11752:2;11741:9;11734:21;11715:4;11784:6;11778:13;11827:6;11822:2;11811:9;11807:18;11800:34;11843:79;11915:6;11910:2;11899:9;11895:18;11890:2;11882:6;11878:15;11843:79;:::i;:::-;11983:2;11962:15;-1:-1:-1;;11958:29:12;11943:45;;;;11990:2;11939:54;;11603:396;-1:-1:-1;;11603:396:12:o

Swarm Source

ipfs://84659f3a1936ef3c5f514bcd254185c9af346fe99541a239b1f8134be66d848f

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
Loading...
Loading
[ Download: CSV Export  ]

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