ETH Price: $2,489.97 (-1.99%)

Contract

0xBA9bd2BF06ef6EE511D5E2FE52Ac8CB9C45c0ECf
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Emergency Withdr...194340402024-03-14 15:10:11224 days ago1710429011IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.0043171365.46872035
Buy194129912024-03-11 16:17:35227 days ago1710173855IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.01014268104.59181621
Buy194129852024-03-11 16:16:23227 days ago1710173783IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.01171044102.64576853
Buy194129522024-03-11 16:09:35227 days ago1710173375IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.01459478127.91448116
Buy194129292024-03-11 16:04:59227 days ago1710173099IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.01580371162.94840169
Buy194129262024-03-11 16:04:11227 days ago1710173051IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.01970947172.75981879
Buy194129162024-03-11 16:02:11227 days ago1710172931IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.00996342187.36698046
Buy194129142024-03-11 16:01:47227 days ago1710172907IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.01010579190.04422315
Buy194129112024-03-11 16:01:11227 days ago1710172871IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.00900799169.39959063
Buy194129112024-03-11 16:01:11227 days ago1710172871IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.00901002169.39959063
Buy194129102024-03-11 16:00:59227 days ago1710172859IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.00827272155.57247939
Buy194129102024-03-11 16:00:59227 days ago1710172859IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.00827458155.57247939
Buy194129102024-03-11 16:00:59227 days ago1710172859IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.00827272155.57247939
Buy194129102024-03-11 16:00:59227 days ago1710172859IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.01774864155.57247939
Buy194129102024-03-11 16:00:59227 days ago1710172859IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.01626046155.60549545
Buy194129102024-03-11 16:00:59227 days ago1710172859IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.0170055155.60549545
Buy194129102024-03-11 16:00:59227 days ago1710172859IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.0177524155.60549545
Buy194129102024-03-11 16:00:59227 days ago1710172859IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.01700901155.62059344
Buy194129092024-03-11 16:00:47227 days ago1710172847IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.01540177147.40518851
Buy194129092024-03-11 16:00:47227 days ago1710172847IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.01610932147.40518851
Buy194129092024-03-11 16:00:47227 days ago1710172847IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.01610932147.40518851
Buy194129092024-03-11 16:00:47227 days ago1710172847IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.01540177147.40518851
Buy194129092024-03-11 16:00:47227 days ago1710172847IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.01540354147.40518851
Buy194129092024-03-11 16:00:47227 days ago1710172847IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.01540531147.40518851
Buy194129092024-03-11 16:00:47227 days ago1710172847IN
0xBA9bd2BF...9C45c0ECf
0 ETH0.01540531147.40518851
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:
MoonSaleCustom

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

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

import "./MoonSaleBase.sol";

/**
 * @title MoonSaleCustom
 * @notice This is a  whitelisted sale contract. Every whitelisted address
 * can buy the same amount of tokens on a FCFS basis.
 */
contract MoonSaleCustom is MoonSaleBase {
    using SafeERC20 for IERC20;

    mapping(address => uint256) public allocations;

    constructor(
        address _saleToken,
        uint256 _price,
        address _defaultPaymentToken,
        uint256 _startTime,
        uint256 _endTime,
        uint256 _claimTime,
        uint256 _maxTotal,
        address _treasury,
        uint256[4] memory _vestingData
    )
        MoonSaleBase(
            _saleToken,
            _price,
            _defaultPaymentToken,
            _startTime,
            _endTime,
            _claimTime,
            _maxTotal,
            _treasury,
            _vestingData
        )
    {}

    function getMaxAllocation(
        address _address
    ) public view override returns (uint256) {
        return allocations[_address];
    }

    function setAllocations(
        address[] memory _addresses,
        uint256[] memory _allocations
    ) external onlyOwner {
        require(_addresses.length == _allocations.length, "length mismatch");

        for (uint256 i = 0; i < _addresses.length; i++) {
            allocations[_addresses[i]] = _allocations[i];
        }
    }
}
// solhint-enable not-rely-on-time

File 2 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

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

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

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

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

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

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

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

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

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

File 3 of 17 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

