ETH Price: $3,434.24 (+2.53%)

Token

AIT Protocol (AIT)
 

Overview

Max Total Supply

1,000,000,000 AIT

Holders

21,722

Market

Price

$0.10 @ 0.000029 ETH (+4.92%)

Onchain Market Cap

$98,866,000.00

Circulating Supply Market Cap

$27,949,590.00

Other Info

Token Contract (WITH 18 Decimals)

Balance
16,716.022552919150027294 AIT

Value
$1,652.65 ( ~0.481227454021835 Eth) [0.0017%]
0xF5394e4c14d60b8014ec3d78f30c7a49504e870d
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

AIT Protocol functions as a platform for data annotation and training AI models. Furthermore, AIT oversees the Einstein Subnet on Bittensor, specializing in Mathematics, Logic, and Data Analysis.

Market

Volume (24H):$1,887,297.00
Market Capitalization:$27,949,590.00
Circulating Supply:283,593,443.00 AIT
Market Data Source: Coinmarketcap

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
AITMainToken

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : AITMainToken.sol
// Sources flattened with hardhat v2.19.1 https://hardhat.org

// SPDX-License-Identifier: MIT AND Unlicense

// File @openzeppelin/contracts/utils/[email protected]

// Original license: 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 @openzeppelin/contracts/access/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/token/ERC20/[email protected]

// Original license: 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 @openzeppelin/contracts/token/ERC20/extensions/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/token/ERC20/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;



/**
 * @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 @openzeppelin/contracts/utils/introspection/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}


// File @openzeppelin/contracts/utils/introspection/[email protected]

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}


// File contracts/interfaces/ILayerZeroUserApplicationConfig.sol

// Original license: SPDX_License_Identifier: MIT

pragma solidity >=0.5.0;

interface ILayerZeroUserApplicationConfig {
    // @notice set the configuration of the LayerZero messaging library of the specified version
    // @param _version - messaging library version
    // @param _chainId - the chainId for the pending config change
    // @param _configType - type of configuration. every messaging library has its own convention.
    // @param _config - configuration in the bytes. can encode arbitrary content.
    function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external;

    // @notice set the send() LayerZero messaging library version to _version
    // @param _version - new messaging library version
    function setSendVersion(uint16 _version) external;

    // @notice set the lzReceive() LayerZero messaging library version to _version
    // @param _version - new messaging library version
    function setReceiveVersion(uint16 _version) external;

    // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload
    // @param _srcChainId - the chainId of the source chain
    // @param _srcAddress - the contract address of the source contract at the source chain
    function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external;
}


// File contracts/interfaces/ILayerZeroEndpoint.sol

// Original license: SPDX_License_Identifier: MIT

pragma solidity >=0.5.0;

interface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig {
    // @notice send a LayerZero message to the specified address at a LayerZero endpoint.
    // @param _dstChainId - the destination chain identifier
    // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains
    // @param _payload - a custom bytes payload to send to the destination contract
    // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address
    // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction
    // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination
    function send(uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable;

    // @notice used by the messaging library to publish verified payload
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source contract (as bytes) at the source chain
    // @param _dstAddress - the address on destination chain
    // @param _nonce - the unbound message ordering nonce
    // @param _gasLimit - the gas limit for external contract execution
    // @param _payload - verified payload to send to the destination contract
    function receivePayload(uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload) external;

    // @notice get the inboundNonce of a lzApp from a source chain which could be EVM or non-EVM chain
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64);

    // @notice get the outboundNonce from this source chain which, consequently, is always an EVM
    // @param _srcAddress - the source chain contract address
    function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64);

    // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery
    // @param _dstChainId - the destination chain identifier
    // @param _userApplication - the user app address on this EVM chain
    // @param _payload - the custom message to send over LayerZero
    // @param _payInZRO - if false, user app pays the protocol fee in native token
    // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain
    function estimateFees(uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam) external view returns (uint nativeFee, uint zroFee);

    // @notice get this Endpoint's immutable source identifier
    function getChainId() external view returns (uint16);

    // @notice the interface to retry failed message on this Endpoint destination
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    // @param _payload - the payload to be retried
    function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external;

    // @notice query if any STORED payload (message blocking) at the endpoint.
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool);

    // @notice query if the _libraryAddress is valid for sending msgs.
    // @param _userApplication - the user app address on this EVM chain
    function getSendLibraryAddress(address _userApplication) external view returns (address);

    // @notice query if the _libraryAddress is valid for receiving msgs.
    // @param _userApplication - the user app address on this EVM chain
    function getReceiveLibraryAddress(address _userApplication) external view returns (address);

    // @notice query if the non-reentrancy guard for send() is on
    // @return true if the guard is on. false otherwise
    function isSendingPayload() external view returns (bool);

    // @notice query if the non-reentrancy guard for receive() is on
    // @return true if the guard is on. false otherwise
    function isReceivingPayload() external view returns (bool);

    // @notice get the configuration of the LayerZero messaging library of the specified version
    // @param _version - messaging library version
    // @param _chainId - the chainId for the pending config change
    // @param _userApplication - the contract address of the user application
    // @param _configType - type of configuration. every messaging library has its own convention.
    function getConfig(uint16 _version, uint16 _chainId, address _userApplication, uint _configType) external view returns (bytes memory);

    // @notice get the send() LayerZero messaging library version
    // @param _userApplication - the contract address of the user application
    function getSendVersion(address _userApplication) external view returns (uint16);

    // @notice get the lzReceive() LayerZero messaging library version
    // @param _userApplication - the contract address of the user application
    function getReceiveVersion(address _userApplication) external view returns (uint16);
}


// File contracts/interfaces/ILayerZeroReceiver.sol

// Original license: SPDX_License_Identifier: MIT

pragma solidity >=0.5.0;

interface ILayerZeroReceiver {
    // @notice LayerZero endpoint will invoke this function to deliver the message on the destination
    // @param _srcChainId - the source endpoint identifier
    // @param _srcAddress - the source sending contract address from the source chain
    // @param _nonce - the ordered message nonce
    // @param _payload - the signed payload is the UA bytes has encoded to be sent
    function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external;
}


// File contracts/util/BytesLib.sol

// Original license: SPDX_License_Identifier: Unlicense
/*
 * @title Solidity Bytes Arrays Utils
 * @author Gonçalo Sá <[email protected]>
 *
 * @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity.
 *      The library lets you concatenate, slice and type cast bytes arrays both in memory and storage.
 */
pragma solidity >=0.8.0 <0.9.0;


library BytesLib {
    function concat(
        bytes memory _preBytes,
        bytes memory _postBytes
    )
    internal
    pure
    returns (bytes memory)
    {
        bytes memory tempBytes;

        assembly {
        // Get a location of some free memory and store it in tempBytes as
        // Solidity does for memory variables.
            tempBytes := mload(0x40)

        // Store the length of the first bytes array at the beginning of
        // the memory for tempBytes.
            let length := mload(_preBytes)
            mstore(tempBytes, length)

        // Maintain a memory counter for the current write location in the
        // temp bytes array by adding the 32 bytes for the array length to
        // the starting location.
            let mc := add(tempBytes, 0x20)
        // Stop copying when the memory counter reaches the length of the
        // first bytes array.
            let end := add(mc, length)

            for {
            // Initialize a copy counter to the start of the _preBytes data,
            // 32 bytes into its memory.
                let cc := add(_preBytes, 0x20)
            } lt(mc, end) {
            // Increase both counters by 32 bytes each iteration.
                mc := add(mc, 0x20)
                cc := add(cc, 0x20)
            } {
            // Write the _preBytes data into the tempBytes memory 32 bytes
            // at a time.
                mstore(mc, mload(cc))
            }

        // Add the length of _postBytes to the current length of tempBytes
        // and store it as the new length in the first 32 bytes of the
        // tempBytes memory.
            length := mload(_postBytes)
            mstore(tempBytes, add(length, mload(tempBytes)))

        // Move the memory counter back from a multiple of 0x20 to the
        // actual end of the _preBytes data.
            mc := end
        // Stop copying when the memory counter reaches the new combined
        // length of the arrays.
            end := add(mc, length)

            for {
                let cc := add(_postBytes, 0x20)
            } lt(mc, end) {
                mc := add(mc, 0x20)
                cc := add(cc, 0x20)
            } {
                mstore(mc, mload(cc))
            }

        // Update the free-memory pointer by padding our last write location
        // to 32 bytes: add 31 bytes to the end of tempBytes to move to the
        // next 32 byte block, then round down to the nearest multiple of
        // 32. If the sum of the length of the two arrays is zero then add
        // one before rounding down to leave a blank 32 bytes (the length block with 0).
            mstore(0x40, and(
            add(add(end, iszero(add(length, mload(_preBytes)))), 31),
            not(31) // Round down to the nearest 32 bytes.
            ))
        }

        return tempBytes;
    }

    function concatStorage(bytes storage _preBytes, bytes memory _postBytes) internal {
        assembly {
        // Read the first 32 bytes of _preBytes storage, which is the length
        // of the array. (We don't need to use the offset into the slot
        // because arrays use the entire slot.)
            let fslot := sload(_preBytes.slot)
        // Arrays of 31 bytes or less have an even value in their slot,
        // while longer arrays have an odd value. The actual length is
        // the slot divided by two for odd values, and the lowest order
        // byte divided by two for even values.
        // If the slot is even, bitwise and the slot with 255 and divide by
        // two to get the length. If the slot is odd, bitwise and the slot
        // with -1 and divide by two.
            let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)
            let mlength := mload(_postBytes)
            let newlength := add(slength, mlength)
        // slength can contain both the length and contents of the array
        // if length < 32 bytes so let's prepare for that
        // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage
            switch add(lt(slength, 32), lt(newlength, 32))
            case 2 {
            // Since the new array still fits in the slot, we just need to
            // update the contents of the slot.
            // uint256(bytes_storage) = uint256(bytes_storage) + uint256(bytes_memory) + new_length
                sstore(
                _preBytes.slot,
                // all the modifications to the slot are inside this
                // next block
                add(
                // we can just add to the slot contents because the
                // bytes we want to change are the LSBs
                fslot,
                add(
                mul(
                div(
                // load the bytes from memory
                mload(add(_postBytes, 0x20)),
                // zero all bytes to the right
                exp(0x100, sub(32, mlength))
                ),
                // and now shift left the number of bytes to
                // leave space for the length in the slot
                exp(0x100, sub(32, newlength))
                ),
                // increase length by the double of the memory
                // bytes length
                mul(mlength, 2)
                )
                )
                )
            }
            case 1 {
            // The stored value fits in the slot, but the combined value
            // will exceed it.
            // get the keccak hash to get the contents of the array
                mstore(0x0, _preBytes.slot)
                let sc := add(keccak256(0x0, 0x20), div(slength, 32))

            // save new length
                sstore(_preBytes.slot, add(mul(newlength, 2), 1))

            // The contents of the _postBytes array start 32 bytes into
            // the structure. Our first read should obtain the `submod`
            // bytes that can fit into the unused space in the last word
            // of the stored array. To get this, we read 32 bytes starting
            // from `submod`, so the data we read overlaps with the array
            // contents by `submod` bytes. Masking the lowest-order
            // `submod` bytes allows us to add that value directly to the
            // stored value.

                let submod := sub(32, slength)
                let mc := add(_postBytes, submod)
                let end := add(_postBytes, mlength)
                let mask := sub(exp(0x100, submod), 1)

                sstore(
                sc,
                add(
                and(
                fslot,
                0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00
                ),
                and(mload(mc), mask)
                )
                )

                for {
                    mc := add(mc, 0x20)
                    sc := add(sc, 1)
                } lt(mc, end) {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } {
                    sstore(sc, mload(mc))
                }

                mask := exp(0x100, sub(mc, end))

                sstore(sc, mul(div(mload(mc), mask), mask))
            }
            default {
            // get the keccak hash to get the contents of the array
                mstore(0x0, _preBytes.slot)
            // Start copying to the last used word of the stored array.
                let sc := add(keccak256(0x0, 0x20), div(slength, 32))

            // save new length
                sstore(_preBytes.slot, add(mul(newlength, 2), 1))

            // Copy over the first `submod` bytes of the new data as in
            // case 1 above.
                let slengthmod := mod(slength, 32)
                let mlengthmod := mod(mlength, 32)
                let submod := sub(32, slengthmod)
                let mc := add(_postBytes, submod)
                let end := add(_postBytes, mlength)
                let mask := sub(exp(0x100, submod), 1)

                sstore(sc, add(sload(sc), and(mload(mc), mask)))

                for {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } lt(mc, end) {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } {
                    sstore(sc, mload(mc))
                }

                mask := exp(0x100, sub(mc, end))

                sstore(sc, mul(div(mload(mc), mask), mask))
            }
        }
    }

    function slice(
        bytes memory _bytes,
        uint256 _start,
        uint256 _length
    )
    internal
    pure
    returns (bytes memory)
    {
        require(_length + 31 >= _length, "slice_overflow");
        require(_bytes.length >= _start + _length, "slice_outOfBounds");

        bytes memory tempBytes;

        assembly {
            switch iszero(_length)
            case 0 {
            // Get a location of some free memory and store it in tempBytes as
            // Solidity does for memory variables.
                tempBytes := mload(0x40)

            // The first word of the slice result is potentially a partial
            // word read from the original array. To read it, we calculate
            // the length of that partial word and start copying that many
            // bytes into the array. The first word we copy will start with
            // data we don't care about, but the last `lengthmod` bytes will
            // land at the beginning of the contents of the new array. When
            // we're done copying, we overwrite the full first word with
            // the actual length of the slice.
                let lengthmod := and(_length, 31)

            // The multiplication in the next line is necessary
            // because when slicing multiples of 32 bytes (lengthmod == 0)
            // the following copy loop was copying the origin's length
            // and then ending prematurely not copying everything it should.
                let mc := add(add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod)))
                let end := add(mc, _length)

                for {
                // The multiplication in the next line has the same exact purpose
                // as the one above.
                    let cc := add(add(add(_bytes, lengthmod), mul(0x20, iszero(lengthmod))), _start)
                } lt(mc, end) {
                    mc := add(mc, 0x20)
                    cc := add(cc, 0x20)
                } {
                    mstore(mc, mload(cc))
                }

                mstore(tempBytes, _length)

            //update free-memory pointer
            //allocating the array padded to 32 bytes like the compiler does now
                mstore(0x40, and(add(mc, 31), not(31)))
            }
            //if we want a zero-length slice let's just return a zero-length array
            default {
                tempBytes := mload(0x40)
            //zero out the 32 bytes slice we are about to return
            //we need to do it because Solidity does not garbage collect
                mstore(tempBytes, 0)

                mstore(0x40, add(tempBytes, 0x20))
            }
        }

        return tempBytes;
    }

    function toAddress(bytes memory _bytes, uint256 _start) internal pure returns (address) {
        require(_bytes.length >= _start + 20, "toAddress_outOfBounds");
        address tempAddress;

        assembly {
            tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000)
        }

        return tempAddress;
    }

    function toUint8(bytes memory _bytes, uint256 _start) internal pure returns (uint8) {
        require(_bytes.length >= _start + 1 , "toUint8_outOfBounds");
        uint8 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x1), _start))
        }

        return tempUint;
    }

    function toUint16(bytes memory _bytes, uint256 _start) internal pure returns (uint16) {
        require(_bytes.length >= _start + 2, "toUint16_outOfBounds");
        uint16 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x2), _start))
        }

        return tempUint;
    }

    function toUint32(bytes memory _bytes, uint256 _start) internal pure returns (uint32) {
        require(_bytes.length >= _start + 4, "toUint32_outOfBounds");
        uint32 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x4), _start))
        }

        return tempUint;
    }

    function toUint64(bytes memory _bytes, uint256 _start) internal pure returns (uint64) {
        require(_bytes.length >= _start + 8, "toUint64_outOfBounds");
        uint64 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x8), _start))
        }

        return tempUint;
    }

    function toUint96(bytes memory _bytes, uint256 _start) internal pure returns (uint96) {
        require(_bytes.length >= _start + 12, "toUint96_outOfBounds");
        uint96 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0xc), _start))
        }

        return tempUint;
    }

    function toUint128(bytes memory _bytes, uint256 _start) internal pure returns (uint128) {
        require(_bytes.length >= _start + 16, "toUint128_outOfBounds");
        uint128 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x10), _start))
        }

        return tempUint;
    }

    function toUint256(bytes memory _bytes, uint256 _start) internal pure returns (uint256) {
        require(_bytes.length >= _start + 32, "toUint256_outOfBounds");
        uint256 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x20), _start))
        }

        return tempUint;
    }

    function toBytes32(bytes memory _bytes, uint256 _start) internal pure returns (bytes32) {
        require(_bytes.length >= _start + 32, "toBytes32_outOfBounds");
        bytes32 tempBytes32;

        assembly {
            tempBytes32 := mload(add(add(_bytes, 0x20), _start))
        }

        return tempBytes32;
    }

    function equal(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bool) {
        bool success = true;

        assembly {
            let length := mload(_preBytes)

        // if lengths don't match the arrays are not equal
            switch eq(length, mload(_postBytes))
            case 1 {
            // cb is a circuit breaker in the for loop since there's
            //  no said feature for inline assembly loops
            // cb = 1 - don't breaker
            // cb = 0 - break
                let cb := 1

                let mc := add(_preBytes, 0x20)
                let end := add(mc, length)

                for {
                    let cc := add(_postBytes, 0x20)
                // the next line is the loop condition:
                // while(uint256(mc < end) + cb == 2)
                } eq(add(lt(mc, end), cb), 2) {
                    mc := add(mc, 0x20)
                    cc := add(cc, 0x20)
                } {
                // if any of these checks fails then arrays are not equal
                    if iszero(eq(mload(mc), mload(cc))) {
                    // unsuccess:
                        success := 0
                        cb := 0
                    }
                }
            }
            default {
            // unsuccess:
                success := 0
            }
        }

        return success;
    }

    function equalStorage(
        bytes storage _preBytes,
        bytes memory _postBytes
    )
    internal
    view
    returns (bool)
    {
        bool success = true;

        assembly {
        // we know _preBytes_offset is 0
            let fslot := sload(_preBytes.slot)
        // Decode the length of the stored array like in concatStorage().
            let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)
            let mlength := mload(_postBytes)

        // if lengths don't match the arrays are not equal
            switch eq(slength, mlength)
            case 1 {
            // slength can contain both the length and contents of the array
            // if length < 32 bytes so let's prepare for that
            // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage
                if iszero(iszero(slength)) {
                    switch lt(slength, 32)
                    case 1 {
                    // blank the last byte which is the length
                        fslot := mul(div(fslot, 0x100), 0x100)

                        if iszero(eq(fslot, mload(add(_postBytes, 0x20)))) {
                        // unsuccess:
                            success := 0
                        }
                    }
                    default {
                    // cb is a circuit breaker in the for loop since there's
                    //  no said feature for inline assembly loops
                    // cb = 1 - don't breaker
                    // cb = 0 - break
                        let cb := 1

                    // get the keccak hash to get the contents of the array
                        mstore(0x0, _preBytes.slot)
                        let sc := keccak256(0x0, 0x20)

                        let mc := add(_postBytes, 0x20)
                        let end := add(mc, mlength)

                    // the next line is the loop condition:
                    // while(uint256(mc < end) + cb == 2)
                        for {} eq(add(lt(mc, end), cb), 2) {
                            sc := add(sc, 1)
                            mc := add(mc, 0x20)
                        } {
                            if iszero(eq(sload(sc), mload(mc))) {
                            // unsuccess:
                                success := 0
                                cb := 0
                            }
                        }
                    }
                }
            }
            default {
            // unsuccess:
                success := 0
            }
        }

        return success;
    }
}


