ETH Price: $3,270.97 (-4.09%)
Gas: 15 Gwei

Token

MetaTreeDAO (TREE)
 

Overview

Max Total Supply

1,000,000,000,000 TREE

Holders

132

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
1,440,068,465.280537252117596593 TREE

Value
$0.00
0x1a9199897d2eb19b79c024c925a71934d4f7a113
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MetaTreeDAOToken

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion
File 1 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 2 of 11 : ERC20.sol
// SPDX-License-Identifier: MIT

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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of 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:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), 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}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - 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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * 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:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, 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;
        _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;
        }
        _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 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 11 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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

File 4 of 11 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

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 11 : draft-ERC20Permit.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./draft-IERC20Permit.sol";
import "../ERC20.sol";
import "../../../utils/cryptography/draft-EIP712.sol";
import "../../../utils/cryptography/ECDSA.sol";
import "../../../utils/Counters.sol";

/**
 * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * _Available since v3.4._
 */
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
    using Counters for Counters.Counter;

    mapping(address => Counters.Counter) private _nonces;

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private immutable _PERMIT_TYPEHASH =
        keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");

    /**
     * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
     *
     * It's a good idea to use the same `name` that is defined as the ERC20 token name.
     */
    constructor(string memory name) EIP712(name, "1") {}

    /**
     * @dev See {IERC20Permit-permit}.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual override {
        require(block.timestamp <= deadline, "ERC20Permit: expired deadline");

        bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        require(signer == owner, "ERC20Permit: invalid signature");

        _approve(owner, spender, value);
    }

    /**
     * @dev See {IERC20Permit-nonces}.
     */
    function nonces(address owner) public view virtual override returns (uint256) {
        return _nonces[owner].current();
    }

    /**
     * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view override returns (bytes32) {
        return _domainSeparatorV4();
    }

    /**
     * @dev "Consume a nonce": return the current value and increment.
     *
     * _Available since v4.1._
     */
    function _useNonce(address owner) internal virtual returns (uint256 current) {
        Counters.Counter storage nonce = _nonces[owner];
        current = nonce.current();
        nonce.increment();
    }
}

File 6 of 11 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

File 7 of 11 : Context.sol
// SPDX-License-Identifier: MIT

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 11 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 9 of 11 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return recover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return recover(hash, r, vs);
        } else {
            revert("ECDSA: invalid signature length");
        }
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return recover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`, `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        require(
            uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0,
            "ECDSA: invalid signature 's' value"
        );
        require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 10 of 11 : draft-EIP712.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 11 of 11 : MetaTreeDAOToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/**
 * @dev An ERC20 token for MetaTreeDAO.
 */