File 4 of 17 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.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}.
 *
 * 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.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

    mapping(address account => mapping(address spender => 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 returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual 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 returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual 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 `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` 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 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        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 `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` 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.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` 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.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     * ```
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

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

File 5 of 17 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 */
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 17 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

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

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

File 7 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

File 8 of 17 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../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 An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

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

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

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

    /**
     * @dev 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);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

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

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

    /**
     * @dev 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);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that 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(token).code.length > 0;
    }
}

File 9 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @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 or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * 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.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @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`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) 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 FailedInnerCall();
        }
    }
}

File 10 of 17 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

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

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

File 11 of 17 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

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

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

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

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

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

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

File 12 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @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;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    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
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // 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 13 of 17 : BaseClaim.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

// solhint-disable not-rely-on-time
contract BaseClaim is Ownable {
    using SafeERC20 for ERC20;

    struct UserInfo {
        uint256 reward;
        uint256 withdrawn;
    }
    mapping(address => UserInfo) public userInfo;

    uint256 public claimTime; // Time at which claiming can start

    ERC20 public immutable rewardToken; // Token that is distributed

    event RewardClaimed(
        address indexed user,
        uint256 indexed withdrawAmount,
        uint256 totalWithdrawn
    );
    event ClaimsPaused();
    event ClaimsUnpaused();

    uint256 public totalRewards;
    uint256 public totalWithdrawn;

    bool public areClaimsPaused;

    constructor(address _rewardToken) Ownable(msg.sender) {
        require(
            address(_rewardToken) != address(0),
            "Reward token must be set"
        );

        rewardToken = ERC20(_rewardToken);

        claimTime = block.timestamp;
    }

    ////
    // Modifiers
    ////
    modifier onlyWithRewards(address addr) {
        require(userInfo[addr].reward > 0, "Address has no rewards");
        _;
    }

    ////
    // Functions
    ////

    function pauseClaims() external onlyOwner {
        areClaimsPaused = true;

        emit ClaimsPaused();
    }

    function unPauseClaims() external onlyOwner {
        areClaimsPaused = false;

        emit ClaimsUnpaused();
    }

    function addUserReward(address _user, uint256 _amount) internal {
        UserInfo storage user = userInfo[_user];
        uint256 newReward = user.reward + _amount;

        totalRewards = totalRewards + _amount;
        user.reward = newReward;
    }

    function setUserReward(address _user, uint256 _amount) internal {
        UserInfo storage user = userInfo[_user];

        totalRewards = (totalRewards + _amount) - (user.reward);
        user.reward = _amount;

        require(user.reward >= user.withdrawn, "Invalid reward amount");
    }

    function freezeUserReward(address _user) internal {
        UserInfo storage user = userInfo[_user];

        uint256 change = user.reward - user.withdrawn;

        user.reward = user.withdrawn;
        totalRewards = totalRewards - change;
    }

    function claim() external onlyWithRewards(msg.sender) {
        require(!areClaimsPaused, "Claims are paused");

        UserInfo storage user = userInfo[msg.sender];

        uint256 withdrawAmount = getWithdrawableAmount(msg.sender);

        user.withdrawn = user.withdrawn + withdrawAmount;
        totalWithdrawn = totalWithdrawn + withdrawAmount;

        assert(user.withdrawn <= user.reward);

        rewardToken.safeTransfer(msg.sender, withdrawAmount);

        emit RewardClaimed(msg.sender, withdrawAmount, user.withdrawn);
    }

    function getWithdrawableAmount(
        address _user
    ) public view returns (uint256) {
        UserInfo memory user = userInfo[_user];

        uint256 unlockedAmount = calculateUnlockedAmount(
            user.reward,
            block.timestamp
        );

        if (unlockedAmount < user.withdrawn) {
            return 0;
        }

        return unlockedAmount - user.withdrawn;
    }

    // This is a timed vesting contract
    //
    // Claimants can claim 100% of ther claim upon claimTime.
    //
    // Can be overriden in contracts that inherit from this one.
    function calculateUnlockedAmount(
        uint256 _totalAmount,
        uint256 _timestamp
    ) internal view virtual returns (uint256) {
        return _timestamp > claimTime ? _totalAmount : 0;
    }

    function totalAvailableAfter() public view virtual returns (uint256) {
        return claimTime;
    }

    function withdrawRewardAmount() external onlyOwner {
        rewardToken.safeTransfer(
            msg.sender,
            rewardToken.balanceOf(address(this)) - totalRewards
        );
    }

    function emergencyWithdrawToken(ERC20 tokenAddress) external onlyOwner {
        tokenAddress.safeTransfer(
            msg.sender,
            tokenAddress.balanceOf(address(this))
        );
    }
}
// solhint-enable not-rely-on-time

File 14 of 17 : Claim.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

import "./VestedClaim.sol";

contract Claim is VestedClaim {
    event ClaimantsAdded(
        address[] indexed claimants,
        uint256[] indexed amounts
    );

    event RewardsFrozen(address[] indexed claimants);

    constructor(uint256 _claimTime, address _token) VestedClaim(_token) {
        claimTime = _claimTime;
    }

    function updateClaimTimestamp(uint256 _claimTime) external onlyOwner {
        claimTime = _claimTime;
    }

    function addClaimants(
        address[] calldata _claimants,
        uint256[] calldata _claimAmounts
    ) external onlyOwner {
        require(
            _claimants.length == _claimAmounts.length,
            "Arrays do not have equal length"
        );

        for (uint256 i = 0; i < _claimants.length; i++) {
            setUserReward(_claimants[i], _claimAmounts[i]);
        }

        emit ClaimantsAdded(_claimants, _claimAmounts);
    }

    function freezeRewards(address[] memory _claimants) external onlyOwner {
        for (uint256 i = 0; i < _claimants.length; i++) {
            freezeUserReward(_claimants[i]);
        }

        emit RewardsFrozen(_claimants);
    }

    // set user info for multiple users
    function setUserInfo(
        address[] calldata _users,
        uint256[] calldata _rewards,
        uint256[] calldata _withdrawns
    ) external onlyOwner {
        require(
            _users.length == _rewards.length &&
                _users.length == _withdrawns.length,
            "Arrays do not have equal length"
        );

        for (uint256 i = 0; i < _users.length; i++) {
            _setUserInfo(_users[i], _rewards[i], _withdrawns[i]);
        }

        emit ClaimantsAdded(_users, _rewards);
    }

    function _setUserInfo(
        address _user,
        uint256 _reward,
        uint256 _withdrawn
    ) internal {
        UserInfo storage user = userInfo[_user];

        user.reward = _reward;
        user.withdrawn = _withdrawn;

        totalRewards += _reward;
        totalWithdrawn += _withdrawn;

        require(user.reward >= user.withdrawn, "Invalid reward amount");
    }
}

File 15 of 17 : ClaimConfigurable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

import "./Claim.sol";

contract ClaimConfigurable is Claim {
    constructor(
        uint256 _claimTime,
        address _token,
        uint256[4] memory vestingData
    ) Claim(_claimTime, _token) {
        require(vestingData[0] <= BASE_POINTS, "initialUnlock too high");

        initialUnlock = vestingData[0];
        cliff = vestingData[1];
        vesting = vestingData[2];
        vestingInterval = vestingData[3];
    }
}

File 16 of 17 : VestedClaim.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

import "./BaseClaim.sol";

contract VestedClaim is BaseClaim {
    uint256 public constant BASE_POINTS = 10000;
    uint256 public initialUnlock; // percentage unlocked at claimTime (100% = 10000)
    uint256 public cliff; // delay before gradual unlock
    uint256 public vesting; // total time of gradual unlock
    uint256 public vestingInterval; // interval of unlock

    constructor(address _rewardToken) BaseClaim(_rewardToken) {
        require(initialUnlock <= BASE_POINTS, "initialUnlock too high");

        initialUnlock = 2000; // = 20%
        cliff = 90 days;
        vesting = 455 days;
        vestingInterval = 1 days;
    } // solhint-disable-line no-empty-blocks

    // This is a timed vesting contract
    //
    // Claimants can claim 20% of ther claim upon claimTime.
    // After 90 days, there is a cliff that starts a gradual unlock. For ~15 months (455 days),
    // a relative amount of the remaining 80% is unlocked.
    //
    // At claimTime: 20%
    // At claimTime + 90, until claimTime + 455 days: daily unlock
    // After claimTime + 90 + 455: 100%
    function calculateUnlockedAmount(
        uint256 _totalAmount,
        uint256 _timestamp
    ) internal view override returns (uint256) {
        if (_timestamp < claimTime) {
            return 0;
        }

        uint256 timeSinceClaim = _timestamp - claimTime;
        uint256 unlockedAmount = 0;

        if (timeSinceClaim <= cliff) {
            unlockedAmount = (_totalAmount * initialUnlock) / BASE_POINTS;
        } else if (timeSinceClaim > cliff + vesting) {
            unlockedAmount = _totalAmount;
        } else {
            uint256 unlockedOnClaim = (_totalAmount * initialUnlock) /
                BASE_POINTS;
            uint256 vestable = _totalAmount - unlockedOnClaim;
            uint256 intervalsSince = (timeSinceClaim - cliff) / vestingInterval;
            uint256 totalVestingIntervals = vesting / vestingInterval;

            unlockedAmount =
                ((vestable * intervalsSince) / totalVestingIntervals) +
                unlockedOnClaim;
        }

        return unlockedAmount;
    }

    function totalAvailableAfter() public view override returns (uint256) {
        return claimTime + cliff + vesting;
    }
}

File 17 of 17 : MoonSaleBase.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

import "../claim/ClaimConfigurable.sol";

// solhint-disable not-rely-on-time
/**
 * @title MoonSaleOpen
 * @notice This is a  whitelisted sale contract. Every whitelisted address
 * can buy the same amount of tokens on a FCFS basis.
 */
abstract contract MoonSaleBase is ClaimConfigurable, Pausable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    uint256 public startTime;
    uint256 public endTime;
    uint256 public maxTotal; // Max total allocated (in sale token currency)
    uint256 public total; // Total sold (in sale token currency)

    address public treasury;

    struct PaymentToken {
        IERC20 token;
        uint256 price;
    }
    PaymentToken[] public paymentTokens;

    event PaymentTokenUpdated(address token, uint256 price);
    event PaymentTokensReset();

    event Bought(
        address indexed by,
        address indexed paymentToken,
        uint256 paymentAmount,
        uint256 buyAmount
    );

    constructor(
        address _saleToken,
        uint256 _price,
        address _defaultPaymentToken,
        uint256 _startTime,
        uint256 _endTime,
        uint256 _claimTime,
        uint256 _maxTotal,
        address _treasury,
        uint256[4] memory vestingData
    ) ClaimConfigurable(_claimTime, _saleToken, vestingData) {
        paymentTokens.push(PaymentToken(IERC20(_defaultPaymentToken), _price));

        startTime = _startTime;
        endTime = _endTime;

        maxTotal = _maxTotal;
        treasury = _treasury;

        // Provided by VestedClaim
        claimTime = _claimTime;
    }

    modifier withAllocation(address _address) virtual {
        require(
            getAvailableAllocation(_address) > 0,
            "No available allocation"
        );
        _;
    }

    // modify start time
    function setStartTime(uint256 _startTime) external onlyOwner {
        startTime = _startTime;
    }

    // modify end time
    function setEndTime(uint256 _endTime) external onlyOwner {
        endTime = _endTime;
    }

    // modify max total
    function setMaxTotal(uint256 _maxTotal) external onlyOwner {
        maxTotal = _maxTotal;
    }

    // set treasury
    function setTreasury(address _treasury) external onlyOwner {
        treasury = _treasury;
    }

    // Payment tokens
    function getPaymentTokens() public view returns (PaymentToken[] memory) {
        return paymentTokens;
    }

    function resetPaymentTokens(
        address[] calldata _tokens,
        uint256[] calldata _prices
    ) external onlyOwner {
        delete paymentTokens;
        emit PaymentTokensReset();

        for (uint256 i = 0; i < _tokens.length; i++) {
            paymentTokens.push(PaymentToken(IERC20(_tokens[i]), _prices[i]));
            emit PaymentTokenUpdated(_tokens[i], _prices[i]);
        }
    }

    function addPaymentToken(
        address _token,
        uint256 _price
    ) external onlyOwner {
        // Update existing
        for (uint256 i = 0; i < paymentTokens.length; i++) {
            if (address(paymentTokens[i].token) == _token) {
                paymentTokens[i].price = _price;
                emit PaymentTokenUpdated(_token, _price);
                return;
            }
        }

        // Add non-existing
        paymentTokens.push(PaymentToken(IERC20(_token), _price));
        emit PaymentTokenUpdated(_token, _price);
    }

    function removePaymentToken(address _token) external onlyOwner {
        uint256 length = paymentTokens.length;
        uint256 toRemove;
        for (uint256 i = 0; i < length; i++) {
            if (address(paymentTokens[i].token) == _token) {
                toRemove = i;
            }
        }

        paymentTokens[toRemove] = paymentTokens[length - 1];
        paymentTokens.pop();
        emit PaymentTokenUpdated(_token, 0);
    }

    /**
     * @dev Get reward token price in payment token.
     * It returns "How much payment token you need to buy one sale token"
     *
     * @param paymentToken Payment token address
     *
     * @return Price in payment token
     */
    function getPriceInToken(
        address paymentToken
    ) public view returns (uint256) {
        for (uint256 i = 0; i < paymentTokens.length; i++) {
            if (address(paymentTokens[i].token) == paymentToken) {
                return paymentTokens[i].price;
            }
        }
        return 0;
    }

    /**
     * @dev Get available sale token for an address. That's the remaining sale token allocation available.
     * @param _address Address to check
     *
     * @return Available sale token for an address
     */
    function getAvailableAllocation(
        address _address
    ) public view virtual returns (uint256) {
        return getMaxAllocation(_address) - userInfo[_address].reward;
    }

    function buy(
        address paymentToken,
        uint256 paymentAmount
    ) external withAllocation(msg.sender) whenNotPaused nonReentrant {
        require(block.timestamp >= startTime, "Not started");
        require(block.timestamp <= endTime, "Ended");

        uint256 allocationAmount = getTokenAmount(paymentToken, paymentAmount);
        require(allocationAmount > 0, "Invalid amount");

        total = total + allocationAmount;
        require(total <= maxTotal, "Max total reached");

        IERC20(paymentToken).safeTransferFrom(
            msg.sender,
            treasury,
            paymentAmount
        );

        UserInfo storage user = userInfo[msg.sender];
        uint256 totalUserAllocation = user.reward + allocationAmount;
        require(
            totalUserAllocation <= getMaxAllocation(msg.sender),
            "Address allocation limit reached"
        );
        addUserReward(msg.sender, allocationAmount);

        emit Bought(msg.sender, paymentToken, paymentAmount, allocationAmount);
    }

    /**
     * @dev Get sale token amount that you would receive for a payment token amount
     * @param paymentToken Payment token address
     * @param paymentAmount Payment token amount
     *
     * @return Sale token amount
     */
    function getTokenAmount(
        address paymentToken,
        uint256 paymentAmount
    ) public view returns (uint256) {
        if (getPriceInToken(paymentToken) == 0) return 0;
        // Sale token has 18 decimals
        return (paymentAmount * 1e18) / getPriceInToken(paymentToken);
    }

    /**
     * OVERRIDE
     */

    /**
     * @dev Get max allocation of sale token for an address. That's the maximum sale tokens an address can get.
     * @param _address Address to check
     *
     * @return Max sale token amount for an address
     */
    function getMaxAllocation(
        address _address
    ) public view virtual returns (uint256);

    function getSaleData()
        public
        view
        returns (
            address _rewardToken,
            uint256 _startTime,
            uint256 _endTime,
            uint256 _maxTotal,
            uint256 _total,
            uint256 _available,
            PaymentToken[] memory _paymentTokens
        )
    {
        return (
            address(rewardToken),
            startTime,
            endTime,
            maxTotal,
            total,
            maxTotal - total,
            paymentTokens
        );
    }

    function getUserData(
        address _address
    )
        public
        view
        returns (uint256 _allocation, uint256 _reward, uint256 _available)
    {
        return (
            getMaxAllocation(_address),
            userInfo[_address].reward,
            getAvailableAllocation(_address)
        );
    }
}
// solhint-enable not-rely-on-time

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_saleToken","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"address","name":"_defaultPaymentToken","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256","name":"_claimTime","type":"uint256"},{"internalType":"uint256","name":"_maxTotal","type":"uint256"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"uint256[4]","name":"_vestingData","type":"uint256[4]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"by","type":"address"},{"indexed":true,"internalType":"address","name":"paymentToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"paymentAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"buyAmount","type":"uint256"}],"name":"Bought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address[]","name":"claimants","type":"address[]"},{"indexed":true,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"ClaimantsAdded","type":"event"},{"anonymous":false,"inputs":[],"name":"ClaimsPaused","type":"event"},{"anonymous":false,"inputs":[],"name":"ClaimsUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"PaymentTokenUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"PaymentTokensReset","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"withdrawAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalWithdrawn","type":"uint256"}],"name":"RewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address[]","name":"claimants","type":"address[]"}],"name":"RewardsFrozen","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"BASE_POINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_claimants","type":"address[]"},{"internalType":"uint256[]","name":"_claimAmounts","type":"uint256[]"}],"name":"addClaimants","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"addPaymentToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allocations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"areClaimsPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"paymentToken","type":"address"},{"internalType":"uint256","name":"paymentAmount","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cliff","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ERC20","name":"tokenAddress","type":"address"}],"name":"emergencyWithdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_claimants","type":"address[]"}],"name":"freezeRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getAvailableAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getMaxAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPaymentTokens","outputs":[{"components":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct MoonSaleBase.PaymentToken[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"paymentToken","type":"address"}],"name":"getPriceInToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleData","outputs":[{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256","name":"_maxTotal","type":"uint256"},{"internalType":"uint256","name":"_total","type":"uint256"},{"internalType":"uint256","name":"_available","type":"uint256"},{"components":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct MoonSaleBase.PaymentToken[]","name":"_paymentTokens","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"paymentToken","type":"address"},{"internalType":"uint256","name":"paymentAmount","type":"uint256"}],"name":"getTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getUserData","outputs":[{"internalType":"uint256","name":"_allocation","type":"uint256"},{"internalType":"uint256","name":"_reward","type":"uint256"},{"internalType":"uint256","name":"_available","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getWithdrawableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialUnlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseClaims","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"paymentTokens","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"removePaymentToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"uint256[]","name":"_prices","type":"uint256[]"}],"name":"resetPaymentTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_allocations","type":"uint256[]"}],"name":"setAllocations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"setEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTotal","type":"uint256"}],"name":"setMaxTotal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"},{"internalType":"uint256[]","name":"_rewards","type":"uint256[]"},{"internalType":"uint256[]","name":"_withdrawns","type":"uint256[]"}],"name":"setUserInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"total","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAvailableAfter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalWithdrawn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unPauseClaims","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimTime","type":"uint256"}],"name":"updateClaimTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"withdrawn","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vesting","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b50604051620028e7380380620028e7833981016040819052620000349162000323565b8888888888888888888389828282808033806200006c57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6200007781620002a0565b506001600160a01b038116620000d05760405162461bcd60e51b815260206004820152601860248201527f52657761726420746f6b656e206d757374206265207365740000000000000000604482015260640162000063565b6001600160a01b0316608052426002556006546127101015620001365760405162461bcd60e51b815260206004820152601660248201527f696e697469616c556e6c6f636b20746f6f206869676800000000000000000000604482015260640162000063565b50506107d06006556276a700600755630257da806008556201518060095560025580516127101015620001ac5760405162461bcd60e51b815260206004820152601660248201527f696e697469616c556e6c6f636b20746f6f206869676800000000000000000000604482015260640162000063565b8051600655602080820151600755604080830151600855606090920151600955600a805460ff191690556001600b81905582518084019093526001600160a01b039b8c1683529082019b8c52601180549182018155600052905160029182027f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6881018054928d166001600160a01b03199384161790559b517f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c69909c019b909b55600c98909855505050600d93909355600e556010805492909416919094161790915555506200041598505050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200030857600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6000806000806000806000806000610180808b8d0312156200034457600080fd5b6200034f8b620002f0565b99506020808c015199506200036760408d01620002f0565b985060608c0151975060808c0151965060a08c0151955060c08c015194506200039360e08d01620002f0565b93508c61011f8d0112620003a657600080fd5b604051608081016001600160401b0381118282101715620003cb57620003cb6200030d565b604052918c0191808e841115620003e157600080fd5b6101008e015b84811015620004005780518252908301908301620003e7565b50508093505050509295985092959850929598565b60805161249a6200044d60003960008181610626015281816107ea0152818161086901528181610d2d0152610e8f015261249a6000f3fe608060405234801561001057600080fd5b50600436106102bb5760003560e01c8063715018a611610182578063b5ab1c5d116100e9578063cce7ec13116100a2578063f2fde38b1161007c578063f2fde38b146105fb578063f67771751461060e578063f7c618c114610621578063ffc9896b1461064857600080fd5b8063cce7ec13146105a3578063de660841146105b6578063f0f44260146105e857600080fd5b8063b5ab1c5d1461054d578063b827d55614610556578063b8e50cab14610569578063c3f368af14610572578063ca5e553e1461057b578063ccb98ffc1461059057600080fd5b80638da5cb5b1161013b5780638da5cb5b146104e3578063964ddbb2146104f4578063a0d7c60e14610507578063a512542114610514578063aa2bf67614610527578063b01993981461053a57600080fd5b8063715018a61461049457806378e979251461049c57806379bf3672146104a55780637d7fa215146104ad57806387a609f1146104c85780638a7d76b0146104d057600080fd5b80633197cbb61161022657806352a9039c116101df57806352a9039c146103ed57806357b6527e1461040d5780635b89a572146104365780635c975abb1461044957806361d027b314610460578063648e3c261461048b57600080fd5b80633197cbb6146103a45780633e0a322d146103ad57806343404cc2146103c057806344c63eec146103d35780634b319713146103dc5780634e71d92d146103e557600080fd5b80631959a002116102785780631959a0021461031d5780631af03203146103595780631ff64acd1461036c5780632126ce851461037f57806327b3bf11146103925780632ddbd13a1461039b57600080fd5b8063017fbef5146102c057806305df0ea6146102d55780630e15561a146102dd5780630f3314e7146102f9578063115ece4c1461030157806313d033c014610314575b600080fd5b6102d36102ce366004611e73565b610676565b005b6102d36107bc565b6102e660035481565b6040519081526020015b60405180910390f35b6102d3610892565b6102e661030f366004611f22565b6108d2565b6102e660075481565b61034461032b366004611f4e565b6001602081905260009182526040909120805491015482565b604080519283526020830191909152016102f0565b6102d3610367366004611f4e565b61091a565b6102d361037a36600461204a565b6109a4565b6102e661038d366004611f4e565b610a6f565b6102e660025481565b6102e6600f5481565b6102e6600d5481565b6102d36103bb366004612105565b610a9d565b6102d36103ce366004611f22565b610aaa565b6102e660085481565b6102e660045481565b6102d3610c2e565b6102e66103fb366004611f4e565b60126020526000908152604090205481565b6102e661041b366004611f4e565b6001600160a01b031660009081526012602052604090205490565b6102e6610444366004611f4e565b610da1565b600a5460ff165b60405190151581526020016102f0565b601054610473906001600160a01b031681565b6040516001600160a01b0390911681526020016102f0565b6102e6600e5481565b6102d3610e33565b6102e6600c5481565b6102d3610e45565b6104b5610e82565b6040516102f0979695949392919061216d565b6102e6610f52565b6102d36104de3660046121ac565b610f76565b6000546001600160a01b0316610473565b6102d3610502366004612105565b611091565b6005546104509060ff1681565b6102d3610522366004611f4e565b61109e565b6102d3610535366004612105565b6111ed565b6102d36105483660046121ac565b6111fa565b6102e661271081565b6102d3610564366004612218565b61136d565b6102e660095481565b6102e660065481565b6105836113f7565b6040516102f0919061224d565b6102d361059e366004612105565b61146c565b6102d36105b1366004611f22565b611479565b6105c96105c4366004612105565b6116fd565b604080516001600160a01b0390931683526020830191909152016102f0565b6102d36105f6366004611f4e565b611735565b6102d3610609366004611f4e565b61175f565b6102e661061c366004611f4e565b61179a565b6104737f000000000000000000000000000000000000000000000000000000000000000081565b61065b610656366004611f4e565b611808565b604080519384526020840192909252908201526060016102f0565b61067e61185b565b848314801561068c57508481145b6106dd5760405162461bcd60e51b815260206004820152601f60248201527f41727261797320646f206e6f74206861766520657175616c206c656e6774680060448201526064015b60405180910390fd5b60005b8581101561075b576107498787838181106106fd576106fd612260565b90506020020160208101906107129190611f4e565b86868481811061072457610724612260565b9050602002013585858581811061073d5761073d612260565b90506020020135611888565b806107538161228c565b9150506106e0565b50838360405161076c9291906122a5565b604051809103902086866040516107849291906122ce565b604051908190038120907f9e90b93ef585ec8fc3bef98ea72276d1068177358fc8071996f3ab9a18dedbe190600090a3505050505050565b6107c461185b565b6003546040516370a0823160e01b81523060048201526108909133916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015610831573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108559190612310565b61085f9190612329565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016919061192f565b565b61089a61185b565b6005805460ff191660011790556040517f7cdf17ad9ee98efb9f1c7c037e6d670fdaa3f0ea4d4b016e4707fa1827a79e4390600090a1565b60006108dd83610da1565b6000036108ec57506000610914565b6108f583610da1565b61090783670de0b6b3a764000061233c565b6109119190612353565b90505b92915050565b61092261185b565b6040516370a0823160e01b81523060048201526109a19033906001600160a01b038416906370a0823190602401602060405180830381865afa15801561096c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109909190612310565b6001600160a01b038416919061192f565b50565b6109ac61185b565b80518251146109ef5760405162461bcd60e51b815260206004820152600f60248201526e0d8cadccee8d040dad2e6dac2e8c6d608b1b60448201526064016106d4565b60005b8251811015610a6a57818181518110610a0d57610a0d612260565b602002602001015160126000858481518110610a2b57610a2b612260565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080610a629061228c565b9150506109f2565b505050565b6001600160a01b03811660009081526001602090815260408083205460129092528220546109149190612329565b610aa561185b565b600c55565b610ab261185b565b60005b601154811015610b6e57826001600160a01b031660118281548110610adc57610adc612260565b60009182526020909120600290910201546001600160a01b031603610b5c578160118281548110610b0f57610b0f612260565b600091825260209182902060016002909202010191909155604080516001600160a01b038616815291820184905260008051602061244583398151915291015b60405180910390a1505050565b80610b668161228c565b915050610ab5565b506040805180820182526001600160a01b0384811680835260208084018681526011805460018101825560009190915294517f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c68600290960295860180546001600160a01b031916919095161790935591517f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c699093019290925582519182528101839052600080516020612445833981519152910160405180910390a15050565b33600081815260016020526040902054610c835760405162461bcd60e51b81526020600482015260166024820152754164647265737320686173206e6f207265776172647360501b60448201526064016106d4565b60055460ff1615610cca5760405162461bcd60e51b815260206004820152601160248201527010db185a5b5cc8185c99481c185d5cd959607a1b60448201526064016106d4565b33600081815260016020526040812091610ce39061179a565b9050808260010154610cf59190612375565b6001830155600454610d08908290612375565b600455815460018301541115610d2057610d20612388565b610d546001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016338361192f565b80336001600160a01b03167ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e27317438460010154604051610d9491815260200190565b60405180910390a3505050565b6000805b601154811015610e2a57826001600160a01b031660118281548110610dcc57610dcc612260565b60009182526020909120600290910201546001600160a01b031603610e185760118181548110610dfe57610dfe612260565b906000526020600020906002020160010154915050919050565b80610e228161228c565b915050610da5565b50600092915050565b610e3b61185b565b610890600061198e565b610e4d61185b565b6005805460ff191690556040517f3bd17c2ef5a04c031943ad098b3f9bfa9da2bc92be12a6d4197b076f4c133c0090600090a1565b60008060008060008060607f0000000000000000000000000000000000000000000000000000000000000000600c54600d54600e54600f54600f54600e54610eca9190612329565b601180805480602002602001604051908101604052809291908181526020016000905b82821015610f35576000848152602090819020604080518082019091526002850290910180546001600160a01b03168252600190810154828401529083529092019101610eed565b505050509050965096509650965096509650965090919293949596565b6000600854600754600254610f679190612375565b610f719190612375565b905090565b610f7e61185b565b828114610fcd5760405162461bcd60e51b815260206004820152601f60248201527f41727261797320646f206e6f74206861766520657175616c206c656e6774680060448201526064016106d4565b60005b8381101561103257611020858583818110610fed57610fed612260565b90506020020160208101906110029190611f4e565b84848481811061101457611014612260565b905060200201356119de565b8061102a8161228c565b915050610fd0565b5081816040516110439291906122a5565b6040518091039020848460405161105b9291906122ce565b604051908190038120907f9e90b93ef585ec8fc3bef98ea72276d1068177358fc8071996f3ab9a18dedbe190600090a350505050565b61109961185b565b600255565b6110a661185b565b6011546000805b8281101561110757836001600160a01b0316601182815481106110d2576110d2612260565b60009182526020909120600290910201546001600160a01b0316036110f5578091505b806110ff8161228c565b9150506110ad565b506011611115600184612329565b8154811061112557611125612260565b90600052602060002090600202016011828154811061114657611146612260565b60009182526020909120825460029092020180546001600160a01b0319166001600160a01b03909216919091178155600191820154910155601180548061118f5761118f61239e565b60008281526020812060026000199093019283020180546001600160a01b0319168155600101819055915560405160008051602061244583398151915291610b4f918691906001600160a01b03929092168252602082015260400190565b6111f561185b565b600e55565b61120261185b565b61120e60116000611de1565b6040517fae8cb61d05474475445ef2a83bacf0a11fa6ecda92c85c75aa5b31990eb37a2490600090a160005b83811015611366576011604051806040016040528087878581811061126157611261612260565b90506020020160208101906112769190611f4e565b6001600160a01b0316815260200185858581811061129657611296612260565b60209081029290920135909252835460018082018655600095865294829020845160029092020180546001600160a01b0319166001600160a01b0390921691909117815592015191909201555060008051602061244583398151915285858381811061130457611304612260565b90506020020160208101906113199190611f4e565b84848481811061132b5761132b612260565b604080516001600160a01b0390951685526020918202939093013590840152500160405180910390a18061135e8161228c565b91505061123a565b5050505050565b61137561185b565b60005b81518110156113b5576113a382828151811061139657611396612260565b6020026020010151611a62565b806113ad8161228c565b915050611378565b50806040516113c491906123b4565b604051908190038120907fbda4b3a657d90ded99df9bd5cf2b360e44cb7ec1b832a3d82599966ea357525390600090a250565b60606011805480602002602001604051908101604052809291908181526020016000905b82821015611463576000848152602090819020604080518082019091526002850290910180546001600160a01b0316825260019081015482840152908352909201910161141b565b50505050905090565b61147461185b565b600d55565b33600061148582610a6f565b116114d25760405162461bcd60e51b815260206004820152601760248201527f4e6f20617661696c61626c6520616c6c6f636174696f6e00000000000000000060448201526064016106d4565b6114da611aaf565b6114e2611ad3565b600c544210156115225760405162461bcd60e51b815260206004820152600b60248201526a139bdd081cdd185c9d195960aa1b60448201526064016106d4565b600d5442111561155c5760405162461bcd60e51b8152602060048201526005602482015264115b99195960da1b60448201526064016106d4565b600061156884846108d2565b9050600081116115ab5760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016106d4565b80600f546115b99190612375565b600f819055600e5410156116035760405162461bcd60e51b815260206004820152601160248201527013585e081d1bdd185b081c995858da1959607a1b60448201526064016106d4565b60105461161f906001600160a01b038681169133911686611afd565b336000908152600160205260408120805490919061163e908490612375565b336000908152601260205260409020549091508111156116a05760405162461bcd60e51b815260206004820181905260248201527f4164647265737320616c6c6f636174696f6e206c696d6974207265616368656460448201526064016106d4565b6116aa3384611b36565b60408051868152602081018590526001600160a01b0388169133917fbf77fd13a39d14dc0da779342c14105c38d9a5d0c60f2caa22f5fd1d5525416d910160405180910390a3505050610a6a6001600b55565b6011818154811061170d57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b61173d61185b565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b61176761185b565b6001600160a01b03811661179157604051631e4fbdf760e01b8152600060048201526024016106d4565b6109a18161198e565b6001600160a01b038116600090815260016020818152604080842081518083019092528054808352930154918101919091529082906117d99042611b77565b905081602001518110156117f1575060009392505050565b60208201516118009082612329565b949350505050565b600080600061182c846001600160a01b031660009081526012602052604090205490565b6001600160a01b03851660009081526001602052604090205461184e86610a6f565b9250925092509193909250565b6000546001600160a01b031633146108905760405163118cdaa760e01b81523360048201526024016106d4565b6001600160a01b0383166000908152600160208190526040822084815590810183905560038054919285926118be908490612375565b9250508190555081600460008282546118d79190612375565b90915550506001810154815410156119295760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a59081c995dd85c9908185b5bdd5b9d605a1b60448201526064016106d4565b50505050565b6040516001600160a01b03838116602483015260448201839052610a6a91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611c75565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03821660009081526001602052604090208054600354611a06908490612375565b611a109190612329565b6003558181556001810154821015610a6a5760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a59081c995dd85c9908185b5bdd5b9d605a1b60448201526064016106d4565b6001600160a01b03811660009081526001602081905260408220908101548154919291611a8f9190612329565b60018301548355600354909150611aa7908290612329565b600355505050565b600a5460ff16156108905760405163d93c066560e01b815260040160405180910390fd5b6002600b5403611af657604051633ee5aeb560e01b815260040160405180910390fd5b6002600b55565b6040516001600160a01b0384811660248301528381166044830152606482018390526119299186918216906323b872dd9060840161195c565b6001600160a01b03821660009081526001602052604081208054909190611b5e908490612375565b905082600354611b6e9190612375565b60035590555050565b6000600254821015611b8b57506000610914565b600060025483611b9b9190612329565b905060006007548211611bca5761271060065486611bb9919061233c565b611bc39190612353565b9050611800565b600854600754611bda9190612375565b821115611be8575083611800565b600061271060065487611bfb919061233c565b611c059190612353565b90506000611c138288612329565b9050600060095460075486611c289190612329565b611c329190612353565b90506000600954600854611c469190612353565b90508381611c54848661233c565b611c5e9190612353565b611c689190612375565b9998505050505050505050565b6000611c8a6001600160a01b03841683611cd8565b90508051600014158015611caf575080806020019051810190611cad91906123f3565b155b15610a6a57604051635274afe760e01b81526001600160a01b03841660048201526024016106d4565b60606109118383600084600080856001600160a01b03168486604051611cfe9190612415565b60006040518083038185875af1925050503d8060008114611d3b576040519150601f19603f3d011682016040523d82523d6000602084013e611d40565b606091505b5091509150611d50868383611d5c565b925050505b9392505050565b606082611d7157611d6c82611db8565b611d55565b8151158015611d8857506001600160a01b0384163b155b15611db157604051639996b31560e01b81526001600160a01b03851660048201526024016106d4565b5080611d55565b805115611dc85780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b50805460008255600202906000526020600020908101906109a191905b80821115611e235780546001600160a01b031916815560006001820155600201611dfe565b5090565b60008083601f840112611e3957600080fd5b50813567ffffffffffffffff811115611e5157600080fd5b6020830191508360208260051b8501011115611e6c57600080fd5b9250929050565b60008060008060008060608789031215611e8c57600080fd5b863567ffffffffffffffff80821115611ea457600080fd5b611eb08a838b01611e27565b90985096506020890135915080821115611ec957600080fd5b611ed58a838b01611e27565b90965094506040890135915080821115611eee57600080fd5b50611efb89828a01611e27565b979a9699509497509295939492505050565b6001600160a01b03811681146109a157600080fd5b60008060408385031215611f3557600080fd5b8235611f4081611f0d565b946020939093013593505050565b600060208284031215611f6057600080fd5b8135611d5581611f0d565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611faa57611faa611f6b565b604052919050565b600067ffffffffffffffff821115611fcc57611fcc611f6b565b5060051b60200190565b600082601f830112611fe757600080fd5b81356020611ffc611ff783611fb2565b611f81565b82815260059290921b8401810191818101908684111561201b57600080fd5b8286015b8481101561203f57803561203281611f0d565b835291830191830161201f565b509695505050505050565b6000806040838503121561205d57600080fd5b823567ffffffffffffffff8082111561207557600080fd5b61208186838701611fd6565b935060209150818501358181111561209857600080fd5b85019050601f810186136120ab57600080fd5b80356120b9611ff782611fb2565b81815260059190911b820183019083810190888311156120d857600080fd5b928401925b828410156120f6578335825292840192908401906120dd565b80955050505050509250929050565b60006020828403121561211757600080fd5b5035919050565b600081518084526020808501945080840160005b8381101561216257815180516001600160a01b031688528301518388015260409096019590820190600101612132565b509495945050505050565b60018060a01b03881681528660208201528560408201528460608201528360808201528260a082015260e060c08201526000611c6860e083018461211e565b600080600080604085870312156121c257600080fd5b843567ffffffffffffffff808211156121da57600080fd5b6121e688838901611e27565b909650945060208701359150808211156121ff57600080fd5b5061220c87828801611e27565b95989497509550505050565b60006020828403121561222a57600080fd5b813567ffffffffffffffff81111561224157600080fd5b61180084828501611fd6565b602081526000610911602083018461211e565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161229e5761229e612276565b5060010190565b60006001600160fb1b038311156122bb57600080fd5b8260051b80858437919091019392505050565b60008184825b858110156123055781356122e781611f0d565b6001600160a01b0316835260209283019291909101906001016122d4565b509095945050505050565b60006020828403121561232257600080fd5b5051919050565b8181038181111561091457610914612276565b808202811582820484141761091457610914612276565b60008261237057634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561091457610914612276565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b815160009082906020808601845b838110156123e75781516001600160a01b0316855293820193908201906001016123c2565b50929695505050505050565b60006020828403121561240557600080fd5b81518015158114611d5557600080fd5b6000825160005b81811015612436576020818601810151858301520161241c565b50600092019182525091905056fe1cef96c693692f4beb6c09bfe69ff50bd430608c0ab5507c9979fac0f8c365bda26469706673582212207d85a717d814b699172144ad23fd48a15befb8fe83732656195c7cc8a5418b4a64736f6c63430008140033000000000000000000000000c5d27f27f08d1fd1e3ebbaa50b3442e6c0d50439000000000000000000000000000000000000000000000000000000000001e848000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000000000000065ef2a800000000000000000000000000000000000000000000000000000000065f1f7b00000000000000000000000000000000000000000000000000000000067d32b300000000000000000000000000000000000000000000cecb8f27f4200f3a00000000000000000000000000000b64e395cbfcdc46c993ed9f181e0161e4aa8798a00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000076a70000000000000000000000000000000000000000000000000000000000032190000000000000000000000000000000000000000000000000000000000000000e10

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102bb5760003560e01c8063715018a611610182578063b5ab1c5d116100e9578063cce7ec13116100a2578063f2fde38b1161007c578063f2fde38b146105fb578063f67771751461060e578063f7c618c114610621578063ffc9896b1461064857600080fd5b8063cce7ec13146105a3578063de660841146105b6578063f0f44260146105e857600080fd5b8063b5ab1c5d1461054d578063b827d55614610556578063b8e50cab14610569578063c3f368af14610572578063ca5e553e1461057b578063ccb98ffc1461059057600080fd5b80638da5cb5b1161013b5780638da5cb5b146104e3578063964ddbb2146104f4578063a0d7c60e14610507578063a512542114610514578063aa2bf67614610527578063b01993981461053a57600080fd5b8063715018a61461049457806378e979251461049c57806379bf3672146104a55780637d7fa215146104ad57806387a609f1146104c85780638a7d76b0146104d057600080fd5b80633197cbb61161022657806352a9039c116101df57806352a9039c146103ed57806357b6527e1461040d5780635b89a572146104365780635c975abb1461044957806361d027b314610460578063648e3c261461048b57600080fd5b80633197cbb6146103a45780633e0a322d146103ad57806343404cc2146103c057806344c63eec146103d35780634b319713146103dc5780634e71d92d146103e557600080fd5b80631959a002116102785780631959a0021461031d5780631af03203146103595780631ff64acd1461036c5780632126ce851461037f57806327b3bf11146103925780632ddbd13a1461039b57600080fd5b8063017fbef5146102c057806305df0ea6146102d55780630e15561a146102dd5780630f3314e7146102f9578063115ece4c1461030157806313d033c014610314575b600080fd5b6102d36102ce366004611e73565b610676565b005b6102d36107bc565b6102e660035481565b6040519081526020015b60405180910390f35b6102d3610892565b6102e661030f366004611f22565b6108d2565b6102e660075481565b61034461032b366004611f4e565b6001602081905260009182526040909120805491015482565b604080519283526020830191909152016102f0565b6102d3610367366004611f4e565b61091a565b6102d361037a36600461204a565b6109a4565b6102e661038d366004611f4e565b610a6f565b6102e660025481565b6102e6600f5481565b6102e6600d5481565b6102d36103bb366004612105565b610a9d565b6102d36103ce366004611f22565b610aaa565b6102e660085481565b6102e660045481565b6102d3610c2e565b6102e66103fb366004611f4e565b60126020526000908152604090205481565b6102e661041b366004611f4e565b6001600160a01b031660009081526012602052604090205490565b6102e6610444366004611f4e565b610da1565b600a5460ff165b60405190151581526020016102f0565b601054610473906001600160a01b031681565b6040516001600160a01b0390911681526020016102f0565b6102e6600e5481565b6102d3610e33565b6102e6600c5481565b6102d3610e45565b6104b5610e82565b6040516102f0979695949392919061216d565b6102e6610f52565b6102d36104de3660046121ac565b610f76565b6000546001600160a01b0316610473565b6102d3610502366004612105565b611091565b6005546104509060ff1681565b6102d3610522366004611f4e565b61109e565b6102d3610535366004612105565b6111ed565b6102d36105483660046121ac565b6111fa565b6102e661271081565b6102d3610564366004612218565b61136d565b6102e660095481565b6102e660065481565b6105836113f7565b6040516102f0919061224d565b6102d361059e366004612105565b61146c565b6102d36105b1366004611f22565b611479565b6105c96105c4366004612105565b6116fd565b604080516001600160a01b0390931683526020830191909152016102f0565b6102d36105f6366004611f4e565b611735565b6102d3610609366004611f4e565b61175f565b6102e661061c366004611f4e565b61179a565b6104737f000000000000000000000000c5d27f27f08d1fd1e3ebbaa50b3442e6c0d5043981565b61065b610656366004611f4e565b611808565b604080519384526020840192909252908201526060016102f0565b61067e61185b565b848314801561068c57508481145b6106dd5760405162461bcd60e51b815260206004820152601f60248201527f41727261797320646f206e6f74206861766520657175616c206c656e6774680060448201526064015b60405180910390fd5b60005b8581101561075b576107498787838181106106fd576106fd612260565b90506020020160208101906107129190611f4e565b86868481811061072457610724612260565b9050602002013585858581811061073d5761073d612260565b90506020020135611888565b806107538161228c565b9150506106e0565b50838360405161076c9291906122a5565b604051809103902086866040516107849291906122ce565b604051908190038120907f9e90b93ef585ec8fc3bef98ea72276d1068177358fc8071996f3ab9a18dedbe190600090a3505050505050565b6107c461185b565b6003546040516370a0823160e01b81523060048201526108909133916001600160a01b037f000000000000000000000000c5d27f27f08d1fd1e3ebbaa50b3442e6c0d5043916906370a0823190602401602060405180830381865afa158015610831573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108559190612310565b61085f9190612329565b6001600160a01b037f000000000000000000000000c5d27f27f08d1fd1e3ebbaa50b3442e6c0d5043916919061192f565b565b61089a61185b565b6005805460ff191660011790556040517f7cdf17ad9ee98efb9f1c7c037e6d670fdaa3f0ea4d4b016e4707fa1827a79e4390600090a1565b60006108dd83610da1565b6000036108ec57506000610914565b6108f583610da1565b61090783670de0b6b3a764000061233c565b6109119190612353565b90505b92915050565b61092261185b565b6040516370a0823160e01b81523060048201526109a19033906001600160a01b038416906370a0823190602401602060405180830381865afa15801561096c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109909190612310565b6001600160a01b038416919061192f565b50565b6109ac61185b565b80518251146109ef5760405162461bcd60e51b815260206004820152600f60248201526e0d8cadccee8d040dad2e6dac2e8c6d608b1b60448201526064016106d4565b60005b8251811015610a6a57818181518110610a0d57610a0d612260565b602002602001015160126000858481518110610a2b57610a2b612260565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080610a629061228c565b9150506109f2565b505050565b6001600160a01b03811660009081526001602090815260408083205460129092528220546109149190612329565b610aa561185b565b600c55565b610ab261185b565b60005b601154811015610b6e57826001600160a01b031660118281548110610adc57610adc612260565b60009182526020909120600290910201546001600160a01b031603610b5c578160118281548110610b0f57610b0f612260565b600091825260209182902060016002909202010191909155604080516001600160a01b038616815291820184905260008051602061244583398151915291015b60405180910390a1505050565b80610b668161228c565b915050610ab5565b506040805180820182526001600160a01b0384811680835260208084018681526011805460018101825560009190915294517f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c68600290960295860180546001600160a01b031916919095161790935591517f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c699093019290925582519182528101839052600080516020612445833981519152910160405180910390a15050565b33600081815260016020526040902054610c835760405162461bcd60e51b81526020600482015260166024820152754164647265737320686173206e6f207265776172647360501b60448201526064016106d4565b60055460ff1615610cca5760405162461bcd60e51b815260206004820152601160248201527010db185a5b5cc8185c99481c185d5cd959607a1b60448201526064016106d4565b33600081815260016020526040812091610ce39061179a565b9050808260010154610cf59190612375565b6001830155600454610d08908290612375565b600455815460018301541115610d2057610d20612388565b610d546001600160a01b037f000000000000000000000000c5d27f27f08d1fd1e3ebbaa50b3442e6c0d5043916338361192f565b80336001600160a01b03167ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e27317438460010154604051610d9491815260200190565b60405180910390a3505050565b6000805b601154811015610e2a57826001600160a01b031660118281548110610dcc57610dcc612260565b60009182526020909120600290910201546001600160a01b031603610e185760118181548110610dfe57610dfe612260565b906000526020600020906002020160010154915050919050565b80610e228161228c565b915050610da5565b50600092915050565b610e3b61185b565b610890600061198e565b610e4d61185b565b6005805460ff191690556040517f3bd17c2ef5a04c031943ad098b3f9bfa9da2bc92be12a6d4197b076f4c133c0090600090a1565b60008060008060008060607f000000000000000000000000c5d27f27f08d1fd1e3ebbaa50b3442e6c0d50439600c54600d54600e54600f54600f54600e54610eca9190612329565b601180805480602002602001604051908101604052809291908181526020016000905b82821015610f35576000848152602090819020604080518082019091526002850290910180546001600160a01b03168252600190810154828401529083529092019101610eed565b505050509050965096509650965096509650965090919293949596565b6000600854600754600254610f679190612375565b610f719190612375565b905090565b610f7e61185b565b828114610fcd5760405162461bcd60e51b815260206004820152601f60248201527f41727261797320646f206e6f74206861766520657175616c206c656e6774680060448201526064016106d4565b60005b8381101561103257611020858583818110610fed57610fed612260565b90506020020160208101906110029190611f4e565b84848481811061101457611014612260565b905060200201356119de565b8061102a8161228c565b915050610fd0565b5081816040516110439291906122a5565b6040518091039020848460405161105b9291906122ce565b604051908190038120907f9e90b93ef585ec8fc3bef98ea72276d1068177358fc8071996f3ab9a18dedbe190600090a350505050565b61109961185b565b600255565b6110a661185b565b6011546000805b8281101561110757836001600160a01b0316601182815481106110d2576110d2612260565b60009182526020909120600290910201546001600160a01b0316036110f5578091505b806110ff8161228c565b9150506110ad565b506011611115600184612329565b8154811061112557611125612260565b90600052602060002090600202016011828154811061114657611146612260565b60009182526020909120825460029092020180546001600160a01b0319166001600160a01b03909216919091178155600191820154910155601180548061118f5761118f61239e565b60008281526020812060026000199093019283020180546001600160a01b0319168155600101819055915560405160008051602061244583398151915291610b4f918691906001600160a01b03929092168252602082015260400190565b6111f561185b565b600e55565b61120261185b565b61120e60116000611de1565b6040517fae8cb61d05474475445ef2a83bacf0a11fa6ecda92c85c75aa5b31990eb37a2490600090a160005b83811015611366576011604051806040016040528087878581811061126157611261612260565b90506020020160208101906112769190611f4e565b6001600160a01b0316815260200185858581811061129657611296612260565b60209081029290920135909252835460018082018655600095865294829020845160029092020180546001600160a01b0319166001600160a01b0390921691909117815592015191909201555060008051602061244583398151915285858381811061130457611304612260565b90506020020160208101906113199190611f4e565b84848481811061132b5761132b612260565b604080516001600160a01b0390951685526020918202939093013590840152500160405180910390a18061135e8161228c565b91505061123a565b5050505050565b61137561185b565b60005b81518110156113b5576113a382828151811061139657611396612260565b6020026020010151611a62565b806113ad8161228c565b915050611378565b50806040516113c491906123b4565b604051908190038120907fbda4b3a657d90ded99df9bd5cf2b360e44cb7ec1b832a3d82599966ea357525390600090a250565b60606011805480602002602001604051908101604052809291908181526020016000905b82821015611463576000848152602090819020604080518082019091526002850290910180546001600160a01b0316825260019081015482840152908352909201910161141b565b50505050905090565b61147461185b565b600d55565b33600061148582610a6f565b116114d25760405162461bcd60e51b815260206004820152601760248201527f4e6f20617661696c61626c6520616c6c6f636174696f6e00000000000000000060448201526064016106d4565b6114da611aaf565b6114e2611ad3565b600c544210156115225760405162461bcd60e51b815260206004820152600b60248201526a139bdd081cdd185c9d195960aa1b60448201526064016106d4565b600d5442111561155c5760405162461bcd60e51b8152602060048201526005602482015264115b99195960da1b60448201526064016106d4565b600061156884846108d2565b9050600081116115ab5760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016106d4565b80600f546115b99190612375565b600f819055600e5410156116035760405162461bcd60e51b815260206004820152601160248201527013585e081d1bdd185b081c995858da1959607a1b60448201526064016106d4565b60105461161f906001600160a01b038681169133911686611afd565b336000908152600160205260408120805490919061163e908490612375565b336000908152601260205260409020549091508111156116a05760405162461bcd60e51b815260206004820181905260248201527f4164647265737320616c6c6f636174696f6e206c696d6974207265616368656460448201526064016106d4565b6116aa3384611b36565b60408051868152602081018590526001600160a01b0388169133917fbf77fd13a39d14dc0da779342c14105c38d9a5d0c60f2caa22f5fd1d5525416d910160405180910390a3505050610a6a6001600b55565b6011818154811061170d57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b61173d61185b565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b61176761185b565b6001600160a01b03811661179157604051631e4fbdf760e01b8152600060048201526024016106d4565b6109a18161198e565b6001600160a01b038116600090815260016020818152604080842081518083019092528054808352930154918101919091529082906117d99042611b77565b905081602001518110156117f1575060009392505050565b60208201516118009082612329565b949350505050565b600080600061182c846001600160a01b031660009081526012602052604090205490565b6001600160a01b03851660009081526001602052604090205461184e86610a6f565b9250925092509193909250565b6000546001600160a01b031633146108905760405163118cdaa760e01b81523360048201526024016106d4565b6001600160a01b0383166000908152600160208190526040822084815590810183905560038054919285926118be908490612375565b9250508190555081600460008282546118d79190612375565b90915550506001810154815410156119295760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a59081c995dd85c9908185b5bdd5b9d605a1b60448201526064016106d4565b50505050565b6040516001600160a01b03838116602483015260448201839052610a6a91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611c75565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03821660009081526001602052604090208054600354611a06908490612375565b611a109190612329565b6003558181556001810154821015610a6a5760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a59081c995dd85c9908185b5bdd5b9d605a1b60448201526064016106d4565b6001600160a01b03811660009081526001602081905260408220908101548154919291611a8f9190612329565b60018301548355600354909150611aa7908290612329565b600355505050565b600a5460ff16156108905760405163d93c066560e01b815260040160405180910390fd5b6002600b5403611af657604051633ee5aeb560e01b815260040160405180910390fd5b6002600b55565b6040516001600160a01b0384811660248301528381166044830152606482018390526119299186918216906323b872dd9060840161195c565b6001600160a01b03821660009081526001602052604081208054909190611b5e908490612375565b905082600354611b6e9190612375565b60035590555050565b6000600254821015611b8b57506000610914565b600060025483611b9b9190612329565b905060006007548211611bca5761271060065486611bb9919061233c565b611bc39190612353565b9050611800565b600854600754611bda9190612375565b821115611be8575083611800565b600061271060065487611bfb919061233c565b611c059190612353565b90506000611c138288612329565b9050600060095460075486611c289190612329565b611c329190612353565b90506000600954600854611c469190612353565b90508381611c54848661233c565b611c5e9190612353565b611c689190612375565b9998505050505050505050565b6000611c8a6001600160a01b03841683611cd8565b90508051600014158015611caf575080806020019051810190611cad91906123f3565b155b15610a6a57604051635274afe760e01b81526001600160a01b03841660048201526024016106d4565b60606109118383600084600080856001600160a01b03168486604051611cfe9190612415565b60006040518083038185875af1925050503d8060008114611d3b576040519150601f19603f3d011682016040523d82523d6000602084013e611d40565b606091505b5091509150611d50868383611d5c565b925050505b9392505050565b606082611d7157611d6c82611db8565b611d55565b8151158015611d8857506001600160a01b0384163b155b15611db157604051639996b31560e01b81526001600160a01b03851660048201526024016106d4565b5080611d55565b805115611dc85780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b50805460008255600202906000526020600020908101906109a191905b80821115611e235780546001600160a01b031916815560006001820155600201611dfe565b5090565b60008083601f840112611e3957600080fd5b50813567ffffffffffffffff811115611e5157600080fd5b6020830191508360208260051b8501011115611e6c57600080fd5b9250929050565b60008060008060008060608789031215611e8c57600080fd5b863567ffffffffffffffff80821115611ea457600080fd5b611eb08a838b01611e27565b90985096506020890135915080821115611ec957600080fd5b611ed58a838b01611e27565b90965094506040890135915080821115611eee57600080fd5b50611efb89828a01611e27565b979a9699509497509295939492505050565b6001600160a01b03811681146109a157600080fd5b60008060408385031215611f3557600080fd5b8235611f4081611f0d565b946020939093013593505050565b600060208284031215611f6057600080fd5b8135611d5581611f0d565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611faa57611faa611f6b565b604052919050565b600067ffffffffffffffff821115611fcc57611fcc611f6b565b5060051b60200190565b600082601f830112611fe757600080fd5b81356020611ffc611ff783611fb2565b611f81565b82815260059290921b8401810191818101908684111561201b57600080fd5b8286015b8481101561203f57803561203281611f0d565b835291830191830161201f565b509695505050505050565b6000806040838503121561205d57600080fd5b823567ffffffffffffffff8082111561207557600080fd5b61208186838701611fd6565b935060209150818501358181111561209857600080fd5b85019050601f810186136120ab57600080fd5b80356120b9611ff782611fb2565b81815260059190911b820183019083810190888311156120d857600080fd5b928401925b828410156120f6578335825292840192908401906120dd565b80955050505050509250929050565b60006020828403121561211757600080fd5b5035919050565b600081518084526020808501945080840160005b8381101561216257815180516001600160a01b031688528301518388015260409096019590820190600101612132565b509495945050505050565b60018060a01b03881681528660208201528560408201528460608201528360808201528260a082015260e060c08201526000611c6860e083018461211e565b600080600080604085870312156121c257600080fd5b843567ffffffffffffffff808211156121da57600080fd5b6121e688838901611e27565b909650945060208701359150808211156121ff57600080fd5b5061220c87828801611e27565b95989497509550505050565b60006020828403121561222a57600080fd5b813567ffffffffffffffff81111561224157600080fd5b61180084828501611fd6565b602081526000610911602083018461211e565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161229e5761229e612276565b5060010190565b60006001600160fb1b038311156122bb57600080fd5b8260051b80858437919091019392505050565b60008184825b858110156123055781356122e781611f0d565b6001600160a01b0316835260209283019291909101906001016122d4565b509095945050505050565b60006020828403121561232257600080fd5b5051919050565b8181038181111561091457610914612276565b808202811582820484141761091457610914612276565b60008261237057634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561091457610914612276565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b815160009082906020808601845b838110156123e75781516001600160a01b0316855293820193908201906001016123c2565b50929695505050505050565b60006020828403121561240557600080fd5b81518015158114611d5557600080fd5b6000825160005b81811015612436576020818601810151858301520161241c565b50600092019182525091905056fe1cef96c693692f4beb6c09bfe69ff50bd430608c0ab5507c9979fac0f8c365bda26469706673582212207d85a717d814b699172144ad23fd48a15befb8fe83732656195c7cc8a5418b4a64736f6c63430008140033

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