// File contracts/lzApp/LzApp.sol

// Original license: SPDX_License_Identifier: MIT

pragma solidity ^0.8.0;





/*
 * a generic LzReceiver implementation
 */
abstract contract LzApp is Ownable, ILayerZeroReceiver, ILayerZeroUserApplicationConfig {
    using BytesLib for bytes;

    // ua can not send payload larger than this by default, but it can be changed by the ua owner
    uint constant public DEFAULT_PAYLOAD_SIZE_LIMIT = 10000;

    ILayerZeroEndpoint public immutable lzEndpoint;
    mapping(uint16 => bytes) public trustedRemoteLookup;
    mapping(uint16 => mapping(uint16 => uint)) public minDstGasLookup;
    mapping(uint16 => uint) public payloadSizeLimitLookup;
    address public precrime;

    event SetPrecrime(address precrime);
    event SetTrustedRemote(uint16 _remoteChainId, bytes _path);
    event SetTrustedRemoteAddress(uint16 _remoteChainId, bytes _remoteAddress);
    event SetMinDstGas(uint16 _dstChainId, uint16 _type, uint _minDstGas);

    constructor(address _endpoint) {
        lzEndpoint = ILayerZeroEndpoint(_endpoint);
    }

    function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) public virtual override {
        // lzReceive must be called by the endpoint for security
        require(_msgSender() == address(lzEndpoint), "LzApp: invalid endpoint caller");

        bytes memory trustedRemote = trustedRemoteLookup[_srcChainId];
        // if will still block the message pathway from (srcChainId, srcAddress). should not receive message from untrusted remote.
        require(_srcAddress.length == trustedRemote.length && trustedRemote.length > 0 && keccak256(_srcAddress) == keccak256(trustedRemote), "LzApp: invalid source sending contract");

        _blockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    // abstract function - the default behaviour of LayerZero is blocking. See: NonblockingLzApp if you dont need to enforce ordered messaging
    function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual;

    function _lzSend(uint16 _dstChainId, bytes memory _payload, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams, uint _nativeFee) internal virtual {
        bytes memory trustedRemote = trustedRemoteLookup[_dstChainId];
        require(trustedRemote.length != 0, "LzApp: destination chain is not a trusted source");
        _checkPayloadSize(_dstChainId, _payload.length);
        lzEndpoint.send{value: _nativeFee}(_dstChainId, trustedRemote, _payload, _refundAddress, _zroPaymentAddress, _adapterParams);
    }

    function _checkGasLimit(uint16 _dstChainId, uint16 _type, bytes memory _adapterParams, uint _extraGas) internal view virtual {
        uint providedGasLimit = _getGasLimit(_adapterParams);
        uint minGasLimit = minDstGasLookup[_dstChainId][_type] + _extraGas;
        require(minGasLimit > 0, "LzApp: minGasLimit not set");
        require(providedGasLimit >= minGasLimit, "LzApp: gas limit is too low");
    }

    function _getGasLimit(bytes memory _adapterParams) internal pure virtual returns (uint gasLimit) {
        require(_adapterParams.length >= 34, "LzApp: invalid adapterParams");
        assembly {
            gasLimit := mload(add(_adapterParams, 34))
        }
    }

    function _checkPayloadSize(uint16 _dstChainId, uint _payloadSize) internal view virtual {
        uint payloadSizeLimit = payloadSizeLimitLookup[_dstChainId];
        if (payloadSizeLimit == 0) { // use default if not set
            payloadSizeLimit = DEFAULT_PAYLOAD_SIZE_LIMIT;
        }
        require(_payloadSize <= payloadSizeLimit, "LzApp: payload size is too large");
    }

    //---------------------------UserApplication config----------------------------------------
    function getConfig(uint16 _version, uint16 _chainId, address, uint _configType) external view returns (bytes memory) {
        return lzEndpoint.getConfig(_version, _chainId, address(this), _configType);
    }

    // generic config for LayerZero user Application
    function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external override onlyOwner {
        lzEndpoint.setConfig(_version, _chainId, _configType, _config);
    }

    function setSendVersion(uint16 _version) external override onlyOwner {
        lzEndpoint.setSendVersion(_version);
    }

    function setReceiveVersion(uint16 _version) external override onlyOwner {
        lzEndpoint.setReceiveVersion(_version);
    }

    function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external override onlyOwner {
        lzEndpoint.forceResumeReceive(_srcChainId, _srcAddress);
    }

    // _path = abi.encodePacked(remoteAddress, localAddress)
    // this function set the trusted path for the cross-chain communication
    function setTrustedRemote(uint16 _srcChainId, bytes calldata _path) external onlyOwner {
        trustedRemoteLookup[_srcChainId] = _path;
        emit SetTrustedRemote(_srcChainId, _path);
    }

    function setTrustedRemoteAddress(uint16 _remoteChainId, bytes calldata _remoteAddress) external onlyOwner {
        trustedRemoteLookup[_remoteChainId] = abi.encodePacked(_remoteAddress, address(this));
        emit SetTrustedRemoteAddress(_remoteChainId, _remoteAddress);
    }

    function getTrustedRemoteAddress(uint16 _remoteChainId) external view returns (bytes memory) {
        bytes memory path = trustedRemoteLookup[_remoteChainId];
        require(path.length != 0, "LzApp: no trusted path record");
        return path.slice(0, path.length - 20); // the last 20 bytes should be address(this)
    }

    function setPrecrime(address _precrime) external onlyOwner {
        precrime = _precrime;
        emit SetPrecrime(_precrime);
    }

    function setMinDstGas(uint16 _dstChainId, uint16 _packetType, uint _minGas) external onlyOwner {
        require(_minGas > 0, "LzApp: invalid minGas");
        minDstGasLookup[_dstChainId][_packetType] = _minGas;
        emit SetMinDstGas(_dstChainId, _packetType, _minGas);
    }

    // if the size is 0, it means default size limit
    function setPayloadSizeLimit(uint16 _dstChainId, uint _size) external onlyOwner {
        payloadSizeLimitLookup[_dstChainId] = _size;
    }

    //--------------------------- VIEW FUNCTION ----------------------------------------
    function isTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool) {
        bytes memory trustedSource = trustedRemoteLookup[_srcChainId];
        return keccak256(trustedSource) == keccak256(_srcAddress);
    }
}


// File contracts/util/ExcessivelySafeCall.sol

// Original license: SPDX_License_Identifier: MIT
pragma solidity >=0.7.6;

