S Price: $0.48757 (+0.67%)

Token

ERC20 ***

Overview

Max Total Supply

310,500 ERC20 ***

Holders

205

Market

Price

$0.00 @ 0.000000 S

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 6 Decimals)

Balance
300 ERC20 ***

Value
$0.00
0xb2cdeccc06b2109a822eb362af67a022643999c0
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
Presale

Compiler Version
v0.8.28+commit.7893614a

Optimization Enabled:
Yes with 200 runs

Other Settings:
cancun EvmVersion
File 1 of 14 : Presale.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IPresale} from "contracts/interfaces/IPresale.sol";
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol";
import {Ownable2Step} from "@openzeppelin/contracts/access/Ownable2Step.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import {SafeERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";

/**
 * @title   Presale
 * @dev     This contract manages a token presale with whitelisted users
 * @author  @Codeislight1
 */
contract Presale is IPresale, ERC20, Ownable2Step, Pausable, ReentrancyGuard {
    using SafeERC20 for IERC20;
    using EnumerableSet for EnumerableSet.AddressSet;

    /// @notice Token sale
    IERC20 public immutable TOKEN;
    /// @notice Multisig address
    address public immutable MULTISIG;
    /// @notice Hundred units bill
    uint256 public immutable BILL;
    /// @notice Max sale cap
    uint256 public immutable MAX_CAP;
    /// @notice Max user buy in per nft
    uint256 public immutable MAX_BUY_IN;
    /// @notice Max nft quantity
    uint256 public immutable MAX_NFT_QTY;
    /// @notice Max nft quantity cap
    uint256 public immutable NFT_QTY_CAP;
    /// @notice Sale period
    uint256 public constant PERIOD = 24 hours;
    /// @notice Minimum start timestamp threshold
    uint256 public constant MIN_START_TIMESTAMP_THRESHOLD = 1 hours;
    /// @notice Maximum start timestamp threshold
    uint256 public constant MAX_START_TIMESTAMP_THRESHOLD = 7 days;

    /// @notice Last timestamp a user bought
    uint256 public lastBuyTimestamp;
    /// @notice Whether refund is enabled
    bool public enabledRefund;
    /// @notice The buy in amount
    uint256 public buyIn;
    /// @notice Burner address
    address public burner;
    /// @notice Sale hard cap
    uint256 public hardCap;
    /// @notice Sale soft cap
    uint256 public softCap;
    /// @notice Total amount raised
    uint256 public totalRaised;
    /// @notice Total amount refunded
    uint256 public totalRefunded;
    /// @notice Sale starting timestamp
    uint256 public startTimestamp;
    /// @notice receipt token name
    string private _name;
    /// @notice receipt token symbol
    string private _symbol;

    /// @notice Whitelist enumerable set
    EnumerableSet.AddressSet private _whitelists;

    /// @notice Mapping user whitelisted => user data info
    mapping(address => UserData) public userData;

    constructor(
        address _owner,
        address _multisig,
        address _token,
        string memory __name,
        string memory __symbol,
        uint256 _bill,
        uint256 _maxCap,
        uint256 _hardCap,
        uint256 _softCap,
        uint256 _maxBuyIn,
        uint256 _maxNftQty,
        uint256 _nftQtyCap,
        uint256 _buyIn
    ) ERC20("", "") {
        require(uint160(_owner) & uint160(_multisig) != 0, "!address");
        require(IERC20Metadata(_token).decimals() > 0, "!token");
        require(bytes(__name).length > 0, "!name");
        require(bytes(__symbol).length > 0, "!symbol");
        require(_maxCap >= _hardCap, "maxCap < hardCap");
        require(_hardCap > _softCap, "hardCap <= softCap");
        require(_maxCap % _bill == 0 && _maxCap > 0, "!maxCap");
        require(_hardCap % _bill == 0 && _hardCap > 0, "!hardCap");
        require(_softCap % _bill == 0 && _softCap > 0, "!softCap");
        require(_maxBuyIn % _bill == 0 && _maxBuyIn > 0, "!maxBuyIn");
        require(_buyIn % _bill == 0 && _buyIn > 0, "!buyIn");
        require(_maxBuyIn >= _buyIn, "maxBuyIn < buyIn");
        require(_buyIn <= _softCap, "buyIn > softCap");
        require(_maxNftQty > 0, "!maxNftQty");
        require(_nftQtyCap > 0, "!nftQtyCap");
        require(_nftQtyCap <= _maxNftQty, "nftQtyCap > maxNftQty");

        TOKEN = IERC20(_token);
        MULTISIG = _multisig;
        _name = __name;
        _symbol = __symbol;
        BILL = _bill;
        MAX_CAP = _maxCap;
        hardCap = _hardCap;
        softCap = _softCap;
        MAX_BUY_IN = _maxBuyIn;
        MAX_NFT_QTY = _maxNftQty;
        NFT_QTY_CAP = _nftQtyCap;
        buyIn = _buyIn;
        _transferOwnership(_owner);
    }

    /// @notice Modifier ensures accessed by burner
    modifier onlyBurner() {
        require(msg.sender == burner, "!burner");
        _;
    }

    /// @notice Modifier ensures active sale
    modifier onlyOngoing() {
        require(
            startTimestamp != 0 &&
                block.timestamp >= startTimestamp &&
                block.timestamp < startTimestamp + PERIOD,
            "!ongoing"
        );
        _;
    }

    /// @notice Modifier ensures only during refunding
    modifier onlyRefunding() {
        require(
            startTimestamp != 0 &&
                block.timestamp >= startTimestamp + PERIOD &&
                totalRaised < softCap,
            "!refunding"
        );
        _;
    }

    /// @notice Modifier ensures access only by whitelisted
    modifier onlyWhitelisted() {
        require(_whitelists.contains(msg.sender), "!whitelisted");
        _;
    }

    /// @notice Modifier ensures sale hasn't started
    modifier onlyNotStarted() {
        require(
            startTimestamp == 0 || block.timestamp < startTimestamp,
            "started"
        );
        _;
    }

    /// @notice Modifier validates bills multiples
    modifier validateAmount(uint256 _amount) {
        require(_amount > 0 && _amount % BILL == 0, "!bills multiples");
        _;
    }

    /// @inheritdoc IPresale
    function addWhitelists(
        WhitelistData[] calldata _params
    ) external onlyOwner onlyNotStarted {
        uint256 len = _params.length;
        for (uint256 i; i < len; i++) {
            address user = _params[i].user;
            uint256 nftQty = _params[i].nftQty;

            require(user.code.length == 0, "!EOA");
            require(nftQty > 0, "!nftQty");
            require(nftQty <= MAX_NFT_QTY, "max nft qty");

            _whitelists.add(user);
            userData[user].nftQty = _params[i].nftQty;

            emit WhitelistAdded(user, nftQty);
        }
    }

    /// @inheritdoc IPresale
    function removeWhitelists(
        address[] calldata _users
    ) external onlyOwner onlyNotStarted {
        uint256 len = _users.length;
        for (uint256 i; i < len; i++) {
            address user = _users[i];
            if (!_whitelists.contains(user)) continue;

            _whitelists.remove(user);
            delete userData[user].nftQty;

            emit WhitelistRemoved(user);
        }
    }

    /// @inheritdoc IPresale
    function setPause(bool _paused) external onlyOwner {
        if (_paused) _pause();
        else _unpause();
    }

    /// @inheritdoc IPresale
    function setStartTimestamp(
        uint256 _startTimestamp
    ) external onlyOwner onlyNotStarted {
        require(
            _startTimestamp >= block.timestamp + MIN_START_TIMESTAMP_THRESHOLD,
            "past or too near"
        );
        require(
            _startTimestamp <= block.timestamp + MAX_START_TIMESTAMP_THRESHOLD,
            "too far"
        );

        startTimestamp = _startTimestamp;

        emit StartTimeSet(_startTimestamp);
    }

    /// @inheritdoc IPresale
    function setHardCap(
        uint256 _hardCap
    ) external onlyOwner validateAmount(_hardCap) {
        require(_hardCap <= MAX_CAP, "max cap");
        require(_hardCap > softCap, "!hard cap");

        emit HardCapUpdated(hardCap, _hardCap);
        hardCap = _hardCap;
    }

    /// @inheritdoc IPresale
    function setSoftCap(
        uint256 _softCap
    ) external onlyOwner validateAmount(_softCap) {
        require(_softCap <= MAX_CAP, "max cap");
        require(_softCap < hardCap, "!soft cap");

        emit SoftCapUpdated(softCap, _softCap);
        softCap = _softCap;
    }

    /// @inheritdoc IPresale
    function setBuyIn(
        uint256 _buyIn
    ) external onlyOwner validateAmount(_buyIn) {
        require(_buyIn <= MAX_BUY_IN, "max buy in");

        emit BuyInUpdated(buyIn, _buyIn);
        buyIn = _buyIn;
    }

    /// @inheritdoc IPresale
    function setEnabledRefund(bool _enabledRefund) external onlyOwner {
        enabledRefund = _enabledRefund;
        emit RefundEnabled(_enabledRefund);
    }

    /// @inheritdoc IPresale
    function pull() external onlyOwner {
        uint256 _balance = TOKEN.balanceOf(address(this));
        if (_balance > 0) {
            TOKEN.safeTransfer(MULTISIG, _balance);
            emit PulledFunds(_balance);
        }
    }

    /// @inheritdoc IPresale
    function skim() external onlyOwner {
        uint256 _balance = TOKEN.balanceOf(address(this));
        uint256 _lockedAmount = totalRaised - totalRefunded;
        uint256 _amount = _balance > _lockedAmount
            ? _balance - _lockedAmount
            : 0;
        if (_amount > 0) {
            TOKEN.safeTransfer(MULTISIG, _amount);
            emit Skimmed(_amount);
        }
    }

    /// @inheritdoc IPresale
    function recoverERC20(IERC20 _token) external onlyOwner {
        require(address(_token) != address(TOKEN), "token");

        uint256 _balance = _token.balanceOf(address(this));
        if (_balance > 0) {
            _token.safeTransfer(MULTISIG, _balance);
            emit Recovered(address(_token), _balance);
        }
    }

    /// @inheritdoc IPresale
    function elevatedRefund(
        uint256 _offset,
        uint256 _length
    ) external nonReentrant onlyOwner onlyRefunding {
        require(_offset + _length <= _whitelists.length(), "out of bounds");

        for (uint256 i = _offset; i < _offset + _length; i++) {
            address user = _whitelists.at(i);
            uint256 deposited = userData[user].deposited;

            if (!userData[user].refunded && deposited > 0) {
                totalRefunded += deposited;
                userData[user].refunded = true;
                _burn(user, deposited);
                TOKEN.safeTransfer(user, deposited);
                emit ElevatedRefund(user, deposited);
            }
        }
    }

    /// @inheritdoc IPresale
    function setBurner(address _burner) external onlyOwner {
        emit BurnerSet(burner, _burner);
        burner = _burner;
    }

    /// @inheritdoc IPresale
    function burnFrom(address user, uint256 amount) external onlyBurner {
        _burn(user, amount);
    }

    /// @inheritdoc IPresale
    function isWhitelisted(address user) public view returns (bool) {
        return _whitelists.contains(user);
    }

    /// @inheritdoc IPresale
    function getUserSaleLeft(address user) public view returns (uint256) {
        if (!isWhitelisted(user)) return 0;

        uint256 deposited = userData[user].deposited;
        uint256 nftQty = userData[user].nftQty;
        nftQty = nftQty < NFT_QTY_CAP ? nftQty : NFT_QTY_CAP;
        uint256 totalAmount = nftQty * buyIn;

        return deposited < totalAmount ? totalAmount - deposited : 0;
    }

    /// @inheritdoc IPresale
    function buy(
        uint256 _billsCount
    ) external nonReentrant onlyWhitelisted whenNotPaused onlyOngoing {
        uint256 _amount = _billsCount * BILL;
        require(_billsCount != 0, "Zero bills");

        uint256 _left = getUserSaleLeft(msg.sender);
        require(_left >= _amount, "Buy limit reached");
        require(totalRaised + _amount <= hardCap, "Sale target reached");

        lastBuyTimestamp = block.timestamp;
        totalRaised += _amount;
        userData[msg.sender].deposited += _amount;
        _mint(msg.sender, _amount);

        TOKEN.safeTransferFrom(msg.sender, address(this), _amount);

        emit Bought(msg.sender, _amount);
    }

    /// @inheritdoc IPresale
    function refund()
        external
        nonReentrant
        onlyWhitelisted
        whenNotPaused
        onlyRefunding
    {
        uint256 _amount = userData[msg.sender].deposited;

        require(_amount > 0, "Zero deposit");
        require(enabledRefund, "!refunding");
        require(!userData[msg.sender].refunded, "refunded");

        userData[msg.sender].refunded = true;
        totalRefunded += _amount;
        _burn(msg.sender, _amount);

        if (_amount > 0) {
            TOKEN.safeTransfer(msg.sender, _amount);
            emit Refunded(msg.sender, _amount);
        }
    }

    /// @notice Prevents ownership renouncement
    function renounceOwnership() public view override onlyOwner {
        require(false, "!renounce");
    }

    /// @notice Prevents token approvals
    function _approve(address, address, uint256) internal pure override {
        require(false, "!approve");
    }

    /// @notice Prevents token transfers
    function _transfer(address, address, uint256) internal pure override {
        require(false, "!transfer");
    }

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

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

    /// @notice overrides token decimals
    function decimals() public view override returns (uint8) {
        return IERC20Metadata(address(TOKEN)).decimals();
    }
}