000000000000000000000000c5d27f27f08d1fd1e3ebbaa50b3442e6c0d50439000000000000000000000000000000000000000000000000000000000001e848000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000000000000065ef2a800000000000000000000000000000000000000000000000000000000065f1f7b00000000000000000000000000000000000000000000000000000000067d32b300000000000000000000000000000000000000000000cecb8f27f4200f3a00000000000000000000000000000b64e395cbfcdc46c993ed9f181e0161e4aa8798a00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000076a70000000000000000000000000000000000000000000000000000000000032190000000000000000000000000000000000000000000000000000000000000000e10

-----Decoded View---------------
Arg [0] : _saleToken (address): 0xC5d27F27F08D1FD1E3EbBAa50b3442e6c0D50439
Arg [1] : _price (uint256): 125000
Arg [2] : _defaultPaymentToken (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
Arg [3] : _startTime (uint256): 1710172800
Arg [4] : _endTime (uint256): 1710356400
Arg [5] : _claimTime (uint256): 1741892400
Arg [6] : _maxTotal (uint256): 15625000000000000000000000
Arg [7] : _treasury (address): 0xb64e395cbFCdc46c993ed9F181e0161E4AA8798a
Arg [8] : _vestingData (uint256[4]): 1000,7776000,52531200,3600

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 000000000000000000000000c5d27f27f08d1fd1e3ebbaa50b3442e6c0d50439
Arg [1] : 000000000000000000000000000000000000000000000000000000000001e848
Arg [2] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [3] : 0000000000000000000000000000000000000000000000000000000065ef2a80
Arg [4] : 0000000000000000000000000000000000000000000000000000000065f1f7b0
Arg [5] : 0000000000000000000000000000000000000000000000000000000067d32b30
Arg [6] : 0000000000000000000000000000000000000000000cecb8f27f4200f3a00000
Arg [7] : 000000000000000000000000b64e395cbfcdc46c993ed9f181e0161e4aa8798a
Arg [8] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [9] : 000000000000000000000000000000000000000000000000000000000076a700
Arg [10] : 0000000000000000000000000000000000000000000000000000000003219000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000e10


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.