library ExcessivelySafeCall {
    uint256 constant LOW_28_MASK =
    0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff;

    /// @notice Use when you _really_ really _really_ don't trust the called
    /// contract. This prevents the called contract from causing reversion of
    /// the caller in as many ways as we can.
    /// @dev The main difference between this and a solidity low-level call is
    /// that we limit the number of bytes that the callee can cause to be
    /// copied to caller memory. This prevents stupid things like malicious
    /// contracts returning 10,000,000 bytes causing a local OOG when copying
    /// to memory.
    /// @param _target The address to call
    /// @param _gas The amount of gas to forward to the remote contract
    /// @param _maxCopy The maximum number of bytes of returndata to copy
    /// to memory.
    /// @param _calldata The data to send to the remote contract
    /// @return success and returndata, as `.call()`. Returndata is capped to
    /// `_maxCopy` bytes.
    function excessivelySafeCall(
        address _target,
        uint256 _gas,
        uint16 _maxCopy,
        bytes memory _calldata
    ) internal returns (bool, bytes memory) {
        // set up for assembly call
        uint256 _toCopy;
        bool _success;
        bytes memory _returnData = new bytes(_maxCopy);
        // dispatch message to recipient
        // by assembly calling "handle" function
        // we call via assembly to avoid memcopying a very large returndata
        // returned by a malicious contract
        assembly {
            _success := call(
            _gas, // gas
            _target, // recipient
            0, // ether value
            add(_calldata, 0x20), // inloc
            mload(_calldata), // inlen
            0, // outloc
            0 // outlen
            )
        // limit our copy to 256 bytes
            _toCopy := returndatasize()
            if gt(_toCopy, _maxCopy) {
                _toCopy := _maxCopy
            }
        // Store the length of the copied bytes
            mstore(_returnData, _toCopy)
        // copy the bytes from returndata[0:_toCopy]
            returndatacopy(add(_returnData, 0x20), 0, _toCopy)
        }
        return (_success, _returnData);
    }

    /// @notice Use when you _really_ really _really_ don't trust the called
    /// contract. This prevents the called contract from causing reversion of
    /// the caller in as many ways as we can.
    /// @dev The main difference between this and a solidity low-level call is
    /// that we limit the number of bytes that the callee can cause to be
    /// copied to caller memory. This prevents stupid things like malicious
    /// contracts returning 10,000,000 bytes causing a local OOG when copying
    /// to memory.
    /// @param _target The address to call
    /// @param _gas The amount of gas to forward to the remote contract
    /// @param _maxCopy The maximum number of bytes of returndata to copy
    /// to memory.
    /// @param _calldata The data to send to the remote contract
    /// @return success and returndata, as `.call()`. Returndata is capped to
    /// `_maxCopy` bytes.
    function excessivelySafeStaticCall(
        address _target,
        uint256 _gas,
        uint16 _maxCopy,
        bytes memory _calldata
    ) internal view returns (bool, bytes memory) {
        // set up for assembly call
        uint256 _toCopy;
        bool _success;
        bytes memory _returnData = new bytes(_maxCopy);
        // dispatch message to recipient
        // by assembly calling "handle" function
        // we call via assembly to avoid memcopying a very large returndata
        // returned by a malicious contract
        assembly {
            _success := staticcall(
            _gas, // gas
            _target, // recipient
            add(_calldata, 0x20), // inloc
            mload(_calldata), // inlen
            0, // outloc
            0 // outlen
            )
        // limit our copy to 256 bytes
            _toCopy := returndatasize()
            if gt(_toCopy, _maxCopy) {
                _toCopy := _maxCopy
            }
        // Store the length of the copied bytes
            mstore(_returnData, _toCopy)
        // copy the bytes from returndata[0:_toCopy]
            returndatacopy(add(_returnData, 0x20), 0, _toCopy)
        }
        return (_success, _returnData);
    }

    /**
     * @notice Swaps function selectors in encoded contract calls
     * @dev Allows reuse of encoded calldata for functions with identical
     * argument types but different names. It simply swaps out the first 4 bytes
     * for the new selector. This function modifies memory in place, and should
     * only be used with caution.
     * @param _newSelector The new 4-byte selector
     * @param _buf The encoded contract args
     */
    function swapSelector(bytes4 _newSelector, bytes memory _buf)
    internal
    pure
    {
        require(_buf.length >= 4);
        uint256 _mask = LOW_28_MASK;
        assembly {
        // load the first word of
            let _word := mload(add(_buf, 0x20))
        // mask out the top 4 bytes
        // /x
            _word := and(_word, _mask)
            _word := or(_newSelector, _word)
            mstore(add(_buf, 0x20), _word)
        }
    }
}


// File contracts/lzApp/NonblockingLzApp.sol

// Original license: SPDX_License_Identifier: MIT

pragma solidity ^0.8.0;


/*
 * the default LayerZero messaging behaviour is blocking, i.e. any failed message will block the channel
 * this abstract class try-catch all fail messages and store locally for future retry. hence, non-blocking
 * NOTE: if the srcAddress is not configured properly, it will still block the message pathway from (srcChainId, srcAddress)
 */
abstract contract NonblockingLzApp is LzApp {
    using ExcessivelySafeCall for address;

    constructor(address _endpoint) LzApp(_endpoint) {}

    mapping(uint16 => mapping(bytes => mapping(uint64 => bytes32))) public failedMessages;

    event MessageFailed(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload, bytes _reason);
    event RetryMessageSuccess(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes32 _payloadHash);

    // overriding the virtual function in LzReceiver
    function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override {
        (bool success, bytes memory reason) = address(this).excessivelySafeCall(gasleft(), 150, abi.encodeWithSelector(this.nonblockingLzReceive.selector, _srcChainId, _srcAddress, _nonce, _payload));
        // try-catch all errors/exceptions
        if (!success) {
            _storeFailedMessage(_srcChainId, _srcAddress, _nonce, _payload, reason);
        }
    }

    function _storeFailedMessage(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload, bytes memory _reason) internal virtual {
        failedMessages[_srcChainId][_srcAddress][_nonce] = keccak256(_payload);
        emit MessageFailed(_srcChainId, _srcAddress, _nonce, _payload, _reason);
    }

    function nonblockingLzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) public virtual {
        // only internal transaction
        require(_msgSender() == address(this), "NonblockingLzApp: caller must be LzApp");
        _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    //@notice override this function
    function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual;

    function retryMessage(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) public payable virtual {
        // assert there is message to retry
        bytes32 payloadHash = failedMessages[_srcChainId][_srcAddress][_nonce];
        require(payloadHash != bytes32(0), "NonblockingLzApp: no stored message");
        require(keccak256(_payload) == payloadHash, "NonblockingLzApp: invalid payload");
        // clear the stored message
        failedMessages[_srcChainId][_srcAddress][_nonce] = bytes32(0);
        // execute the message. revert if it fails again
        _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
        emit RetryMessageSuccess(_srcChainId, _srcAddress, _nonce, payloadHash);
    }
}


// File contracts/token/oft/IOFTCore.sol

// Original license: SPDX_License_Identifier: MIT

pragma solidity >=0.5.0;

/**
 * @dev Interface of the IOFT core standard
 */
interface IOFTCore is IERC165 {
    /**
     * @dev estimate send token `_tokenId` to (`_dstChainId`, `_toAddress`)
     * _dstChainId - L0 defined chain id to send tokens too
     * _toAddress - dynamic bytes array which contains the address to whom you are sending tokens to on the dstChain
     * _amount - amount of the tokens to transfer
     * _useZro - indicates to use zro to pay L0 fees
     * _adapterParam - flexible bytes array to indicate messaging adapter services in L0
     */
    function estimateSendFee(uint16 _dstChainId, bytes calldata _toAddress, uint _amount, bool _useZro, bytes calldata _adapterParams) external view returns (uint nativeFee, uint zroFee);

    /**
     * @dev send `_amount` amount of token to (`_dstChainId`, `_toAddress`) from `_from`
     * `_from` the owner of token
     * `_dstChainId` the destination chain identifier
     * `_toAddress` can be any size depending on the `dstChainId`.
     * `_amount` the quantity of tokens in wei
     * `_refundAddress` the address LayerZero refunds if too much message fee is sent
     * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token)
     * `_adapterParams` is a flexible bytes array to indicate messaging adapter services
     */
    function sendFrom(address _from, uint16 _dstChainId, bytes calldata _toAddress, uint _amount, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable;

    /**
     * @dev returns the circulating amount of tokens on current chain
     */
    function circulatingSupply() external view returns (uint);

    /**
     * @dev returns the address of the ERC20 token
     */
    function token() external view returns (address);

    /**
     * @dev Emitted when `_amount` tokens are moved from the `_sender` to (`_dstChainId`, `_toAddress`)
     * `_nonce` is the outbound nonce
     */
    event SendToChain(uint16 indexed _dstChainId, address indexed _from, bytes _toAddress, uint _amount, uint _timeStamp, bytes32 _data);

    /**
     * @dev Emitted when `_amount` tokens are received from `_srcChainId` into the `_toAddress` on the local chain.
     * `_nonce` is the inbound nonce.
     */
    event ReceiveFromChain(uint16 indexed _srcChainId, address indexed _to, uint _amount, uint _timeStamp, bytes32 _data);

    /*
    SendToken( token,  from,  to,  amount, data, timeStamp ) 
    ReceiveToken( token, to, amount, data, timeStamp)
    WrapToken( localToken, remoteToken, remoteChainId, to, amount, data, timeStamp)  
    UnwrapToken( localToken, remoteToken, remoteChainId, from, to, amount, data, timeStamp)
    */
    event SetUseCustomAdapterParams(bool _useCustomAdapterParams);
}


// File contracts/token/oft/IOFT.sol

// Original license: SPDX_License_Identifier: MIT

pragma solidity >=0.5.0;


/**
 * @dev Interface of the OFT standard
 */
interface IOFT is IOFTCore, IERC20 {

}


// File contracts/token/oft/OFTCore.sol

// Original license: SPDX_License_Identifier: MIT

pragma solidity ^0.8.0;



abstract contract OFTCore is NonblockingLzApp, ERC165, IOFTCore {
    using BytesLib for bytes;

    uint public constant NO_EXTRA_GAS = 0;

    // packet type
    uint16 public constant PT_SEND = 0;

    bool public useCustomAdapterParams;

    constructor(address _lzEndpoint) NonblockingLzApp(_lzEndpoint) {}

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return interfaceId == type(IOFTCore).interfaceId || super.supportsInterface(interfaceId);
    }

    function estimateSendFee(uint16 _dstChainId, bytes calldata _toAddress, uint _amount, bool _useZro, bytes calldata _adapterParams) public view virtual override returns (uint nativeFee, uint zroFee) {
        // mock the payload for sendFrom()
        bytes memory payload = abi.encode(PT_SEND, _toAddress, _amount);
        return lzEndpoint.estimateFees(_dstChainId, address(this), payload, _useZro, _adapterParams);
    }

    function sendFrom(address _from, uint16 _dstChainId, bytes calldata _toAddress, uint _amount, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) public payable virtual override {
        _send(_from, _dstChainId, _toAddress, _amount, _refundAddress, _zroPaymentAddress, _adapterParams);
    }

    function setUseCustomAdapterParams(bool _useCustomAdapterParams) public virtual onlyOwner {
        useCustomAdapterParams = _useCustomAdapterParams;
        emit SetUseCustomAdapterParams(_useCustomAdapterParams);
    }

    function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override {
        uint16 packetType;
        assembly {
            packetType := mload(add(_payload, 32))
        }

        if (packetType == PT_SEND) {
            _sendAck(_srcChainId, _srcAddress, _nonce, _payload);
        } else {
            revert("OFTCore: unknown packet type");
        }
    }

    function _send(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _amount, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) internal virtual {
        _checkAdapterParams(_dstChainId, PT_SEND, _adapterParams, NO_EXTRA_GAS);

        uint amount = _debitFrom(_from, _dstChainId, _toAddress, _amount);
        bytes32 data = keccak256(abi.encodePacked(_from, _toAddress, _amount, block.timestamp));
        bytes memory lzPayload = abi.encode(PT_SEND, _toAddress, amount, data);
        _lzSend(_dstChainId, lzPayload, _refundAddress, _zroPaymentAddress, _adapterParams, msg.value);
        
        emit SendToChain(_dstChainId, _from, _toAddress, amount, block.timestamp, data);
    }

    function _sendAck(uint16 _srcChainId, bytes memory, uint64, bytes memory _payload) internal virtual {
        (, bytes memory toAddressBytes, uint amount, bytes32 data) = abi.decode(_payload, (uint16, bytes, uint, bytes32));

        address to = toAddressBytes.toAddress(0);

        amount = _creditTo(_srcChainId, to, amount);
        emit ReceiveFromChain(_srcChainId, to, amount, block.timestamp, data);
    }

    function _checkAdapterParams(uint16 _dstChainId, uint16 _pkType, bytes memory _adapterParams, uint _extraGas) internal virtual {
        if (useCustomAdapterParams) {
            _checkGasLimit(_dstChainId, _pkType, _adapterParams, _extraGas);
        } else {
            require(_adapterParams.length == 0, "OFTCore: _adapterParams must be empty.");
        }
    }

    function _debitFrom(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _amount) internal virtual returns(uint);

    function _creditTo(uint16 _srcChainId, address _toAddress, uint _amount) internal virtual returns(uint);
}


// File contracts/token/oft/OFT.sol

// Original license: SPDX_License_Identifier: MIT

pragma solidity ^0.8.0;




// override decimal() function is needed
contract OFT is OFTCore, ERC20, IOFT {
    constructor(string memory _name, string memory _symbol, address _lzEndpoint) ERC20(_name, _symbol) OFTCore(_lzEndpoint) {}

    function supportsInterface(bytes4 interfaceId) public view virtual override(OFTCore, IERC165) returns (bool) {
        return interfaceId == type(IOFT).interfaceId || interfaceId == type(IERC20).interfaceId || super.supportsInterface(interfaceId);
    }

    function token() public view virtual override returns (address) {
        return address(this);
    }

    function circulatingSupply() public view virtual override returns (uint) {
        return totalSupply();
    }

    function _debitFrom(address _from, uint16, bytes memory, uint _amount) internal virtual override returns(uint) {
        address spender = _msgSender();
        if (_from != spender) _spendAllowance(_from, spender, _amount);
        _burn(_from, _amount);
        return _amount;
    }

    function _creditTo(uint16, address _toAddress, uint _amount) internal virtual override returns(uint) {
        _mint(_toAddress, _amount);
        return _amount;
    }
}


