ETH Price: $3,559.52 (+0.67%)
 

Overview

Max Total Supply

30,001 SQUARE

Holders

2

Market

Price

$0.00 @ 0.000000 ETH

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
1 SQUARE

Value
$0.00
0x600be5fcb9338bc3938e4790efbeaaa4f77d6893
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
SQUARE

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : 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 2 of 19 : 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 3 of 19 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

File 4 of 19 : 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 5 of 19 : 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 6 of 19 : 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);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

File 8 of 19 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 9 of 19 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 10 of 19 : IOracle.sol
// SPDX-License-Identifier: UNLICENSED





pragma solidity ^0.8.15;

interface IOracle {
    function update() external;

    function consult(address _token, uint256 _amountIn) external view returns (uint144 amountOut);

    function twap(address _token, uint256 _amountIn) external view returns (uint144 _amountOut);
}

File 11 of 19 : ITaxOffice.sol
// SPDX-License-Identifier: UNLICENSED







pragma solidity ^0.8.15;

// Part: ITaxOffice

interface ITaxOffice {
  function setMainTokenOracle(address _mainTokenOracle) external;

  function setMainTokenTaxTiers(
    uint256[] calldata _mainTokenTaxTwapTiers,
    uint256[] calldata _mainTokenTaxRateTiers
  ) external;

  function setShareTokenTaxTiers(
    uint256[] calldata _shareTokenTaxTwapTiers,
    uint256[] calldata _shareTokenTaxRateTiers
  ) external;

  function calculateMainTokenTax() external view returns (uint256 taxRate);

  function calculateShareTokenTax() external view returns (uint256 taxRate);

  function handleMainTokenTax(uint256 _amount) external;

  function handleShareTokenTax(uint256 _amount) external;

  function taxDiscount(
    address _sender,
    address _recipient
  ) external returns (uint256);
}

File 12 of 19 : IUniswapV2Factory.sol
// SPDX-License-Identifier: UNLICENSED





pragma solidity ^0.8.15;

interface IUniswapV2Factory {
    event PairCreated(
        address indexed token0,
        address indexed token1,
        address pair,
        uint
    );

    function feeTo() external view returns (address);

    function feeToSetter() external view returns (address);

    function getPair(
        address tokenA,
        address tokenB
    ) external view returns (address pair);

    function allPairs(uint) external view returns (address pair);

    function allPairsLength() external view returns (uint);

    function createPair(
        address tokenA,
        address tokenB
    ) external returns (address pair);

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;
}

File 13 of 19 : IUniswapV2Pair.sol
// SPDX-License-Identifier: UNLICENSED





pragma solidity ^0.8.15;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);

    function symbol() external pure returns (string memory);

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint);

    function balanceOf(address owner) external view returns (uint);

    function allowance(
        address owner,
        address spender
    ) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);

    function transfer(address to, uint value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint value
    ) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external pure returns (bytes32);

    function nonces(address owner) external view returns (uint);

    function permit(
        address owner,
        address spender,
        uint value,
        uint deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(
        address indexed sender,
        uint amount0,
        uint amount1,
        address indexed to
    );
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

    function getReserves()
        external
        view
        returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);

    function price0CumulativeLast() external view returns (uint);

    function price1CumulativeLast() external view returns (uint);

    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);

    function burn(address to) external returns (uint amount0, uint amount1);

    function swap(
        uint amount0Out,
        uint amount1Out,
        address to,
        bytes calldata data
    ) external;

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}

File 14 of 19 : IUniswapV2Router01.sol
// SPDX-License-Identifier: UNLICENSED





pragma solidity ^0.8.15;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);

    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    )
        external
        payable
        returns (uint amountToken, uint amountETH, uint liquidity);

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);

    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint amountA, uint amountB);

    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint amountToken, uint amountETH);

    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);

    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);

    function swapExactETHForTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable returns (uint[] memory amounts);

    function swapTokensForExactETH(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);

    function swapExactTokensForETH(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);

    function swapETHForExactTokens(
        uint amountOut,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable returns (uint[] memory amounts);

    function quote(
        uint amountA,
        uint reserveA,
        uint reserveB
    ) external pure returns (uint amountB);

    function getAmountOut(
        uint amountIn,
        uint reserveIn,
        uint reserveOut
    ) external pure returns (uint amountOut);

    function getAmountIn(
        uint amountOut,
        uint reserveIn,
        uint reserveOut
    ) external pure returns (uint amountIn);

    function getAmountsOut(
        uint amountIn,
        address[] calldata path
    ) external view returns (uint[] memory amounts);

    function getAmountsIn(
        uint amountOut,
        address[] calldata path
    ) external view returns (uint[] memory amounts);
}

File 15 of 19 : IUniswapV2Router02.sol
// SPDX-License-Identifier: UNLICENSED





pragma solidity ^0.8.15;

import "contracts/interfaces/IUniswapV2Router01.sol";

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);

    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 16 of 19 : LEVEL.sol
// SPDX-License-Identifier: UNLICENSED











pragma solidity ^0.8.15;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
import "contracts/libraries/SafeMath8.sol";
import "contracts/interfaces/IOracle.sol";
import "contracts/libraries/Operator.sol";
import "contracts/interfaces/IUniswapV2Factory.sol";
import "contracts/interfaces/IUniswapV2Pair.sol";
import "contracts/interfaces/IUniswapV2Router02.sol";
import "contracts/interfaces/ITaxOffice.sol";