File 2 of 14 : IPresale.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/// @notice Infterface for the Presale
interface IPresale {
    struct UserData {
        uint256 nftQty;
        uint256 deposited;
        bool refunded;
    }

    struct WhitelistData {
        address user;
        uint256 nftQty;
    }

    event WhitelistAdded(address indexed user, uint256 nftQty);
    event WhitelistRemoved(address indexed user);
    event BurnerSet(address indexed oldBurner, address indexed newBurner);
    event StartTimeSet(uint256 timestamp);
    event HardCapUpdated(uint256 oldCap, uint256 newCap);
    event SoftCapUpdated(uint256 oldCap, uint256 newCap);
    event BuyInUpdated(uint256 oldBuyIn, uint256 newBuyIn);
    event RefundEnabled(bool enabled);
    event Bought(address indexed user, uint256 amount);
    event Refunded(address indexed user, uint256 amount);
    event Recovered(address indexed token, uint256 amount);
    event PulledFunds(uint256 amount);
    event Skimmed(uint256 amount);
    event ElevatedRefund(address indexed user, uint256 amount);

    /// @notice Adds multiple users to the whitelist with their NFT quantities
    /// @param _params Array of WhitelistData containing user addresses and their NFT quantities
    function addWhitelists(WhitelistData[] calldata _params) external;

    /// @notice Removes multiple users from the presale whitelist
    /// @param _users Array of addresses to remove from the whitelist
    function removeWhitelists(address[] calldata _users) external;

    /// @notice Sets the pause state of the presale
    /// @param _paused Whether to pause
    function setPause(bool _paused) external;

    /// @notice Sets the start timestamp for the presale
    /// @param _startTimestamp Unix timestamp when the presale should start
    function setStartTimestamp(uint256 _startTimestamp) external;

    /// @notice Sets the maximum amount that can be raised in the presale
    /// @param _hardCap Maximum amount in base tokens
    function setHardCap(uint256 _hardCap) external;

    /// @notice Sets the minimum amount that needs to be raised for the presale to be successful
    /// @param _softCap Minimum amount in base tokens
    function setSoftCap(uint256 _softCap) external;

    /// @notice Sets the buy-in amount per NFT
    /// @param _buyIn Amount in base tokens required to purchase one NFT
    function setBuyIn(uint256 _buyIn) external;

    /// @notice Enables or disables the refund functionality
    /// @param _enabledRefund Whether to enable refunds
    function setEnabledRefund(bool _enabledRefund) external;

    /// @notice Withdraws collected funds to the designated admin wallet
    function pull() external;

    /// @notice Recovers excess tokens sent to the contract
    function skim() external;

    /// @notice Recovers any ERC20 tokens accidentally sent to the contract
    /// @param _token Address of the ERC20 token to recover
    function recoverERC20(IERC20 _token) external;

    /// @notice Processes refunds for a batch of users
    /// @param _offset Starting index in the users array
    /// @param _length Number of users to process
    function elevatedRefund(uint256 _offset, uint256 _length) external;

    /// @notice Sets the address authorized to burn tokens
    /// @param _burner Address of the burner
    function setBurner(address _burner) external;

    /// @notice Burns a specific amount of tokens from a user's address
    /// @param user Address of the user to burn tokens from
    /// @param amount Amount of tokens to burn
    function burnFrom(address user, uint256 amount) external;

    /// @notice Checks if a user is whitelisted for the presale
    /// @param user Address to check
    /// @return bool Whether the user is whitelisted
    function isWhitelisted(address user) external view returns (bool);

    /// @notice Gets the remaining amount of NFTs a user can purchase
    /// @param user Address of the user
    /// @return uint256 Number of NFTs the user can still purchase
    function getUserSaleLeft(address user) external view returns (uint256);

    /// @notice Allows a user to purchase NFTs in the presale
    /// @param _billsCount Number of NFTs to purchase
    function buy(uint256 _billsCount) external;

    /// @notice Allows a user to claim a refund if enabled
    function refund() external;
}

File 3 of 14 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

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

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

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

File 5 of 14 : Ownable2Step.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.0;

import "./Ownable.sol";

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