// File contracts/token/oft/extension/BasedOFT.sol

// Original license: SPDX_License_Identifier: MIT

pragma solidity ^0.8.0;

contract BasedOFT is OFT {
    constructor(string memory _name, string memory _symbol, address _lzEndpoint) OFT(_name, _symbol, _lzEndpoint) {}

    function circulatingSupply() public view virtual override returns (uint) {
        unchecked {
            return totalSupply() - balanceOf(address(this));
        }
    }

    function _debitFrom(address _from, uint16, bytes memory, uint _amount) internal virtual override returns(uint) {
        address spender = _msgSender();
        if (_from != spender) _spendAllowance(_from, spender, _amount);
        _transfer(_from, address(this), _amount);
        return _amount;
    }

    function _creditTo(uint16, address _toAddress, uint _amount) internal virtual override returns(uint) {
        _transfer(address(this), _toAddress, _amount);
        return _amount;
    }
}


// File contracts/token/oft/extension/AITBasedOFT.sol

// Original license: SPDX_License_Identifier: MIT

pragma solidity ^0.8.0;

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

    function WETH() external pure returns (address);
    function WBNB() external pure returns (address);

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

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

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

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

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

interface IDEXFactory {
    function createPair(address tokenA, address tokenB)
        external
        returns (address pair);
}