contract MetaTreeDAOToken is ERC20, ERC20Permit, Ownable {

    IERC20 public immutable usdtToken;
    IERC20 public immutable usdcToken;
    IERC20 public immutable daiToken;
    address public yearToken;
    address public sosToken;

    struct Proposal {
        uint256 id;
        address excutor;
        uint256 amount;
    }

    mapping(address=>bool) public claimed;
    mapping(address=>bool) public treasurySigners;
    uint256 public treasurySignerCount;
    mapping(address=>bool) public stakingSigners;
    uint256 public stakingSignerCount;

    mapping(uint256=>Proposal) public treasuryProposals;
    mapping(uint256=>Proposal) public stakingProposals;
    uint256 public treasuryProposalId;
    uint256 public stakingProposalId;

    mapping(uint256 => mapping(address => bool)) public treasuryProposalSigner;
    mapping(uint256 => uint256) public treasuryProposalExcutes;

    mapping(uint256 => mapping(address => bool)) public stakingProposalSigner;
    mapping(uint256 => uint256) public stakingProposalExcutes;

    event Claim(address indexed claimant, uint256 amount);

    // total supply 1 trillion, 50% airdrop, 20% LP, 20% DAO treasury, 10% Staking Incentive
    uint256 constant airdropSupply = 500_000_000_000e18;
    uint256 airdropSum;
    uint256 constant lpSupply = 200_000_000_000e18;
    uint256 constant treasurySupply = 200_000_000_000e18;
    uint256 treasurySum;
    uint256 constant stakingSupply = 1_000_000_000_000e18 - airdropSupply - lpSupply - treasurySupply;
    uint256 stakingSum;



    /**
     * @dev Constructor.
     */
    constructor(
        address lpAddress,
        address usdt,
        address usdc,
        address dai
        // address year,
        // address sos
    )
        ERC20("MetaTreeDAO", "TREE")
        ERC20Permit("MetaTreeDAO")
    {
        _mint(address(this), airdropSupply);
        _mint(address(this), treasurySupply);
        _mint(address(this), stakingSupply);
        _mint(lpAddress, lpSupply);
        usdtToken = IERC20(usdt);
        usdcToken = IERC20(usdc);
        daiToken = IERC20(dai);
        // yearToken = IERC20(year);
        // sosToken = IERC20(sos);
        
    }


    /**
     * @dev Claims airdropped tokens.
     */
    function claimTokens() public {
        bool canClaim = (msg.sender.balance >= 0.5e18) || (usdtToken.balanceOf(msg.sender) + usdcToken.balanceOf(msg.sender) + daiToken.balanceOf(msg.sender)) >= 1550e18;
        bool helpOther = false;
        if (yearToken != address(0) && sosToken != address(0)) {
            helpOther = (msg.sender.balance >= 0.1e18) && ((IERC20(yearToken).balanceOf(msg.sender) > 0) || (IERC20(sosToken).balanceOf(msg.sender) > 0));
        }
        require(canClaim || helpOther, "you can not claim airdrop.");
        require(!claimed[msg.sender], "MetaTreeDAOToken: Tokens already claimed.");
        claimed[msg.sender] = true;
        uint256 amount = uint256(uint160(msg.sender)) % 6 * 2_000_000e18;
        require(airdropSupply > (airdropSum + amount), "airdropSupply don't have enough tokens");
        airdropSum += amount;
        emit Claim(msg.sender, amount);
        _transfer(address(this), msg.sender, amount);
    }

    function setOtherCliamToken(address year, address sos) public onlyOwner {
        if (yearToken == address(0) && sosToken == address(0)) {
            yearToken = year;
            sosToken = sos;
        }
    }

    function addTreasurySigner(address signer) public onlyOwner {
        require(!treasurySigners[signer], "you are already treasurySigner");
        treasurySigners[signer] = true;
        treasurySignerCount++;
    }

    function addStakingSigner(address signer) public onlyOwner {
        require(!stakingSigners[signer], "you are already treasurySigner");
        stakingSigners[signer] = true;
        stakingSignerCount++;
    }

    function executeTreasury(uint256 proposalId) public {
        require(treasurySigners[msg.sender], "you are not treasurySigner");
        require(!treasuryProposalSigner[proposalId][msg.sender], "you have excuted this proposal");
        require(treasurySupply >= (treasurySum + treasuryProposals[proposalId].amount), "DAO treasury do not have enough token");
        require(proposalId <= treasuryProposalId, "proposal is null");
        treasuryProposalSigner[proposalId][msg.sender] = true;
        treasuryProposalExcutes[proposalId]++;
        if (treasurySignerCount >= 5 && (treasurySignerCount - treasuryProposalExcutes[proposalId] < 3)) {
            _transfer(address(this), treasuryProposals[proposalId].excutor, treasuryProposals[proposalId].amount);
            treasurySum += treasuryProposals[proposalId].amount;
        }

    }

    function addTreasuryProposal(address excutor, uint256 amount) public {
        require(treasurySigners[msg.sender], "you are not treasurySigner");
        treasuryProposalId++;
        treasuryProposals[treasuryProposalId] = Proposal(treasuryProposalId, excutor, amount);
    }

    function executeStaking(uint256 proposalId) public {
        require(stakingSigners[msg.sender], "you are not stakingSigner");
        require(!stakingProposalSigner[proposalId][msg.sender], "you have excuted this proposal");
        require(stakingSupply >= (stakingSum + stakingProposals[proposalId].amount), "Staking do not have enough token");
        require(proposalId <= stakingProposalId, "proposal is null");
        stakingProposalSigner[proposalId][msg.sender] = true;
        stakingProposalExcutes[proposalId]++;
        if (stakingSignerCount >= 5 && (stakingSignerCount - stakingProposalExcutes[proposalId] < 3)) {
            _transfer(address(this), stakingProposals[proposalId].excutor, stakingProposals[proposalId].amount);
            stakingSum += stakingProposals[proposalId].amount;
        }

    }

    function addStakingProposal(address excutor, uint256 amount) public {
        require(stakingSigners[msg.sender], "you are not stakingSigner");
        stakingProposalId++;
        stakingProposals[stakingProposalId] = Proposal(stakingProposalId, excutor, amount);
    }

}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"lpAddress","type":"address"},{"internalType":"address","name":"usdt","type":"address"},{"internalType":"address","name":"usdc","type":"address"},{"internalType":"address","name":"dai","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":"claimant","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"excutor","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addStakingProposal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"addStakingSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"excutor","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addTreasuryProposal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"addTreasurySigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"daiToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"executeStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"executeTreasury","outputs":[],"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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"year","type":"address"},{"internalType":"address","name":"sos","type":"address"}],"name":"setOtherCliamToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sosToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakingProposalExcutes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingProposalId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"stakingProposalSigner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakingProposals","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"excutor","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingSignerCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakingSigners","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"treasuryProposalExcutes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryProposalId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"treasuryProposalSigner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"treasuryProposals","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"excutor","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasurySignerCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"treasurySigners","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdcToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdtToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yearToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6101a06040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610120523480156200003757600080fd5b50604051620027a7380380620027a78339810160408190526200005a916200046d565b6040518060400160405280600b81526020016a4d6574615472656544414f60a81b81525080604051806040016040528060018152602001603160f81b8152506040518060400160405280600b81526020016a4d6574615472656544414f60a81b815250604051806040016040528060048152602001635452454560e01b8152508160039080519060200190620000f2929190620003aa565b50805162000108906004906020840190620003aa565b5050825160209384012082519284019290922060c083815260e08290524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818a018190528183019890985260608101959095526080808601939093523085830152805180860390920182529390920190925280519401939093209092526101005250620001a190503362000270565b620001ba306c064f964e68233a76f520000000620002c2565b620001d3306c02863c1f5cdae42f9540000000620002c2565b6200022b306c02863c1f5cdae42f9540000000806200020d6c064f964e68233a76f5200000006c0c9f2c9cd04674edea40000000620004e4565b620002199190620004e4565b620002259190620004e4565b620002c2565b62000244846c02863c1f5cdae42f9540000000620002c2565b6001600160601b0319606093841b81166101405291831b82166101605290911b16610180525062000551565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166200031d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620003319190620004c9565b90915550506001600160a01b0382166000908152602081905260408120805483929062000360908490620004c9565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620003b890620004fe565b90600052602060002090601f016020900481019282620003dc576000855562000427565b82601f10620003f757805160ff191683800117855562000427565b8280016001018555821562000427579182015b82811115620004275782518255916020019190600101906200040a565b506200043592915062000439565b5090565b5b808211156200043557600081556001016200043a565b80516001600160a01b03811681146200046857600080fd5b919050565b6000806000806080858703121562000483578384fd5b6200048e8562000450565b93506200049e6020860162000450565b9250620004ae6040860162000450565b9150620004be6060860162000450565b905092959194509250565b60008219821115620004df57620004df6200053b565b500190565b600082821015620004f957620004f96200053b565b500390565b6002810460018216806200051357607f821691505b602082108114156200053557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60805160a05160c05160e05161010051610120516101405160601c6101605160601c6101805160601c6121c7620005e0600039600081816105710152610bd10152600081816103240152610c6d01526000818161054a0152610d090152600061159801526000611a9001526000611adf01526000611aba01526000611a3c01526000611a6501526121c76000f3fe608060405234801561001057600080fd5b50600436106101f95760003560e01c8063037075ce146101fe57806306fdde0314610236578063095ea7b31461024b5780630a5b67501461025e5780630c2b8fdf1461028c5780630eb12596146102e757806311eac8551461031f5780631680be311461035357806318160ddd146103685780631c1252eb146103705780631e1e1ca4146103795780631f792276146103a757806323b872dd146103b0578063258d938d146103c35780632ea1fafa146103d6578063313ce567146103e957806331f352d4146103f85780633644e5151461040b57806339509351146104135780633efdb9541461042657806348c54b9d146104395780634b53972514610441578063629456061461046f5780636c29296b1461048257806370a08231146104a5578063715018a6146104b85780637ecebe00146104c05780638101ec2c146104d357806389e47a35146104e65780638da5cb5b146104ef57806395d89b41146104f7578063a182d072146104ff578063a457c2d71461051f578063a9059cbb14610532578063a98ad46c14610545578063be22f5461461056c578063c2e63e6014610593578063c884ef83146105a6578063cb90a367146105c9578063d3f90221146105d2578063d505accf146105e5578063dd62ed3e146105f8578063f2fde38b14610631575b600080fd5b61022161020c366004611da8565b600a6020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b61023e610644565b60405161022d9190611f36565b610221610259366004611ea7565b6106d7565b61027e61026c366004611ed0565b60136020526000908152604090205481565b60405190815260200161022d565b6102c461029a366004611ed0565b600f6020526000908152604090208054600182015460029092015490916001600160a01b03169083565b604080519384526001600160a01b0390921660208401529082015260600161022d565b6102c46102f5366004611ed0565b600e6020526000908152604090208054600182015460029092015490916001600160a01b03169083565b6103467f000000000000000000000000000000000000000000000000000000000000000081565b60405161022d9190611f22565b610366610361366004611dc9565b6106ed565b005b60025461027e565b61027e600b5481565b610221610387366004611f00565b601260209081526000928352604080842090915290825290205460ff1681565b61027e60115481565b6102216103be366004611dfb565b610781565b6103666103d1366004611da8565b61082b565b6103666103e4366004611ea7565b6108cc565b6040516012815260200161022d565b610366610406366004611ed0565b61096c565b61027e610b4f565b610221610421366004611ea7565b610b5e565b600754610346906001600160a01b031681565b610366610b9a565b61022161044f366004611f00565b601460209081526000928352604080842090915290825290205460ff1681565b61036661047d366004611ea7565b6110ca565b610221610490366004611da8565b600c6020526000908152604090205460ff1681565b61027e6104b3366004611da8565b61116a565b610366611189565b61027e6104ce366004611da8565b6111c4565b6103666104e1366004611da8565b6111e4565b61027e600d5481565b61034661127d565b61023e61128c565b61027e61050d366004611ed0565b60156020526000908152604090205481565b61022161052d366004611ea7565b61129b565b610221610540366004611ea7565b611334565b6103467f000000000000000000000000000000000000000000000000000000000000000081565b6103467f000000000000000000000000000000000000000000000000000000000000000081565b600854610346906001600160a01b031681565b6102216105b4366004611da8565b60096020526000908152604090205460ff1681565b61027e60105481565b6103666105e0366004611ed0565b611341565b6103666105f3366004611e36565b611544565b61027e610606366004611dc9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61036661063f366004611da8565b6116a8565b6060600380546106539061210b565b80601f016020809104026020016040519081016040528092919081815260200182805461067f9061210b565b80156106cc5780601f106106a1576101008083540402835291602001916106cc565b820191906000526020600020905b8154815290600101906020018083116106af57829003601f168201915b505050505090505b90565b60006106e4338484611745565b50600192915050565b336106f661127d565b6001600160a01b0316146107255760405162461bcd60e51b815260040161071c90612054565b60405180910390fd5b6007546001600160a01b031615801561074757506008546001600160a01b0316155b1561077d57600780546001600160a01b038085166001600160a01b03199283161790925560088054928416929091169190911790555b5050565b600061078e848484611869565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156108135760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b606482015260840161071c565b6108208533858403611745565b506001949350505050565b3361083461127d565b6001600160a01b03161461085a5760405162461bcd60e51b815260040161071c90612054565b6001600160a01b0381166000908152600a602052604090205460ff16156108935760405162461bcd60e51b815260040161071c90611f89565b6001600160a01b0381166000908152600a60205260408120805460ff19166001179055600b8054916108c483612140565b919050555050565b336000908152600a602052604090205460ff166108fb5760405162461bcd60e51b815260040161071c90612089565b6010805490600061090b83612140565b9091555050604080516060810182526010548082526001600160a01b0394851660208084019182528385019586526000928352600e90529290209051815590516001820180546001600160a01b031916919094161790925551600290910155565b336000908152600a602052604090205460ff1661099b5760405162461bcd60e51b815260040161071c90612089565b600081815260126020908152604080832033845290915290205460ff16156109d55760405162461bcd60e51b815260040161071c90611fea565b6000818152600e60205260409020600201546017546109f491906120bd565b680a18f07d736b90be55601e1b1015610a5d5760405162461bcd60e51b815260206004820152602560248201527f44414f20747265617375727920646f206e6f74206861766520656e6f756768206044820152643a37b5b2b760d91b606482015260840161071c565b601054811115610a7f5760405162461bcd60e51b815260040161071c90611fc0565b60008181526012602090815260408083203384528252808320805460ff1916600117905583835260139091528120805491610ab983612140565b91905055506005600b5410158015610aec5750600081815260136020526040902054600b54600391610aea916120f4565b105b15610b4c576000818152600e602052604090206001810154600290910154610b219130916001600160a01b0390911690611869565b6000818152600e60205260408120600201546017805491929091610b469084906120bd565b90915550505b50565b6000610b59611a38565b905090565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916106e4918590610b959086906120bd565b611745565b60006706f05b59d3b200003331101580610da557506040516370a0823160e01b81526854069233bf7f780000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610c06903390600401611f22565b60206040518083038186803b158015610c1e57600080fd5b505afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190611ee8565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610ca2903390600401611f22565b60206040518083038186803b158015610cba57600080fd5b505afa158015610cce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf29190611ee8565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610d3e903390600401611f22565b60206040518083038186803b158015610d5657600080fd5b505afa158015610d6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8e9190611ee8565b610d9891906120bd565b610da291906120bd565b10155b6007549091506000906001600160a01b031615801590610dcf57506008546001600160a01b031615155b15610ef65767016345785d8a0000333110801590610ef357506007546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610e19903390600401611f22565b60206040518083038186803b158015610e3157600080fd5b505afa158015610e45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e699190611ee8565b1180610ef357506008546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610ea1903390600401611f22565b60206040518083038186803b158015610eb957600080fd5b505afa158015610ecd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef19190611ee8565b115b90505b8180610eff5750805b610f485760405162461bcd60e51b815260206004820152601a6024820152793cb7ba9031b0b7103737ba1031b630b4b69030b4b9323937b81760311b604482015260640161071c565b3360009081526009602052604090205460ff1615610fba5760405162461bcd60e51b815260206004820152602960248201527f4d6574615472656544414f546f6b656e3a20546f6b656e7320616c72656164796044820152681031b630b4b6b2b21760b91b606482015260840161071c565b336000818152600960205260408120805460ff1916600117905590610fe19060069061215b565b610ff59066d3c21bcecceda160191b6120d5565b90508060165461100591906120bd565b68327cb2734119d3b7a9601d1b1161106e5760405162461bcd60e51b815260206004820152602660248201527f61697264726f70537570706c7920646f6e2774206861766520656e6f75676820604482015265746f6b656e7360d01b606482015260840161071c565b806016600082825461108091906120bd565b909155505060405181815233907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d49060200160405180910390a26110c5303383611869565b505050565b336000908152600c602052604090205460ff166110f95760405162461bcd60e51b815260040161071c90612021565b6011805490600061110983612140565b9091555050604080516060810182526011548082526001600160a01b0394851660208084019182528385019586526000928352600f90529290209051815590516001820180546001600160a01b031916919094161790925551600290910155565b6001600160a01b0381166000908152602081905260409020545b919050565b3361119261127d565b6001600160a01b0316146111b85760405162461bcd60e51b815260040161071c90612054565b6111c26000611b2f565b565b6001600160a01b0381166000908152600560205260408120545b92915050565b336111ed61127d565b6001600160a01b0316146112135760405162461bcd60e51b815260040161071c90612054565b6001600160a01b0381166000908152600c602052604090205460ff161561124c5760405162461bcd60e51b815260040161071c90611f89565b6001600160a01b0381166000908152600c60205260408120805460ff19166001179055600d8054916108c483612140565b6006546001600160a01b031690565b6060600480546106539061210b565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561131d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161071c565b61132a3385858403611745565b5060019392505050565b60006106e4338484611869565b336000908152600c602052604090205460ff166113705760405162461bcd60e51b815260040161071c90612021565b600081815260146020908152604080832033845290915290205460ff16156113aa5760405162461bcd60e51b815260040161071c90611fea565b6000818152600f60205260409020600201546018546113c991906120bd565b680a18f07d736b90be55601e1b806113f968327cb2734119d3b7a9601d1b68327cb2734119d3b7a9601e1b6120f4565b61140391906120f4565b61140d91906120f4565b101561145b5760405162461bcd60e51b815260206004820181905260248201527f5374616b696e6720646f206e6f74206861766520656e6f75676820746f6b656e604482015260640161071c565b60115481111561147d5760405162461bcd60e51b815260040161071c90611fc0565b60008181526014602090815260408083203384528252808320805460ff19166001179055838352601590915281208054916114b783612140565b91905055506005600d54101580156114ea5750600081815260156020526040902054600d546003916114e8916120f4565b105b15610b4c576000818152600f60205260409020600181015460029091015461151f9130916001600160a01b0390911690611869565b6000818152600f60205260408120600201546018805491929091610b469084906120bd565b834211156115945760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161071c565b60007f00000000000000000000000000000000000000000000000000000000000000008888886115c38c611b81565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061161e82611ba9565b9050600061162e82878787611bf7565b9050896001600160a01b0316816001600160a01b0316146116915760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161071c565b61169c8a8a8a611745565b50505050505050505050565b336116b161127d565b6001600160a01b0316146116d75760405162461bcd60e51b815260040161071c90612054565b6001600160a01b03811661173c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161071c565b610b4c81611b2f565b6001600160a01b0383166117a75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161071c565b6001600160a01b0382166118085760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161071c565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166118cd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161071c565b6001600160a01b03821661192f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161071c565b6001600160a01b038316600090815260208190526040902054818110156119a75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161071c565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906119de9084906120bd565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611a2a91815260200190565b60405180910390a350505050565b60007f0000000000000000000000000000000000000000000000000000000000000000461415611a8957507f00000000000000000000000000000000000000000000000000000000000000006106d4565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c090920190925280519101206106d4565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b60006111de611bb6611a38565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60006fa2a8918ca85bafe22016d0b997e4df60600160ff1b03821115611c6a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161071c565b8360ff16601b1480611c7f57508360ff16601c145b611cd65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161071c565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015611d2a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611d885760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b604482015260640161071c565b95945050505050565b80356001600160a01b038116811461118457600080fd5b600060208284031215611db9578081fd5b611dc282611d91565b9392505050565b60008060408385031215611ddb578081fd5b611de483611d91565b9150611df260208401611d91565b90509250929050565b600080600060608486031215611e0f578081fd5b611e1884611d91565b9250611e2660208501611d91565b9150604084013590509250925092565b600080600080600080600060e0888a031215611e50578283fd5b611e5988611d91565b9650611e6760208901611d91565b95506040880135945060608801359350608088013560ff81168114611e8a578384fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215611eb9578182fd5b611ec283611d91565b946020939093013593505050565b600060208284031215611ee1578081fd5b5035919050565b600060208284031215611ef9578081fd5b5051919050565b60008060408385031215611f12578182fd5b82359150611df260208401611d91565b6001600160a01b0391909116815260200190565b6000602080835283518082850152825b81811015611f6257858101830151858201604001528201611f46565b81811115611f735783604083870101525b50601f01601f1916929092016040019392505050565b6020808252601e908201527f796f752061726520616c72656164792074726561737572795369676e65720000604082015260600190565b60208082526010908201526f1c1c9bdc1bdcd85b081a5cc81b9d5b1b60821b604082015260600190565b6020808252601e908201527f796f752068617665206578637574656420746869732070726f706f73616c0000604082015260600190565b6020808252601990820152783cb7ba9030b932903737ba1039ba30b5b4b733a9b4b3b732b960391b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601a90820152793cb7ba9030b932903737ba103a3932b0b9bab93ca9b4b3b732b960311b604082015260600190565b600082198211156120d0576120d061217b565b500190565b60008160001904831182151516156120ef576120ef61217b565b500290565b6000828210156121065761210661217b565b500390565b60028104600182168061211f57607f821691505b60208210811415611ba357634e487b7160e01b600052602260045260246000fd5b60006000198214156121545761215461217b565b5060010190565b60008261217657634e487b7160e01b81526012600452602481fd5b500690565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220bbac12b44596b95fa3efc62eee216e777cc81a368376b5095d0c7c7f531e72ea64736f6c6343000802003300000000000000000000000064852a1c742f8628ea584bc564a73762c356c647000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000006b175474e89094c44da98b954eedeac495271d0f

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101f95760003560e01c8063037075ce146101fe57806306fdde0314610236578063095ea7b31461024b5780630a5b67501461025e5780630c2b8fdf1461028c5780630eb12596146102e757806311eac8551461031f5780631680be311461035357806318160ddd146103685780631c1252eb146103705780631e1e1ca4146103795780631f792276146103a757806323b872dd146103b0578063258d938d146103c35780632ea1fafa146103d6578063313ce567146103e957806331f352d4146103f85780633644e5151461040b57806339509351146104135780633efdb9541461042657806348c54b9d146104395780634b53972514610441578063629456061461046f5780636c29296b1461048257806370a08231146104a5578063715018a6146104b85780637ecebe00146104c05780638101ec2c146104d357806389e47a35146104e65780638da5cb5b146104ef57806395d89b41146104f7578063a182d072146104ff578063a457c2d71461051f578063a9059cbb14610532578063a98ad46c14610545578063be22f5461461056c578063c2e63e6014610593578063c884ef83146105a6578063cb90a367146105c9578063d3f90221146105d2578063d505accf146105e5578063dd62ed3e146105f8578063f2fde38b14610631575b600080fd5b61022161020c366004611da8565b600a6020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b61023e610644565b60405161022d9190611f36565b610221610259366004611ea7565b6106d7565b61027e61026c366004611ed0565b60136020526000908152604090205481565b60405190815260200161022d565b6102c461029a366004611ed0565b600f6020526000908152604090208054600182015460029092015490916001600160a01b03169083565b604080519384526001600160a01b0390921660208401529082015260600161022d565b6102c46102f5366004611ed0565b600e6020526000908152604090208054600182015460029092015490916001600160a01b03169083565b6103467f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b60405161022d9190611f22565b610366610361366004611dc9565b6106ed565b005b60025461027e565b61027e600b5481565b610221610387366004611f00565b601260209081526000928352604080842090915290825290205460ff1681565b61027e60115481565b6102216103be366004611dfb565b610781565b6103666103d1366004611da8565b61082b565b6103666103e4366004611ea7565b6108cc565b6040516012815260200161022d565b610366610406366004611ed0565b61096c565b61027e610b4f565b610221610421366004611ea7565b610b5e565b600754610346906001600160a01b031681565b610366610b9a565b61022161044f366004611f00565b601460209081526000928352604080842090915290825290205460ff1681565b61036661047d366004611ea7565b6110ca565b610221610490366004611da8565b600c6020526000908152604090205460ff1681565b61027e6104b3366004611da8565b61116a565b610366611189565b61027e6104ce366004611da8565b6111c4565b6103666104e1366004611da8565b6111e4565b61027e600d5481565b61034661127d565b61023e61128c565b61027e61050d366004611ed0565b60156020526000908152604090205481565b61022161052d366004611ea7565b61129b565b610221610540366004611ea7565b611334565b6103467f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec781565b6103467f0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f81565b600854610346906001600160a01b031681565b6102216105b4366004611da8565b60096020526000908152604090205460ff1681565b61027e60105481565b6103666105e0366004611ed0565b611341565b6103666105f3366004611e36565b611544565b61027e610606366004611dc9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61036661063f366004611da8565b6116a8565b6060600380546106539061210b565b80601f016020809104026020016040519081016040528092919081815260200182805461067f9061210b565b80156106cc5780601f106106a1576101008083540402835291602001916106cc565b820191906000526020600020905b8154815290600101906020018083116106af57829003601f168201915b505050505090505b90565b60006106e4338484611745565b50600192915050565b336106f661127d565b6001600160a01b0316146107255760405162461bcd60e51b815260040161071c90612054565b60405180910390fd5b6007546001600160a01b031615801561074757506008546001600160a01b0316155b1561077d57600780546001600160a01b038085166001600160a01b03199283161790925560088054928416929091169190911790555b5050565b600061078e848484611869565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156108135760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b606482015260840161071c565b6108208533858403611745565b506001949350505050565b3361083461127d565b6001600160a01b03161461085a5760405162461bcd60e51b815260040161071c90612054565b6001600160a01b0381166000908152600a602052604090205460ff16156108935760405162461bcd60e51b815260040161071c90611f89565b6001600160a01b0381166000908152600a60205260408120805460ff19166001179055600b8054916108c483612140565b919050555050565b336000908152600a602052604090205460ff166108fb5760405162461bcd60e51b815260040161071c90612089565b6010805490600061090b83612140565b9091555050604080516060810182526010548082526001600160a01b0394851660208084019182528385019586526000928352600e90529290209051815590516001820180546001600160a01b031916919094161790925551600290910155565b336000908152600a602052604090205460ff1661099b5760405162461bcd60e51b815260040161071c90612089565b600081815260126020908152604080832033845290915290205460ff16156109d55760405162461bcd60e51b815260040161071c90611fea565b6000818152600e60205260409020600201546017546109f491906120bd565b680a18f07d736b90be55601e1b1015610a5d5760405162461bcd60e51b815260206004820152602560248201527f44414f20747265617375727920646f206e6f74206861766520656e6f756768206044820152643a37b5b2b760d91b606482015260840161071c565b601054811115610a7f5760405162461bcd60e51b815260040161071c90611fc0565b60008181526012602090815260408083203384528252808320805460ff1916600117905583835260139091528120805491610ab983612140565b91905055506005600b5410158015610aec5750600081815260136020526040902054600b54600391610aea916120f4565b105b15610b4c576000818152600e602052604090206001810154600290910154610b219130916001600160a01b0390911690611869565b6000818152600e60205260408120600201546017805491929091610b469084906120bd565b90915550505b50565b6000610b59611a38565b905090565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916106e4918590610b959086906120bd565b611745565b60006706f05b59d3b200003331101580610da557506040516370a0823160e01b81526854069233bf7f780000906001600160a01b037f0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f16906370a0823190610c06903390600401611f22565b60206040518083038186803b158015610c1e57600080fd5b505afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190611ee8565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4816906370a0823190610ca2903390600401611f22565b60206040518083038186803b158015610cba57600080fd5b505afa158015610cce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf29190611ee8565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec716906370a0823190610d3e903390600401611f22565b60206040518083038186803b158015610d5657600080fd5b505afa158015610d6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8e9190611ee8565b610d9891906120bd565b610da291906120bd565b10155b6007549091506000906001600160a01b031615801590610dcf57506008546001600160a01b031615155b15610ef65767016345785d8a0000333110801590610ef357506007546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610e19903390600401611f22565b60206040518083038186803b158015610e3157600080fd5b505afa158015610e45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e699190611ee8565b1180610ef357506008546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610ea1903390600401611f22565b60206040518083038186803b158015610eb957600080fd5b505afa158015610ecd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef19190611ee8565b115b90505b8180610eff5750805b610f485760405162461bcd60e51b815260206004820152601a6024820152793cb7ba9031b0b7103737ba1031b630b4b69030b4b9323937b81760311b604482015260640161071c565b3360009081526009602052604090205460ff1615610fba5760405162461bcd60e51b815260206004820152602960248201527f4d6574615472656544414f546f6b656e3a20546f6b656e7320616c72656164796044820152681031b630b4b6b2b21760b91b606482015260840161071c565b336000818152600960205260408120805460ff1916600117905590610fe19060069061215b565b610ff59066d3c21bcecceda160191b6120d5565b90508060165461100591906120bd565b68327cb2734119d3b7a9601d1b1161106e5760405162461bcd60e51b815260206004820152602660248201527f61697264726f70537570706c7920646f6e2774206861766520656e6f75676820604482015265746f6b656e7360d01b606482015260840161071c565b806016600082825461108091906120bd565b909155505060405181815233907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d49060200160405180910390a26110c5303383611869565b505050565b336000908152600c602052604090205460ff166110f95760405162461bcd60e51b815260040161071c90612021565b6011805490600061110983612140565b9091555050604080516060810182526011548082526001600160a01b0394851660208084019182528385019586526000928352600f90529290209051815590516001820180546001600160a01b031916919094161790925551600290910155565b6001600160a01b0381166000908152602081905260409020545b919050565b3361119261127d565b6001600160a01b0316146111b85760405162461bcd60e51b815260040161071c90612054565b6111c26000611b2f565b565b6001600160a01b0381166000908152600560205260408120545b92915050565b336111ed61127d565b6001600160a01b0316146112135760405162461bcd60e51b815260040161071c90612054565b6001600160a01b0381166000908152600c602052604090205460ff161561124c5760405162461bcd60e51b815260040161071c90611f89565b6001600160a01b0381166000908152600c60205260408120805460ff19166001179055600d8054916108c483612140565b6006546001600160a01b031690565b6060600480546106539061210b565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561131d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161071c565b61132a3385858403611745565b5060019392505050565b60006106e4338484611869565b336000908152600c602052604090205460ff166113705760405162461bcd60e51b815260040161071c90612021565b600081815260146020908152604080832033845290915290205460ff16156113aa5760405162461bcd60e51b815260040161071c90611fea565b6000818152600f60205260409020600201546018546113c991906120bd565b680a18f07d736b90be55601e1b806113f968327cb2734119d3b7a9601d1b68327cb2734119d3b7a9601e1b6120f4565b61140391906120f4565b61140d91906120f4565b101561145b5760405162461bcd60e51b815260206004820181905260248201527f5374616b696e6720646f206e6f74206861766520656e6f75676820746f6b656e604482015260640161071c565b60115481111561147d5760405162461bcd60e51b815260040161071c90611fc0565b60008181526014602090815260408083203384528252808320805460ff19166001179055838352601590915281208054916114b783612140565b91905055506005600d54101580156114ea5750600081815260156020526040902054600d546003916114e8916120f4565b105b15610b4c576000818152600f60205260409020600181015460029091015461151f9130916001600160a01b0390911690611869565b6000818152600f60205260408120600201546018805491929091610b469084906120bd565b834211156115945760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161071c565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886115c38c611b81565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061161e82611ba9565b9050600061162e82878787611bf7565b9050896001600160a01b0316816001600160a01b0316146116915760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161071c565b61169c8a8a8a611745565b50505050505050505050565b336116b161127d565b6001600160a01b0316146116d75760405162461bcd60e51b815260040161071c90612054565b6001600160a01b03811661173c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161071c565b610b4c81611b2f565b6001600160a01b0383166117a75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161071c565b6001600160a01b0382166118085760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161071c565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166118cd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161071c565b6001600160a01b03821661192f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161071c565b6001600160a01b038316600090815260208190526040902054818110156119a75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161071c565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906119de9084906120bd565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611a2a91815260200190565b60405180910390a350505050565b60007f0000000000000000000000000000000000000000000000000000000000000001461415611a8957507f3837309cc033a9a9387623abfebc8b878710cf1574891095946ea3ed40ab62a46106d4565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f3257ad7a73440209d12813538bdb97aa66f0a337940f314e2b898b129b7a4632828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c090920190925280519101206106d4565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b60006111de611bb6611a38565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60006fa2a8918ca85bafe22016d0b997e4df60600160ff1b03821115611c6a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161071c565b8360ff16601b1480611c7f57508360ff16601c145b611cd65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161071c565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015611d2a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611d885760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b604482015260640161071c565b95945050505050565b80356001600160a01b038116811461118457600080fd5b600060208284031215611db9578081fd5b611dc282611d91565b9392505050565b60008060408385031215611ddb578081fd5b611de483611d91565b9150611df260208401611d91565b90509250929050565b600080600060608486031215611e0f578081fd5b611e1884611d91565b9250611e2660208501611d91565b9150604084013590509250925092565b600080600080600080600060e0888a031215611e50578283fd5b611e5988611d91565b9650611e6760208901611d91565b95506040880135945060608801359350608088013560ff81168114611e8a578384fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215611eb9578182fd5b611ec283611d91565b946020939093013593505050565b600060208284031215611ee1578081fd5b5035919050565b600060208284031215611ef9578081fd5b5051919050565b60008060408385031215611f12578182fd5b82359150611df260208401611d91565b6001600160a01b0391909116815260200190565b6000602080835283518082850152825b81811015611f6257858101830151858201604001528201611f46565b81811115611f735783604083870101525b50601f01601f1916929092016040019392505050565b6020808252601e908201527f796f752061726520616c72656164792074726561737572795369676e65720000604082015260600190565b60208082526010908201526f1c1c9bdc1bdcd85b081a5cc81b9d5b1b60821b604082015260600190565b6020808252601e908201527f796f752068617665206578637574656420746869732070726f706f73616c0000604082015260600190565b6020808252601990820152783cb7ba9030b932903737ba1039ba30b5b4b733a9b4b3b732b960391b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601a90820152793cb7ba9030b932903737ba103a3932b0b9bab93ca9b4b3b732b960311b604082015260600190565b600082198211156120d0576120d061217b565b500190565b60008160001904831182151516156120ef576120ef61217b565b500290565b6000828210156121065761210661217b565b500390565b60028104600182168061211f57607f821691505b60208210811415611ba357634e487b7160e01b600052602260045260246000fd5b60006000198214156121545761215461217b565b5060010190565b60008261217657634e487b7160e01b81526012600452602481fd5b500690565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220bbac12b44596b95fa3efc62eee216e777cc81a368376b5095d0c7c7f531e72ea64736f6c63430008020033

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

00000000000000000000000064852a1c742f8628ea584bc564a73762c356c647000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000006b175474e89094c44da98b954eedeac495271d0f

-----Decoded View---------------
Arg [0] : lpAddress (address): 0x64852A1c742f8628eA584bc564a73762C356c647
Arg [1] : usdt (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
Arg [2] : usdc (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Arg [3] : dai (address): 0x6B175474E89094C44Da98b954EedeAC495271d0F

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000064852a1c742f8628ea584bc564a73762c356c647
Arg [1] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [2] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [3] : 0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f


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