File 7 of 14 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        bytes32[] memory store = _values(set._inner);
        bytes32[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

File 8 of 14 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

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

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

File 10 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 11 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 12 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 13 of 14 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

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

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

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/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.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

Settings
{
  "remappings": [
    "@cryptoalgebra/=node_modules/@cryptoalgebra/",
    "@ensdomains/=node_modules/@ensdomains/",
    "@openzeppelin/=node_modules/@openzeppelin/",
    "@uniswap/=node_modules/@uniswap/",
    "hardhat-deploy/=node_modules/hardhat-deploy/",
    "hardhat/=node_modules/hardhat/",
    "forge-std/=node_modules/forge-std/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "cancun",
  "viaIR": true,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_multisig","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"string","name":"__name","type":"string"},{"internalType":"string","name":"__symbol","type":"string"},{"internalType":"uint256","name":"_bill","type":"uint256"},{"internalType":"uint256","name":"_maxCap","type":"uint256"},{"internalType":"uint256","name":"_hardCap","type":"uint256"},{"internalType":"uint256","name":"_softCap","type":"uint256"},{"internalType":"uint256","name":"_maxBuyIn","type":"uint256"},{"internalType":"uint256","name":"_maxNftQty","type":"uint256"},{"internalType":"uint256","name":"_nftQtyCap","type":"uint256"},{"internalType":"uint256","name":"_buyIn","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Bought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldBurner","type":"address"},{"indexed":true,"internalType":"address","name":"newBurner","type":"address"}],"name":"BurnerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldBuyIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBuyIn","type":"uint256"}],"name":"BuyInUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ElevatedRefund","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldCap","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newCap","type":"uint256"}],"name":"HardCapUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PulledFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"RefundEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Refunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Skimmed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldCap","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newCap","type":"uint256"}],"name":"SoftCapUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"StartTimeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftQty","type":"uint256"}],"name":"WhitelistAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"WhitelistRemoved","type":"event"},{"inputs":[],"name":"BILL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_BUY_IN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_NFT_QTY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_START_TIMESTAMP_THRESHOLD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_START_TIMESTAMP_THRESHOLD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MULTISIG","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NFT_QTY_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"nftQty","type":"uint256"}],"internalType":"struct IPresale.WhitelistData[]","name":"_params","type":"tuple[]"}],"name":"addWhitelists","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_billsCount","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buyIn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_offset","type":"uint256"},{"internalType":"uint256","name":"_length","type":"uint256"}],"name":"elevatedRefund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enabledRefund","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserSaleLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hardCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastBuyTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pull","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"refund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"removeWhitelists","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_burner","type":"address"}],"name":"setBurner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_buyIn","type":"uint256"}],"name":"setBuyIn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabledRefund","type":"bool"}],"name":"setEnabledRefund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_hardCap","type":"uint256"}],"name":"setHardCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_softCap","type":"uint256"}],"name":"setSoftCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTimestamp","type":"uint256"}],"name":"setStartTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"skim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"softCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRefunded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userData","outputs":[{"internalType":"uint256","name":"nftQty","type":"uint256"},{"internalType":"uint256","name":"deposited","type":"uint256"},{"internalType":"bool","name":"refunded","type":"bool"}],"stateMutability":"view","type":"function"}]