/// @title A LayerZero OmnichainFungibleToken example of BasedOFT
/// @notice Use this contract only on the BASE CHAIN. It locks tokens on source, on outgoing send(), and unlocks tokens when receiving from other chains.
contract AITMainToken is BasedOFT {

    uint256 public firstTransactionTime;
    uint256 public constant MAX = 2**128;
    address public TreasuryReceiver;
    address constant public DEAD = 0x000000000000000000000000000000000000dEaD;
    bool public feeStatus = false;
    address[] public _markerPairs;
    mapping(address => bool) public lpPairs;
    mapping(address => bool) _isFeeExempt;

    struct Fees {
        uint16 buyFee;
        uint16 sellFee;
    }

    Fees public _taxRates = Fees({
        buyFee: 400,
        sellFee: 400
    });

    Fees public _taxRatesFirstDay = Fees({
        buyFee: 400,
        sellFee: 1000
    });

    uint256 constant public maxBuyTaxes = 2000;
    uint256 constant public maxSellTaxes = 2000;
    uint256 constant masterTaxDivisor = 10000;

    constructor(address _router, address _lzEndpoint, address _treasuryReceiver) BasedOFT("AIT Protocol", "AIT", _lzEndpoint){
        IDEXRouter router = IDEXRouter(_router);
        address pair = IDEXFactory(router.factory()).createPair(router.WETH(), address(this));
        lpPairs[pair] = true;
        _approve(address(this), address(router), MAX);
        _approve(address(this), address(this), MAX);

        TreasuryReceiver = _treasuryReceiver;
        _isFeeExempt[TreasuryReceiver] = true;
        _isFeeExempt[address(this)] = true;
        _isFeeExempt[msg.sender] = true;
        _isFeeExempt[DEAD] = true;

        _mint(_msgSender(), 1000000000*1e18);

    }

    function changeTreasuryReceiver(address _treasury) external onlyOwner(){
        TreasuryReceiver = _treasury;
        emit ChangeTreasuryReceiver(_treasury);
    }

    function changeFeeStatus(bool _status) external onlyOwner(){
        feeStatus = _status;
        emit ChangeFeeStatus(_status);
    }

    function setExcludedFees(address account, bool enabled) public onlyOwner() {
        _isFeeExempt[account] = enabled;
    }

    function setTaxes(uint16 buyFee, uint16 sellFee) external onlyOwner() {
        require(buyFee <= maxBuyTaxes && sellFee <= maxSellTaxes, "Cannot exceed maximums.");
        _taxRates.buyFee = buyFee;
        _taxRates.sellFee = sellFee;
        emit SetTaxes(buyFee, sellFee);
    }

    function setTaxesFirstDay(uint16 buyFee, uint16 sellFee) external onlyOwner() {
        require(buyFee <= maxBuyTaxes && sellFee <= maxSellTaxes, "Cannot exceed maximums.");
        _taxRatesFirstDay.buyFee = buyFee;
        _taxRatesFirstDay.sellFee = sellFee;
        emit SetTaxesFirstDay(buyFee, sellFee);
    }

    function setLpPair(address pair, bool enabled) external onlyOwner() {
        if (!enabled) {
            lpPairs[pair] = false;
        } else {
            require(!lpPairs[pair], "Pair already added to list.");
            lpPairs[pair] = true;
        }
    }

    function isExcludedFees(address account) external view returns(bool) {
        return _isFeeExempt[account];
    }

    function getTaxRate(bool _status) internal view returns(uint256){
        // buy : true , sell : false
        uint256 tax = 0;
        uint256 durationTime = block.timestamp - firstTransactionTime;

        if(durationTime < 20 && firstTransactionTime != 0){
            tax = 4000;
        }

        if(durationTime >= 20 && durationTime < 40 && firstTransactionTime != 0){
            tax = 2000;
        }

        if(durationTime >= 40 && durationTime < 86400 && firstTransactionTime != 0){
            tax = _status ? _taxRatesFirstDay.buyFee : _taxRatesFirstDay.sellFee;
        }
        
        if(durationTime >= 86400  && firstTransactionTime != 0 ){
            tax = _status ? _taxRates.buyFee : _taxRates.sellFee;
        }
        return tax;
    }

    function takeFee(address sender, address recipient, uint256 amount) internal view returns (uint256) {
        uint256 fee = 0;

        if(lpPairs[recipient]){
            // SELL
            fee = amount * getTaxRate(false) / masterTaxDivisor;
        }

        if(lpPairs[sender]){
            // BUY
            fee = amount * getTaxRate(true) / masterTaxDivisor;
        }

        if(_isFeeExempt[sender] || _isFeeExempt[recipient] || feeStatus){
            fee = 0;
        }

        return fee;
    }

    
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override(ERC20) {
        uint256 amountFee = takeFee(from, to, amount);

        if(amountFee > 0){
            super._transfer(from, TreasuryReceiver, amountFee);
        }

        super._transfer(from, to, (amount - amountFee));

        if(lpPairs[to] && firstTransactionTime == 0){
            firstTransactionTime = block.timestamp;
        }
    }

    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
    event ChangeTreasuryReceiver(address treasury);
    event ChangeFeeStatus(bool status);
    event SetTaxes(uint16 buyFee, uint16 sellFee);
    event SetTaxesFirstDay(uint16 buyFee, uint16 sellFee);
    receive() external payable {}
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_lzEndpoint","type":"address"},{"internalType":"address","name":"_treasuryReceiver","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":false,"internalType":"bool","name":"status","type":"bool"}],"name":"ChangeFeeStatus","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"treasury","type":"address"}],"name":"ChangeTreasuryReceiver","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"_payload","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"_reason","type":"bytes"}],"name":"MessageFailed","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":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_timeStamp","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"_data","type":"bytes32"}],"name":"ReceiveFromChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"},{"indexed":false,"internalType":"bytes32","name":"_payloadHash","type":"bytes32"}],"name":"RetryMessageSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"bytes","name":"_toAddress","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_timeStamp","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"_data","type":"bytes32"}],"name":"SendToChain","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":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"_type","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"_minDstGas","type":"uint256"}],"name":"SetMinDstGas","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"precrime","type":"address"}],"name":"SetPrecrime","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"buyFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"sellFee","type":"uint16"}],"name":"SetTaxes","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"buyFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"sellFee","type":"uint16"}],"name":"SetTaxesFirstDay","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_path","type":"bytes"}],"name":"SetTrustedRemote","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_remoteAddress","type":"bytes"}],"name":"SetTrustedRemoteAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_useCustomAdapterParams","type":"bool"}],"name":"SetUseCustomAdapterParams","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":"DEAD","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_PAYLOAD_SIZE_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NO_EXTRA_GAS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PT_SEND","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TreasuryReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_markerPairs","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_taxRates","outputs":[{"internalType":"uint16","name":"buyFee","type":"uint16"},{"internalType":"uint16","name":"sellFee","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_taxRatesFirstDay","outputs":[{"internalType":"uint16","name":"buyFee","type":"uint16"},{"internalType":"uint16","name":"sellFee","type":"uint16"}],"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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"changeFeeStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"changeTreasuryReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"circulatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_useZro","type":"bool"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"estimateSendFee","outputs":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"zroFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint64","name":"","type":"uint64"}],"name":"failedMessages","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstTransactionTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"forceResumeReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"_configType","type":"uint256"}],"name":"getConfig","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_remoteChainId","type":"uint16"}],"name":"getTrustedRemoteAddress","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"isTrustedRemote","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lpPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lzEndpoint","outputs":[{"internalType":"contract ILayerZeroEndpoint","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxBuyTaxes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSellTaxes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint16","name":"","type":"uint16"}],"name":"minDstGasLookup","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"nonblockingLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"payloadSizeLimitLookup","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"precrime","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"retryMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"address","name":"_zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"sendFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"uint256","name":"_configType","type":"uint256"},{"internalType":"bytes","name":"_config","type":"bytes"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setExcludedFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setLpPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"uint16","name":"_packetType","type":"uint16"},{"internalType":"uint256","name":"_minGas","type":"uint256"}],"name":"setMinDstGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"uint256","name":"_size","type":"uint256"}],"name":"setPayloadSizeLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_precrime","type":"address"}],"name":"setPrecrime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setReceiveVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setSendVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"buyFee","type":"uint16"},{"internalType":"uint16","name":"sellFee","type":"uint16"}],"name":"setTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"buyFee","type":"uint16"},{"internalType":"uint16","name":"sellFee","type":"uint16"}],"name":"setTaxesFirstDay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_path","type":"bytes"}],"name":"setTrustedRemote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"internalType":"bytes","name":"_remoteAddress","type":"bytes"}],"name":"setTrustedRemoteAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_useCustomAdapterParams","type":"bool"}],"name":"setUseCustomAdapterParams","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","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":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"trustedRemoteLookup","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"useCustomAdapterParams","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a0604081815234620007045760608262003f8c80380380916200002482856200073b565b83398101031262000704576200003a826200075f565b916020906200005883620000508484016200075f565b92016200075f565b835194620000668662000709565b600c86526b10525508141c9bdd1bd8dbdb60a21b848701528451906200008c8262000709565b600382526210525560ea1b8583015260008054336001600160a01b031980831682178455929692936001600160a01b0393909284929083167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08a80a3166080528851936001600160401b0390818611620006f057600a54956001968781811c91168015620006e5575b8b821014620005d8578a9b9c8a9b8392601f809d8183116200068b575b92505050508c908b831160011462000617578c926200060b575b5050600019600383901b1c191690871b17600a555b8051918211620005f757600b548681811c91168015620005ec575b8b821014620005d857908189869594931162000580575b508a9089831160011462000516578a9190836200050a575b5050600019600383901b1c191690861b17600b555b60ff60a01b19600d5416600d556303e801908a6103e88b808351620001e58162000709565b610190918183809352015263ffffffff199363019001908560115416176011555190620002128262000709565b8152015260125416176012551693885163c45a015560e01b81528881600481895afa9081156200046a578891620004cd575b5089516315ab88c960e31b815289816004818a5afa908115620004c3578a918a8d8793829362000474575b509083604493925196879586946364e329cb60e11b8652166004850152306024850152165af19081156200046a57908391899162000426575b50168752600f8852620002cb8988209560ff199686888254161790553062000774565b620002d7303062000774565b168091600d541617600d5584526010855285842081838254161790553084528584208183825416179055338452858420818382541617905561dead8452858420918254161790553315620003e45750600954916b033b2e3c9fd0803ce800000092838101809111620003d057907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef916009553383526007815284832084815401905584519384523393a35161370d90816200087f82396080518181816104bf015281816107ff0152818161092301528181610ce401528181611cc701528181611e080152818161249801528181612cde0152612f0c0152f35b634e487b7160e01b83526011600452602483fd5b9050606492519162461bcd60e51b8352600483015260248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152fd5b8092508a8092503d831162000462575b6200044281836200073b565b810103126200045e576200045783916200075f565b38620002a8565b8780fd5b503d62000436565b8a513d8a823e3d90fd5b94935050505081813d8311620004bb575b6200049181836200073b565b81010312620004b7578360448c8b83620004ac8f966200075f565b93509190916200026f565b8880fd5b503d62000485565b8b513d8b823e3d90fd5b90508881813d831162000502575b620004e781836200073b565b810103126200045e57620004fb906200075f565b3862000244565b503d620004db565b015190503880620001ab565b600b8b528b8b208893929091601f1984168d8f5b8282106200056557505084116200054b575b505050811b01600b55620001c0565b015160001960f88460031b161c191690553880806200053c565b8484015186558a99508c979095019493840193018f6200052a565b9091929350600b8a528a8a208980850160051c8201928d8610620005ce575b9189918897969594930160051c01915b828110620005bf57505062000193565b8c8155879650899101620005af565b925081926200059f565b634e487b7160e01b8a52602260045260248afd5b90607f16906200017c565b634e487b7160e01b89526041600452602489fd5b0151905038806200014c565b899350908c918e601f19851690600a855280852094905b8282106200066957505084116200064f575b505050811b01600a5562000161565b015160001960f88460031b161c1916905538808062000640565b91929395968291958786015181550195019301908f918c96959493926200062e565b83949550600a819492939452209181860160051c8301938610620006db575b918b91869594930160051c01915b828110620006cc57508e91508c8e62000132565b8e81558594508b9101620006b8565b92508192620006aa565b90607f169062000115565b634e487b7160e01b88526041600452602488fd5b600080fd5b604081019081106001600160401b038211176200072557604052565b634e487b7160e01b600052604160045260246000fd5b601f909101601f19168101906001600160401b038211908210176200072557604052565b51906001600160a01b03821682036200070457565b6001600160a01b039081169182156200082d5716908115620007dd578060005260086020526040600020826000526020527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020600160801b80604060002055604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fdfe6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c80621d35671461040057806301ffc9a7146103fb57806303fd2a45146103f6578063069d955f146103f157806306fdde03146103ec57806307e0db17146103e7578063095ea7b3146103e25780630df37483146103dd57806310ddb137146103d857806318160ddd146103d357806323b872dd146103ce5780632a205e3d146103c95780632b28fc7a1461031f5780632b7f29fa146103c4578063313ce567146103bf57806339509351146103ba5780633d8b38f6146103b55780633f0fb380146103b05780633f1f4fa4146103ab57806342d65a8d146103a657806343cc8c2a146103a1578063447705151461039c5780634c42899a1461039c5780634e221c271461039757806351905636146103925780635b8c41e61461038d5780635f8553e71461038857806366ad5c8a146103835780636db41ce91461037e578063705285141461037957806370a0823114610374578063715018a61461036f5780637533d7881461036a578063800cee511461036557806380c581d1146103605780638cfd8f5c1461035b5780638da5cb5b146103565780639358928b14610351578063950c8a741461034c578063958f97351461034757806395d89b41146103425780639e7bd5251461033d5780639f38369a14610338578063a457c2d714610333578063a6c3d1651461032e578063a9059cbb14610329578063b353aaa714610324578063b3d514fb1461031f578063baf3292d1461031a578063c446183414610315578063c95d83ee14610310578063cbed8b9c1461030b578063d1deba1f14610306578063d49d518114610301578063dd62ed3e146102fc578063df2a5b3b146102f7578063e1d5584c146102f2578063eab45d9c146102ed578063eb8d72b7146102e8578063ed629c5c146102e3578063f2fde38b146102de578063f5ecbdbc146102d95763fc0c546a0361000e57612502565b61242e565b612367565b612344565b6121fa565b61219c565b612141565b612054565b611ffa565b611fda565b611ea0565b611db4565b611d83565b611d66565b611cf6565b610a85565b611cb1565b611c87565b611b04565b611a46565b6119a3565b61193b565b611894565b61186e565b611845565b611817565b6117ee565b6117ae565b6116cf565b6116a6565b61164f565b611507565b6114ca565b611439565b6113e2565b611259565b6111e9565b61113d565b610deb565b610da9565b610d8d565b610d4b565b610cca565b610c91565b610c73565b610c17565b610b83565b610b67565b610ac7565b610a00565b6109a2565b610984565b6108fa565b6108bb565b610886565b6107d6565b6106f5565b610664565b610647565b6105bc565b6104a8565b61ffff81160361041157565b600080fd5b9181601f84011215610411578235916001600160401b038311610411576020838186019501011161041157565b9060806003198301126104115760043561045c81610405565b916001600160401b0390602435828111610411578161047d91600401610416565b9390939260443581811681036104115792606435918211610411576104a491600401610416565b9091565b34610411576104b636610443565b929493919291907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633036105775761053c610544926100199761053561051b6105168a61ffff166000526001602052604060002090565b611632565b805190818414918261056d575b508161054a575b50612761565b36916110e0565b9236916110e0565b926129d8565b90506105573684866110e0565b602081519101209060208151910120143861052f565b1515915038610528565b60405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c657200006044820152606490fd5b346104115760203660031901126104115760043563ffffffff60e01b811680910361041157806020911590811561062b575b8115610600575b506040519015158152f35b630a72677560e11b81149150811561061a575b50386105f5565b6301ffc9a760e01b14905038610613565b6336372b0760e01b811491506105ee565b600091031261041157565b3461041157600036600319011261041157602060405161dead8152f35b34610411576000366003190112610411576011546040805161ffff808416825260109390931c909216602083015290f35b0390f35b60005b8381106106ac5750506000910152565b818101518382015260200161069c565b906020916106d581518092818552858086019101610699565b601f01601f1916010190565b9060206106f29281815201906106bc565b90565b34610411576000806003193601126107d3576040519080600a5461071881611562565b808552916001918083169081156107a9575060011461074e575b61069585610742818703826110a4565b604051918291826106e1565b9250600a83527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a85b82841061079157505050810160200161074282610695610732565b80546020858701810191909152909301928101610776565b8695506106959693506020925061074294915060ff191682840152151560051b8201019293610732565b80fd5b3461041157600060203660031901126107d3576004356107f581610405565b6107fd61251d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316908290823b1561087157602461ffff918360405195869485936307e0db1760e01b85521660048401525af1801561086c57610860575080f35b61086990611071565b80f35b612823565b5080fd5b6001600160a01b0381160361041157565b34610411576040366003190112610411576108b06004356108a681610875565b6024359033612599565b602060405160018152f35b346104115760403660031901126104115761ffff6004356108db81610405565b6108e361251d565b166000526003602052602435604060002055600080f35b3461041157600060203660031901126107d35760043561091981610405565b61092161251d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316908290823b1561087157602461ffff918360405195869485936310ddb13760e01b85521660048401525af1801561086c57610860575080f35b34610411576000366003190112610411576020600954604051908152f35b34610411576060366003190112610411576108b06004356109c281610875565b6024356109ce81610875565b604435916109dd8333836126c9565b6131b7565b60243590811515820361041157565b60043590811515820361041157565b346104115760a036600319011261041157600435610a1d81610405565b6001600160401b039060243582811161041157610a3e903690600401610416565b916064359081151582036104115760843594851161041157610a67610a73953690600401610416565b94909360443592612c78565b60408051928352602083019190915290f35b346104115760003660031901126104115760206040516107d08152f35b604090600319011261041157600435610aba81610405565b906024356106f281610405565b34610411577f60efe1e3702c64a1ed1b8d52ed5d4d71b1a990e2654d735810c84eee758c197d610af636610aa2565b90610aff61251d565b61ffff610b1e818316916107d0808411159182610b5a575b505061316b565b6012805463ffffffff1916909117601084901b63ffff0000161790556040805161ffff928316815291909216602082015290819081015b0390a1005b8616111590503880610b17565b3461041157600036600319011261041157602060405160128152f35b3461041157604036600319011261041157600435610ba081610875565b3360009081526008602090815260408083206001600160a01b03851684529091529020546024358101809111610bda576108b09133612599565b612575565b90604060031983011261041157600435610bf881610405565b91602435906001600160401b038211610411576104a491600401610416565b3461041157602061ffff610c64610c2d36610bdf565b9390911660005260018452610c4f610c5660406000206040519283809261159c565b03826110a4565b8481519101209236916110e0565b82815191012014604051908152f35b34610411576000366003190112610411576020600c54604051908152f35b346104115760203660031901126104115761ffff600435610cb181610405565b1660005260036020526020604060002054604051908152f35b3461041157610cd836610bdf565b9190610ce261251d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691823b1561041157604051928380926342d65a8d60e01b825281610d396000988997889460048501612850565b03925af1801561086c57610860575080f35b3461041157602036600319011261041157600435610d6881610875565b60018060a01b0316600052600f602052602060ff604060002054166040519015158152f35b3461041157600036600319011261041157602060405160008152f35b3461041157602036600319011261041157600435610dc681610875565b60018060a01b03166000526010602052602060ff604060002054166040519015158152f35b60e036600319011261041157600435610e0381610875565b60243590610e1082610405565b6001600160401b039060443582811161041157610e31903690600401610416565b909160643560843594610e4386610875565b60a43593610e5085610875565b60c43591821161041157610e78610e6e610e80933690600401610416565b97909236916110e0565b9536916110e0565b60065460ff1615610fcb576022815110610f86577f36bf890b6c16bd333db9fb1f5bd7cc1d42117f10f8aae924d25070edd5b57e4594610f68610f81938361ffff97610f048c8a6022610f6099015191166000526002602052610ef0604060002060008052602052604060002090565b5490610efd82151561309a565b10156130e6565b610f0e8389613132565b9a6040519384610f268b60208301938a429286612de1565b0394610f3a601f19968781018352826110a4565b5190209687948d610f546040519788928b60208501612e1f565b039081018652856110a4565b34938d612ec8565b60405194859460018060a01b0316981696429185612e48565b0390a3005b60405162461bcd60e51b815260206004820152601c60248201527f4c7a4170703a20696e76616c69642061646170746572506172616d73000000006044820152606490fd5b8051611007577f36bf890b6c16bd333db9fb1f5bd7cc1d42117f10f8aae924d25070edd5b57e4594610f68610f8193610f609361ffff97610f04565b60405162461bcd60e51b815260206004820152602660248201527f4f4654436f72653a205f61646170746572506172616d73206d7573742062652060448201526532b6b83a3c9760d11b6064820152608490fd5b634e487b7160e01b600052604160045260246000fd5b6001600160401b03811161108457604052565b61105b565b60c081019081106001600160401b0382111761108457604052565b90601f801991011681019081106001600160401b0382111761108457604052565b6001600160401b03811161108457601f01601f191660200190565b9291926110ec826110c5565b916110fa60405193846110a4565b829481845281830111610411578281602093846000960137010152565b602090611131928260405194838680955193849201610699565b82019081520301902090565b346104115760603660031901126104115760043561115a81610405565b6001600160401b0360243581811161041157366023820112156104115761118b9036906024816004013591016110e0565b906044359081168103610411576111c06111d8926111ba6106959561ffff166000526005602052604060002090565b90611117565b906001600160401b0316600052602052604060002090565b546040519081529081906020820190565b34610411576020366003190112610411577fb28be025a72a05ba67e4bc4c50a8275de3762106cee9ce36d91d5369356a3062602060043561122981610875565b61123161251d565b600d80546001600160a01b0319166001600160a01b03929092169182179055604051908152a1005b346104115761126736610443565b91509130330361138e57611288936112809136916110e0565b5036916110e0565b6020810161ffff8082511615600014611349578251830191608084840312610411576112b49051610405565b6040830151916001600160401b038311610411577f5173fef6f1b23a3cfcc98bda8bb36526210a9322981b5f1bbaf955cb6bebeae7926020806112fb9301918601016127bc565b92610f8161131c611315608060608501519401519661304a565b9283613160565b604080519182524260208301528101959095526001600160a01b0390911694909116929081906060820190565b60405162461bcd60e51b815260206004820152601c60248201527f4f4654436f72653a20756e6b6e6f776e207061636b65742074797065000000006044820152606490fd5b60405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608490fd5b34610411576040366003190112610411576004356113ff81610875565b6114076109e2565b9061141061251d565b60018060a01b0316600052601060205260406000209060ff801983541691151516179055600080f35b34610411577f4454942e49ab848c7894e5831f6da90bfbb59f874a7e3b3066bd49d3540a898861146836610aa2565b9061147161251d565b61ffff61148f818316916107d0808411159182610b5a57505061316b565b6011805463ffffffff1916909117601084901b63ffff0000161790556040805161ffff92831681529190921660208201529081908101610b55565b34610411576020366003190112610411576004356114e781610875565b60018060a01b031660005260076020526020604060002054604051908152f35b34610411576000806003193601126107d35761152161251d565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b90600182811c92168015611592575b602083101461157c57565b634e487b7160e01b600052602260045260246000fd5b91607f1691611571565b90600092918054916115ad83611562565b91828252600193848116908160001461160f57506001146115cf575b50505050565b90919394506000526020928360002092846000945b8386106115fb5750505050010190388080806115c9565b8054858701830152940193859082016115e4565b9294505050602093945060ff191683830152151560051b010190388080806115c9565b9061164d611646926040519384809261159c565b03836110a4565b565b346104115760203660031901126104115761ffff60043561166f81610405565b166000526001602052610695610c4f61169260406000206040519283809261159c565b6040519182916020835260208301906106bc565b3461041157600036600319011261041157600d546040516001600160a01b039091168152602090f35b34610411576040366003190112610411576004356116ec81610875565b6116f46109e2565b6116fc61251d565b611721576001600160a01b03166000908152600f60205260409020805460ff19169055005b6001600160a01b0381166000908152600f602052604090205460ff16611769576001600160a01b03166000908152600f6020526040902061001990805460ff19166001179055565b60405162461bcd60e51b815260206004820152601b60248201527f5061697220616c726561647920616464656420746f206c6973742e00000000006044820152606490fd5b346104115760206117e561ffff6117c436610aa2565b91166000526002835260406000209061ffff16600052602052604060002090565b54604051908152f35b34610411576000366003190112610411576000546040516001600160a01b039091168152602090f35b3461041157600036600319011261041157602060095430600052600782526040600020549003604051908152f35b34610411576000366003190112610411576004546040516001600160a01b039091168152602090f35b3461041157600036600319011261041157602060ff600d5460a01c166040519015158152f35b34610411576000806003193601126107d3576040519080600b546118b781611562565b808552916001918083169081156107a957506001146118e05761069585610742818703826110a4565b9250600b83527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db95b82841061192357505050810160200161074282610695610732565b80546020858701810191909152909301928101611908565b34610411576020366003190112610411577fbeb8d57bdb4b60e02e3c19624d955df6b365570ea9a363f9f3bd226a3649852060206119776109f1565b61197f61251d565b1515600d5460ff60a01b8260a01b169060ff60a01b191617600d55604051908152a1005b346104115760203660031901126104115761ffff6004356119c381610405565b166000526001602052610c4f6119e360406000206040519283809261159c565b805115611a0157610742816119fb61069593516128bf565b90612958565b60405162461bcd60e51b815260206004820152601d60248201527f4c7a4170703a206e6f20747275737465642070617468207265636f72640000006044820152606490fd5b3461041157604036600319011261041157600435611a6381610875565b60243590336000526008602052611a908160406000209060018060a01b0316600052602052604060002090565b5491808310611ab157611aa592039033612599565b60405160018152602090f35b60405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608490fd5b3461041157611b1236610bdf565b90611b1b61251d565b60405192602092808385870137611b476034868381013060601b888201520360148101885201866110a4565b60009361ffff8316855260019081815260408620918751916001600160401b03831161108457611b8183611b7b8654611562565b8661286b565b80601f8411600114611bf1575091808092611be09695948a9b7f8c0400cfe2d1199b1a725c78960bcc2a344d869b80590d0f2bd005db15a572ce9b94611be6575b50501b916000199060031b1c19161790555b60405193849384612850565b0390a180f35b015192503880611bc2565b91939498601f198416611c0987600052602060002090565b938a905b828210611c70575050917f8c0400cfe2d1199b1a725c78960bcc2a344d869b80590d0f2bd005db15a572ce999a95939185611be098969410611c57575b505050811b019055611bd4565b015160001960f88460031b161c19169055388080611c4a565b808886978294978701518155019601940190611c0d565b34610411576040366003190112610411576108b0600435611ca781610875565b60243590336131b7565b34610411576000366003190112610411576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b34610411576020366003190112610411577f5db758e995a17ec1ad84bdef7e8c3293a0bd6179bcce400dff5d4c3d87db726b6020600435611d3681610875565b611d3e61251d565b600480546001600160a01b0319166001600160a01b03929092169182179055604051908152a1005b346104115760003660031901126104115760206040516127108152f35b34610411576000366003190112610411576012546040805161ffff808416825260109390931c909216602083015290f35b3461041157608036600319011261041157600435611dd181610405565b602435611ddd81610405565b6064356001600160401b03811161041157611dfc903690600401610416565b9092611e0661251d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690813b156104115760008094611e7d604051978896879586946332fb62e760e21b865261ffff8092166004870152166024850152604435604485015260806064850152608484019161282f565b03925af1801561086c57611e8d57005b80611e9a61001992611071565b8061063c565b611ea936610443565b9161ffff86949296166000526005602052611ef081604060002060206040518092878b833787820190815203019020906001600160401b0316600052602052604060002090565b54918215611f89577fc264d91f3adc5588250e1551f547752ca0cfa8f6b530d243b9f9f4cab10ea8e596610b5594611f7d91611f77916000611f6b876111c08d89611f658f611f518f611f44368c8e6110e0565b6020815191012014612b8f565b61ffff166000526005602052604060002090565b91612b76565b5561128036868c6110e0565b86612d53565b60405195869586612be5565b60405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608490fd5b3461041157600036600319011261041157604051600160801b8152602090f35b346104115760403660031901126104115760206117e560043561201c81610875565b6024359061202982610875565b60018060a01b03166000526008835260406000209060018060a01b0316600052602052604060002090565b346104115760603660031901126104115760043561207181610405565b60243561207d81610405565b6044359161208961251d565b821561210457610b557f9d5c7c0b934da8fefa9c7760c98383778a12dfbfc0c3b3106518f43fb9508ac09361ffff83166000526002602052806120de8560406000209061ffff16600052602052604060002090565b556040519384938460409194939294606082019561ffff80921683521660208201520152565b60405162461bcd60e51b81526020600482015260156024820152744c7a4170703a20696e76616c6964206d696e47617360581b6044820152606490fd5b3461041157602036600319011261041157600435600e5481101561041157600e6000527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd01546040516001600160a01b039091168152602090f35b34610411576020366003190112610411577f1584ad594a70cbe1e6515592e1272a987d922b097ead875069cebe8b40c004a460206121d86109f1565b6121e061251d565b151560ff196006541660ff821617600655604051908152a1005b346104115761220836610bdf565b919061221261251d565b60009161ffff81168352600160209080825260408520916001600160401b0387116110845761224b876122458554611562565b8561286b565b8590601f88116001146122b25750918680879893611be0957ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab99936122a7575b501b906000198460031b1c191617905560405193849384612850565b88013592503861228b565b90601f1988166122c785600052602060002090565b9288905b82821061232d575050918893917ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab9899611be0969410612313575b505082811b019055611bd4565b870135600019600386901b60f8161c191690553880612306565b808685968294968c013581550195019301906122cb565b3461041157600036600319011261041157602060ff600654166040519015158152f35b346104115760203660031901126104115760043561238481610875565b61238c61251d565b6001600160a01b0390811680156123da57600080546001600160a01b03198116831782559092167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b346104115760803660031901126104115760043561244b81610405565b6024359061245882610405565b612463604435610875565b604051633d7b2f6f60e21b815261ffff91821660048201529116602482015230604482015260648035908201526000816084817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa801561086c57610695916000916124e1575b50604051918291826106e1565b6124fc913d8091833e6124f481836110a4565b8101906127fe565b386124d4565b34610411576000366003190112610411576020604051308152f35b6000546001600160a01b0316330361253157565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b634e487b7160e01b600052601160045260246000fd5b90601f8201809211610bda57565b6001600160a01b03808216929190831561267857821693841561262857806126127f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925946125fb6126239560018060a01b03166000526008602052604060002090565b9060018060a01b0316600052602052604060002090565b556040519081529081906020820190565b0390a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b6001600160a01b0380821660009081526008602090815260408083209386168352929052209091905492600184016127015750505050565b80841061271c57612713930391612599565b388080806115c9565b60405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606490fd5b1561276857565b60405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b6064820152608490fd5b81601f820112156104115780516127d2816110c5565b926127e060405194856110a4565b81845260208284010111610411576106f29160208085019101610699565b906020828203126104115781516001600160401b038111610411576106f292016127bc565b6040513d6000823e3d90fd5b908060209392818452848401376000828201840152601f01601f1916010190565b60409061ffff6106f29593168152816020820152019161282f565b90601f811161287957505050565b600091825260208220906020601f850160051c830194106128b5575b601f0160051c01915b8281106128aa57505050565b81815560010161289e565b9092508290612895565b601319810191908211610bda57565b91908203918211610bda57565b156128e257565b60405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b6044820152606490fd5b1561291f57565b60405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b6044820152606490fd5b61296c826129658161258b565b10156128db565b6129798282511015612918565b81612991575050604051600081526020810160405290565b60405191601f811691821560051b808486010193838501920101905b8084106129c55750508252601f01601f191660405290565b90928351815260208091019301906129ad565b9290915a604051633356ae4560e11b6020820190815261ffff87166024830152608060448301529491612a4482612a36612a1560a48301876106bc565b6001600160401b0388166064840152828103602319016084840152886106bc565b03601f1981018452836110a4565b6000809160405197612a5589611089565b609689528260208a019560a036883751923090f1903d9060968211612a9c575b6000908288523e15612a89575b5050505050565b612a9294612aa5565b3880808080612a82565b60969150612a75565b9193612b637fe183f33de2837795525b4792ca4cd60535bd77c53b7e7030060bfcf5734d6b0c95612b71939561ffff81516020830120961695866000526005602052612b2a83612b0960208b60406000208260405194838680955193849201610699565b820190815203019020906001600160401b0316600052602052604060002090565b556001600160401b03612b4f604051988998895260a060208a015260a08901906106bc565b9216604087015285820360608701526106bc565b9083820360808501526106bc565b0390a1565b6020919283604051948593843782019081520301902090565b15612b9657565b60405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608490fd5b91612c119060609461ffff6001600160401b03949998979916855260806020860152608085019161282f565b951660408201520152565b9190826040910312610411576020825192015190565b91926106f29694959361ffff612c639316845260018060a01b0316602084015260a0604084015260a08301906106bc565b9315156060820152608081850391015261282f565b919495612cda9193949796612cbe6040978897612caa89519889936000602086015260608c860152608085019161282f565b90606083015203601f1981018752866110a4565b855163040a7bb160e41b81529889958695309060048801612c32565b03817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa92831561086c576000918294612d1f575b50509190565b612d4393945080919250903d10612d4c575b612d3b81836110a4565b810190612c1c565b91903880612d19565b503d612d31565b906020810161ffff808251161560001461134957825183019160808484031261041157612d809051610405565b6040830151916001600160401b038311610411577f5173fef6f1b23a3cfcc98bda8bb36526210a9322981b5f1bbaf955cb6bebeae792602080612dc79301918601016127bc565b9261262361131c611315608060608501519401519661304a565b60549492916bffffffffffffffffffffffff199060601b168152612e0f825180936020601485019101610699565b0191601483015260348201520190565b612e3e60609295949395600083526080602084015260808301906106bc565b9460408201520152565b9092612e616060939695946080845260808401906106bc565b95602083015260408201520152565b92612e956106f297959361ffff612ea39416865260c0602087015260c08601906106bc565b9084820360408601526106bc565b6001600160a01b0391821660608401529316608082015280830360a0909101526106bc565b94612ef19193929561ffff81166000526001602052612ef860406000206040519485809261159c565b03846110a4565b825115612f7d57612f0a855182612fdb565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031693843b1561041157600096612f5f91604051998a988997889662c5803160e81b885260048801612e70565b03925af1801561086c57612f705750565b80611e9a61164d92611071565b60405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b6064820152608490fd5b61ffff166000526003602052604060002054908115613040575b11612ffc57565b606460405162461bcd60e51b815260206004820152602060248201527f4c7a4170703a207061796c6f61642073697a6520697320746f6f206c617267656044820152fd5b6127109150612ff5565b601481511061305d576020015160601c90565b60405162461bcd60e51b8152602060048201526015602482015274746f416464726573735f6f75744f66426f756e647360581b6044820152606490fd5b156130a157565b60405162461bcd60e51b815260206004820152601a60248201527f4c7a4170703a206d696e4761734c696d6974206e6f74207365740000000000006044820152606490fd5b156130ed57565b60405162461bcd60e51b815260206004820152601b60248201527f4c7a4170703a20676173206c696d697420697320746f6f206c6f7700000000006044820152606490fd5b6106f2908290336001600160a01b03821603613150575b30906131b7565b61315b8233836126c9565b613149565b816106f291306131b7565b1561317257565b60405162461bcd60e51b815260206004820152601760248201527f43616e6e6f7420657863656564206d6178696d756d732e0000000000000000006044820152606490fd5b90613254613204928261324e61326e9660009060018060a01b0384168252600f60205260ff60408320541661330d575b6001600160a01b0385166000908152600f6020526040902061320b905b5460ff1690565b6132e9575b6001600160a01b038516600090815260106020526040902061323190613204565b80156132c2575b80156132b3575b6132aa575b8161328d576128ce565b916133d7565b6001600160a01b03166000908152600f6020526040902090565b80613283575b61327a57565b61164d42600c55565b50600c5415613274565b600d546132a59083906001600160a01b0316876133d7565b6128ce565b60009150613244565b50600d5460a01c60ff1661323f565b506001600160a01b03841660009081526010602052604090206132e490613204565b613238565b90506133076132ff6132f96135fc565b836134ec565b612710900490565b90613210565b905061271061331d6132f96134ff565b04906131e7565b1561332b57565b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b1561338357565b60405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b916001600160a01b03808416929091831561349957613483827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef94612623941696613423881515613324565b6001600160a01b03811660009081526007602052604090206134689085905461344e8282101561337c565b039160018060a01b03166000526007602052604060002090565b556001600160a01b0316600090815260076020526040902090565b8054820190556040519081529081906020820190565b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b81810292918115918404141715610bda57565b600080600c5461350f81426128ce565b6014811080806135f3575b6135e9575b15806135df575b806135d6575b6135cc575b6028811015806135c0575b806135b7575b61358f575b6201518011159081613585575b5061355d575090565b1590506135785761ffff61357460115461ffff1690565b1690565b60115460101c61ffff1690565b9050151538613554565b925090506000906201518061ffff6135ae60125461ffff9060101c1690565b16939050613547565b50811515613542565b5062015180811061353c565b6107d09350613531565b5081151561352c565b5060288110613526565b610fa0945061351f565b5082151561351a565b6000600c5461360b81426128ce565b6014811080806136ce575b6136c4575b15806136ba575b806136b1575b6136a7575b60288110158061369b575b80613692575b613673575b6201518011159081613669575b506136585790565b5061ffff61357460115461ffff1690565b9050151538613650565b91506201518061ffff61368960125461ffff1690565b16929050613643565b5081151561363e565b50620151808110613638565b6107d0925061362d565b50811515613628565b5060288110613622565b610fa0935061361b565b5082151561361656fea264697066735822122069a9c718f17cbbcf568efa17bebebeb5e6919f686b1779132e1138d839ec5a1964736f6c634300081200330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6750000000000000000000000002e1e274a82934061aa2fa961e9cc5e414ef75afb