contract LEVEL is ERC20Burnable, Operator {
    using SafeMath8 for uint8;
    using SafeMath for uint256;

    // constants
    uint256 public constant POOL_DISTRIBUTION = 34332 ether;
    uint256 public constant ELSE_DISTRIBUTION = 6250 ether;

    // Have the rewards been distributed to the pools
    bool public rewardPoolDistributed = false;

    //mutables
    address public oracle;
    address public taxCollectorAddress;
    address public admin;
    address public PairLodgeShare;
    address public taxOffice = address(0);

    bool public started;

    // immutables
    IUniswapV2Router02 public immutable uniswapV2Router;

    IERC20 public immutable USDC;
    IERC20 public immutable WETH;
    address public immutable PairWETH;
    address public immutable PairUSDC;
    address public immutable genesisAddress;
        address public immutable boardroom;
    address public immutable treasury;

    mapping(address => bool) public automatedMarketMakerPairs;
    // whitelist fee and whitelist bots
    mapping(address => bool) public whitelist;

    // tax rate
    uint256 public taxRate;

    uint256 public staticTaxRate = 1500;

    uint256 public dynamicTaxRate;
    bool public enableDynamicTax = false;
    uint256 public constant MAX_TAX_RATE = 2500;

    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiqudity
    );
    // modifiers
    modifier onlyTaxCollector() {
        require(
            taxCollectorAddress == _msgSender(),
            "caller is not the taxCollector"
        );
        _;
    }
    modifier onlyTaxOffice() {
        require(taxOffice == _msgSender(), "caller is not the taxOffice");
        _;
    }

    modifier onlyAdmin() {
        require(admin == _msgSender(), "You are not the admin");
        _;
    }

    function start() external onlyOperator {
        require(!started, "already started");
        uint256 balanceLEVEL = balanceOf(address(this));
        uint256 balanceWETH = WETH.balanceOf(address(this));
        _approve(address(this), address(uniswapV2Router), balanceLEVEL);
        WETH.approve(address(uniswapV2Router), WETH.balanceOf(address(this)));
        uniswapV2Router.addLiquidity(
            address(this),
            address(WETH),
            balanceLEVEL,
            balanceWETH,
            balanceLEVEL,
            balanceWETH,
            msg.sender,
            block.timestamp            
        );
        started = true;
    }

    constructor(
        address _router,
        address _genesisAddress,
        address _boardroom,
        address _treasury,
        address _USDC
    ) ERC20("LEVEL", "LEVEL") {
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(_router);
        _mint(address(this), 1 ether);

        // set router
        uniswapV2Router = _uniswapV2Router;

        WETH = IERC20(_uniswapV2Router.WETH());
        USDC = IERC20(_USDC);

        // Create pairs
        PairWETH = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(
            address(this),
            _uniswapV2Router.WETH()
        );

        PairUSDC = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(
            address(this),
            address(USDC)
        );
        _setAutomatedMarketMakerPair(PairWETH, true);
        _setAutomatedMarketMakerPair(PairUSDC, true);

        // set admin and tax collector role
        admin = msg.sender;
        taxCollectorAddress = msg.sender;

        // set core contracts
        genesisAddress = _genesisAddress;
        treasury = _treasury;
        boardroom = _boardroom;

        // whitelist core contracts from fee
        whitelist[genesisAddress] = true;
        whitelist[treasury] = true;
        whitelist[boardroom] = true;
        whitelist[msg.sender] = true;
        whitelist[address(this)] = true;

        // distribute the rewards
        rewardPoolDistributed = true;
        _mint(_genesisAddress, POOL_DISTRIBUTION);
        _mint(msg.sender, ELSE_DISTRIBUTION);
    }

    function _getPrice() internal view returns (uint256 _Price) {
        try IOracle(oracle).consult(address(this), 1e18) returns (
            uint144 _price
        ) {
            return uint256(_price);
        } catch {
            revert("failed to fetch token price from Oracle");
        }
    }

    function isContract(address _addr) private view returns (bool) {
        uint32 size;
        assembly {
            size := extcodesize(_addr)
        }
        return (size > 0);
    }

    // set whitelist
    function setWhiteList(address _WhiteList) public onlyAdmin {
        require(
            isContract(_WhiteList) == true,
            "only contracts can be whitelisted"
        );
        require(
            address(uniswapV2Router) != _WhiteList,
            "set tax to 0 if you want to remove fee from trading"
        );
        require(
            PairWETH != _WhiteList,
            "set tax to 0 if you want to remove fee from trading"
        );
        require(
            PairUSDC != _WhiteList,
            "set tax to 0 if you want to remove fee from trading"
        );
        require(PairLodgeShare != address(0), "set PairLodgeShare first");
        require(
            PairLodgeShare != _WhiteList,
            "set tax to 0 if you want to remove fee from trading"
        );
        whitelist[_WhiteList] = true;
    }

    // setPairLodgeShare function gets called from share token
    function setPairLodgeShare(address _pairLodgeShare) public onlyAdmin {
        require(PairLodgeShare == address(0), "already set, only one");
        PairLodgeShare = _pairLodgeShare;
    }

    function setAdmin(address _admin) public onlyAdmin {
        admin = _admin;
    }

    function setOracle(address _oracle) public onlyAdmin {
        require(_oracle != address(0), "oracle address cannot be 0 address");
        oracle = _oracle;
    }

    function setTaxCollectorAddress(
        address _taxCollectorAddress
    ) public onlyTaxCollector {
        require(
            _taxCollectorAddress != address(0),
            "taxCollectorAddress address cannot be 0 address"
        );
        taxCollectorAddress = _taxCollectorAddress;
    }

    function mint(
        address recipient_,
        uint256 amount_
    ) public onlyOperator returns (bool) {
        uint256 balanceBefore = balanceOf(recipient_);
        _mint(recipient_, amount_);
        uint256 balanceAfter = balanceOf(recipient_);
        return balanceAfter > balanceBefore;
    }

    function burn(uint256 amount) public override {
        super.burn(amount);
    }

    function burnFrom(
        address account,
        uint256 amount
    ) public override onlyOperator {
        super.burnFrom(account, amount);
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public override returns (bool successFlag) {
        if (
            whitelist[sender] == true ||
            whitelist[recipient] == true ||
            automatedMarketMakerPairs[sender]
        ) {
            super._transfer(sender, recipient, amount);
        } else {
            uint256 taxAmount = amount.mul(getCurrentTaxRate()).div(10000);

            uint256 amountAfterTax = amount.sub(taxAmount);

            _handleTax(sender, taxAmount);
            _transfer(sender, recipient, amountAfterTax);
        }
        _approve(
            sender,
            _msgSender(),
            allowance(sender, _msgSender()).sub(
                amount,
                "ERC20: transfer amount exceeds allowance"
            )
        );
        return true;
    }

    function transfer(
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        if (whitelist[_msgSender()] == true || whitelist[recipient] == true) {
            super._transfer(_msgSender(), recipient, amount);
        } else {
            uint256 taxAmount = amount.mul(getCurrentTaxRate()).div(10000);
            uint256 amountAfterTax = amount.sub(taxAmount);

            _transfer(_msgSender(), taxCollectorAddress, taxAmount);
            _transfer(_msgSender(), recipient, amountAfterTax);
        }

        return true;
    }

    function getCurrentTaxRate() public returns (uint256) {
        taxRate = staticTaxRate;
        if (enableDynamicTax == true) {
            _updateDynamicTaxRate();
            if (dynamicTaxRate > MAX_TAX_RATE) {
                dynamicTaxRate = MAX_TAX_RATE;
            }
            taxRate = dynamicTaxRate;
        }
        return taxRate;
    }

    function setStaticTaxRate(uint256 _taxRate) external onlyTaxOffice {
        require(_taxRate <= MAX_TAX_RATE, "Error: Max tax rate exceeded.");
        staticTaxRate = _taxRate;
    }

    function setEnableDynamicTax(
        bool _enableDynamicTax
    ) external onlyTaxOffice {
        enableDynamicTax = _enableDynamicTax;
    }

    function _updateDynamicTaxRate() internal {
        dynamicTaxRate = ITaxOffice(taxOffice).calculateMainTokenTax();
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        require(
            automatedMarketMakerPairs[pair] != value,
            "LEVEL: Automated market maker pair is already set to that value"
        );
        automatedMarketMakerPairs[pair] = value;

        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function setTaxOffice(address _taxOffice) public onlyOperator {
        require(_taxOffice != address(0), "Error: Zero address");
        whitelist[_taxOffice] = true;
        taxOffice = _taxOffice;
    }

    function getUSDCPAIR() public view returns (address) {
        return PairUSDC;
    }

    function _handleTax(address _sender, uint256 _amount) internal {
        _transfer(_sender, address(taxOffice), _amount);
        ITaxOffice(taxOffice).handleMainTokenTax(_amount);
    }
}

File 17 of 19 : Operator.sol
// SPDX-License-Identifier: UNLICENSED





pragma solidity ^0.8.15;

import "@openzeppelin/contracts/access/Ownable.sol";


abstract contract Operator is Context, Ownable {
    address private _operator;

    event OperatorTransferred(address indexed previousOperator, address indexed newOperator);

    constructor() {
        _operator = _msgSender();
        emit OperatorTransferred(address(0), _operator);
    }

    function operator() public view returns (address) {
        return _operator;
    }

    modifier onlyOperator() {
        require(_operator == msg.sender, "operator: caller is not the operator");
        _;
    }

    function isOperator() public view returns (bool) {
        return _msgSender() == _operator;
    }

    function transferOperator(address newOperator_) public onlyOwner {
        _transferOperator(newOperator_);
    }

    function _transferOperator(address newOperator_) internal {
        require(newOperator_ != address(0), "operator: zero address given for new operator");
        emit OperatorTransferred(address(0), newOperator_);
        _operator = newOperator_;
    }
}

File 18 of 19 : SafeMath8.sol
// SPDX-License-Identifier: UNLICENSED





pragma solidity ^0.8.15;

library SafeMath8 {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint8 a, uint8 b) internal pure returns (uint8) {
        uint8 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint8 a, uint8 b) internal pure returns (uint8) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint8 a, uint8 b, string memory errorMessage) internal pure returns (uint8) {
        require(b <= a, errorMessage);
        uint8 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint8 a, uint8 b) internal pure returns (uint8) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint8 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint8 a, uint8 b) internal pure returns (uint8) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint8 a, uint8 b, string memory errorMessage) internal pure returns (uint8) {
        require(b > 0, errorMessage);
        uint8 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint8 a, uint8 b) internal pure returns (uint8) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint8 a, uint8 b, string memory errorMessage) internal pure returns (uint8) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 19 of 19 : SQUARE.sol