610160806040523461098e5761356d803803809161001d8285610b68565b83398101906101a08183031261098e5761003681610b8b565b9061004360208201610b8b565b9061005060408201610b8b565b60608201519094906001600160401b03811161098e5781610072918401610b9f565b608083015190916001600160401b03821161098e57610092918401610b9f565b9460a083015160c084015160e0850151906101008601519261012087015194610140880151966101806101608a0151990151996020926040516100d58582610b68565b5f8152604051906100e68683610b68565b5f82528051906001600160401b0382116105505760035490600182811c92168015610b5e575b888310146105325781601f849311610b0f575b508790601f8311600114610aa9575f92610a9e575b50508160011b915f199060031b1c1916176003555b8051906001600160401b0382116105505760045490600182811c92168015610a94575b878310146105325781601f849311610a45575b508690601f83116001146109df575f926109d4575b50508160011b915f199060031b1c1916176004555b6101b233610c12565b6006805460ff60a01b191690556001600755818d166001600160a01b0316156109a45760405163313ce56760e01b81526001600160a01b0391909116908481600481855afa8015610999575f9061095d575b60ff9150161561092f57825115610902578d51156108d35786861061089b5787871115610861576102358587610bf4565b1580610858575b156108295761024b8588610bf4565b1580610820575b156107f0576102618589610bf4565b15806107e7575b156107b757610277858a610bf4565b15806107ae575b1561077d5761028d858d610bf4565b1580610774575b15610746578b891061070e57878c116106d75789156106a5578a1561067357898b1161062e5760805260a0528051906001600160401b0382116105505760115490600182811c92168015610624575b848310146105325781601f8493116105d5575b508390601f831160011461056f575f92610564575b50508160011b915f199060031b1c1916176011555b8a51906001600160401b03821161055057601254600181811c91168015610546575b8282101461053257601f81116104ee575b5080601f8311600114610484575081906103a39c5f92610479575b50508160011b915f199060031b1c1916176012555b60c05260e052600c55600d55610100526101205261014052600a55610c12565b6040516129079081610c6682396080518181816105730152818161087101528181610fe5015281816112940152818161177c01528181611aab01528181611ba40152611ef6015260a05181818161107101528181611b1d01528181611da00152611f8b015260c05181818161046e01528181610a3001528181610b3201528181611343015261199a015260e0518181816109380152818161098e0152610a900152610100518181816119030152611d400152610120518181816102b101526114a50152610140518181816103ec01526123110152f35b015190505f8061036e565b919b601f198d1660125f52835f20935f905b8282106104d657505091600193918e6103a39f94106104be575b505050811b01601255610383565b01515f1960f88460031b161c191690555f80806104b0565b80600186978294978701518155019601940190610496565b60125f52815f20601f840160051c810191838510610528575b601f0160051c01905b81811061051d5750610353565b5f8155600101610510565b9091508190610507565b634e487b7160e01b5f52602260045260245ffd5b90607f1690610342565b634e487b7160e01b5f52604160045260245ffd5b015190505f8061030b565b60115f9081528581209350601f198516905b868282106105bf5750509084600195949392106105a7575b505050811b01601155610320565b01515f1960f88460031b161c191690555f8080610599565b6001859682939686015181550195019301610581565b90915060115f52835f20601f840160051c81019185851061061a575b90601f859493920160051c01905b81811061060c57506102f6565b5f81558493506001016105ff565b90915081906105f1565b91607f16916102e3565b60405162461bcd60e51b815260048101859052601560248201527f6e6674517479436170203e206d61784e667451747900000000000000000000006044820152606490fd5b60405162461bcd60e51b815260048101859052600a6024820152690216e66745174794361760b41b6044820152606490fd5b60405162461bcd60e51b815260048101859052600a602482015269216d61784e667451747960b01b6044820152606490fd5b60405162461bcd60e51b815260048101859052600f60248201526e0627579496e203e20736f667443617608c1b6044820152606490fd5b60405162461bcd60e51b815260048101859052601060248201526f36b0bc213abca4b7101e10313abca4b760811b6044820152606490fd5b60405162461bcd60e51b815260048101859052600660248201526510b13abca4b760d11b6044820152606490fd5b508b1515610294565b60405162461bcd60e51b815260048101859052600960248201526810b6b0bc213abca4b760b91b6044820152606490fd5b5088151561027e565b60405162461bcd60e51b8152600481018590526008602482015267021736f66744361760c41b6044820152606490fd5b50871515610268565b60405162461bcd60e51b8152600481018590526008602482015267021686172644361760c41b6044820152606490fd5b50861515610252565b60405162461bcd60e51b81526004810185905260076024820152660216d61784361760cc1b6044820152606490fd5b5085151561023c565b60405162461bcd60e51b8152600481018590526012602482015271068617264436170203c3d20736f66744361760741b6044820152606490fd5b60405162461bcd60e51b815260048101859052601060248201526f06d6178436170203c20686172644361760841b6044820152606490fd5b60405162461bcd60e51b8152600481018590526007602482015266085cde5b589bdb60ca1b6044820152606490fd5b60405162461bcd60e51b8152600481018590526005602482015264216e616d6560d81b6044820152606490fd5b60405162461bcd60e51b815260048101859052600660248201526510ba37b5b2b760d11b6044820152606490fd5b508481813d8311610992575b6109738183610b68565b8101031261098e575160ff8116810361098e5760ff90610204565b5f80fd5b503d610969565b6040513d5f823e3d90fd5b60405162461bcd60e51b8152600481018590526008602482015267216164647265737360c01b6044820152606490fd5b015190505f80610194565b60045f9081528881209350601f198516905b89828210610a2f575050908460019594939210610a17575b505050811b016004556101a9565b01515f1960f88460031b161c191690555f8080610a09565b60018596829396860151815501950193016109f1565b90915060045f52865f20601f840160051c810191888510610a8a575b90601f859493920160051c01905b818110610a7c575061017f565b5f8155849350600101610a6f565b9091508190610a61565b91607f169161016c565b015190505f80610134565b60035f9081528981209350601f198516905b8a828210610af9575050908460019594939210610ae1575b505050811b01600355610149565b01515f1960f88460031b161c191690555f8080610ad3565b6001859682939686015181550195019301610abb565b90915060035f52875f20601f840160051c810191898510610b54575b90601f859493920160051c01905b818110610b46575061011f565b5f8155849350600101610b39565b9091508190610b2b565b91607f169161010c565b601f909101601f19168101906001600160401b0382119082101761055057604052565b51906001600160a01b038216820361098e57565b81601f8201121561098e578051906001600160401b0382116105505760405192610bd3601f8401601f191660200185610b68565b8284526020838301011161098e57815f9260208093018386015e8301015290565b8115610bfe570690565b634e487b7160e01b5f52601260045260245ffd5b600680546001600160a01b0319908116909155600580549182166001600160a01b0393841690811790915591167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a356fe6080806040526004361015610012575f80fd5b5f3560e01c9081630610770c146120dc5750806306fdde0314612021578063095ea7b31461200857806318160ddd14611feb5780631dd19cb414611ec957806323b872dd14611dcf5780632530b14514611d8b57806327810b6e14611d635780632805ab0714611d29578063281bd79814611c26578063313ce56714611b7f578063329eb83914611a7e5780633950935114611a095780633af32abf146119c75780633b25637f146118d357806347c2281f146118b75780634985746f1461189a5780634ce1e48d1461187857806353aab4341461185b578063590e1ae3146116a55780635c975abb1461168057806370a0823114611649578063715018a6146116005780637479af5c1461142b57806379ba50971461136657806379c3af141461132c57806379cc6790146112c357806382bfefc81461127f5780638da5cb5b14611257578063906a26e01461123a57806395d89b4114611136578063966908bf1461110b5780639e8c708e14610fb5578063a457c2d714610ef1578063a9059cbb14610ea6578063a996d6ce14610e3e578063b4d1d79514610e21578063b8cdf7b914610dbf578063bedb86fb14610cc9578063c44bef7514610bd0578063c5c4744c14610bb3578063c891091314610b5f578063d18d944b14610a5d578063d5cf5c721461095b578063d669e1d414610921578063d6de4a6814610739578063d90829621461071c578063d96a094a1461040f578063daa47858146103d5578063dd62ed3e14610385578063e30c39781461035d578063e6fd48bc14610340578063f2fde38b146102d4578063f85943b11461029a5763fb86a40414610279575f80fd5b34610296575f366003190112610296576020600c54604051908152f35b5f80fd5b34610296575f3660031901126102965760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b34610296576020366003190112610296576102ed612121565b6102f56123a0565b600680546001600160a01b0319166001600160a01b039283169081179091556005549091167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227005f80a3005b34610296575f366003190112610296576020601054604051908152f35b34610296575f366003190112610296576006546040516001600160a01b039091168152602090f35b346102965760403660031901126102965761039e612121565b6103a6612137565b6001600160a01b039182165f908152600160209081526040808320949093168252928352819020549051908152f35b34610296575f3660031901126102965760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b346102965760203660031901126102965760043561042b61243a565b610448610443335f52601460205260405f2054151590565b612244565b610450612490565b6010548015159081610710575b816106e5575b50156106b5576104937f0000000000000000000000000000000000000000000000000000000000000000826122c8565b901561068357806104a3336122db565b1061064a57600e546104b582826121da565b600c541061060f57816104cb91426008556121da565b600e55335f526015602052600160405f20016104e88282546121da565b905533156105ca576104fc816002546121da565b600255335f525f60205260405f208181540190556040518181525f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60203393a36105976040516323b872dd60e01b60208201523360248201523060448201528260648201526064815261057160848261214d565b7f00000000000000000000000000000000000000000000000000000000000000006125dd565b6040519081527fc55650ccda1011e1cdc769b1fbf546ebb8c97800b6072b49e06cd560305b1d6760203392a26001600755005b60405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606490fd5b60405162461bcd60e51b815260206004820152601360248201527214d85b19481d185c99d95d081c995858da1959606a1b6044820152606490fd5b60405162461bcd60e51b8152602060048201526011602482015270109d5e481b1a5b5a5d081c995858da1959607a1b6044820152606490fd5b60405162461bcd60e51b815260206004820152600a6024820152695a65726f2062696c6c7360b01b6044820152606490fd5b60405162461bcd60e51b8152602060048201526008602482015267216f6e676f696e6760c01b6044820152606490fd5b90506201518081018091116106fc57421082610463565b634e487b7160e01b5f52601160045260245ffd5b8091504210159061045d565b34610296575f366003190112610296576020600f54604051908152f35b346102965760403660031901126102965760043560243561075861243a565b6107606123a0565b6010548015159081610909575b50806108fc575b61077d9061227f565b61078781836121da565b601354106108c75781905b61079c81846121da565b8210156108c0576013548210156108ac577f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0908201546001600160a01b03165f81815260156020526040902060018181015460029092015461079c95919391929060ff1615806108a3575b610815575b5050019150610792565b6020816108457fa932d4d6edaa1788b07669b51e30ca2d0f5122dfd89c83a9f3cb0471ed50188393600f546121da565b600f55835f5260158252600260405f20018660ff1982541617905561086a81856124d7565b61089581857f00000000000000000000000000000000000000000000000000000000000000006123f8565b604051908152a2858061080b565b50801515610806565b634e487b7160e01b5f52603260045260245ffd5b6001600755005b60405162461bcd60e51b815260206004820152600d60248201526c6f7574206f6620626f756e647360981b6044820152606490fd5b50600e54600d5411610774565b90506201518081018091116106fc574210158361076d565b34610296575f3660031901126102965760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b34610296576020366003190112610296576004356109776123a0565b80151580610a27575b61098990612205565b6109b57f000000000000000000000000000000000000000000000000000000000000000082111561236a565b600c548110156109f6577f59796a24c73c2da5fd9c166f2ada100156c2f301f7a6fb046affe6f25c0596b86040600d548151908152836020820152a1600d55005b60405162461bcd60e51b8152602060048201526009602482015268021736f6674206361760bc1b6044820152606490fd5b50610989610a557f0000000000000000000000000000000000000000000000000000000000000000836121e7565b159050610980565b3461029657602036600319011261029657600435610a796123a0565b80151580610b29575b610a8b90612205565b610ab77f000000000000000000000000000000000000000000000000000000000000000082111561236a565b600d54811115610af8577f0b35e6ef6a65e02babbc33960d67a017dab283124f08c4ebff10e7910aa2568c6040600c548151908152836020820152a1600c55005b60405162461bcd60e51b815260206004820152600960248201526802168617264206361760bc1b6044820152606490fd5b50610a8b610b577f0000000000000000000000000000000000000000000000000000000000000000836121e7565b159050610a82565b34610296576020366003190112610296576001600160a01b03610b80612121565b165f526015602052606060405f2080549060ff600260018301549201541690604051928352602083015215156040820152f35b34610296575f366003190112610296576020600e54604051908152f35b3461029657602036600319011261029657600435610bec6123a0565b610c026010548015908115610cbf575b50612190565b610e1042018042116106fc578110610c875762093a8042018042116106fc578111610c58576020817faad53c4362ef2fe5a5390cc046e71fd8423a0a8dceebc156ac9bbcd15997eec292601055604051908152a1005b60405162461bcd60e51b81526020600482015260076024820152663a37b7903330b960c91b6044820152606490fd5b60405162461bcd60e51b815260206004820152601060248201526f3830b9ba1037b9103a37b7903732b0b960811b6044820152606490fd5b9050421083610bfc565b3461029657602036600319011261029657600435801515810361029657610cee6123a0565b15610d3c57610cfb612490565b6006805460ff60a01b1916600160a01b1790556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602090a1005b60065460ff8160a01c1615610d835760ff60a01b19166006556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602090a1005b60405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606490fd5b34610296576020366003190112610296576004358015158091036102965760207f7d200b7a5fe419e89d30b426ac06c14746aacc356cebcf18c3c7d23eb398689a91610e096123a0565b60ff196009541660ff821617600955604051908152a1005b34610296575f366003190112610296576020604051620151808152f35b3461029657602036600319011261029657610e57612121565b610e5f6123a0565b600b546001600160a01b0391821691829082167f21386c0aa3274d82d6df5327ce7371e8ca5b461573ea562fc450f9dd379806ca5f80a36001600160a01b03191617600b55005b3461029657604036600319011261029657610ebf612121565b5060405162461bcd60e51b815260206004820152600960248201526810ba3930b739b332b960b91b6044820152606490fd5b3461029657604036600319011261029657610f0a612121565b335f52600160205260405f209060018060a01b03165f5260205260405f20602435905410610f625760405162461bcd60e51b815260206004820152600860248201526721617070726f766560c01b6044820152606490fd5b60405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608490fd5b34610296576020366003190112610296576004356001600160a01b0381169081810361029657610fe36123a0565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031682146110de576040516370a0823160e01b815230600482015290602082602481865afa9182156110d3575f9261109f575b508161104657005b816110967f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28936020937f0000000000000000000000000000000000000000000000000000000000000000906123f8565b604051908152a2005b9091506020813d6020116110cb575b816110bb6020938361214d565b810103126102965751908361103e565b3d91506110ae565b6040513d5f823e3d90fd5b60405162461bcd60e51b81526020600482015260056024820152643a37b5b2b760d91b6044820152606490fd5b3461029657602036600319011261029657602061112e611129612121565b6122db565b604051908152f35b34610296575f366003190112610296576040515f6012548060011c90600181168015611230575b60208310811461121c578285529081156111f8575060011461119a575b6111968361118a8185038261214d565b604051918291826120f7565b0390f35b91905060125f527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec3444915f905b8082106111de5750909150810160200161118a61117a565b9192600181602092548385880101520191019092916111c6565b60ff191660208086019190915291151560051b8401909101915061118a905061117a565b634e487b7160e01b5f52602260045260245ffd5b91607f169161115d565b34610296575f366003190112610296576020600d54604051908152f35b34610296575f366003190112610296576005546040516001600160a01b039091168152602090f35b34610296575f366003190112610296576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b34610296576040366003190112610296576112dc612121565b600b546001600160a01b031633036112fd576112fb90602435906124d7565b005b60405162461bcd60e51b815260206004820152600760248201526610b13ab93732b960c91b6044820152606490fd5b34610296575f3660031901126102965760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b34610296575f36600319011261029657600654336001600160a01b038216036113d4576001600160a01b0319908116600655600580543392811683179091556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3005b60405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b6064820152608490fd5b346102965760203660031901126102965760043567ffffffffffffffff811161029657366023820112156102965780600401359067ffffffffffffffff8211610296576024810190602436918460061b0101116102965761148a6123a0565b6114a360105480159081156115f6575b50929192612190565b7f0000000000000000000000000000000000000000000000000000000000000000915f5b8281106114d057005b6114e36114de8285856122b8565b6121c6565b9060206114f18286866122b8565b0135823b6115cb57801561159c57858111611569576001926001600160a01b0316907f0311b094eb4c9ca217baa6a12f4c5070445cbbcc04a28fbb8072147b9cdcd02790602090611541846127e7565b508161154e868a8a6122b8565b0135845f526015835260405f2055604051908152a2016114c7565b60405162461bcd60e51b815260206004820152600b60248201526a6d6178206e66742071747960a81b6044820152606490fd5b60405162461bcd60e51b8152602060048201526007602482015266216e667451747960c81b6044820152606490fd5b606460405162461bcd60e51b815260206004820152600460248201526321454f4160e01b6044820152fd5b905042108461149a565b34610296575f366003190112610296576116186123a0565b60405162461bcd60e51b81526020600482015260096024820152682172656e6f756e636560b81b6044820152606490fd5b34610296576020366003190112610296576001600160a01b0361166a612121565b165f525f602052602060405f2054604051908152f35b34610296575f36600319011261029657602060ff60065460a01c166040519015158152f35b34610296575f366003190112610296576116bd61243a565b6116d5610443335f52601460205260405f2054151590565b6116dd612490565b6010548015159081611843575b5080611836575b6116fa9061227f565b335f526015602052600160405f2001548015806118025761171f60ff6009541661227f565b335f52601560205260ff600260405f200154166117d257335f526015602052600260405f2001600160ff1982541617905561175c82600f546121da565b600f5561176982336124d7565b15611775576001600755005b6117a081337f00000000000000000000000000000000000000000000000000000000000000006123f8565b6040519081527fd7dee2702d63ad89917b6a4da9981c90c4d24f8c2bdfd64c604ecae57d8d065160203392a2806108c0565b60405162461bcd60e51b81526020600482015260086024820152671c99599d5b99195960c21b6044820152606490fd5b60405162461bcd60e51b815260206004820152600c60248201526b16995c9bc819195c1bdcda5d60a21b6044820152606490fd5b50600e54600d54116116f1565b90506201518081018091116106fc57421015816116ea565b34610296575f366003190112610296576020600a54604051908152f35b34610296575f36600319011261029657602060ff600954166040519015158152f35b34610296575f366003190112610296576020600854604051908152f35b34610296575f366003190112610296576020604051610e108152f35b34610296576020366003190112610296576004356118ef6123a0565b80151580611991575b61190190612205565b7f0000000000000000000000000000000000000000000000000000000000000000811161195f577f6abf7e21d0157ac565825936f3d73ff3c4939140c08cdc99d445e4fa204007f06040600a548151908152836020820152a1600a55005b60405162461bcd60e51b815260206004820152600a60248201526936b0bc10313abc9034b760b11b6044820152606490fd5b506119016119bf7f0000000000000000000000000000000000000000000000000000000000000000836121e7565b1590506118f8565b346102965760203660031901126102965760206119ff6001600160a01b036119ed612121565b165f52601460205260405f2054151590565b6040519015158152f35b3461029657604036600319011261029657611a22612121565b335f52600160205260405f209060018060a01b03165f52602052611a4d60405f2060243590546121da565b5060405162461bcd60e51b815260206004820152600860248201526721617070726f766560c01b6044820152606490fd5b34610296575f36600319011261029657611a966123a0565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006020826024816001600160a01b0385165afa9182156110d3575f92611b4b575b5081611af257005b81611b427fdb503e6c3b3d8780c5fdc9c30fa5e26d6197cf05cf083c5d904920d98c592b94936020937f0000000000000000000000000000000000000000000000000000000000000000906123f8565b604051908152a1005b9091506020813d602011611b77575b81611b676020938361214d565b8101031261029657519082611aea565b3d9150611b5a565b34610296575f3660031901126102965760405163313ce56760e01b81526020816004817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa80156110d3575f90611be9575b60209060ff60405191168152f35b506020813d602011611c1e575b81611c036020938361214d565b81010312610296575160ff8116810361029657602090611bdb565b3d9150611bf6565b346102965760203660031901126102965760043567ffffffffffffffff8111610296573660238201121561029657806004013567ffffffffffffffff8111610296573660248260051b8401011161029657611c7f6123a0565b611c946010548015908115611d1f5750612190565b5f5b818110156112fb576001906001600160a01b03611cbb600583901b86016024016121c6565b16611cd1815f52601460205260405f2054151590565b15611d1957611cdf81612712565b50805f5260156020525f60408120557fde8cf212af7ce38b2840785a2768d97ff2dbf3c21b516961cec0061e134c2a1e5f80a25b01611c96565b50611d13565b9050421084610bfc565b34610296575f3660031901126102965760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b34610296575f36600319011261029657600b546040516001600160a01b039091168152602090f35b34610296575f366003190112610296576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b3461029657606036600319011261029657611de8612121565b611df0612137565b506001600160a01b03165f90815260016020818152604080842033855290915290912054908101611e4c5760405162461bcd60e51b815260206004820152600960248201526810ba3930b739b332b960b91b6044820152606490fd5b60443511611e845760405162461bcd60e51b815260206004820152600860248201526721617070726f766560c01b6044820152606490fd5b60405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606490fd5b34610296575f36600319011261029657611ee16123a0565b6040516370a0823160e01b81523060048201527f0000000000000000000000000000000000000000000000000000000000000000906020816024816001600160a01b0386165afa9081156110d3575f91611fb9575b50611f46600e54600f5490612183565b80821115611fb057611f5791612183565b905b81611f6057005b81611b427fa47f39ca8f1ef6f6c4330b7e016f607315987c9f27ebe4592004bbdf9ff7eeed936020937f0000000000000000000000000000000000000000000000000000000000000000906123f8565b50505f90611f59565b90506020813d602011611fe3575b81611fd46020938361214d565b81010312610296575182611f36565b3d9150611fc7565b34610296575f366003190112610296576020600254604051908152f35b3461029657604036600319011261029657611a4d612121565b34610296575f366003190112610296576040515f6011548060011c906001811680156120d2575b60208310811461121c578285529081156111f85750600114612074576111968361118a8185038261214d565b91905060115f527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c68915f905b8082106120b85750909150810160200161118a61117a565b9192600181602092548385880101520191019092916120a0565b91607f1691612048565b34610296575f366003190112610296578062093a8060209252f35b602060409281835280519182918282860152018484015e5f828201840152601f01601f1916010190565b600435906001600160a01b038216820361029657565b602435906001600160a01b038216820361029657565b90601f8019910116810190811067ffffffffffffffff82111761216f57604052565b634e487b7160e01b5f52604160045260245ffd5b919082039182116106fc57565b1561219757565b60405162461bcd60e51b81526020600482015260076024820152661cdd185c9d195960ca1b6044820152606490fd5b356001600160a01b03811681036102965790565b919082018092116106fc57565b81156121f1570690565b634e487b7160e01b5f52601260045260245ffd5b1561220c57565b60405162461bcd60e51b815260206004820152601060248201526f2162696c6c73206d756c7469706c657360801b6044820152606490fd5b1561224b57565b60405162461bcd60e51b815260206004820152600c60248201526b085dda1a5d195b1a5cdd195960a21b6044820152606490fd5b1561228657565b60405162461bcd60e51b815260206004820152600a60248201526921726566756e64696e6760b01b6044820152606490fd5b91908110156108ac5760061b0190565b818102929181159184041417156106fc57565b6001600160a01b03165f8181526014602052604090205415612365575f90815260156020526040902060018101549054612343907f00000000000000000000000000000000000000000000000000000000000000008082101561235e57505b600a54906122c8565b90818110156123585761235591612183565b90565b50505f90565b905061233a565b505f90565b1561237157565b60405162461bcd60e51b815260206004820152600760248201526606d6178206361760cc1b6044820152606490fd5b6005546001600160a01b031633036123b457565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b60405163a9059cbb60e01b60208201526001600160a01b0390921660248301526044808301939093529181526124389161243360648361214d565b6125dd565b565b60026007541461244b576002600755565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b60ff60065460a01c1661249f57565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fd5b6001600160a01b0316801561258e57805f525f60205260405f20549180831061253e576020817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef925f958587528684520360408620558060025403600255604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608490fd5b60405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b60018060a01b0316905f80604051926125f760408561214d565b602084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564602085015260208151910182865af13d156126f0573d9067ffffffffffffffff821161216f5760405161266d94909261265f601f8201601f19166020018561214d565b83523d5f602085013e61283c565b805180612678575050565b816020918101031261029657602001518015908115036102965761269857565b60405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608490fd5b9161266d9260609161283c565b80548210156108ac575f5260205f2001905f90565b5f818152601460205260409020548015612358575f1981018181116106fc576013545f198101919082116106fc57808203612799575b5050506013548015612785575f19016127628160136126fd565b8154905f199060031b1b191690556013555f5260146020525f6040812055600190565b634e487b7160e01b5f52603160045260245ffd5b6127d16127aa6127bb9360136126fd565b90549060031b1c92839260136126fd565b819391549060031b91821b915f19901b19161790565b90555f52601460205260405f20555f8080612748565b805f52601460205260405f2054155f14612365576013546801000000000000000081101561216f576128256127bb82600185940160135560136126fd565b9055601354905f52601460205260405f2055600190565b9192901561289e5750815115612850575090565b3b156128595790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b8251909150156128b15750805190602001fd5b60405162461bcd60e51b81529081906128cd90600483016120f7565b0390fdfea2646970667358221220a956c0a210dabf2254cbcee0db275c3c3d18365e09ef5ab93226ef3a898f204864736f6c634300081c00330000000000000000000000004636269e7cdc253f6b0b210215c3601558fe80f60000000000000000000000004027e734f9f75bc8ef11f59a7331953cfdad957700000000000000000000000029219dd400f2bf60e5a23d13be72b486d403889400000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000005f5e100000000000000000000000000000000000000000000000000000000e8d4a51000000000000000000000000000000000000000000000000000000000e8d4a51000000000000000000000000000000000000000000000000000000000746a52880000000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000001c784e4654202331202d205661756c74456467652028555344432e6529000000000000000000000000000000000000000000000000000000000000000000000015784e46545f5661756c74456467655f555344432e650000000000000000000000