Deployed Bytecode

0x6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c80621d35671461040057806301ffc9a7146103fb57806303fd2a45146103f6578063069d955f146103f157806306fdde03146103ec57806307e0db17146103e7578063095ea7b3146103e25780630df37483146103dd57806310ddb137146103d857806318160ddd146103d357806323b872dd146103ce5780632a205e3d146103c95780632b28fc7a1461031f5780632b7f29fa146103c4578063313ce567146103bf57806339509351146103ba5780633d8b38f6146103b55780633f0fb380146103b05780633f1f4fa4146103ab57806342d65a8d146103a657806343cc8c2a146103a1578063447705151461039c5780634c42899a1461039c5780634e221c271461039757806351905636146103925780635b8c41e61461038d5780635f8553e71461038857806366ad5c8a146103835780636db41ce91461037e578063705285141461037957806370a0823114610374578063715018a61461036f5780637533d7881461036a578063800cee511461036557806380c581d1146103605780638cfd8f5c1461035b5780638da5cb5b146103565780639358928b14610351578063950c8a741461034c578063958f97351461034757806395d89b41146103425780639e7bd5251461033d5780639f38369a14610338578063a457c2d714610333578063a6c3d1651461032e578063a9059cbb14610329578063b353aaa714610324578063b3d514fb1461031f578063baf3292d1461031a578063c446183414610315578063c95d83ee14610310578063cbed8b9c1461030b578063d1deba1f14610306578063d49d518114610301578063dd62ed3e146102fc578063df2a5b3b146102f7578063e1d5584c146102f2578063eab45d9c146102ed578063eb8d72b7146102e8578063ed629c5c146102e3578063f2fde38b146102de578063f5ecbdbc146102d95763fc0c546a0361000e57612502565b61242e565b612367565b612344565b6121fa565b61219c565b612141565b612054565b611ffa565b611fda565b611ea0565b611db4565b611d83565b611d66565b611cf6565b610a85565b611cb1565b611c87565b611b04565b611a46565b6119a3565b61193b565b611894565b61186e565b611845565b611817565b6117ee565b6117ae565b6116cf565b6116a6565b61164f565b611507565b6114ca565b611439565b6113e2565b611259565b6111e9565b61113d565b610deb565b610da9565b610d8d565b610d4b565b610cca565b610c91565b610c73565b610c17565b610b83565b610b67565b610ac7565b610a00565b6109a2565b610984565b6108fa565b6108bb565b610886565b6107d6565b6106f5565b610664565b610647565b6105bc565b6104a8565b61ffff81160361041157565b600080fd5b9181601f84011215610411578235916001600160401b038311610411576020838186019501011161041157565b9060806003198301126104115760043561045c81610405565b916001600160401b0390602435828111610411578161047d91600401610416565b9390939260443581811681036104115792606435918211610411576104a491600401610416565b9091565b34610411576104b636610443565b929493919291907f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b031633036105775761053c610544926100199761053561051b6105168a61ffff166000526001602052604060002090565b611632565b805190818414918261056d575b508161054a575b50612761565b36916110e0565b9236916110e0565b926129d8565b90506105573684866110e0565b602081519101209060208151910120143861052f565b1515915038610528565b60405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c657200006044820152606490fd5b346104115760203660031901126104115760043563ffffffff60e01b811680910361041157806020911590811561062b575b8115610600575b506040519015158152f35b630a72677560e11b81149150811561061a575b50386105f5565b6301ffc9a760e01b14905038610613565b6336372b0760e01b811491506105ee565b600091031261041157565b3461041157600036600319011261041157602060405161dead8152f35b34610411576000366003190112610411576011546040805161ffff808416825260109390931c909216602083015290f35b0390f35b60005b8381106106ac5750506000910152565b818101518382015260200161069c565b906020916106d581518092818552858086019101610699565b601f01601f1916010190565b9060206106f29281815201906106bc565b90565b34610411576000806003193601126107d3576040519080600a5461071881611562565b808552916001918083169081156107a9575060011461074e575b61069585610742818703826110a4565b604051918291826106e1565b9250600a83527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a85b82841061079157505050810160200161074282610695610732565b80546020858701810191909152909301928101610776565b8695506106959693506020925061074294915060ff191682840152151560051b8201019293610732565b80fd5b3461041157600060203660031901126107d3576004356107f581610405565b6107fd61251d565b7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b0316908290823b1561087157602461ffff918360405195869485936307e0db1760e01b85521660048401525af1801561086c57610860575080f35b61086990611071565b80f35b612823565b5080fd5b6001600160a01b0381160361041157565b34610411576040366003190112610411576108b06004356108a681610875565b6024359033612599565b602060405160018152f35b346104115760403660031901126104115761ffff6004356108db81610405565b6108e361251d565b166000526003602052602435604060002055600080f35b3461041157600060203660031901126107d35760043561091981610405565b61092161251d565b7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b0316908290823b1561087157602461ffff918360405195869485936310ddb13760e01b85521660048401525af1801561086c57610860575080f35b34610411576000366003190112610411576020600954604051908152f35b34610411576060366003190112610411576108b06004356109c281610875565b6024356109ce81610875565b604435916109dd8333836126c9565b6131b7565b60243590811515820361041157565b60043590811515820361041157565b346104115760a036600319011261041157600435610a1d81610405565b6001600160401b039060243582811161041157610a3e903690600401610416565b916064359081151582036104115760843594851161041157610a67610a73953690600401610416565b94909360443592612c78565b60408051928352602083019190915290f35b346104115760003660031901126104115760206040516107d08152f35b604090600319011261041157600435610aba81610405565b906024356106f281610405565b34610411577f60efe1e3702c64a1ed1b8d52ed5d4d71b1a990e2654d735810c84eee758c197d610af636610aa2565b90610aff61251d565b61ffff610b1e818316916107d0808411159182610b5a575b505061316b565b6012805463ffffffff1916909117601084901b63ffff0000161790556040805161ffff928316815291909216602082015290819081015b0390a1005b8616111590503880610b17565b3461041157600036600319011261041157602060405160128152f35b3461041157604036600319011261041157600435610ba081610875565b3360009081526008602090815260408083206001600160a01b03851684529091529020546024358101809111610bda576108b09133612599565b612575565b90604060031983011261041157600435610bf881610405565b91602435906001600160401b038211610411576104a491600401610416565b3461041157602061ffff610c64610c2d36610bdf565b9390911660005260018452610c4f610c5660406000206040519283809261159c565b03826110a4565b8481519101209236916110e0565b82815191012014604051908152f35b34610411576000366003190112610411576020600c54604051908152f35b346104115760203660031901126104115761ffff600435610cb181610405565b1660005260036020526020604060002054604051908152f35b3461041157610cd836610bdf565b9190610ce261251d565b7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b031691823b1561041157604051928380926342d65a8d60e01b825281610d396000988997889460048501612850565b03925af1801561086c57610860575080f35b3461041157602036600319011261041157600435610d6881610875565b60018060a01b0316600052600f602052602060ff604060002054166040519015158152f35b3461041157600036600319011261041157602060405160008152f35b3461041157602036600319011261041157600435610dc681610875565b60018060a01b03166000526010602052602060ff604060002054166040519015158152f35b60e036600319011261041157600435610e0381610875565b60243590610e1082610405565b6001600160401b039060443582811161041157610e31903690600401610416565b909160643560843594610e4386610875565b60a43593610e5085610875565b60c43591821161041157610e78610e6e610e80933690600401610416565b97909236916110e0565b9536916110e0565b60065460ff1615610fcb576022815110610f86577f36bf890b6c16bd333db9fb1f5bd7cc1d42117f10f8aae924d25070edd5b57e4594610f68610f81938361ffff97610f048c8a6022610f6099015191166000526002602052610ef0604060002060008052602052604060002090565b5490610efd82151561309a565b10156130e6565b610f0e8389613132565b9a6040519384610f268b60208301938a429286612de1565b0394610f3a601f19968781018352826110a4565b5190209687948d610f546040519788928b60208501612e1f565b039081018652856110a4565b34938d612ec8565b60405194859460018060a01b0316981696429185612e48565b0390a3005b60405162461bcd60e51b815260206004820152601c60248201527f4c7a4170703a20696e76616c69642061646170746572506172616d73000000006044820152606490fd5b8051611007577f36bf890b6c16bd333db9fb1f5bd7cc1d42117f10f8aae924d25070edd5b57e4594610f68610f8193610f609361ffff97610f04565b60405162461bcd60e51b815260206004820152602660248201527f4f4654436f72653a205f61646170746572506172616d73206d7573742062652060448201526532b6b83a3c9760d11b6064820152608490fd5b634e487b7160e01b600052604160045260246000fd5b6001600160401b03811161108457604052565b61105b565b60c081019081106001600160401b0382111761108457604052565b90601f801991011681019081106001600160401b0382111761108457604052565b6001600160401b03811161108457601f01601f191660200190565b9291926110ec826110c5565b916110fa60405193846110a4565b829481845281830111610411578281602093846000960137010152565b602090611131928260405194838680955193849201610699565b82019081520301902090565b346104115760603660031901126104115760043561115a81610405565b6001600160401b0360243581811161041157366023820112156104115761118b9036906024816004013591016110e0565b906044359081168103610411576111c06111d8926111ba6106959561ffff166000526005602052604060002090565b90611117565b906001600160401b0316600052602052604060002090565b546040519081529081906020820190565b34610411576020366003190112610411577fb28be025a72a05ba67e4bc4c50a8275de3762106cee9ce36d91d5369356a3062602060043561122981610875565b61123161251d565b600d80546001600160a01b0319166001600160a01b03929092169182179055604051908152a1005b346104115761126736610443565b91509130330361138e57611288936112809136916110e0565b5036916110e0565b6020810161ffff8082511615600014611349578251830191608084840312610411576112b49051610405565b6040830151916001600160401b038311610411577f5173fef6f1b23a3cfcc98bda8bb36526210a9322981b5f1bbaf955cb6bebeae7926020806112fb9301918601016127bc565b92610f8161131c611315608060608501519401519661304a565b9283613160565b604080519182524260208301528101959095526001600160a01b0390911694909116929081906060820190565b60405162461bcd60e51b815260206004820152601c60248201527f4f4654436f72653a20756e6b6e6f776e207061636b65742074797065000000006044820152606490fd5b60405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608490fd5b34610411576040366003190112610411576004356113ff81610875565b6114076109e2565b9061141061251d565b60018060a01b0316600052601060205260406000209060ff801983541691151516179055600080f35b34610411577f4454942e49ab848c7894e5831f6da90bfbb59f874a7e3b3066bd49d3540a898861146836610aa2565b9061147161251d565b61ffff61148f818316916107d0808411159182610b5a57505061316b565b6011805463ffffffff1916909117601084901b63ffff0000161790556040805161ffff92831681529190921660208201529081908101610b55565b34610411576020366003190112610411576004356114e781610875565b60018060a01b031660005260076020526020604060002054604051908152f35b34610411576000806003193601126107d35761152161251d565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b90600182811c92168015611592575b602083101461157c57565b634e487b7160e01b600052602260045260246000fd5b91607f1691611571565b90600092918054916115ad83611562565b91828252600193848116908160001461160f57506001146115cf575b50505050565b90919394506000526020928360002092846000945b8386106115fb5750505050010190388080806115c9565b8054858701830152940193859082016115e4565b9294505050602093945060ff191683830152151560051b010190388080806115c9565b9061164d611646926040519384809261159c565b03836110a4565b565b346104115760203660031901126104115761ffff60043561166f81610405565b166000526001602052610695610c4f61169260406000206040519283809261159c565b6040519182916020835260208301906106bc565b3461041157600036600319011261041157600d546040516001600160a01b039091168152602090f35b34610411576040366003190112610411576004356116ec81610875565b6116f46109e2565b6116fc61251d565b611721576001600160a01b03166000908152600f60205260409020805460ff19169055005b6001600160a01b0381166000908152600f602052604090205460ff16611769576001600160a01b03166000908152600f6020526040902061001990805460ff19166001179055565b60405162461bcd60e51b815260206004820152601b60248201527f5061697220616c726561647920616464656420746f206c6973742e00000000006044820152606490fd5b346104115760206117e561ffff6117c436610aa2565b91166000526002835260406000209061ffff16600052602052604060002090565b54604051908152f35b34610411576000366003190112610411576000546040516001600160a01b039091168152602090f35b3461041157600036600319011261041157602060095430600052600782526040600020549003604051908152f35b34610411576000366003190112610411576004546040516001600160a01b039091168152602090f35b3461041157600036600319011261041157602060ff600d5460a01c166040519015158152f35b34610411576000806003193601126107d3576040519080600b546118b781611562565b808552916001918083169081156107a957506001146118e05761069585610742818703826110a4565b9250600b83527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db95b82841061192357505050810160200161074282610695610732565b80546020858701810191909152909301928101611908565b34610411576020366003190112610411577fbeb8d57bdb4b60e02e3c19624d955df6b365570ea9a363f9f3bd226a3649852060206119776109f1565b61197f61251d565b1515600d5460ff60a01b8260a01b169060ff60a01b191617600d55604051908152a1005b346104115760203660031901126104115761ffff6004356119c381610405565b166000526001602052610c4f6119e360406000206040519283809261159c565b805115611a0157610742816119fb61069593516128bf565b90612958565b60405162461bcd60e51b815260206004820152601d60248201527f4c7a4170703a206e6f20747275737465642070617468207265636f72640000006044820152606490fd5b3461041157604036600319011261041157600435611a6381610875565b60243590336000526008602052611a908160406000209060018060a01b0316600052602052604060002090565b5491808310611ab157611aa592039033612599565b60405160018152602090f35b60405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608490fd5b3461041157611b1236610bdf565b90611b1b61251d565b60405192602092808385870137611b476034868381013060601b888201520360148101885201866110a4565b60009361ffff8316855260019081815260408620918751916001600160401b03831161108457611b8183611b7b8654611562565b8661286b565b80601f8411600114611bf1575091808092611be09695948a9b7f8c0400cfe2d1199b1a725c78960bcc2a344d869b80590d0f2bd005db15a572ce9b94611be6575b50501b916000199060031b1c19161790555b60405193849384612850565b0390a180f35b015192503880611bc2565b91939498601f198416611c0987600052602060002090565b938a905b828210611c70575050917f8c0400cfe2d1199b1a725c78960bcc2a344d869b80590d0f2bd005db15a572ce999a95939185611be098969410611c57575b505050811b019055611bd4565b015160001960f88460031b161c19169055388080611c4a565b808886978294978701518155019601940190611c0d565b34610411576040366003190112610411576108b0600435611ca781610875565b60243590336131b7565b34610411576000366003190112610411576040517f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b03168152602090f35b34610411576020366003190112610411577f5db758e995a17ec1ad84bdef7e8c3293a0bd6179bcce400dff5d4c3d87db726b6020600435611d3681610875565b611d3e61251d565b600480546001600160a01b0319166001600160a01b03929092169182179055604051908152a1005b346104115760003660031901126104115760206040516127108152f35b34610411576000366003190112610411576012546040805161ffff808416825260109390931c909216602083015290f35b3461041157608036600319011261041157600435611dd181610405565b602435611ddd81610405565b6064356001600160401b03811161041157611dfc903690600401610416565b9092611e0661251d565b7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b031690813b156104115760008094611e7d604051978896879586946332fb62e760e21b865261ffff8092166004870152166024850152604435604485015260806064850152608484019161282f565b03925af1801561086c57611e8d57005b80611e9a61001992611071565b8061063c565b611ea936610443565b9161ffff86949296166000526005602052611ef081604060002060206040518092878b833787820190815203019020906001600160401b0316600052602052604060002090565b54918215611f89577fc264d91f3adc5588250e1551f547752ca0cfa8f6b530d243b9f9f4cab10ea8e596610b5594611f7d91611f77916000611f6b876111c08d89611f658f611f518f611f44368c8e6110e0565b6020815191012014612b8f565b61ffff166000526005602052604060002090565b91612b76565b5561128036868c6110e0565b86612d53565b60405195869586612be5565b60405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608490fd5b3461041157600036600319011261041157604051600160801b8152602090f35b346104115760403660031901126104115760206117e560043561201c81610875565b6024359061202982610875565b60018060a01b03166000526008835260406000209060018060a01b0316600052602052604060002090565b346104115760603660031901126104115760043561207181610405565b60243561207d81610405565b6044359161208961251d565b821561210457610b557f9d5c7c0b934da8fefa9c7760c98383778a12dfbfc0c3b3106518f43fb9508ac09361ffff83166000526002602052806120de8560406000209061ffff16600052602052604060002090565b556040519384938460409194939294606082019561ffff80921683521660208201520152565b60405162461bcd60e51b81526020600482015260156024820152744c7a4170703a20696e76616c6964206d696e47617360581b6044820152606490fd5b3461041157602036600319011261041157600435600e5481101561041157600e6000527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd01546040516001600160a01b039091168152602090f35b34610411576020366003190112610411577f1584ad594a70cbe1e6515592e1272a987d922b097ead875069cebe8b40c004a460206121d86109f1565b6121e061251d565b151560ff196006541660ff821617600655604051908152a1005b346104115761220836610bdf565b919061221261251d565b60009161ffff81168352600160209080825260408520916001600160401b0387116110845761224b876122458554611562565b8561286b565b8590601f88116001146122b25750918680879893611be0957ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab99936122a7575b501b906000198460031b1c191617905560405193849384612850565b88013592503861228b565b90601f1988166122c785600052602060002090565b9288905b82821061232d575050918893917ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab9899611be0969410612313575b505082811b019055611bd4565b870135600019600386901b60f8161c191690553880612306565b808685968294968c013581550195019301906122cb565b3461041157600036600319011261041157602060ff600654166040519015158152f35b346104115760203660031901126104115760043561238481610875565b61238c61251d565b6001600160a01b0390811680156123da57600080546001600160a01b03198116831782559092167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b346104115760803660031901126104115760043561244b81610405565b6024359061245882610405565b612463604435610875565b604051633d7b2f6f60e21b815261ffff91821660048201529116602482015230604482015260648035908201526000816084817f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b03165afa801561086c57610695916000916124e1575b50604051918291826106e1565b6124fc913d8091833e6124f481836110a4565b8101906127fe565b386124d4565b34610411576000366003190112610411576020604051308152f35b6000546001600160a01b0316330361253157565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b634e487b7160e01b600052601160045260246000fd5b90601f8201809211610bda57565b6001600160a01b03808216929190831561267857821693841561262857806126127f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925946125fb6126239560018060a01b03166000526008602052604060002090565b9060018060a01b0316600052602052604060002090565b556040519081529081906020820190565b0390a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b6001600160a01b0380821660009081526008602090815260408083209386168352929052209091905492600184016127015750505050565b80841061271c57612713930391612599565b388080806115c9565b60405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606490fd5b1561276857565b60405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b6064820152608490fd5b81601f820112156104115780516127d2816110c5565b926127e060405194856110a4565b81845260208284010111610411576106f29160208085019101610699565b906020828203126104115781516001600160401b038111610411576106f292016127bc565b6040513d6000823e3d90fd5b908060209392818452848401376000828201840152601f01601f1916010190565b60409061ffff6106f29593168152816020820152019161282f565b90601f811161287957505050565b600091825260208220906020601f850160051c830194106128b5575b601f0160051c01915b8281106128aa57505050565b81815560010161289e565b9092508290612895565b601319810191908211610bda57565b91908203918211610bda57565b156128e257565b60405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b6044820152606490fd5b1561291f57565b60405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b6044820152606490fd5b61296c826129658161258b565b10156128db565b6129798282511015612918565b81612991575050604051600081526020810160405290565b60405191601f811691821560051b808486010193838501920101905b8084106129c55750508252601f01601f191660405290565b90928351815260208091019301906129ad565b9290915a604051633356ae4560e11b6020820190815261ffff87166024830152608060448301529491612a4482612a36612a1560a48301876106bc565b6001600160401b0388166064840152828103602319016084840152886106bc565b03601f1981018452836110a4565b6000809160405197612a5589611089565b609689528260208a019560a036883751923090f1903d9060968211612a9c575b6000908288523e15612a89575b5050505050565b612a9294612aa5565b3880808080612a82565b60969150612a75565b9193612b637fe183f33de2837795525b4792ca4cd60535bd77c53b7e7030060bfcf5734d6b0c95612b71939561ffff81516020830120961695866000526005602052612b2a83612b0960208b60406000208260405194838680955193849201610699565b820190815203019020906001600160401b0316600052602052604060002090565b556001600160401b03612b4f604051988998895260a060208a015260a08901906106bc565b9216604087015285820360608701526106bc565b9083820360808501526106bc565b0390a1565b6020919283604051948593843782019081520301902090565b15612b9657565b60405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608490fd5b91612c119060609461ffff6001600160401b03949998979916855260806020860152608085019161282f565b951660408201520152565b9190826040910312610411576020825192015190565b91926106f29694959361ffff612c639316845260018060a01b0316602084015260a0604084015260a08301906106bc565b9315156060820152608081850391015261282f565b919495612cda9193949796612cbe6040978897612caa89519889936000602086015260608c860152608085019161282f565b90606083015203601f1981018752866110a4565b855163040a7bb160e41b81529889958695309060048801612c32565b03817f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b03165afa92831561086c576000918294612d1f575b50509190565b612d4393945080919250903d10612d4c575b612d3b81836110a4565b810190612c1c565b91903880612d19565b503d612d31565b906020810161ffff808251161560001461134957825183019160808484031261041157612d809051610405565b6040830151916001600160401b038311610411577f5173fef6f1b23a3cfcc98bda8bb36526210a9322981b5f1bbaf955cb6bebeae792602080612dc79301918601016127bc565b9261262361131c611315608060608501519401519661304a565b60549492916bffffffffffffffffffffffff199060601b168152612e0f825180936020601485019101610699565b0191601483015260348201520190565b612e3e60609295949395600083526080602084015260808301906106bc565b9460408201520152565b9092612e616060939695946080845260808401906106bc565b95602083015260408201520152565b92612e956106f297959361ffff612ea39416865260c0602087015260c08601906106bc565b9084820360408601526106bc565b6001600160a01b0391821660608401529316608082015280830360a0909101526106bc565b94612ef19193929561ffff81166000526001602052612ef860406000206040519485809261159c565b03846110a4565b825115612f7d57612f0a855182612fdb565b7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b031693843b1561041157600096612f5f91604051998a988997889662c5803160e81b885260048801612e70565b03925af1801561086c57612f705750565b80611e9a61164d92611071565b60405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b6064820152608490fd5b61ffff166000526003602052604060002054908115613040575b11612ffc57565b606460405162461bcd60e51b815260206004820152602060248201527f4c7a4170703a207061796c6f61642073697a6520697320746f6f206c617267656044820152fd5b6127109150612ff5565b601481511061305d576020015160601c90565b60405162461bcd60e51b8152602060048201526015602482015274746f416464726573735f6f75744f66426f756e647360581b6044820152606490fd5b156130a157565b60405162461bcd60e51b815260206004820152601a60248201527f4c7a4170703a206d696e4761734c696d6974206e6f74207365740000000000006044820152606490fd5b156130ed57565b60405162461bcd60e51b815260206004820152601b60248201527f4c7a4170703a20676173206c696d697420697320746f6f206c6f7700000000006044820152606490fd5b6106f2908290336001600160a01b03821603613150575b30906131b7565b61315b8233836126c9565b613149565b816106f291306131b7565b1561317257565b60405162461bcd60e51b815260206004820152601760248201527f43616e6e6f7420657863656564206d6178696d756d732e0000000000000000006044820152606490fd5b90613254613204928261324e61326e9660009060018060a01b0384168252600f60205260ff60408320541661330d575b6001600160a01b0385166000908152600f6020526040902061320b905b5460ff1690565b6132e9575b6001600160a01b038516600090815260106020526040902061323190613204565b80156132c2575b80156132b3575b6132aa575b8161328d576128ce565b916133d7565b6001600160a01b03166000908152600f6020526040902090565b80613283575b61327a57565b61164d42600c55565b50600c5415613274565b600d546132a59083906001600160a01b0316876133d7565b6128ce565b60009150613244565b50600d5460a01c60ff1661323f565b506001600160a01b03841660009081526010602052604090206132e490613204565b613238565b90506133076132ff6132f96135fc565b836134ec565b612710900490565b90613210565b905061271061331d6132f96134ff565b04906131e7565b1561332b57565b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b1561338357565b60405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b916001600160a01b03808416929091831561349957613483827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef94612623941696613423881515613324565b6001600160a01b03811660009081526007602052604090206134689085905461344e8282101561337c565b039160018060a01b03166000526007602052604060002090565b556001600160a01b0316600090815260076020526040902090565b8054820190556040519081529081906020820190565b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b81810292918115918404141715610bda57565b600080600c5461350f81426128ce565b6014811080806135f3575b6135e9575b15806135df575b806135d6575b6135cc575b6028811015806135c0575b806135b7575b61358f575b6201518011159081613585575b5061355d575090565b1590506135785761ffff61357460115461ffff1690565b1690565b60115460101c61ffff1690565b9050151538613554565b925090506000906201518061ffff6135ae60125461ffff9060101c1690565b16939050613547565b50811515613542565b5062015180811061353c565b6107d09350613531565b5081151561352c565b5060288110613526565b610fa0945061351f565b5082151561351a565b6000600c5461360b81426128ce565b6014811080806136ce575b6136c4575b15806136ba575b806136b1575b6136a7575b60288110158061369b575b80613692575b613673575b6201518011159081613669575b506136585790565b5061ffff61357460115461ffff1690565b9050151538613650565b91506201518061ffff61368960125461ffff1690565b16929050613643565b5081151561363e565b50620151808110613638565b6107d0925061362d565b50811515613628565b5060288110613622565b610fa0935061361b565b5082151561361656fea264697066735822122069a9c718f17cbbcf568efa17bebebeb5e6919f686b1779132e1138d839ec5a1964736f6c63430008120033

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

0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6750000000000000000000000002e1e274a82934061aa2fa961e9cc5e414ef75afb

-----Decoded View---------------
Arg [0] : _router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [1] : _lzEndpoint (address): 0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675
Arg [2] : _treasuryReceiver (address): 0x2E1E274a82934061Aa2Fa961e9Cc5e414eF75afB

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : 00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675
Arg [2] : 0000000000000000000000002e1e274a82934061aa2fa961e9cc5e414ef75afb


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.