// SPDX-License-Identifier: UNLICENSED







pragma solidity ^0.8.15;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
import "contracts/libraries/SafeMath8.sol";
import "contracts/interfaces/IOracle.sol";
import "contracts/libraries/Operator.sol";
import "contracts/interfaces/IUniswapV2Factory.sol";
import "contracts/interfaces/IUniswapV2Pair.sol";
import "contracts/interfaces/IUniswapV2Router02.sol";
import "contracts/LEVEL.sol";

contract SQUARE is ERC20Burnable, Operator {
    using SafeMath for uint256;

    uint256 public constant FARMING_POOL_REWARD_ALLOCATION = 30000 ether;
    uint256 public constant COMMUNITY_FUND_POOL_ALLOCATION = 4000 ether;
    uint256 public constant DEV_FUND_POOL_ALLOCATION = 4000 ether;
    uint256 public constant INITIAL = 1 ether;
    uint256 public constant VESTING_DURATION = 300 days;

    uint256 public startTime;
    uint256 public endTime;
    uint256 public communityFundRewardRate;
    uint256 public devFundRewardRate;

    address public communityFund;
    address public devFund;
    address public admin;

    // tax collection
    address public taxCollectorAddress;
    address public taxOffice;
    address public referalOffice;

    // immutables
    IUniswapV2Router02 public immutable uniswapV2Router;
    LEVEL public immutable LVL;
    address public immutable USDC;
    address public immutable PairWETH;
    address public immutable PairUSDC;
    address public immutable PairLEVEL;
    address public immutable genesisAddress;
    address public immutable boardroom;
    address public immutable treasury;
    address public immutable shareRewardPool;

    // whitelist from and too fee
    mapping(address => bool) public whitelist;

    uint256 public taxRate;

    uint256 public buyTaxRate;
    uint256 public staticTaxRate = 1500;
    uint256 public dynamicTaxRate;
    bool public enableDynamicTax;
    uint256 public constant MAX_TAX_RATE = 2500;
    uint256 public communityFundLastClaimed;
    uint256 public devFundLastClaimed;
    mapping(address => bool) public automatedMarketMakerPairs;
    bool public rewardPoolDistributed = false;

    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);

    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiqudity
    );
    // modifiers
    modifier onlyTaxCollector() {
        require(
            taxCollectorAddress == _msgSender(),
            "caller is not the taxCollector"
        );
        _;
    }
    modifier onlyTaxOffice() {
        require(taxOffice == _msgSender(), "caller is not the taxOffice");
        _;
    }

    modifier onlyAdmin() {
        require(admin == msg.sender, "You are not the admin");
        _;
    }

    constructor(
        address _LEVEL,
        address _USDC,
        address _router,
        address _genesisAddress,
        address _treasury,
        address _boardroom,
        address _shareRewardPool,
        uint256 _startTime,
        address _communityFund,
        address _devFund
    ) ERC20("SQUARE", "SQUARE") {
        _mint(msg.sender, INITIAL);
        LVL = LEVEL(_LEVEL);
        USDC = _USDC;

        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(_router);
        uniswapV2Router = _uniswapV2Router;

        PairWETH = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(
            address(this),
            _uniswapV2Router.WETH()
        );

        PairUSDC = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(
            address(this),
            USDC
        );

        PairLEVEL = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(
            address(this),
            address(LVL)
        );
        _setAutomatedMarketMakerPair(PairWETH, true);
        _setAutomatedMarketMakerPair(PairUSDC, true);
        _setAutomatedMarketMakerPair(PairLEVEL, true);

        genesisAddress = _genesisAddress;
        treasury = _treasury;
        boardroom = _boardroom;
        shareRewardPool = _shareRewardPool;

        // distribute rewards
        rewardPoolDistributed = true;
        _mint(_shareRewardPool, FARMING_POOL_REWARD_ALLOCATION);

        admin = msg.sender;

        whitelist[boardroom] = true;
        whitelist[treasury] = true;
        whitelist[shareRewardPool] = true;
        whitelist[genesisAddress] = true;
        whitelist[msg.sender] = true;

        startTime = _startTime;
        endTime = startTime + VESTING_DURATION;

        communityFundLastClaimed = startTime;
        devFundLastClaimed = startTime;

        communityFundRewardRate = COMMUNITY_FUND_POOL_ALLOCATION.div(
            VESTING_DURATION
        );
        devFundRewardRate = DEV_FUND_POOL_ALLOCATION.div(VESTING_DURATION);

        require(_devFund != address(0), "Address cannot be 0");
        devFund = _devFund;

        require(_communityFund != address(0), "Address cannot be 0");
        communityFund = _communityFund;

        taxCollectorAddress = msg.sender;
    }

    function isContract(address _addr) private view returns (bool) {
        uint32 size;
        assembly {
            size := extcodesize(_addr)
        }
        return (size > 0);
    }

    // set whitelist
    function setWhiteList(address _WhiteList) public onlyAdmin {
        require(
            isContract(_WhiteList) == true,
            "only contracts can be whitelisted"
        );
        require(
            address(uniswapV2Router) != _WhiteList,
            "set tax to 0 if you want to remove fee from trading"
        );
        require(
            PairWETH != _WhiteList,
            "set tax to 0 if you want to remove fee from trading"
        );
        require(
            PairUSDC != _WhiteList,
            "set tax to 0 if you want to remove fee from trading"
        );
        require(
            PairLEVEL != _WhiteList,
            "set tax to 0 if you want to remove fee from trading"
        );

        whitelist[_WhiteList] = true;
    }

    function setAdmin(address _admin) public onlyAdmin {
        admin = _admin;
    }

    function setDevFund(address _devFund) external {
        require(msg.sender == devFund, "!dev");
        require(_devFund != address(0), "zero");
        devFund = _devFund;
    }

    function setCommunityFund(address _communityFund) external {
        require(msg.sender == communityFund, "!dev");
        require(_communityFund != address(0), "Address cannot be 0");
        communityFund = _communityFund;
    }

    function setTaxCollectorAddress(
        address _taxCollectorAddress
    ) public onlyTaxCollector {
        require(
            _taxCollectorAddress != address(0),
            "taxCollectorAddress address cannot be 0 address"
        );
        taxCollectorAddress = _taxCollectorAddress;
    }

    function setTaxRate(uint256 _taxRate) public onlyTaxCollector {
        require(_taxRate <= 5, "taxrate has to be between 0% and 5%");
        taxRate = _taxRate;
    }

    function unclaimedTreasuryFund() public view returns (uint256 _pending) {
        uint256 _now = block.timestamp;
        if (_now > endTime) _now = endTime;
        if (communityFundLastClaimed >= _now) return 0;
        _pending = _now.sub(communityFundLastClaimed).mul(
            communityFundRewardRate
        );
    }

    function unclaimedDevFund() public view returns (uint256 _pending) {
        uint256 _now = block.timestamp;
        if (_now > endTime) _now = endTime;
        if (devFundLastClaimed >= _now) return 0;
        _pending = _now.sub(devFundLastClaimed).mul(devFundRewardRate);
    }

    /**
     * @dev Claim pending rewards to community and dev fund
     */
    function claimRewards() external {
        uint256 _pending = unclaimedTreasuryFund();
        if (_pending > 0 && communityFund != address(0)) {
            _mint(communityFund, _pending);
            communityFundLastClaimed = block.timestamp;
        }
        _pending = unclaimedDevFund();
        if (_pending > 0 && devFund != address(0)) {
            _mint(devFund, _pending);
            devFundLastClaimed = block.timestamp;
        }
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public override returns (bool) {
        if (
            whitelist[sender] == true ||
            whitelist[recipient] == true ||
            automatedMarketMakerPairs[sender]
        ) {
            super._transfer(sender, recipient, amount);
        } else {
            uint256 taxAmount = amount.mul(getCurrentTaxRate()).div(10000);

            uint256 amountAfterTax = amount.sub(taxAmount);
            _handleTax(sender, taxAmount);
            _transfer(sender, recipient, amountAfterTax);
        }
        _approve(
            sender,
            _msgSender(),
            allowance(sender, _msgSender()).sub(
                amount,
                "ERC20: transfer amount exceeds allowance"
            )
        );
        return true;
    }

    function transfer(
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        if (whitelist[_msgSender()] == true || whitelist[recipient] == true) {
            super._transfer(_msgSender(), recipient, amount);
        } else {
            uint256 taxAmount = amount.mul(getCurrentTaxRate()).div(10000);
            uint256 amountAfterTax = amount.sub(taxAmount);

            _transfer(_msgSender(), taxCollectorAddress, taxAmount);
            _transfer(_msgSender(), recipient, amountAfterTax);
        }

        return true;
    }

    function burn(uint256 amount) public override {
        super.burn(amount);
    }

    function getCurrentTaxRate() public returns (uint256) {
        taxRate = staticTaxRate;
        if (enableDynamicTax == true) {
            _updateDynamicTaxRate();
            if (dynamicTaxRate > MAX_TAX_RATE) {
                dynamicTaxRate = MAX_TAX_RATE;
            }
            taxRate = dynamicTaxRate;
        }
        return taxRate;
    }

    function setStaticTaxRate(uint256 _taxRate) external onlyTaxOffice {
        require(_taxRate <= MAX_TAX_RATE, "Error: Max tax rate exceeded.");
        staticTaxRate = _taxRate;
    }

    function setEnableDynamicTax(
        bool _enableDynamicTax
    ) external onlyTaxOffice {
        enableDynamicTax = _enableDynamicTax;
    }

    function _updateDynamicTaxRate() internal {
        dynamicTaxRate = ITaxOffice(taxOffice).calculateMainTokenTax();
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        require(
            automatedMarketMakerPairs[pair] != value,
            "LEVEL: Automated market maker pair is already set to that value"
        );
        automatedMarketMakerPairs[pair] = value;

        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function setTaxOffice(address _taxOffice) external onlyAdmin {
        require(_taxOffice != address(0), "Error: Zero address");
        taxOffice = _taxOffice;
    }

    function _handleTax(address _sender, uint256 _amount) internal {
        _transfer(_sender, address(taxOffice), _amount);

        ITaxOffice(taxOffice).handleShareTokenTax(_amount);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_LEVEL","type":"address"},{"internalType":"address","name":"_USDC","type":"address"},{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_genesisAddress","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_boardroom","type":"address"},{"internalType":"address","name":"_shareRewardPool","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"address","name":"_communityFund","type":"address"},{"internalType":"address","name":"_devFund","type":"address"}],"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":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiqudity","type":"uint256"}],"name":"SwapAndLiquify","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"},{"inputs":[],"name":"COMMUNITY_FUND_POOL_ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEV_FUND_POOL_ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FARMING_POOL_REWARD_ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LVL","outputs":[{"internalType":"contract LEVEL","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TAX_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PairLEVEL","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PairUSDC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PairWETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VESTING_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boardroom","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buyTaxRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"communityFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityFundLastClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityFundRewardRate","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":[],"name":"devFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFundLastClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFundRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dynamicTaxRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableDynamicTax","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genesisAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentTaxRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","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":[],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"referalOffice","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPoolDistributed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_communityFund","type":"address"}],"name":"setCommunityFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devFund","type":"address"}],"name":"setDevFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enableDynamicTax","type":"bool"}],"name":"setEnableDynamicTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_taxRate","type":"uint256"}],"name":"setStaticTaxRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_taxCollectorAddress","type":"address"}],"name":"setTaxCollectorAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_taxOffice","type":"address"}],"name":"setTaxOffice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_taxRate","type":"uint256"}],"name":"setTaxRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_WhiteList","type":"address"}],"name":"setWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shareRewardPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"staticTaxRate","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":"taxCollectorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxOffice","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxRate","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator_","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unclaimedDevFund","outputs":[{"internalType":"uint256","name":"_pending","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unclaimedTreasuryFund","outputs":[{"internalType":"uint256","name":"_pending","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

6101c06040526105dc601455601a805460ff191690553480156200002257600080fd5b5060405162002ccf38038062002ccf83398101604081905262000045916200090b565b60408051808201825260068082526553515541524560d01b602080840182905284518086019095529184529083015290600362000083838262000a75565b50600462000092828262000a75565b505050620000af620000a9620006cd60201b60201c565b620006d1565b600680546001600160a01b031916339081179091556040516000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a36200010333670de0b6b3a764000062000723565b6001600160a01b03808b1660a05289811660c052881660808190526040805163c45a015560e01b815290518a929163c45a01559160048083019260209291908290030181865afa1580156200015c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000182919062000b41565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001d0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001f6919062000b41565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801562000244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200026a919062000b41565b6001600160a01b031660e0816001600160a01b031681525050806001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015620002c2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002e8919062000b41565b60c0516040516364e329cb60e11b81523060048201526001600160a01b03918216602482015291169063c9c65396906044016020604051808303816000875af11580156200033a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000360919062000b41565b6001600160a01b0316610100816001600160a01b031681525050806001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015620003b9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003df919062000b41565b60a0516040516364e329cb60e11b81523060048201526001600160a01b03918216602482015291169063c9c65396906044016020604051808303816000875af115801562000431573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000457919062000b41565b6001600160a01b03166101205260e05162000474906001620007e6565b6101005162000485906001620007e6565b6101205162000496906001620007e6565b6001600160a01b0380891661014052878116610180528681166101605285166101a052601a805460ff19166001179055620004dc8569065a4da25d3016c0000062000723565b600d80546001600160a01b03191633908117909155610160516001600160a01b03908116600090815260116020526040808220805460ff199081166001908117909255610180518516845282842080548216831790556101a051851684528284208054821683179055610140519094168352818320805485168217905593825290208054909116909117905560078490556200057d63018b82008562000b5f565b6008556007546017819055601855620005b068d8d726b7177a80000063018b8200620008d2602090811b620015a317901c565b600955620005d868d8d726b7177a80000063018b8200620008d2602090811b620015a317901c565b600a556001600160a01b0382166200062d5760405162461bcd60e51b81526020600482015260136024820152720416464726573732063616e6e6f74206265203606c1b60448201526064015b60405180910390fd5b600c80546001600160a01b0319166001600160a01b03848116919091179091558316620006935760405162461bcd60e51b81526020600482015260136024820152720416464726573732063616e6e6f74206265203606c1b604482015260640162000624565b5050600b80546001600160a01b039092166001600160a01b0319928316179055600e8054909116331790555062000ba49650505050505050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166200077b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000624565b80600260008282546200078f919062000b5f565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b03821660009081526019602052604090205481151560ff9091161515036200087e5760405162461bcd60e51b815260206004820152603f60248201527f4c4556454c3a204175746f6d61746564206d61726b6574206d616b657220706160448201527f697220697320616c72656164792073657420746f20746861742076616c756500606482015260840162000624565b6001600160a01b038216600081815260196020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6000620008e0828462000b81565b90505b92915050565b505050565b80516001600160a01b03811681146200090657600080fd5b919050565b6000806000806000806000806000806101408b8d0312156200092c57600080fd5b620009378b620008ee565b99506200094760208c01620008ee565b98506200095760408c01620008ee565b97506200096760608c01620008ee565b96506200097760808c01620008ee565b95506200098760a08c01620008ee565b94506200099760c08c01620008ee565b935060e08b01519250620009af6101008c01620008ee565b9150620009c06101208c01620008ee565b90509295989b9194979a5092959850565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620009fc57607f821691505b60208210810362000a1d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620008e957600081815260208120601f850160051c8101602086101562000a4c5750805b601f850160051c820191505b8181101562000a6d5782815560010162000a58565b505050505050565b81516001600160401b0381111562000a915762000a91620009d1565b62000aa98162000aa28454620009e7565b8462000a23565b602080601f83116001811462000ae1576000841562000ac85750858301515b600019600386901b1c1916600185901b17855562000a6d565b600085815260208120601f198616915b8281101562000b125788860151825594840194600190910190840162000af1565b508582101562000b315787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121562000b5457600080fd5b620008e082620008ee565b80820180821115620008e357634e487b7160e01b600052601160045260246000fd5b60008262000b9f57634e487b7160e01b600052601260045260246000fd5b500490565b60805160a05160c05160e05161010051610120516101405161016051610180516101a05161209362000c3c60003960006108b40152600061067b015260006106240152600061064b0152600081816107db0152610f090152600081816108db0152610eb80152600081816104610152610e670152600061073e015260006108310152600081816104ab0152610e1601526120936000f3fe608060405234801561001057600080fd5b50600436106103fb5760003560e01c806364f53f2e11610215578063a457c2d711610125578063c3bdf613116100b8578063dd62ed3e11610087578063dd62ed3e146108fd578063e1ea1fa314610910578063f1b15c9414610923578063f2fde38b14610930578063f851a4401461094357600080fd5b8063c3bdf61314610889578063c6d69a301461089c578063ce48f983146108af578063db30aabc146108d657600080fd5b8063ae4db919116100f4578063ae4db91914610819578063b565d0aa1461082c578063b62496f514610853578063c2e4c78d1461087657600080fd5b8063a457c2d7146107c3578063a7ccce96146107d6578063a9059cbb146107fd578063abb4b1be1461081057600080fd5b806378e97925116101a85780638fa81732116101775780638fa817321461077157806395d89b411461077a5780639662676c146107825780639b19251a1461078f578063a06160fd146107b257600080fd5b806378e979251461071d57806379cc67901461072657806389a30271146107395780638da5cb5b1461076057600080fd5b8063704b6c02116101e4578063704b6c02146106d057806370a08231146106e3578063715018a61461070c578063771a3a1d1461071457600080fd5b806364f53f2e1461069d578063691f224f146106a557806369356d47146106ae5780636f5f20ce146106c157600080fd5b8063395093511161031057806344cdc454116102a3578063570ca73511610272578063570ca7351461060e5780635e02c51e1461061f5780636065fb331461064657806361482bed1461066d57806361d027b31461067657600080fd5b806344cdc454146105f15780634cfc4d30146105fa5780634f337dd5146105825780635024ec1f1461060557600080fd5b80633f07d76a116102df5780633f07d76a146105a557806342966c68146105b85780634390d2a8146105cb5780634456eda2146105de57600080fd5b8063395093511461055c57806339e899ee1461056f5780633bba8eed146105825780633e5f13d41461059257600080fd5b806323b872dd11610393578063313ce56711610362578063313ce567146105165780633197cbb614610525578063372500ab1461052e57806337339a161461053657806338d2776e1461054957600080fd5b806323b872dd146104dd57806329605e77146104f05780632c07a624146105055780632e3367ce1461050d57600080fd5b8063095ea7b3116103cf578063095ea7b3146104835780631694505e146104a657806317764782146104cd57806318160ddd146104d557600080fd5b8062f380f414610400578063040173151461043057806306fdde03146104475780630734884d1461045c575b600080fd5b600b54610413906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61043960185481565b604051908152602001610427565b61044f610956565b6040516104279190611d92565b6104137f000000000000000000000000000000000000000000000000000000000000000081565b610496610491366004611dfc565b6109e8565b6040519015158152602001610427565b6104137f000000000000000000000000000000000000000000000000000000000000000081565b610439610a02565b600254610439565b6104966104eb366004611e26565b610a4e565b6105036104fe366004611e62565b610b59565b005b610439610b6d565b610439600a5481565b60405160128152602001610427565b61043960085481565b610503610bad565b610503610544366004611e62565b610c39565b610503610557366004611e7d565b610cf3565b61049661056a366004611dfc565b610d60565b61050361057d366004611e62565b610d7d565b61043968d8d726b7177a80000081565b600f54610413906001600160a01b031681565b6105036105b3366004611e62565b610f72565b6105036105c6366004611e9f565b61100a565b600c54610413906001600160a01b031681565b6006546001600160a01b03163314610496565b61043960095481565b61043963018b820081565b61043960145481565b6006546001600160a01b0316610413565b6104137f000000000000000000000000000000000000000000000000000000000000000081565b6104137f000000000000000000000000000000000000000000000000000000000000000081565b61043960155481565b6104137f000000000000000000000000000000000000000000000000000000000000000081565b610439611013565b61043960135481565b6105036106bc366004611e62565b611054565b610439670de0b6b3a764000081565b6105036106de366004611e62565b61113e565b6104396106f1366004611e62565b6001600160a01b031660009081526020819052604090205490565b61050361118a565b61043960125481565b61043960075481565b610503610734366004611dfc565b61119e565b6104137f000000000000000000000000000000000000000000000000000000000000000081565b6005546001600160a01b0316610413565b6104396109c481565b61044f6111b7565b601a546104969060ff1681565b61049661079d366004611e62565b60116020526000908152604090205460ff1681565b61043969065a4da25d3016c0000081565b6104966107d1366004611dfc565b6111c6565b6104137f000000000000000000000000000000000000000000000000000000000000000081565b61049661080b366004611dfc565b61124c565b61043960175481565b610503610827366004611e62565b6112f1565b6104137f000000000000000000000000000000000000000000000000000000000000000081565b610496610861366004611e62565b60196020526000908152604090205460ff1681565b601054610413906001600160a01b031681565b600e54610413906001600160a01b031681565b6105036108aa366004611e9f565b611395565b6104137f000000000000000000000000000000000000000000000000000000000000000081565b6104137f000000000000000000000000000000000000000000000000000000000000000081565b61043961090b366004611eb8565b611451565b61050361091e366004611e9f565b61147c565b6016546104969060ff1681565b61050361093e366004611e62565b61152d565b600d54610413906001600160a01b031681565b60606003805461096590611eeb565b80601f016020809104026020016040519081016040528092919081815260200182805461099190611eeb565b80156109de5780601f106109b3576101008083540402835291602001916109de565b820191906000526020600020905b8154815290600101906020018083116109c157829003601f168201915b5050505050905090565b6000336109f68185856115b6565b60019150505b92915050565b6008546000904290811115610a1657506008545b8060175410610a2757600091505090565b610a48600954610a42601754846116db90919063ffffffff16565b906116e7565b91505090565b6001600160a01b03831660009081526011602052604081205460ff16151560011480610a9757506001600160a01b03831660009081526011602052604090205460ff1615156001145b80610aba57506001600160a01b03841660009081526019602052604090205460ff165b15610acf57610aca8484846116f3565b610b17565b6000610aef612710610ae9610ae2611013565b86906116e7565b906115a3565b90506000610afd84836116db565b9050610b098683611899565b610b148686836116f3565b50505b610b4f8433610b4a8560405180606001604052806028815260200161203660289139610b438a33611451565b9190611913565b6115b6565b5060019392505050565b610b6161193f565b610b6a81611999565b50565b6008546000904290811115610b8157506008545b8060185410610b9257600091505090565b610a48600a54610a42601854846116db90919063ffffffff16565b6000610bb7610a02565b9050600081118015610bd35750600b546001600160a01b031615155b15610bf357600b54610bee906001600160a01b031682611a5d565b426017555b610bfb610b6d565b9050600081118015610c175750600c546001600160a01b031615155b15610b6a57600c54610c32906001600160a01b031682611a5d565b4260185550565b600b546001600160a01b03163314610c855760405162461bcd60e51b8152600401610c7c9060208082526004908201526310b232bb60e11b604082015260600190565b60405180910390fd5b6001600160a01b038116610cd15760405162461bcd60e51b81526020600482015260136024820152720416464726573732063616e6e6f74206265203606c1b6044820152606401610c7c565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600f546001600160a01b03163314610d4d5760405162461bcd60e51b815260206004820152601b60248201527f63616c6c6572206973206e6f7420746865207461784f666669636500000000006044820152606401610c7c565b6016805460ff1916911515919091179055565b6000336109f6818585610d738383611451565b610b4a9190611f3b565b600d546001600160a01b03163314610da75760405162461bcd60e51b8152600401610c7c90611f4e565b600163ffffffff823b16151514610e0a5760405162461bcd60e51b815260206004820152602160248201527f6f6e6c7920636f6e7472616374732063616e2062652077686974656c697374656044820152601960fa1b6064820152608401610c7c565b806001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031603610e5b5760405162461bcd60e51b8152600401610c7c90611f7d565b806001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031603610eac5760405162461bcd60e51b8152600401610c7c90611f7d565b806001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031603610efd5760405162461bcd60e51b8152600401610c7c90611f7d565b806001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031603610f4e5760405162461bcd60e51b8152600401610c7c90611f7d565b6001600160a01b03166000908152601160205260409020805460ff19166001179055565b600d546001600160a01b03163314610f9c5760405162461bcd60e51b8152600401610c7c90611f4e565b6001600160a01b038116610fe85760405162461bcd60e51b81526020600482015260136024820152724572726f723a205a65726f206164647265737360681b6044820152606401610c7c565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b610b6a81611b1c565b60145460125560165460009060ff16151560010361104d57611033611b26565b6109c46015541115611046576109c46015555b6015546012555b5060125490565b600e546001600160a01b031633146110ae5760405162461bcd60e51b815260206004820152601e60248201527f63616c6c6572206973206e6f742074686520746178436f6c6c6563746f7200006044820152606401610c7c565b6001600160a01b03811661111c5760405162461bcd60e51b815260206004820152602f60248201527f746178436f6c6c6563746f724164647265737320616464726573732063616e6e60448201526e6f742062652030206164647265737360881b6064820152608401610c7c565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600d546001600160a01b031633146111685760405162461bcd60e51b8152600401610c7c90611f4e565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b61119261193f565b61119c6000611ba2565b565b6111a9823383611bf4565b6111b38282611c68565b5050565b60606004805461096590611eeb565b600033816111d48286611451565b9050838110156112345760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610c7c565b61124182868684036115b6565b506001949350505050565b3360009081526011602052604081205460ff1615156001148061128c57506001600160a01b03831660009081526011602052604090205460ff1615156001145b156112a15761129c3384846116f3565b6112e8565b60006112b4612710610ae9610ae2611013565b905060006112c284836116db565b90506112da33600e546001600160a01b0316846116f3565b6112e53386836116f3565b50505b50600192915050565b600c546001600160a01b031633146113345760405162461bcd60e51b8152600401610c7c9060208082526004908201526310b232bb60e11b604082015260600190565b6001600160a01b0381166113735760405162461bcd60e51b8152600401610c7c906020808252600490820152637a65726f60e01b604082015260600190565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600e546001600160a01b031633146113ef5760405162461bcd60e51b815260206004820152601e60248201527f63616c6c6572206973206e6f742074686520746178436f6c6c6563746f7200006044820152606401610c7c565b600581111561144c5760405162461bcd60e51b815260206004820152602360248201527f746178726174652068617320746f206265206265747765656e20302520616e6460448201526220352560e81b6064820152608401610c7c565b601255565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600f546001600160a01b031633146114d65760405162461bcd60e51b815260206004820152601b60248201527f63616c6c6572206973206e6f7420746865207461784f666669636500000000006044820152606401610c7c565b6109c48111156115285760405162461bcd60e51b815260206004820152601d60248201527f4572726f723a204d61782074617820726174652065786365656465642e0000006044820152606401610c7c565b601455565b61153561193f565b6001600160a01b03811661159a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c7c565b610b6a81611ba2565b60006115af8284611fd0565b9392505050565b6001600160a01b0383166116185760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610c7c565b6001600160a01b0382166116795760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610c7c565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006115af8284611ff2565b60006115af8284612005565b6001600160a01b0383166117575760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610c7c565b6001600160a01b0382166117b95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610c7c565b6001600160a01b038316600090815260208190526040902054818110156118315760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610c7c565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35b50505050565b600f546118b19083906001600160a01b0316836116f3565b600f546040516375d7a0ab60e11b8152600481018390526001600160a01b039091169063ebaf415690602401600060405180830381600087803b1580156118f757600080fd5b505af115801561190b573d6000803e3d6000fd5b505050505050565b600081848411156119375760405162461bcd60e51b8152600401610c7c9190611d92565b505050900390565b6005546001600160a01b0316331461119c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7c565b6001600160a01b038116611a055760405162461bcd60e51b815260206004820152602d60248201527f6f70657261746f723a207a65726f206164647265737320676976656e20666f7260448201526c103732bb9037b832b930ba37b960991b6064820152608401610c7c565b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038216611ab35760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610c7c565b8060026000828254611ac59190611f3b565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b610b6a3382611c68565b600f60009054906101000a90046001600160a01b03166001600160a01b031663d39abead6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b9d919061201c565b601555565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611c008484611451565b905060001981146118935781811015611c5b5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610c7c565b61189384848484036115b6565b6001600160a01b038216611cc85760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610c7c565b6001600160a01b03821660009081526020819052604090205481811015611d3c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610c7c565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016116ce565b600060208083528351808285015260005b81811015611dbf57858101830151858201604001528201611da3565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114611df757600080fd5b919050565b60008060408385031215611e0f57600080fd5b611e1883611de0565b946020939093013593505050565b600080600060608486031215611e3b57600080fd5b611e4484611de0565b9250611e5260208501611de0565b9150604084013590509250925092565b600060208284031215611e7457600080fd5b6115af82611de0565b600060208284031215611e8f57600080fd5b813580151581146115af57600080fd5b600060208284031215611eb157600080fd5b5035919050565b60008060408385031215611ecb57600080fd5b611ed483611de0565b9150611ee260208401611de0565b90509250929050565b600181811c90821680611eff57607f821691505b602082108103611f1f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156109fc576109fc611f25565b6020808252601590820152742cb7ba9030b932903737ba103a34329030b236b4b760591b604082015260600190565b60208082526033908201527f7365742074617820746f203020696620796f752077616e7420746f2072656d6f6040820152727665206665652066726f6d2074726164696e6760681b606082015260800190565b600082611fed57634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156109fc576109fc611f25565b80820281158282048414176109fc576109fc611f25565b60006020828403121561202e57600080fd5b505191905056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a2646970667358221220d1897c479a26d6a4b4d5a007d382ac897ad678ef5c3f3ec391a202916552cd2364736f6c63430008110033000000000000000000000000ccb25fd3041099523222651ea12b677631779da2000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda029130000000000000000000000008cfe327cec66d1c090dd72bd0ff11d690c33a2eb00000000000000000000000017ceee898e9a6dcd4e79f48c0e1bed246d8274750000000000000000000000000cd3803a2cb308eb39768b59b5d4c83177148adb00000000000000000000000073d948e40f863cb30b10d6053f2e1fec65420dc900000000000000000000000090b4a7051eaf5574c0083eb5c8975cc1bef19a0800000000000000000000000000000000000000000000000000000000652fae74000000000000000000000000600be5fcb9338bc3938e4790efbeaaa4f77d6893000000000000000000000000600be5fcb9338bc3938e4790efbeaaa4f77d6893

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103fb5760003560e01c806364f53f2e11610215578063a457c2d711610125578063c3bdf613116100b8578063dd62ed3e11610087578063dd62ed3e146108fd578063e1ea1fa314610910578063f1b15c9414610923578063f2fde38b14610930578063f851a4401461094357600080fd5b8063c3bdf61314610889578063c6d69a301461089c578063ce48f983146108af578063db30aabc146108d657600080fd5b8063ae4db919116100f4578063ae4db91914610819578063b565d0aa1461082c578063b62496f514610853578063c2e4c78d1461087657600080fd5b8063a457c2d7146107c3578063a7ccce96146107d6578063a9059cbb146107fd578063abb4b1be1461081057600080fd5b806378e97925116101a85780638fa81732116101775780638fa817321461077157806395d89b411461077a5780639662676c146107825780639b19251a1461078f578063a06160fd146107b257600080fd5b806378e979251461071d57806379cc67901461072657806389a30271146107395780638da5cb5b1461076057600080fd5b8063704b6c02116101e4578063704b6c02146106d057806370a08231146106e3578063715018a61461070c578063771a3a1d1461071457600080fd5b806364f53f2e1461069d578063691f224f146106a557806369356d47146106ae5780636f5f20ce146106c157600080fd5b8063395093511161031057806344cdc454116102a3578063570ca73511610272578063570ca7351461060e5780635e02c51e1461061f5780636065fb331461064657806361482bed1461066d57806361d027b31461067657600080fd5b806344cdc454146105f15780634cfc4d30146105fa5780634f337dd5146105825780635024ec1f1461060557600080fd5b80633f07d76a116102df5780633f07d76a146105a557806342966c68146105b85780634390d2a8146105cb5780634456eda2146105de57600080fd5b8063395093511461055c57806339e899ee1461056f5780633bba8eed146105825780633e5f13d41461059257600080fd5b806323b872dd11610393578063313ce56711610362578063313ce567146105165780633197cbb614610525578063372500ab1461052e57806337339a161461053657806338d2776e1461054957600080fd5b806323b872dd146104dd57806329605e77146104f05780632c07a624146105055780632e3367ce1461050d57600080fd5b8063095ea7b3116103cf578063095ea7b3146104835780631694505e146104a657806317764782146104cd57806318160ddd146104d557600080fd5b8062f380f414610400578063040173151461043057806306fdde03146104475780630734884d1461045c575b600080fd5b600b54610413906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61043960185481565b604051908152602001610427565b61044f610956565b6040516104279190611d92565b6104137f00000000000000000000000067d3aace3de41109e8c5ace377e53a034dca4c5e81565b610496610491366004611dfc565b6109e8565b6040519015158152602001610427565b6104137f0000000000000000000000008cfe327cec66d1c090dd72bd0ff11d690c33a2eb81565b610439610a02565b600254610439565b6104966104eb366004611e26565b610a4e565b6105036104fe366004611e62565b610b59565b005b610439610b6d565b610439600a5481565b60405160128152602001610427565b61043960085481565b610503610bad565b610503610544366004611e62565b610c39565b610503610557366004611e7d565b610cf3565b61049661056a366004611dfc565b610d60565b61050361057d366004611e62565b610d7d565b61043968d8d726b7177a80000081565b600f54610413906001600160a01b031681565b6105036105b3366004611e62565b610f72565b6105036105c6366004611e9f565b61100a565b600c54610413906001600160a01b031681565b6006546001600160a01b03163314610496565b61043960095481565b61043963018b820081565b61043960145481565b6006546001600160a01b0316610413565b6104137f00000000000000000000000073d948e40f863cb30b10d6053f2e1fec65420dc981565b6104137f00000000000000000000000017ceee898e9a6dcd4e79f48c0e1bed246d82747581565b61043960155481565b6104137f0000000000000000000000000cd3803a2cb308eb39768b59b5d4c83177148adb81565b610439611013565b61043960135481565b6105036106bc366004611e62565b611054565b610439670de0b6b3a764000081565b6105036106de366004611e62565b61113e565b6104396106f1366004611e62565b6001600160a01b031660009081526020819052604090205490565b61050361118a565b61043960125481565b61043960075481565b610503610734366004611dfc565b61119e565b6104137f000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda0291381565b6005546001600160a01b0316610413565b6104396109c481565b61044f6111b7565b601a546104969060ff1681565b61049661079d366004611e62565b60116020526000908152604090205460ff1681565b61043969065a4da25d3016c0000081565b6104966107d1366004611dfc565b6111c6565b6104137f000000000000000000000000e2a1dafa8551c25dd146cbeb35b499d73cc8d1a981565b61049661080b366004611dfc565b61124c565b61043960175481565b610503610827366004611e62565b6112f1565b6104137f000000000000000000000000ccb25fd3041099523222651ea12b677631779da281565b610496610861366004611e62565b60196020526000908152604090205460ff1681565b601054610413906001600160a01b031681565b600e54610413906001600160a01b031681565b6105036108aa366004611e9f565b611395565b6104137f00000000000000000000000090b4a7051eaf5574c0083eb5c8975cc1bef19a0881565b6104137f00000000000000000000000008989a211ef14369b5db8255c8ff08401cb3a61381565b61043961090b366004611eb8565b611451565b61050361091e366004611e9f565b61147c565b6016546104969060ff1681565b61050361093e366004611e62565b61152d565b600d54610413906001600160a01b031681565b60606003805461096590611eeb565b80601f016020809104026020016040519081016040528092919081815260200182805461099190611eeb565b80156109de5780601f106109b3576101008083540402835291602001916109de565b820191906000526020600020905b8154815290600101906020018083116109c157829003601f168201915b5050505050905090565b6000336109f68185856115b6565b60019150505b92915050565b6008546000904290811115610a1657506008545b8060175410610a2757600091505090565b610a48600954610a42601754846116db90919063ffffffff16565b906116e7565b91505090565b6001600160a01b03831660009081526011602052604081205460ff16151560011480610a9757506001600160a01b03831660009081526011602052604090205460ff1615156001145b80610aba57506001600160a01b03841660009081526019602052604090205460ff165b15610acf57610aca8484846116f3565b610b17565b6000610aef612710610ae9610ae2611013565b86906116e7565b906115a3565b90506000610afd84836116db565b9050610b098683611899565b610b148686836116f3565b50505b610b4f8433610b4a8560405180606001604052806028815260200161203660289139610b438a33611451565b9190611913565b6115b6565b5060019392505050565b610b6161193f565b610b6a81611999565b50565b6008546000904290811115610b8157506008545b8060185410610b9257600091505090565b610a48600a54610a42601854846116db90919063ffffffff16565b6000610bb7610a02565b9050600081118015610bd35750600b546001600160a01b031615155b15610bf357600b54610bee906001600160a01b031682611a5d565b426017555b610bfb610b6d565b9050600081118015610c175750600c546001600160a01b031615155b15610b6a57600c54610c32906001600160a01b031682611a5d565b4260185550565b600b546001600160a01b03163314610c855760405162461bcd60e51b8152600401610c7c9060208082526004908201526310b232bb60e11b604082015260600190565b60405180910390fd5b6001600160a01b038116610cd15760405162461bcd60e51b81526020600482015260136024820152720416464726573732063616e6e6f74206265203606c1b6044820152606401610c7c565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600f546001600160a01b03163314610d4d5760405162461bcd60e51b815260206004820152601b60248201527f63616c6c6572206973206e6f7420746865207461784f666669636500000000006044820152606401610c7c565b6016805460ff1916911515919091179055565b6000336109f6818585610d738383611451565b610b4a9190611f3b565b600d546001600160a01b03163314610da75760405162461bcd60e51b8152600401610c7c90611f4e565b600163ffffffff823b16151514610e0a5760405162461bcd60e51b815260206004820152602160248201527f6f6e6c7920636f6e7472616374732063616e2062652077686974656c697374656044820152601960fa1b6064820152608401610c7c565b806001600160a01b03167f0000000000000000000000008cfe327cec66d1c090dd72bd0ff11d690c33a2eb6001600160a01b031603610e5b5760405162461bcd60e51b8152600401610c7c90611f7d565b806001600160a01b03167f00000000000000000000000067d3aace3de41109e8c5ace377e53a034dca4c5e6001600160a01b031603610eac5760405162461bcd60e51b8152600401610c7c90611f7d565b806001600160a01b03167f00000000000000000000000008989a211ef14369b5db8255c8ff08401cb3a6136001600160a01b031603610efd5760405162461bcd60e51b8152600401610c7c90611f7d565b806001600160a01b03167f000000000000000000000000e2a1dafa8551c25dd146cbeb35b499d73cc8d1a96001600160a01b031603610f4e5760405162461bcd60e51b8152600401610c7c90611f7d565b6001600160a01b03166000908152601160205260409020805460ff19166001179055565b600d546001600160a01b03163314610f9c5760405162461bcd60e51b8152600401610c7c90611f4e565b6001600160a01b038116610fe85760405162461bcd60e51b81526020600482015260136024820152724572726f723a205a65726f206164647265737360681b6044820152606401610c7c565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b610b6a81611b1c565b60145460125560165460009060ff16151560010361104d57611033611b26565b6109c46015541115611046576109c46015555b6015546012555b5060125490565b600e546001600160a01b031633146110ae5760405162461bcd60e51b815260206004820152601e60248201527f63616c6c6572206973206e6f742074686520746178436f6c6c6563746f7200006044820152606401610c7c565b6001600160a01b03811661111c5760405162461bcd60e51b815260206004820152602f60248201527f746178436f6c6c6563746f724164647265737320616464726573732063616e6e60448201526e6f742062652030206164647265737360881b6064820152608401610c7c565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600d546001600160a01b031633146111685760405162461bcd60e51b8152600401610c7c90611f4e565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b61119261193f565b61119c6000611ba2565b565b6111a9823383611bf4565b6111b38282611c68565b5050565b60606004805461096590611eeb565b600033816111d48286611451565b9050838110156112345760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610c7c565b61124182868684036115b6565b506001949350505050565b3360009081526011602052604081205460ff1615156001148061128c57506001600160a01b03831660009081526011602052604090205460ff1615156001145b156112a15761129c3384846116f3565b6112e8565b60006112b4612710610ae9610ae2611013565b905060006112c284836116db565b90506112da33600e546001600160a01b0316846116f3565b6112e53386836116f3565b50505b50600192915050565b600c546001600160a01b031633146113345760405162461bcd60e51b8152600401610c7c9060208082526004908201526310b232bb60e11b604082015260600190565b6001600160a01b0381166113735760405162461bcd60e51b8152600401610c7c906020808252600490820152637a65726f60e01b604082015260600190565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600e546001600160a01b031633146113ef5760405162461bcd60e51b815260206004820152601e60248201527f63616c6c6572206973206e6f742074686520746178436f6c6c6563746f7200006044820152606401610c7c565b600581111561144c5760405162461bcd60e51b815260206004820152602360248201527f746178726174652068617320746f206265206265747765656e20302520616e6460448201526220352560e81b6064820152608401610c7c565b601255565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600f546001600160a01b031633146114d65760405162461bcd60e51b815260206004820152601b60248201527f63616c6c6572206973206e6f7420746865207461784f666669636500000000006044820152606401610c7c565b6109c48111156115285760405162461bcd60e51b815260206004820152601d60248201527f4572726f723a204d61782074617820726174652065786365656465642e0000006044820152606401610c7c565b601455565b61153561193f565b6001600160a01b03811661159a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c7c565b610b6a81611ba2565b60006115af8284611fd0565b9392505050565b6001600160a01b0383166116185760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610c7c565b6001600160a01b0382166116795760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610c7c565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006115af8284611ff2565b60006115af8284612005565b6001600160a01b0383166117575760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610c7c565b6001600160a01b0382166117b95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610c7c565b6001600160a01b038316600090815260208190526040902054818110156118315760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610c7c565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35b50505050565b600f546118b19083906001600160a01b0316836116f3565b600f546040516375d7a0ab60e11b8152600481018390526001600160a01b039091169063ebaf415690602401600060405180830381600087803b1580156118f757600080fd5b505af115801561190b573d6000803e3d6000fd5b505050505050565b600081848411156119375760405162461bcd60e51b8152600401610c7c9190611d92565b505050900390565b6005546001600160a01b0316331461119c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c7c565b6001600160a01b038116611a055760405162461bcd60e51b815260206004820152602d60248201527f6f70657261746f723a207a65726f206164647265737320676976656e20666f7260448201526c103732bb9037b832b930ba37b960991b6064820152608401610c7c565b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038216611ab35760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610c7c565b8060026000828254611ac59190611f3b565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b610b6a3382611c68565b600f60009054906101000a90046001600160a01b03166001600160a01b031663d39abead6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611b79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b9d919061201c565b601555565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611c008484611451565b905060001981146118935781811015611c5b5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610c7c565b61189384848484036115b6565b6001600160a01b038216611cc85760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610c7c565b6001600160a01b03821660009081526020819052604090205481811015611d3c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610c7c565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016116ce565b600060208083528351808285015260005b81811015611dbf57858101830151858201604001528201611da3565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114611df757600080fd5b919050565b60008060408385031215611e0f57600080fd5b611e1883611de0565b946020939093013593505050565b600080600060608486031215611e3b57600080fd5b611e4484611de0565b9250611e5260208501611de0565b9150604084013590509250925092565b600060208284031215611e7457600080fd5b6115af82611de0565b600060208284031215611e8f57600080fd5b813580151581146115af57600080fd5b600060208284031215611eb157600080fd5b5035919050565b60008060408385031215611ecb57600080fd5b611ed483611de0565b9150611ee260208401611de0565b90509250929050565b600181811c90821680611eff57607f821691505b602082108103611f1f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156109fc576109fc611f25565b6020808252601590820152742cb7ba9030b932903737ba103a34329030b236b4b760591b604082015260600190565b60208082526033908201527f7365742074617820746f203020696620796f752077616e7420746f2072656d6f6040820152727665206665652066726f6d2074726164696e6760681b606082015260800190565b600082611fed57634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156109fc576109fc611f25565b80820281158282048414176109fc576109fc611f25565b60006020828403121561202e57600080fd5b505191905056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a2646970667358221220d1897c479a26d6a4b4d5a007d382ac897ad678ef5c3f3ec391a202916552cd2364736f6c63430008110033

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

000000000000000000000000ccb25fd3041099523222651ea12b677631779da2000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda029130000000000000000000000008cfe327cec66d1c090dd72bd0ff11d690c33a2eb00000000000000000000000017ceee898e9a6dcd4e79f48c0e1bed246d8274750000000000000000000000000cd3803a2cb308eb39768b59b5d4c83177148adb00000000000000000000000073d948e40f863cb30b10d6053f2e1fec65420dc900000000000000000000000090b4a7051eaf5574c0083eb5c8975cc1bef19a0800000000000000000000000000000000000000000000000000000000652fae74000000000000000000000000600be5fcb9338bc3938e4790efbeaaa4f77d6893000000000000000000000000600be5fcb9338bc3938e4790efbeaaa4f77d6893

-----Decoded View---------------
Arg [0] : _LEVEL (address): 0xccB25fd3041099523222651EA12b677631779da2
Arg [1] : _USDC (address): 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
Arg [2] : _router (address): 0x8cFe327CEc66d1C090Dd72bd0FF11d690C33a2Eb
Arg [3] : _genesisAddress (address): 0x17CEEe898E9a6DCD4e79f48C0e1BEd246D827475
Arg [4] : _treasury (address): 0x0Cd3803a2cB308eB39768B59B5d4C83177148aDb
Arg [5] : _boardroom (address): 0x73D948e40f863Cb30b10d6053f2e1fEc65420DC9
Arg [6] : _shareRewardPool (address): 0x90b4a7051eAF5574C0083Eb5c8975cc1bEf19a08
Arg [7] : _startTime (uint256): 1697623668
Arg [8] : _communityFund (address): 0x600bE5FcB9338BC3938e4790EFBeAaa4F77D6893
Arg [9] : _devFund (address): 0x600bE5FcB9338BC3938e4790EFBeAaa4F77D6893

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 000000000000000000000000ccb25fd3041099523222651ea12b677631779da2
Arg [1] : 000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913
Arg [2] : 0000000000000000000000008cfe327cec66d1c090dd72bd0ff11d690c33a2eb
Arg [3] : 00000000000000000000000017ceee898e9a6dcd4e79f48c0e1bed246d827475
Arg [4] : 0000000000000000000000000cd3803a2cb308eb39768b59b5d4c83177148adb
Arg [5] : 00000000000000000000000073d948e40f863cb30b10d6053f2e1fec65420dc9
Arg [6] : 00000000000000000000000090b4a7051eaf5574c0083eb5c8975cc1bef19a08
Arg [7] : 00000000000000000000000000000000000000000000000000000000652fae74
Arg [8] : 000000000000000000000000600be5fcb9338bc3938e4790efbeaaa4f77d6893
Arg [9] : 000000000000000000000000600be5fcb9338bc3938e4790efbeaaa4f77d6893


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