Deployed Bytecode

0x6080806040526004361015610012575f80fd5b5f3560e01c9081630610770c146120dc5750806306fdde0314612021578063095ea7b31461200857806318160ddd14611feb5780631dd19cb414611ec957806323b872dd14611dcf5780632530b14514611d8b57806327810b6e14611d635780632805ab0714611d29578063281bd79814611c26578063313ce56714611b7f578063329eb83914611a7e5780633950935114611a095780633af32abf146119c75780633b25637f146118d357806347c2281f146118b75780634985746f1461189a5780634ce1e48d1461187857806353aab4341461185b578063590e1ae3146116a55780635c975abb1461168057806370a0823114611649578063715018a6146116005780637479af5c1461142b57806379ba50971461136657806379c3af141461132c57806379cc6790146112c357806382bfefc81461127f5780638da5cb5b14611257578063906a26e01461123a57806395d89b4114611136578063966908bf1461110b5780639e8c708e14610fb5578063a457c2d714610ef1578063a9059cbb14610ea6578063a996d6ce14610e3e578063b4d1d79514610e21578063b8cdf7b914610dbf578063bedb86fb14610cc9578063c44bef7514610bd0578063c5c4744c14610bb3578063c891091314610b5f578063d18d944b14610a5d578063d5cf5c721461095b578063d669e1d414610921578063d6de4a6814610739578063d90829621461071c578063d96a094a1461040f578063daa47858146103d5578063dd62ed3e14610385578063e30c39781461035d578063e6fd48bc14610340578063f2fde38b146102d4578063f85943b11461029a5763fb86a40414610279575f80fd5b34610296575f366003190112610296576020600c54604051908152f35b5f80fd5b34610296575f3660031901126102965760206040517f000000000000000000000000000000000000000000000000000000000000003c8152f35b34610296576020366003190112610296576102ed612121565b6102f56123a0565b600680546001600160a01b0319166001600160a01b039283169081179091556005549091167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227005f80a3005b34610296575f366003190112610296576020601054604051908152f35b34610296575f366003190112610296576006546040516001600160a01b039091168152602090f35b346102965760403660031901126102965761039e612121565b6103a6612137565b6001600160a01b039182165f908152600160209081526040808320949093168252928352819020549051908152f35b34610296575f3660031901126102965760206040517f000000000000000000000000000000000000000000000000000000000000000a8152f35b346102965760203660031901126102965760043561042b61243a565b610448610443335f52601460205260405f2054151590565b612244565b610450612490565b6010548015159081610710575b816106e5575b50156106b5576104937f0000000000000000000000000000000000000000000000000000000005f5e100826122c8565b901561068357806104a3336122db565b1061064a57600e546104b582826121da565b600c541061060f57816104cb91426008556121da565b600e55335f526015602052600160405f20016104e88282546121da565b905533156105ca576104fc816002546121da565b600255335f525f60205260405f208181540190556040518181525f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60203393a36105976040516323b872dd60e01b60208201523360248201523060448201528260648201526064815261057160848261214d565b7f00000000000000000000000029219dd400f2bf60e5a23d13be72b486d40388946125dd565b6040519081527fc55650ccda1011e1cdc769b1fbf546ebb8c97800b6072b49e06cd560305b1d6760203392a26001600755005b60405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606490fd5b60405162461bcd60e51b815260206004820152601360248201527214d85b19481d185c99d95d081c995858da1959606a1b6044820152606490fd5b60405162461bcd60e51b8152602060048201526011602482015270109d5e481b1a5b5a5d081c995858da1959607a1b6044820152606490fd5b60405162461bcd60e51b815260206004820152600a6024820152695a65726f2062696c6c7360b01b6044820152606490fd5b60405162461bcd60e51b8152602060048201526008602482015267216f6e676f696e6760c01b6044820152606490fd5b90506201518081018091116106fc57421082610463565b634e487b7160e01b5f52601160045260245ffd5b8091504210159061045d565b34610296575f366003190112610296576020600f54604051908152f35b346102965760403660031901126102965760043560243561075861243a565b6107606123a0565b6010548015159081610909575b50806108fc575b61077d9061227f565b61078781836121da565b601354106108c75781905b61079c81846121da565b8210156108c0576013548210156108ac577f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0908201546001600160a01b03165f81815260156020526040902060018181015460029092015461079c95919391929060ff1615806108a3575b610815575b5050019150610792565b6020816108457fa932d4d6edaa1788b07669b51e30ca2d0f5122dfd89c83a9f3cb0471ed50188393600f546121da565b600f55835f5260158252600260405f20018660ff1982541617905561086a81856124d7565b61089581857f00000000000000000000000029219dd400f2bf60e5a23d13be72b486d40388946123f8565b604051908152a2858061080b565b50801515610806565b634e487b7160e01b5f52603260045260245ffd5b6001600755005b60405162461bcd60e51b815260206004820152600d60248201526c6f7574206f6620626f756e647360981b6044820152606490fd5b50600e54600d5411610774565b90506201518081018091116106fc574210158361076d565b34610296575f3660031901126102965760206040517f000000000000000000000000000000000000000000000000000000e8d4a510008152f35b34610296576020366003190112610296576004356109776123a0565b80151580610a27575b61098990612205565b6109b57f000000000000000000000000000000000000000000000000000000e8d4a5100082111561236a565b600c548110156109f6577f59796a24c73c2da5fd9c166f2ada100156c2f301f7a6fb046affe6f25c0596b86040600d548151908152836020820152a1600d55005b60405162461bcd60e51b8152602060048201526009602482015268021736f6674206361760bc1b6044820152606490fd5b50610989610a557f0000000000000000000000000000000000000000000000000000000005f5e100836121e7565b159050610980565b3461029657602036600319011261029657600435610a796123a0565b80151580610b29575b610a8b90612205565b610ab77f000000000000000000000000000000000000000000000000000000e8d4a5100082111561236a565b600d54811115610af8577f0b35e6ef6a65e02babbc33960d67a017dab283124f08c4ebff10e7910aa2568c6040600c548151908152836020820152a1600c55005b60405162461bcd60e51b815260206004820152600960248201526802168617264206361760bc1b6044820152606490fd5b50610a8b610b577f0000000000000000000000000000000000000000000000000000000005f5e100836121e7565b159050610a82565b34610296576020366003190112610296576001600160a01b03610b80612121565b165f526015602052606060405f2080549060ff600260018301549201541690604051928352602083015215156040820152f35b34610296575f366003190112610296576020600e54604051908152f35b3461029657602036600319011261029657600435610bec6123a0565b610c026010548015908115610cbf575b50612190565b610e1042018042116106fc578110610c875762093a8042018042116106fc578111610c58576020817faad53c4362ef2fe5a5390cc046e71fd8423a0a8dceebc156ac9bbcd15997eec292601055604051908152a1005b60405162461bcd60e51b81526020600482015260076024820152663a37b7903330b960c91b6044820152606490fd5b60405162461bcd60e51b815260206004820152601060248201526f3830b9ba1037b9103a37b7903732b0b960811b6044820152606490fd5b9050421083610bfc565b3461029657602036600319011261029657600435801515810361029657610cee6123a0565b15610d3c57610cfb612490565b6006805460ff60a01b1916600160a01b1790556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602090a1005b60065460ff8160a01c1615610d835760ff60a01b19166006556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602090a1005b60405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606490fd5b34610296576020366003190112610296576004358015158091036102965760207f7d200b7a5fe419e89d30b426ac06c14746aacc356cebcf18c3c7d23eb398689a91610e096123a0565b60ff196009541660ff821617600955604051908152a1005b34610296575f366003190112610296576020604051620151808152f35b3461029657602036600319011261029657610e57612121565b610e5f6123a0565b600b546001600160a01b0391821691829082167f21386c0aa3274d82d6df5327ce7371e8ca5b461573ea562fc450f9dd379806ca5f80a36001600160a01b03191617600b55005b3461029657604036600319011261029657610ebf612121565b5060405162461bcd60e51b815260206004820152600960248201526810ba3930b739b332b960b91b6044820152606490fd5b3461029657604036600319011261029657610f0a612121565b335f52600160205260405f209060018060a01b03165f5260205260405f20602435905410610f625760405162461bcd60e51b815260206004820152600860248201526721617070726f766560c01b6044820152606490fd5b60405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608490fd5b34610296576020366003190112610296576004356001600160a01b0381169081810361029657610fe36123a0565b7f00000000000000000000000029219dd400f2bf60e5a23d13be72b486d40388946001600160a01b031682146110de576040516370a0823160e01b815230600482015290602082602481865afa9182156110d3575f9261109f575b508161104657005b816110967f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28936020937f0000000000000000000000004027e734f9f75bc8ef11f59a7331953cfdad9577906123f8565b604051908152a2005b9091506020813d6020116110cb575b816110bb6020938361214d565b810103126102965751908361103e565b3d91506110ae565b6040513d5f823e3d90fd5b60405162461bcd60e51b81526020600482015260056024820152643a37b5b2b760d91b6044820152606490fd5b3461029657602036600319011261029657602061112e611129612121565b6122db565b604051908152f35b34610296575f366003190112610296576040515f6012548060011c90600181168015611230575b60208310811461121c578285529081156111f8575060011461119a575b6111968361118a8185038261214d565b604051918291826120f7565b0390f35b91905060125f527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec3444915f905b8082106111de5750909150810160200161118a61117a565b9192600181602092548385880101520191019092916111c6565b60ff191660208086019190915291151560051b8401909101915061118a905061117a565b634e487b7160e01b5f52602260045260245ffd5b91607f169161115d565b34610296575f366003190112610296576020600d54604051908152f35b34610296575f366003190112610296576005546040516001600160a01b039091168152602090f35b34610296575f366003190112610296576040517f00000000000000000000000029219dd400f2bf60e5a23d13be72b486d40388946001600160a01b03168152602090f35b34610296576040366003190112610296576112dc612121565b600b546001600160a01b031633036112fd576112fb90602435906124d7565b005b60405162461bcd60e51b815260206004820152600760248201526610b13ab93732b960c91b6044820152606490fd5b34610296575f3660031901126102965760206040517f0000000000000000000000000000000000000000000000000000000005f5e1008152f35b34610296575f36600319011261029657600654336001600160a01b038216036113d4576001600160a01b0319908116600655600580543392811683179091556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3005b60405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b6064820152608490fd5b346102965760203660031901126102965760043567ffffffffffffffff811161029657366023820112156102965780600401359067ffffffffffffffff8211610296576024810190602436918460061b0101116102965761148a6123a0565b6114a360105480159081156115f6575b50929192612190565b7f000000000000000000000000000000000000000000000000000000000000003c915f5b8281106114d057005b6114e36114de8285856122b8565b6121c6565b9060206114f18286866122b8565b0135823b6115cb57801561159c57858111611569576001926001600160a01b0316907f0311b094eb4c9ca217baa6a12f4c5070445cbbcc04a28fbb8072147b9cdcd02790602090611541846127e7565b508161154e868a8a6122b8565b0135845f526015835260405f2055604051908152a2016114c7565b60405162461bcd60e51b815260206004820152600b60248201526a6d6178206e66742071747960a81b6044820152606490fd5b60405162461bcd60e51b8152602060048201526007602482015266216e667451747960c81b6044820152606490fd5b606460405162461bcd60e51b815260206004820152600460248201526321454f4160e01b6044820152fd5b905042108461149a565b34610296575f366003190112610296576116186123a0565b60405162461bcd60e51b81526020600482015260096024820152682172656e6f756e636560b81b6044820152606490fd5b34610296576020366003190112610296576001600160a01b0361166a612121565b165f525f602052602060405f2054604051908152f35b34610296575f36600319011261029657602060ff60065460a01c166040519015158152f35b34610296575f366003190112610296576116bd61243a565b6116d5610443335f52601460205260405f2054151590565b6116dd612490565b6010548015159081611843575b5080611836575b6116fa9061227f565b335f526015602052600160405f2001548015806118025761171f60ff6009541661227f565b335f52601560205260ff600260405f200154166117d257335f526015602052600260405f2001600160ff1982541617905561175c82600f546121da565b600f5561176982336124d7565b15611775576001600755005b6117a081337f00000000000000000000000029219dd400f2bf60e5a23d13be72b486d40388946123f8565b6040519081527fd7dee2702d63ad89917b6a4da9981c90c4d24f8c2bdfd64c604ecae57d8d065160203392a2806108c0565b60405162461bcd60e51b81526020600482015260086024820152671c99599d5b99195960c21b6044820152606490fd5b60405162461bcd60e51b815260206004820152600c60248201526b16995c9bc819195c1bdcda5d60a21b6044820152606490fd5b50600e54600d54116116f1565b90506201518081018091116106fc57421015816116ea565b34610296575f366003190112610296576020600a54604051908152f35b34610296575f36600319011261029657602060ff600954166040519015158152f35b34610296575f366003190112610296576020600854604051908152f35b34610296575f366003190112610296576020604051610e108152f35b34610296576020366003190112610296576004356118ef6123a0565b80151580611991575b61190190612205565b7f00000000000000000000000000000000000000000000000000000002540be400811161195f577f6abf7e21d0157ac565825936f3d73ff3c4939140c08cdc99d445e4fa204007f06040600a548151908152836020820152a1600a55005b60405162461bcd60e51b815260206004820152600a60248201526936b0bc10313abc9034b760b11b6044820152606490fd5b506119016119bf7f0000000000000000000000000000000000000000000000000000000005f5e100836121e7565b1590506118f8565b346102965760203660031901126102965760206119ff6001600160a01b036119ed612121565b165f52601460205260405f2054151590565b6040519015158152f35b3461029657604036600319011261029657611a22612121565b335f52600160205260405f209060018060a01b03165f52602052611a4d60405f2060243590546121da565b5060405162461bcd60e51b815260206004820152600860248201526721617070726f766560c01b6044820152606490fd5b34610296575f36600319011261029657611a966123a0565b6040516370a0823160e01b81523060048201527f00000000000000000000000029219dd400f2bf60e5a23d13be72b486d40388946020826024816001600160a01b0385165afa9182156110d3575f92611b4b575b5081611af257005b81611b427fdb503e6c3b3d8780c5fdc9c30fa5e26d6197cf05cf083c5d904920d98c592b94936020937f0000000000000000000000004027e734f9f75bc8ef11f59a7331953cfdad9577906123f8565b604051908152a1005b9091506020813d602011611b77575b81611b676020938361214d565b8101031261029657519082611aea565b3d9150611b5a565b34610296575f3660031901126102965760405163313ce56760e01b81526020816004817f00000000000000000000000029219dd400f2bf60e5a23d13be72b486d40388946001600160a01b03165afa80156110d3575f90611be9575b60209060ff60405191168152f35b506020813d602011611c1e575b81611c036020938361214d565b81010312610296575160ff8116810361029657602090611bdb565b3d9150611bf6565b346102965760203660031901126102965760043567ffffffffffffffff8111610296573660238201121561029657806004013567ffffffffffffffff8111610296573660248260051b8401011161029657611c7f6123a0565b611c946010548015908115611d1f5750612190565b5f5b818110156112fb576001906001600160a01b03611cbb600583901b86016024016121c6565b16611cd1815f52601460205260405f2054151590565b15611d1957611cdf81612712565b50805f5260156020525f60408120557fde8cf212af7ce38b2840785a2768d97ff2dbf3c21b516961cec0061e134c2a1e5f80a25b01611c96565b50611d13565b9050421084610bfc565b34610296575f3660031901126102965760206040517f00000000000000000000000000000000000000000000000000000002540be4008152f35b34610296575f36600319011261029657600b546040516001600160a01b039091168152602090f35b34610296575f366003190112610296576040517f0000000000000000000000004027e734f9f75bc8ef11f59a7331953cfdad95776001600160a01b03168152602090f35b3461029657606036600319011261029657611de8612121565b611df0612137565b506001600160a01b03165f90815260016020818152604080842033855290915290912054908101611e4c5760405162461bcd60e51b815260206004820152600960248201526810ba3930b739b332b960b91b6044820152606490fd5b60443511611e845760405162461bcd60e51b815260206004820152600860248201526721617070726f766560c01b6044820152606490fd5b60405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606490fd5b34610296575f36600319011261029657611ee16123a0565b6040516370a0823160e01b81523060048201527f00000000000000000000000029219dd400f2bf60e5a23d13be72b486d4038894906020816024816001600160a01b0386165afa9081156110d3575f91611fb9575b50611f46600e54600f5490612183565b80821115611fb057611f5791612183565b905b81611f6057005b81611b427fa47f39ca8f1ef6f6c4330b7e016f607315987c9f27ebe4592004bbdf9ff7eeed936020937f0000000000000000000000004027e734f9f75bc8ef11f59a7331953cfdad9577906123f8565b50505f90611f59565b90506020813d602011611fe3575b81611fd46020938361214d565b81010312610296575182611f36565b3d9150611fc7565b34610296575f366003190112610296576020600254604051908152f35b3461029657604036600319011261029657611a4d612121565b34610296575f366003190112610296576040515f6011548060011c906001811680156120d2575b60208310811461121c578285529081156111f85750600114612074576111968361118a8185038261214d565b91905060115f527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c68915f905b8082106120b85750909150810160200161118a61117a565b9192600181602092548385880101520191019092916120a0565b91607f1691612048565b34610296575f366003190112610296578062093a8060209252f35b602060409281835280519182918282860152018484015e5f828201840152601f01601f1916010190565b600435906001600160a01b038216820361029657565b602435906001600160a01b038216820361029657565b90601f8019910116810190811067ffffffffffffffff82111761216f57604052565b634e487b7160e01b5f52604160045260245ffd5b919082039182116106fc57565b1561219757565b60405162461bcd60e51b81526020600482015260076024820152661cdd185c9d195960ca1b6044820152606490fd5b356001600160a01b03811681036102965790565b919082018092116106fc57565b81156121f1570690565b634e487b7160e01b5f52601260045260245ffd5b1561220c57565b60405162461bcd60e51b815260206004820152601060248201526f2162696c6c73206d756c7469706c657360801b6044820152606490fd5b1561224b57565b60405162461bcd60e51b815260206004820152600c60248201526b085dda1a5d195b1a5cdd195960a21b6044820152606490fd5b1561228657565b60405162461bcd60e51b815260206004820152600a60248201526921726566756e64696e6760b01b6044820152606490fd5b91908110156108ac5760061b0190565b818102929181159184041417156106fc57565b6001600160a01b03165f8181526014602052604090205415612365575f90815260156020526040902060018101549054612343907f000000000000000000000000000000000000000000000000000000000000000a8082101561235e57505b600a54906122c8565b90818110156123585761235591612183565b90565b50505f90565b905061233a565b505f90565b1561237157565b60405162461bcd60e51b815260206004820152600760248201526606d6178206361760cc1b6044820152606490fd5b6005546001600160a01b031633036123b457565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b60405163a9059cbb60e01b60208201526001600160a01b0390921660248301526044808301939093529181526124389161243360648361214d565b6125dd565b565b60026007541461244b576002600755565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b60ff60065460a01c1661249f57565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fd5b6001600160a01b0316801561258e57805f525f60205260405f20549180831061253e576020817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef925f958587528684520360408620558060025403600255604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608490fd5b60405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b60018060a01b0316905f80604051926125f760408561214d565b602084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564602085015260208151910182865af13d156126f0573d9067ffffffffffffffff821161216f5760405161266d94909261265f601f8201601f19166020018561214d565b83523d5f602085013e61283c565b805180612678575050565b816020918101031261029657602001518015908115036102965761269857565b60405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608490fd5b9161266d9260609161283c565b80548210156108ac575f5260205f2001905f90565b5f818152601460205260409020548015612358575f1981018181116106fc576013545f198101919082116106fc57808203612799575b5050506013548015612785575f19016127628160136126fd565b8154905f199060031b1b191690556013555f5260146020525f6040812055600190565b634e487b7160e01b5f52603160045260245ffd5b6127d16127aa6127bb9360136126fd565b90549060031b1c92839260136126fd565b819391549060031b91821b915f19901b19161790565b90555f52601460205260405f20555f8080612748565b805f52601460205260405f2054155f14612365576013546801000000000000000081101561216f576128256127bb82600185940160135560136126fd565b9055601354905f52601460205260405f2055600190565b9192901561289e5750815115612850575090565b3b156128595790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b8251909150156128b15750805190602001fd5b60405162461bcd60e51b81529081906128cd90600483016120f7565b0390fdfea2646970667358221220a956c0a210dabf2254cbcee0db275c3c3d18365e09ef5ab93226ef3a898f204864736f6c634300081c0033

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

0000000000000000000000004636269e7cdc253f6b0b210215c3601558fe80f60000000000000000000000004027e734f9f75bc8ef11f59a7331953cfdad957700000000000000000000000029219dd400f2bf60e5a23d13be72b486d403889400000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000005f5e100000000000000000000000000000000000000000000000000000000e8d4a51000000000000000000000000000000000000000000000000000000000e8d4a51000000000000000000000000000000000000000000000000000000000746a52880000000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000001c784e4654202331202d205661756c74456467652028555344432e6529000000000000000000000000000000000000000000000000000000000000000000000015784e46545f5661756c74456467655f555344432e650000000000000000000000

-----Decoded View---------------
Arg [0] : _owner (address): 0x4636269e7CDc253F6B0B210215C3601558FE80F6
Arg [1] : _multisig (address): 0x4027e734f9f75bc8EF11f59a7331953CfDAd9577
Arg [2] : _token (address): 0x29219dd400f2Bf60E5a23d13Be72B486D4038894
Arg [3] : __name (string): xNFT #1 - VaultEdge (USDC.e)
Arg [4] : __symbol (string): xNFT_VaultEdge_USDC.e
Arg [5] : _bill (uint256): 100000000
Arg [6] : _maxCap (uint256): 1000000000000
Arg [7] : _hardCap (uint256): 1000000000000
Arg [8] : _softCap (uint256): 500000000000
Arg [9] : _maxBuyIn (uint256): 10000000000
Arg [10] : _maxNftQty (uint256): 60
Arg [11] : _nftQtyCap (uint256): 10
Arg [12] : _buyIn (uint256): 10000000000

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 0000000000000000000000004636269e7cdc253f6b0b210215c3601558fe80f6
Arg [1] : 0000000000000000000000004027e734f9f75bc8ef11f59a7331953cfdad9577
Arg [2] : 00000000000000000000000029219dd400f2bf60e5a23d13be72b486d4038894
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [5] : 0000000000000000000000000000000000000000000000000000000005f5e100
Arg [6] : 000000000000000000000000000000000000000000000000000000e8d4a51000
Arg [7] : 000000000000000000000000000000000000000000000000000000e8d4a51000
Arg [8] : 000000000000000000000000000000000000000000000000000000746a528800
Arg [9] : 00000000000000000000000000000000000000000000000000000002540be400
Arg [10] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [11] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [12] : 00000000000000000000000000000000000000000000000000000002540be400
Arg [13] : 000000000000000000000000000000000000000000000000000000000000001c
Arg [14] : 784e4654202331202d205661756c74456467652028555344432e652900000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [16] : 784e46545f5661756c74456467655f555344432e650000000000000000000000


[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.